Options
All
  • Public
  • Public/Protected
  • All
Menu

Describes the arguments for commands that edit graphics in memory.

Hierarchy

Index

Properties

Optional errorCallback

errorCallback: function

A callback to execute when there is an error editing the graphics.

Type declaration

    • (error: Error): void
    • Parameters

      • error: Error

      Returns void

graphics

graphics: Graphic[]

The graphics to edit.

graphicsLayer

graphicsLayer: GraphicsLayer

The graphics layer to edit the graphics on.

Optional skipUndoManager

skipUndoManager: boolean

A boolean indicating to skip UndoManager.

Optional successCallback

successCallback: function

A callback to execute upon successfully editing the graphics. Can be used to update attributes for edited graphics. The edits will not be added to the undo manager until this callback has been resolved.

Type declaration

    • (addedGraphics: Graphic[], updatedGraphics: Graphic[], deletedGraphics: Graphic[]): Promise<void>
    • Parameters

      • addedGraphics: Graphic[]
      • updatedGraphics: Graphic[]
      • deletedGraphics: Graphic[]

      Returns Promise<void>