Last updated

API / geotoolkit / controls / tools / editors / AbstractEditorBase / AbstractEditorBase

Namespace: AbstractEditorBase

editors.AbstractEditorBase.AbstractEditorBase

Table of contents

Type Aliases

Contents

Type Aliases

EventMap

Ƭ EventMap: EventMap & { BeforeCommandApplied: PaintEventArgs ; CommandApplied: PaintEventArgs ; CommandApplying: PaintEventArgs ; Continue: PaintEventArgs ; Deleted: PaintEventArgs ; Drag: PaintEventArgs ; EditorChanged: PaintEventArgs ; End: PaintEventArgs ; Flipped: PaintEventArgs ; Grouped: PaintEventArgs ; Inserted: PaintEventArgs ; NodeDeleted: PaintEventArgs ; NodeInserted: PaintEventArgs ; NodeReplaced: PaintEventArgs ; PropertyChanged: PaintEventArgs ; Redo: PaintEventArgs ; Resized: PaintEventArgs ; Rotated: PaintEventArgs ; SceneChanged: PaintEventArgs ; Start: PaintEventArgs ; Translated: PaintEventArgs ; Undo: PaintEventArgs ; Ungrouped: PaintEventArgs }


GetCursorCallback

Ƭ GetCursorCallback: (eventArgs: EventArgs, editor: AbstractEditorBase, defCursor?: string) => string | null

Type declaration

▸ (eventArgs, editor, defCursor?): string | null

The CSS cursor customization callback

Parameters
Name Type Description
eventArgsEventArgsthe event arguments
editorAbstractEditorBasethe active editor
Optional defCursorstringthe cursor that is supposed to be applied
Returns

string | null

a CSS cursor string (see https://developer.mozilla.org/en-US/docs/Web/CSS/cursor)


GhostOptions

Ƭ GhostOptions: Options & { fillstyle?: Type ; linestyle?: Type ; opacity?: number }


HandlesOptions

Ƭ HandlesOptions: Object

handles properties

Type declaration

NameTypeDescription
active?ShapeStyles[]properties array for active handles. Overrides external css styles if any
bbox?Optionsbbox resize handles properties (see SymbolShape#setProperties)
hover?ShapeStyles[]properties array for hover handles. Overrides external css styles if any
rotation?Optionsrotation handle properties (see SymbolShape#setProperties)

HandlesOptionsOut

Ƭ HandlesOptionsOut: Object

handles out properties

Type declaration

NameTypeDescription
active?ShapeStyles[]properties array for active handles
bboxOptionsOutbbox resize handles properties (see SymbolShape#getProperties)
hover?ShapeStyles[]properties array for hover handles
rotationOptionsOutrotation handle properties (see SymbolShape#getProperties)

Options

Ƭ Options<T>: Options & { bbox?: Path | Options ; editmode?: EditMode ; getcursorcallback?: GetCursorCallback | null ; ghost?: GhostOptions ; handles?: HandlesOptions ; history?: History ; node?: T | Options }

editor options

Type parameters

NameType
Textends Node | Node[] = Node | Node[]

OptionsOut

Ƭ OptionsOut: OptionsOut & { bbox: OptionsOut ; editmode: EditMode ; getcursorcallback: GetCursorCallback | null ; ghost: Required<GhostOptions> ; handles: HandlesOptionsOut ; node?: OptionsOut }

editor properties


ShapeStyles

Ƭ ShapeStyles<T>: Object

shape's extra properties description object

Type parameters

NameType
Textends Shape = Shape

Type declaration

NameTypeDescription
cssclassstringthe associated shape css class
nodetypeConstructable<T>the associated shape type
stylesParameters<T["setProperties"]>[0]the shape extra properties