Types
import type { State, SketchCreateEventState, SketchUpdateEventState, Layout, ToolbarKind } from "@arcgis/core/widgets/Sketch/types.js";

Type definitions

State

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"disabled" | "ready" | "active"

SketchCreateEventState

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"start" | "active" | "complete" | "cancel"

SketchUpdateEventState

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"start" | "active" | "complete"

Layout

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"vertical" | "horizontal"

ToolbarKind

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"docked" | "floating"

SketchTool

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

SelectionTool

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"lasso-selection" | "rectangle-selection" | "custom-selection"

SketchPointSymbol

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

SketchPolylineSymbol

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

SketchPolygonSymbol

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

UndoEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

graphics

Property
Type
Graphic[]
Since
ArcGIS Maps SDK for JavaScript 5.0

An array of graphics that are being updated or created.

tool

Property
Type
CreateTool | UpdateTool
Since
ArcGIS Maps SDK for JavaScript 5.0

Name of the create or update tool that is active.

type

Property
Type
"undo"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of the event.

RedoEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

graphics

Property
Type
Graphic[]
Since
ArcGIS Maps SDK for JavaScript 5.0

An array of graphics that are being updated or created.

tool

Property
Type
CreateTool | UpdateTool
Since
ArcGIS Maps SDK for JavaScript 5.0

Name of the create or update tool that is active.

type

Property
Type
"redo"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of the event.

CreationMode

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Type
"single" | "continuous" | "update"

CreateOptions

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Options used by the create workflow.

defaultZ

Property
Type
number | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The default z-value of the newly created geometry. Ignored when hasZ is false or the layer's elevation mode is set to absolute-height.

graphicSymbol

Property
Type
SymbolUnion | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The symbol the newly created graphic should use instead of the default symbol for the specified tool.

hasZ

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Controls whether the created geometry has z-values or not.

mode

Property
Type
DrawingMode | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Specifies how the graphic can be created. The create mode applies only when creating polygon, polyline, rectangle and circle geometries.

ValueDescription
hybridVertices are added while the pointer is clicked or dragged. Applies to polygon and polyline.
freehandVertices are added while the pointer is dragged. Applies to polygon, polyline rectangle and circle. Default for rectangle and circle.
clickVertices are added when the pointer is clicked. Applies to polygon, polyline rectangle and circle. Default for polygon and polyline.

preserveAspectRatio

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Controls whether or not the width and height of the drawn geometry are kept equal. Applies to rectangle and circle.

CreateTool

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Create operation DrawAction tool

Type
"point" | "multipoint" | "polyline" | "polygon" | "circle" | "rectangle" | "mesh" | "freehandPolyline" | "freehandPolygon" | "text"

CreateToolEventInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

This information is returned as toolEventInfo parameter for the Sketch.@create event when the graphic is being created. It returns VertexAddEventInfo when the user clicks the view or CursorUpdateEventInfo or when the user moves the cursor.

CreateEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

graphic

Property
Type
Graphic | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The graphic that is being created.

state

Property
Type
SketchCreateEventState
Since
ArcGIS Maps SDK for JavaScript 5.0

The current state of the event.

Possible Values

ValueDescription
startState changes to start when the first vertex is created. Not applicable when creating points.
activeState is active while feature is being created. Not applicable when creating points.
completeState changes to complete after the Sketch.complete() method is called, when the user double clicks, presses the Enter key or clicks the first vertex of the polygon while creating a feature. When point is created, the a single sketch-create event is fired with the complete state.
cancelState changes to cancel if the user presses the escape key or the Sketch.create() or Sketch.cancel() methods are called during the create operation and before the state changes to complete.

tool

Property
Type
CreateTool
Since
ArcGIS Maps SDK for JavaScript 5.0

Name of the create tool.

toolEventInfo

Property
Type
CreateToolEventInfo | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Returns additional information associated with the create operation such as where the user is clicking the view or where the user is moving the cursor to. Value of this parameter changes to null when the create event's state changes to complete or cancel.

type

Property
Type
"create"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of the event.

MoveOptions

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

multipleSelectionEnabled

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates whether more than one selection can be made at once. This applies to the shift+click interaction with the transform tool.

Default value
true

ReshapeOptions

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

edgeOperation

Property
Type
"none" | "offset" | "split" | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Sets the reshape operation on the edge. This affects lines and polygons. Fully supported in 3D, partially in 2D.

ValueDescription
noneNo manipulators show up on the edge. (2D and 3D)
splitManipulators show up to split edges by adding a new vertex. (2D and 3D)
offsetManipulators show up to offset the edges. (only 3D)
Default value
"split"

shapeOperation

Property
Type
"none" | "move" | "move-xy" | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Sets the move constraints for the whole shape. Supported in 2D and 3D.

ValueDescription
noneNo move manipulator show up. (2D and 3D)
moveMove manipulator show up to move in xy and in z. (2D and 3D)
move-xyMove manipulator show up to move in xy only. (only 3D)
Default value
"move"

vertexOperation

Property
Type
"move" | "move-xy" | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Sets the move constraints for the vertex. Only supported in 3D.

ValueDescription
moveMove manipulator show up to move in xy and in z.
move-xyMove manipulator show up to move in xy only.
Default value
"move"

enableCreateCurveFromStraightEdge

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates if the user can create a circular arc from an existing straight-line edge by holding Shift while dragging a midpoint handle.

Default value
true

TransformOptions

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

enableRotation

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates if the rotation operation will be enabled when updating graphics. Only applies if tool is transform.

Default value
true

enableScaling

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates if the scale operation will be enabled when updating graphics. Only applies if tool is transform.

Default value
true

preserveAspectRatio

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates if the uniform scale operation will be enabled when updating graphics. enableScaling must be set true when setting this property to true. Only applies if tool is transform and is always true when transforming points that use a 3D object symbol layer.

Default value
false

HighlightOptions

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

enabled

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates if highlighting is enabled for update operations. Only supported in 2D.

Default value
true

name

Property
Type
string | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates the name of the highlight group to use.

Default value
"default"

UpdateOptions

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0
Supertypes
MoveOptions ‚  TransformOptions

tool

Property
Type
UpdateTool | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Name of the update tool. Specifies the update operation for the selected graphics. The provided tool will become the Sketch.activeTool.

Possible Values

ValueDescription
transformThis is the default tool for graphics with a Polygon geometry, Polyline geometry or graphics that use a 3D object symbol layer with a Point geometry. It allows one or multiple graphics to be scaled, rotated and moved by default. Its default behavior can be changed by setting the enableRotation, enableScaling or preserveAspectRatio arguments when calling the update method or setting them on the Sketch.defaultUpdateOptions property when the Sketch widget initializes.
reshapeThis tool allows the entire graphic or individual vertices of the graphic to be moved. Vertices can be added or removed. This tool can only be used with a single graphic that has a Polygon or Polyline geometry.
moveThis is the default tool for graphics with a Point geometry that do not use a 3D object symbol layer. It should be used for specific cases where you just want to move selected polygon and polyline graphics without additional options. Additionally, the move tool does not support toggling to different modes, since the move operation is built into both the transform and reshape tools by default.

toggleToolOnClick

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates if the graphic being updated can be toggled between transform and reshape update options.

Default value
true

reshapeOptions

Property
Type
ReshapeOptions | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Changes the behavior for the reshape tool. Defines the operations for edge and/or the constraints for moving a shape and/or a vertex. Only supported in 3D.

enableZ

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates if z-values can be modified when updating the graphic. When enabled, the height handle manipulator is displayed.

Default value
true

highlightOptions

Property
Type
HighlightOptions | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Options that control when to display or hide highlights for update operations.

UpdateTool

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Update operation component

Type
"move" | "transform" | "reshape"

UpdateToolEventInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

This information is returned as toolEventInfo parameter for the Sketch.@update event when the user is updating graphics.

UpdateEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

graphics

Property
Type
Graphic[]
Since
ArcGIS Maps SDK for JavaScript 5.0

An array of graphics that are being updated.

state

Property
Type
SketchUpdateEventState
Since
ArcGIS Maps SDK for JavaScript 5.0

The state of the event.

Possible Values

ValueDescription
startState changes to start when a graphic is selected to be updated.
activeState is active while graphics are being updated and toolEventInfo parameter is not null.
completeState changes to complete after graphics are updated.

aborted

Property
Type
boolean
Since
ArcGIS Maps SDK for JavaScript 5.0

Indicates if the update operation was aborted. Set to true if the user pressed the escape key, or when the Sketch.update(), Sketch.create() or Sketch.cancel() method is called before the update event's state changes to complete.

tool

Property
Type
UpdateTool
Since
ArcGIS Maps SDK for JavaScript 5.0

Name of the update operation tool.

toolEventInfo

Property
Type
UpdateToolEventInfo | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Update operation tool info. Returns additional information associated with the update operation that is taking place for selected graphics and what stage it is at. Value of this parameter changes to null when the update event's state changes to complete.

type

Property
Type
"update"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of the event.

MoveEventInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

This information is returned as toolEventInfo parameter for the Sketch.@update event while the user is moving the graphics. It returns additional information associated with the move operation and what stage it is at.

dx

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Number of pixels moved on the x-axis from the last known position.

dy

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Number of pixels moved on the y-axis from the last known position.

mover

Property
Type
Graphic | null | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

The instance of the graphic that is being moved.

type

Property
Type
"move-start" | "move" | "move-stop"
Since
ArcGIS Maps SDK for JavaScript 5.0

Returns information indicating the stage of the move operation.

Possible Values

ValueDescription
move-startThe type changes to move-start at the start of move operation.
moveThe type changes to move while graphics are being moved.
move-stopThe type changes to move-stop once graphics are moved.
Example
// listen to update event
sketch.on("update", function(event){
// check if the graphics are done being moved, printout dx, dy parameters to the console.
const eventInfo = event.toolEventInfo;
if (eventInfo && eventInfo.type.includes("move")){
console.log(eventInfo.type, eventInfo.dx, eventInfo.dy);
}
});

ReshapeEventInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

This information is returned as toolEventInfo parameter for the Sketch.@update event while the user is reshaping the graphics. It returns additional information associated with the reshape operation and what stage it is at.

type

Property
Type
"reshape-start" | "reshape" | "reshape-stop"
Since
ArcGIS Maps SDK for JavaScript 5.0

Returns information indicating the stage of the reshape operation.

Possible Values

ValueDescription
reshape-startThe type changes to reshape-start at the start of reshape operation.
reshapeThe type changes to reshape while graphics are being reshaped.
reshape-stopThe type changes to reshape-stop once graphics are reshaped.
Example
// listen to update event
sketch.on("update", function(event){
// check if the graphics are done being reshaped, printout updated graphic's geometry and reshape stage.
const eventInfo = event.toolEventInfo;
if (eventInfo && eventInfo.type.includes("reshape")) {
console.log(eventInfo.type, event.graphics[0].geometry);
}
});

RotateEventInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

This information is returned as toolEventInfo parameter for the Sketch.@update event while the user is rotating the graphics. It returns additional information associated with the rotate operation and what stage it is at.

angle

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

Angle of rotation in degrees.

type

Property
Type
"rotate-start" | "rotate" | "rotate-stop"
Since
ArcGIS Maps SDK for JavaScript 5.0

Returns information indicating the stage of the rotate operation.

Possible Values

ValueDescription
rotate-startThe type changes to rotate-start at the start of rotate operation.
rotateThe type changes to rotate while graphics are being rotated.
rotate-stopThe type changes to rotate-stop once graphics are rotated.
Example
// listen to update event
sketch.on("update", function(event){
if (event.tool === "transform") {
if (event.toolEventInfo) {
const info = event.toolEventInfo,
type = info.type;
// rotate events only
if (type.includes("rotate")) {
// check if the rotation angle exceeded 45
if (info.angle > 45) {
// complete the graphic update operation
sketch.complete();
}
}
}
}
});

ScaleEventInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

This information is returned as toolEventInfo parameter for the Sketch.@update event while the user is scaling or resizing the graphics. It returns additional information associated with the scale operation and what stage it is at.

type

Property
Type
"scale-start" | "scale" | "scale-stop"
Since
ArcGIS Maps SDK for JavaScript 5.0

Returns information indicating the stage of the scale operation.

Possible Values

ValueDescription
scale-startThe type changes to scale-start at the start of scale or resize operation.
scaleThe type changes to scale while graphics are being scaled or resized.
scale-stopThe type changes to scale-stop once graphics are scaled or resized.

xScale

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The x scale factor used to enlarge or shrink the geometry.

yScale

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The y scale factor used to enlarge or shrink the geometry.

VertexInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

coordinates

Property
Type
number[]
Since
ArcGIS Maps SDK for JavaScript 5.0

An array of x,y coordinates representing the vertices added/removed.

componentIndex

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The ring/path index of the added/removed vertex.

vertexIndex

Property
Type
number
Since
ArcGIS Maps SDK for JavaScript 5.0

The index of the vertex position.

VertexAddEventInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

This information is returned as toolEventInfo parameter for the Sketch.@create or Sketch.@update event when the user adds vertices to the graphic being created or updated.

added

Property
Type
number[] | number[][]
Since
ArcGIS Maps SDK for JavaScript 5.0

An array of x,y coordinates representing the vertices added.

vertices

Property
Type
VertexInfo[]
Since
ArcGIS Maps SDK for JavaScript 5.0

Contains the details of the added vertices to track changes in topology of the geometry.

type

Property
Type
"vertex-add"
Since
ArcGIS Maps SDK for JavaScript 5.0
Example
// listen to create event
sketch.on("create", function(event){
// check if vertices are being added to the graphic that is being updated.
if (event.toolEventInfo && event.toolEventInfo.type === "vertex-add"){
const addedPoint = event.toolEventInfo.added[0].geometry;
console.log(event.toolEventInfo.type, addedPoint.x, addedPoint.y);
}
});

VertexRemoveEventInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

This information is returned as toolEventInfo parameter for the Sketch.@update event when the user is removing vertices from the graphic.

removed

Property
Type
number[] | number[][]
Since
ArcGIS Maps SDK for JavaScript 5.0

An array of x,y coordinates representing the vertices removed.

vertices

Property
Type
VertexInfo[]
Since
ArcGIS Maps SDK for JavaScript 5.0

Contains the details of the removed vertices to track changes in topology of the geometry.

type

Property
Type
"vertex-remove"
Since
ArcGIS Maps SDK for JavaScript 5.0
Example
// listen to update event
sketch.on("update", function(event){
// check if vertices are being added to the graphic that is being updated.
const eventInfo = event.toolEventInfo;
if (eventInfo && eventInfo.type === "vertex-remove"){
const removedPoint = eventInfo.removed[0].geometry;
console.log(eventInfo.type, removedPoint.x,removedPoint.y);
}
});

CursorUpdateEventInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

This information is returned as toolEventInfo parameter for the Sketch.@create event when the user moves the cursor on the view while the graphic is being created.

coordinates

Property
Type
number[]
Since
ArcGIS Maps SDK for JavaScript 5.0

An array of numbers representing the coordinates of the cursor location.

type

Property
Type
"cursor-update"
Since
ArcGIS Maps SDK for JavaScript 5.0
Example
// listen to create event
sketch.on("create", function(event){
// respond to create event while the cursor is being moved on the view.
const eventInfo = event.toolEventInfo;
if (eventInfo && eventInfo.type === "cursor-update"){
console.log(eventInfo.type, eventInfo.coordinates[0], eventInfo.coordinates[1]);
}
});

SelectionChangeEventInfo

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

This information is returned as toolEventInfo parameter for the Sketch.@update event while the user is selecting or deselecting graphics using Shift+Left-click.

added

Property
Type
Graphic[]
Since
ArcGIS Maps SDK for JavaScript 5.0

An array of graphics representing the latest graphic selected.

removed

Property
Type
Graphic[]
Since
ArcGIS Maps SDK for JavaScript 5.0

An array of graphics representing the latest graphic deselected.

type

Property
Type
"selection-change"
Since
ArcGIS Maps SDK for JavaScript 5.0
Example
// listen to update event
sketch.on("update", function(event) {
const eventInfo = event.toolEventInfo;
// check if a graphic is being selected or deselected.
if (eventInfo && eventInfo.type === "selection-change") {
if(eventInfo.added.length > 0) {
// graphic is being added to the currently selected graphics.
console.log("geometry type added: ", eventInfo.added[0].geometry.type);
} else {
// graphic is being removed from the currently selected graphics.
console.log("geometry type removed: ", eventInfo.removed[0].geometry.type);
}
}
});

DeleteEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Detailed information returned within the delete event.

graphics

Property
Type
Graphic[]
Since
ArcGIS Maps SDK for JavaScript 5.0

An array of deleted graphics.

tool

Property
Type
UpdateTool
Since
ArcGIS Maps SDK for JavaScript 5.0

Name of the tool that was active when graphics are deleted.

type

Property
Type
"delete"
Since
ArcGIS Maps SDK for JavaScript 5.0

The type of the event.

DuplicateEvent

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.1

Detailed information returned within the duplicate event.

graphics

Property
Type
Graphic[]

An array of duplicated graphics.

type

Property
Type
"duplicate"

The type of the event.

CustomToolOptions

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

public

icon

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The string value indicating the Calcite icon displayed for the custom tool.

label

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The text displayed in the tooltip for the custom tool.

toolKey

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

The unique identifier string for this custom tool. Value must not overlap with sketch create tool names.

toolName

Property
Type
CreateTool
Since
ArcGIS Maps SDK for JavaScript 5.0

The specific sketch create tool to use for the custom tool.

createOptions

Property
Type
CreateOptions | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Specific options for the create tool being used by the custom tool.

ActionProperties

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

id

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

Unique ID for the action.

text

Property
Type
string
Since
ArcGIS Maps SDK for JavaScript 5.0

Text label for the action.

icon

Property
Type
Icon["icon"]
Since
ArcGIS Maps SDK for JavaScript 5.0

Calcite icon string to set for the action.

See also

disabled

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Determines whether the action is enabled or not.

onclick

Property
Type
() => void | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Optional callback called when the user clicks on the action.

active

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Controls if the action is rendered with an "active" appearance.

flipRTL

Property
Type
boolean | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Controls if the icon should be flipped when the view is in RTL mode.

afterCreate

Property
Type
(el: HTMLElement) => void | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Optional callback called with the HTML element for the action after it is first rendered.

afterRemoved

Property
Type
(el: HTMLElement) => void | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Optional callback called with the HTML element for the calcite-action after it is removed.

afterUpdate

Property
Type
(el: HTMLElement) => void | undefined
Since
ArcGIS Maps SDK for JavaScript 5.0

Optional callback called with the HTML element for the calcite-action after it is re-rendered with changes.

CustomActionProperties

Type definition
Since
ArcGIS Maps SDK for JavaScript 5.0

Defines the configuration for creating custom actions in Sketch.

Supertypes
ActionProperties

position

Property
Type
"before-selection-set" | "after-selection-set" | "selection-toolbar" | "settings-before" | "settings-after"
Since
ArcGIS Maps SDK for JavaScript 5.0

Controls the placement of the custom action in Sketch.