Optional
properties: SketchViewModelPropertiesReadonly
activeWhen creating new graphics (for example after create() has been called), this property reflects the drawing mode being used.
Readonly
activeWhen creating new graphics (for example after create() has been called), this property reflects the create tool being used.
Readonly
activeThe tooltip currently being displayed for the activeTool.
Readonly
createThe graphic that is being created.
Defines the default behavior once the create operation is completed.
Default create options set for the SketchViewModel.
Default update options set for the SketchViewModel.
The GraphicsLayer associated with the SketchViewModel.
Readonly
stateThe sketch view model's state.
Readonly
updateAn array of graphics that are being updated by the SketchViewModel.
Indicates if a graphic can be selected to be updated.
The view in which geometries will be sketched by the user.
The SimpleFillSymbol displayed when actively creating a new polygon
graphic using the polygon
tool.
Options to configure the sketch labels shown next to each segment of the geometry being created or updated.
A SimpleMarkerSymbol, PointSymbol3D, TextSymbol, CIMSymbol, or WebStyleSymbol used for representing the point geometry that is being drawn.
A SimpleFillSymbol, PolygonSymbol3D, or CIMSymbol used for representing the polygon geometry that is being drawn.
A SimpleLineSymbol, LineSymbol3D, or CIMSymbol used for representing the polyline geometry that is being drawn.
The SnappingOptions for sketching.
Options to configure the tooltip shown next to the cursor when creating or updating graphics.
Options to configure how values are displayed and input when creating or updating graphics.
Protected
_Protected
_Optional
groupKey: Exclude<T, IHandle>Indicates if it is possible to perform a redo() action in the current update session.
Indicates if it is possible to perform an undo() action in the current update session.
Create a graphic with the geometry specified in the tool
parameter.
Name of the create tool. Specifies the geometry for the graphic to be created.
Optional
createOptions: SketchViewModelCreateCreateOptionsOptions for the graphic to be created.
Deletes the selected graphics used in the update workflow.
Duplicates current graphics used in the update workflow and automatically adds them to the associated layer.
Emits an event on the instance.
The name of the event.
Optional
event: anyThe event payload.
Indicates whether there is an event listener on the instance that matches the provided event name.
The name of the event.
Protected
notifyAllows creation of a graphic similar to create with the difference that the geometry can be provided directly for the graphic being created.
Geometry to place when creating the graphic. Currently only mesh geometry is supported.
Incrementally redo actions recorded in the stack.
Incrementally undo actions recorded in the stack.
Initializes an update operation for the specified graphic(s) and fires update event.
A graphic or an array of graphics to be updated. Only graphics added to SketchViewModel's layer property can be updated.
Optional
updateOptions: SketchViewModelUpdateUpdateOptionsUpdate options for the graphics to be updated.
Optional
sync: boolean
Extended sketch view model for measure.