Options
All
  • Public
  • Public/Protected
  • All
Menu

Editing component used internally by the Draw component. It explicitly overrides a few parent methods to avoid emitting events since this component is internal.

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

_map

_map: Map

The map instance.

app

The {@link geocortex.essentialsHtmlViewer.ViewerApplication} that this Draw toolbar instance belongs to.

id

id: string

inputMethod

inputMethod: string

The mode the component is running - e.g. mouse, keyboard

isKeyboardActive

isKeyboardActive: boolean

suspended

suspended: boolean

Static EDIT_TEXT

EDIT_TEXT: number

When a textSymbol point is in edit mode, double-clicking leads to text editing mode, which is a text box where uses can change the text content.

Static EDIT_VERTICES

EDIT_VERTICES: number

Display and edit vertices of a Polyline, Polygon, or Multipoint.

Static MOVE

MOVE: number

Move graphic to a new location on the map.

Static ROTATE

ROTATE: number

Rotate the graphic.

Static SCALE

SCALE: number

Scale or resize a graphic.

Methods

_addPointerEventsOnRedraw

  • _addPointerEventsOnRedraw(): void

Protected _adjustGraphicMoverPoint

  • _adjustGraphicMoverPoint(editingGraphic: Graphic, overridePoint: Point): void
  • Contains logic to check if there is a snapping point to replace the moved point. Snapping is difficult with points during keyboard edits as we do not have a vertex handle which is separate from the actual graphic. This handles points when the move is finished and does a last minute geometry swap. If the geometry is swapped before this time, the point can become locked to the same point on the screen.

    Parameters

    • editingGraphic: Graphic

      The editing graphic.

    • overridePoint: Point

      The point geometry to override.

    Returns void

Protected _clear

  • _clear(): void
  • Returns void

Protected _convertPolygonToExtent

  • _convertPolygonToExtent(polygon: any): Extent
  • Convert a polygon to an extent. Used for zoom operations using the keyboard.

    Parameters

    • polygon: any

      A esri.geometry.Polygon polygon that is to be converted to an extent.

    Returns Extent

Protected _disableBoxEditing

  • _disableBoxEditing(): void

Protected _disableMove

  • _disableMove(): void
  • Returns void

Protected _disableVertexEditing

  • _disableVertexEditing(): void

Protected _enableBoxEditing

  • _enableBoxEditing(graphic: Graphic, scaleEnabled: boolean, rotateEnabled: boolean): boolean
  • Parameters

    • graphic: Graphic
    • scaleEnabled: boolean
    • rotateEnabled: boolean

    Returns boolean

Protected _enableMove

  • _enableMove(graphic: Graphic): boolean
  • Parameters

    • graphic: Graphic

    Returns boolean

Protected _enableVertexEditing

  • _enableVertexEditing(graphic: Graphic): boolean
  • Parameters

    • graphic: Graphic

    Returns boolean

Private _onGraphicClickImpl

  • _onGraphicClickImpl(graphic: Graphic, info: object): void
  • Parameters

    • graphic: Graphic
    • info: object
      • mapPoint: Point
      • screenPoint: ScreenPoint

    Returns void

Private _onGraphicFirstMoveImpl

  • _onGraphicFirstMoveImpl(graphic: Graphic): void

Private _onGraphicMoveImpl

  • _onGraphicMoveImpl(graphic: Graphic, transform: any): void
  • Parameters

    • graphic: Graphic
    • transform: any

    Returns void

Private _onGraphicMoveStartImpl

  • _onGraphicMoveStartImpl(graphic: Graphic): void

Private _onGraphicMoveStopImpl

  • _onGraphicMoveStopImpl(graphic: Graphic, transform: any): void
  • Parameters

    • graphic: Graphic
    • transform: any

    Returns void

Protected _onKeyDown

  • _onKeyDown(event: KeyboardEvent): void

Protected _onKeyUp

  • _onKeyUp(event: KeyboardEvent): void
  • Internal method that subclasses should override to provide keyboard handling.

    Parameters

    • event: KeyboardEvent

    Returns void

Private _onRotateFirstMoveImpl

  • _onRotateFirstMoveImpl(graphic: Graphic): void

Private _onRotateImpl

  • _onRotateImpl(graphic: Graphic, info: any): void
  • Parameters

    • graphic: Graphic
    • info: any

    Returns void

Private _onRotateStartImpl

  • _onRotateStartImpl(graphic: Graphic): void
  • Parameters

    • graphic: Graphic

    Returns void

Private _onRotateStopImpl

  • _onRotateStopImpl(graphic: Graphic, info: any): void
  • Parameters

    • graphic: Graphic
    • info: any

    Returns void

Private _onScaleFirstMoveImpl

  • _onScaleFirstMoveImpl(graphic: Graphic): void
  • Parameters

    • graphic: Graphic

    Returns void

Private _onScaleImpl

  • _onScaleImpl(graphic: Graphic, info: any): void
  • Parameters

    • graphic: Graphic
    • info: any

    Returns void

Private _onScaleStartImpl

  • _onScaleStartImpl(graphic: Graphic): void
  • Parameters

    • graphic: Graphic

    Returns void

Private _onScaleStopImpl

  • _onScaleStopImpl(graphic: Graphic, info: any): void
  • Parameters

    • graphic: Graphic
    • info: any

    Returns void

Private _onVertexAddImpl

  • _onVertexAddImpl(graphic: Graphic, vertexInfo: any): void
  • Parameters

    • graphic: Graphic
    • vertexInfo: any

    Returns void

Private _onVertexClickImpl

  • _onVertexClickImpl(graphic: Graphic, vertexInfo: any): void
  • Parameters

    • graphic: Graphic
    • vertexInfo: any

    Returns void

Private _onVertexDeleteImpl

  • _onVertexDeleteImpl(graphic: Graphic, vertexInfo: any): void
  • Parameters

    • graphic: Graphic
    • vertexInfo: any

    Returns void

Private _onVertexFirstMoveImpl

  • _onVertexFirstMoveImpl(graphic: Graphic, vertexInfo: any): void
  • Parameters

    • graphic: Graphic
    • vertexInfo: any

    Returns void

Private _onVertexMouseOutImpl

  • _onVertexMouseOutImpl(graphic: Graphic, vertexInfo: any): void
  • Parameters

    • graphic: Graphic
    • vertexInfo: any

    Returns void

Private _onVertexMouseOverImpl

  • _onVertexMouseOverImpl(graphic: Graphic, vertexInfo: any): void
  • Parameters

    • graphic: Graphic
    • vertexInfo: any

    Returns void

Private _onVertexMoveImpl

  • _onVertexMoveImpl(graphic: Graphic, vertexInfo: any, transform: any): void
  • Parameters

    • graphic: Graphic
    • vertexInfo: any
    • transform: any

    Returns void

Private _onVertexMoveStartImpl

  • _onVertexMoveStartImpl(graphic: Graphic, vertexInfo: any): void
  • Parameters

    • graphic: Graphic
    • vertexInfo: any

    Returns void

Private _onVertexMoveStopImpl

  • _onVertexMoveStopImpl(graphic: Graphic, vertexInfo: any, transform: any): void
  • Parameters

    • graphic: Graphic
    • vertexInfo: any
    • transform: any

    Returns void

Protected _updateToolStatusMessage

  • _updateToolStatusMessage(): void
  • Changes the current status message to something like: "Use arrows to move, R to rotate, S to scale, V to select vertex. Combine with ALT for finer control. Combine with SHIFT to reverse." It will also narrate the above text via the ScreenReaderNarrate command. Implementors should override this method if they want to suppress this behavior.

    Returns void

activate

  • activate(tool: number, graphic: Graphic, options?: EditOptions): void
  • Activates the toolbar to edit the supplied graphic. After activation the toolbar is ready for user interaction using the specified tool.

    Parameters

    • tool: number

      Specify the active tool(s). Combine tools using the | operator.

    • graphic: Graphic

      The graphic to edit.

    • Optional options: EditOptions

      See the object specifications table below for the structure of the options object.

    Returns void

activateKeyboardControls

  • activateKeyboardControls(resetInputMode?: boolean): void

activateMouseControls

  • activateMouseControls(resetInputMode?: boolean): void

deactivate

  • deactivate(): void
  • Deactivates the toolbar. Call this method to deactivate the toolbar after editing the graphic.

    Returns void

deactivateKeyboardControls

  • deactivateKeyboardControls(resetInputMethod?: boolean): void

deactivateMouseControls

  • deactivateMouseControls(resetInputMode?: boolean): void

disableMapNavigation

  • disableMapNavigation(hideZoomSlider?: boolean, hidePanArrows?: boolean, disableGraphicMouseEvents?: boolean): MapNavigationState

enableMapNavigation

  • enableMapNavigation(showZoomSlider?: boolean, showPanArrows?: boolean, enableGraphicMouseEvents?: boolean, mapState?: MapNavigationState): void

getCurrentState

  • getCurrentState(): object
  • Returns an object with the following properties that describe the current state: tool, graphic, isModified.

    Returns object

    • graphic: Graphic
    • isModified: boolean
    • tool: number

getEnabledTools

  • Returns an array with the available tools (for example, [MOVE tool, ROTATE tool, SCALE tool]).

    Returns EditCapabilityBase[]

getMapState

getOptions

isActive

  • isActive(): boolean
  • Returns boolean

on

  • on(type: "activate", listener: function): Handle
  • on(type: "deactivate", listener: function): Handle
  • on(type: "graphic-click", listener: function): Handle
  • on(type: "graphic-first-move", listener: function): Handle
  • on(type: "graphic-move", listener: function): Handle
  • on(type: "graphic-move-start", listener: function): Handle
  • on(type: "graphic-move-stop", listener: function): Handle
  • on(type: "rotate", listener: function): Handle
  • on(type: "rotate-first-move", listener: function): Handle
  • on(type: "rotate-start", listener: function): Handle
  • on(type: "rotate-stop", listener: function): Handle
  • on(type: "scale", listener: function): Handle
  • on(type: "scale-first-move", listener: function): Handle
  • on(type: "scale-start", listener: function): Handle
  • on(type: "scale-stop", listener: function): Handle
  • on(type: "vertex-add", listener: function): Handle
  • on(type: "vertex-click", listener: function): Handle
  • on(type: "vertex-delete", listener: function): Handle
  • on(type: "vertex-first-move", listener: function): Handle
  • on(type: "vertex-mouse-out", listener: function): Handle
  • on(type: "vertex-mouse-over", listener: function): Handle
  • on(type: "vertex-move", listener: function): Handle
  • on(type: "vertex-move-start", listener: function): Handle
  • on(type: "vertex-move-stop", listener: function): Handle
  • on(type: string, listener: function): Handle
  • Activates the toolbar for editing geometries.

    Parameters

    • type: "activate"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit
            • tool: number

          Returns void

    Returns Handle

  • Deactivates the toolbar and reactivates map navigation.

    Parameters

    • type: "deactivate"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • info: any
            • target: Edit
            • tool: number

          Returns void

    Returns Handle

  • Fires when a graphic is clicked.

    Parameters

    • type: "graphic-click"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • info: any
            • target: Edit

          Returns void

    Returns Handle

  • Fires when the user begins to move a graphic.

    Parameters

    • type: "graphic-first-move"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit

          Returns void

    Returns Handle

  • Fired continuously as the graphic moves.

    Parameters

    • type: "graphic-move"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit
            • transform: any

          Returns void

    Returns Handle

  • Fired when the mouse button is pressed down on the graphic, usually while moving a graphic.

    Parameters

    • type: "graphic-move-start"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit

          Returns void

    Returns Handle

  • Fired when the mouse button is released, usually after moving the graphic.

    Parameters

    • type: "graphic-move-stop"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit
            • transform: any

          Returns void

    Returns Handle

  • Fires continuously as a graphic is rotated.

    Parameters

    • type: "rotate"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • info: any
            • target: Edit

          Returns void

    Returns Handle

  • Fires when the user begins to drag a handle to rotate the graphic.

    Parameters

    • type: "rotate-first-move"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit

          Returns void

    Returns Handle

  • Fires when a user clicks on the handle to begin rotating a graphic.

    Parameters

    • type: "rotate-start"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit

          Returns void

    Returns Handle

  • Fires when the mouse button is released from the rotate handle to finish rotating the graphic.

    Parameters

    • type: "rotate-stop"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • info: any
            • target: Edit

          Returns void

    Returns Handle

  • Fires continuously as the graphic is being scaled.

    Parameters

    • type: "scale"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • info: any
            • target: Edit

          Returns void

    Returns Handle

  • Fires when the user begins to drag a handle to scale the graphic.

    Parameters

    • type: "scale-first-move"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit

          Returns void

    Returns Handle

  • Fires when a user clicks on the handle to scale or resize a graphic.

    Parameters

    • type: "scale-start"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit

          Returns void

    Returns Handle

  • Fires when the mouse button is released from the scale handle to finish scaling the graphic.

    Parameters

    • type: "scale-stop"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • info: any
            • target: Edit

          Returns void

    Returns Handle

  • Fired after a new vertex is added to a polyline or polygon or a new point is added to a multipoint.

    Parameters

    • type: "vertex-add"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit
            • vertexinfo: any

          Returns void

    Returns Handle

  • Fired when the mouse button is clicked on the vertex of a polyline or polygon or a point in a multipoint.

    Parameters

    • type: "vertex-click"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit
            • vertexinfo: any

          Returns void

    Returns Handle

  • Fired after a vertex(polyline, polygon) or point(multipoint) is deleted.

    Parameters

    • type: "vertex-delete"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit
            • vertexinfo: any

          Returns void

    Returns Handle

  • Fired when the user begins to move the vertex of a polyline or polygon or a point of a multipoint.

    Parameters

    • type: "vertex-first-move"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit
            • vertexinfo: any

          Returns void

    Returns Handle

  • Fires as the mouse exits a vertex(polyline, polygon) or a point(multipoint).

    Parameters

    • type: "vertex-mouse-out"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit
            • vertexinfo: any

          Returns void

    Returns Handle

  • Fired when the mouse moves over a vertex (polyline, polygon) or point (multipoint).

    Parameters

    • type: "vertex-mouse-over"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit
            • vertexinfo: any

          Returns void

    Returns Handle

  • Fired continuously as the user is moving a vertex (polyline, polygon) or point (multipoint).

    Parameters

    • type: "vertex-move"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit
            • transform: any
            • vertexinfo: any

          Returns void

    Returns Handle

  • Fired when the mouse button is pressed down on a vertex (polyline, polygon) or point (multipoint).

    Parameters

    • type: "vertex-move-start"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit
            • vertexinfo: any

          Returns void

    Returns Handle

  • Fired when the mouse button is released from a vertex (polyline, polygon) or point(multipoint).

    Parameters

    • type: "vertex-move-stop"
    • listener: function
        • (event: object): void
        • Parameters

          • event: object
            • graphic: Graphic
            • target: Edit
            • transform: any
            • vertexinfo: any

          Returns void

    Returns Handle

  • Parameters

    • type: string
    • listener: function
        • (event: any): void
        • Parameters

          • event: any

          Returns void

    Returns Handle

onActivate

  • onActivate(tool: number, graphic: Graphic): void
  • Fired when the editing tools are activated.

    Parameters

    • tool: number

      The editing type. The constants table lists valid editing values.

    • graphic: Graphic

      The graphic to edit whose vertices will be edited or moved.

    Returns void

onDeactivate

  • onDeactivate(tool: number, graphic: Graphic, info: object): void
  • Fired when the editing tools are deactivated.

    info

    An object with the following properties: isModified

    Parameters

    • tool: number

      The editing type. The constants table lists valid editing values.

    • graphic: Graphic

      The graphic the toolbar was associated with.

    • info: object
      • Optional cancelled?: boolean
      • isModified: boolean

    Returns void

onGraphicClick

  • onGraphicClick(graphic: Graphic, info: object): void
  • Fired when a graphic is clicked. Applicable only when the MOVE tool is active.

    Parameters

    • graphic: Graphic

      The clicked graphic.

    • info: object

      An object with the following properties: mapPoint, screenPoint

      • mapPoint: Point
      • screenPoint: ScreenPoint

    Returns void

onGraphicFirstMove

  • onGraphicFirstMove(graphic: Graphic): void
  • Fired when the user begins to move a graphic. Applicable only when the MOVE tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    Returns void

onGraphicMove

  • onGraphicMove(graphic: Graphic, transform: any): void
  • Fired continuously as the graphic moves. Applicable only when the MOVE tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    • transform: any

      Represents the linear transformation applied to the graphic.

    Returns void

onGraphicMoveStart

  • onGraphicMoveStart(graphic: Graphic): void
  • Fired when the mouse button is pressed down on the graphic, usually while moving a graphic. Applicable only when the MOVE tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    Returns void

onGraphicMoveStop

  • onGraphicMoveStop(graphic: Graphic, transform: any): void
  • Fired when the mouse button is released, usually after moving the graphic. Applicable only when the MOVE tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    • transform: any

      Represents the linear transformation applied to the graphic.

    Returns void

onInputMethodChange

  • onInputMethodChange(result: object): void
  • Fired when the input method for this component (e.g. keyboard, mouse) has changed.

    Parameters

    • result: object
      • newMethod: string
      • previousMethod: string

    Returns void

onKeyboardStart

  • onKeyboardStart(): void

onKeyboardStop

  • onKeyboardStop(cancelled?: boolean): void
  • Internal method that subclasses should override to provide keyboard handling.

    Parameters

    • Optional cancelled: boolean

      Whether the operation was cancelled.

    Returns void

onRotate

  • onRotate(graphic: Graphic, info: any): void
  • Fired continuously as a graphic is rotated.

    Parameters

    • graphic: Graphic

      The rotated graphic.

    • info: any

      The info object has the following properties: transform, angle, around

    Returns void

onRotateFirstMove

  • onRotateFirstMove(graphic: Graphic): void
  • Fired when the user begins to drag a handle to rotate the graphic.

    Parameters

    • graphic: Graphic

      The rotated graphic.

    Returns void

onRotateStart

  • onRotateStart(graphic: Graphic): void
  • Fired when a user clicks on the handle to begin rotating a graphic.

    Parameters

    • graphic: Graphic

      The rotated graphic.

    Returns void

onRotateStop

  • onRotateStop(graphic: Graphic, info: any): void
  • Fired when the mouse button is released from the rotate handle to finish rotating the graphic.

    Parameters

    • graphic: Graphic

      The rotated graphic.

    • info: any

      The info object has the following properties: transform, angle, around

    Returns void

onScale

  • onScale(graphic: Graphic, info: any): void
  • Fired continuously as the graphic is being scaled.

    Parameters

    • graphic: Graphic

      The scaled graphic.

    • info: any

      The info object has the following properties: transform, scaleX, scaleY, around

    Returns void

onScaleFirstMove

  • onScaleFirstMove(graphic: Graphic): void
  • Fired when the user begins to drag a handle to scale the graphic.

    Parameters

    • graphic: Graphic

      The scaled graphic.

    Returns void

onScaleStart

  • onScaleStart(graphic: Graphic): void
  • Fired when a user clicks on the handle to scale or resize a graphic.

    Parameters

    • graphic: Graphic

      The scaled graphic.

    Returns void

onScaleStop

  • onScaleStop(graphic: Graphic, info: any): void
  • Fired when the mouse button is released from the scale handle to finish scaling the graphic.

    Parameters

    • graphic: Graphic

      The scaled graphic.

    • info: any

      The info object has the following properties: transform, scaleX, scaleY, around

    Returns void

onVertexAdd

  • onVertexAdd(graphic: Graphic, vertexInfo: any): void
  • Fired after a new vertex is added to a polyline or polygon or a new point is added to a multipoint. Applicable only when the EDIT_VERTICES tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    • vertexInfo: any

      An object with properties: isGhost, pointIndex, segmentIndex

    Returns void

onVertexClick

  • onVertexClick(graphic: Graphic, vertexInfo: any): void
  • Fired when the mouse button is clicked on the vertex of a polyline or polygon or a point in a multipoint. Applicable only when the EDIT_VERTICES tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    • vertexInfo: any

      An object with properties: isGhost, pointIndex, segmentIndex

    Returns void

onVertexDelete

  • onVertexDelete(graphic: Graphic, vertexInfo: any): void
  • Fired after a vertex(polyline, polygon) or point(multipoint) is deleted. Applicable only when the EDIT_VERTICES tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    • vertexInfo: any

      An object with properties: isGhost, pointIndex, segmentIndex

    Returns void

onVertexFirstMove

  • onVertexFirstMove(graphic: Graphic, vertexInfo: any): void
  • Fired when the user begins to move the vertex of a polyline or polygon or a point of a multipoint. Applicable only when the EDIT_VERTICES tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    • vertexInfo: any

      An object with properties: isGhost, pointIndex, segmentIndex

    Returns void

onVertexMouseOut

  • onVertexMouseOut(graphic: Graphic, vertexInfo: any): void
  • Fired as the mouse exits a vertex(polyline, polygon) or a point(multipoint). Applicable only when the EDIT_VERTICES tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    • vertexInfo: any

      An object with properties: isGhost, pointIndex, segmentIndex

    Returns void

onVertexMouseOver

  • onVertexMouseOver(graphic: Graphic, vertexInfo: any): void
  • Fired when the mouse moves over a vertex (polyline, polygon) or point (multipoint). Applicable only when the EDIT_VERTICES tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    • vertexInfo: any

      An object with properties: isGhost, pointIndex, segmentIndex

    Returns void

onVertexMove

  • onVertexMove(graphic: Graphic, vertexInfo: any, transform: any): void
  • Fired continuously as the user is moving a vertex (polyline, polygon) or point (multipoint). Applicable only when the EDIT_VERTICES tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    • vertexInfo: any

      An object with properties: isGhost, pointIndex, segmentIndex

    • transform: any

      Represents the linear transformation applied to the graphic.

    Returns void

onVertexMoveStart

  • onVertexMoveStart(graphic: Graphic, vertexInfo: any): void
  • Fired when the mouse button is pressed down on a vertex (polyline, polygon) or point (multipoint). Applicable only when the EDIT_VERTICES tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    • vertexInfo: any

      An object with properties: isGhost, pointIndex, segmentIndex

    Returns void

onVertexMoveStop

  • onVertexMoveStop(graphic: Graphic, vertexInfo: any, transform: any): void
  • Fired when the mouse button is released from a vertex (polyline, polygon) or point(multipoint). Applicable only when the EDIT_VERTICES tool is active.

    Parameters

    • graphic: Graphic

      The graphic associated with the toolbar.

    • vertexInfo: any

      An object with properties: isGhost, pointIndex, segmentIndex

    • transform: any

      Represents the linear transformation applied to the graphic.

    Returns void

Protected raiseGraphicEditActivated

Protected raiseGraphicEditDeactivated

refresh

  • refresh(): void
  • Refreshes the internal state of the toolbar.

    Returns void

resume

  • resume(): void

setApp

setInputMethod

  • setInputMethod(method: string): void
  • Sets the current input method for this component (for example, mouse or keyboard).

    Parameters

    • method: string

      The input method. See {@link geocortex.essentialsHtmlViewer.mapping.infrastructure.accessibility.InputMethod} for valid values.

    Returns void

setKeyboardActive

  • setKeyboardActive(value: boolean): void

setMap

  • setMap(map: Map): void

setNeedsRefresh

  • setNeedsRefresh(value: boolean): void
  • DEPRECATED: No longer functional

    Parameters

    • value: boolean

    Returns void

suspend

  • suspend(): void

toggleKeyboardMode

  • toggleKeyboardMode(): void