Optionalproperties: SketchViewModelPropertiesReadonlyactiveWhen creating new graphics (for example after create() has been called), this property reflects the drawing mode being used.
ReadonlyactiveWhen creating new graphics (for example after create() has been called), this property reflects the create tool being used.
ReadonlyactiveThe tooltip currently being displayed for the activeTool.
ReadonlycreateThe 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 or MapNotesLayer associated with the SketchViewModel.
ReadonlystateThe sketch view model's state.
ReadonlyupdateAn 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.
A TextSymbol used when creating features with the 'text' tool.
A TextSymbol used when creating features with the 'text' tool.
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_Convenience method for adding a graphic to the appropriate Sketch layer.
Convenience method for adding multiple graphics to the appropriate Sketch layer.
OptionalgroupKey: 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.
OptionalcreateOptions: 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.
Optionalevent: anyThe event payload.
Indicates whether there is an event listener on the instance that matches the provided event name.
The name of the event.
Convenience method for determining if a Graphic belongs to a current Sketch layer or sublayer.
ProtectednotifyAllows 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.
Convenience method for removing multiple graphics from the appropriate Sketch layer.
Convenience method for removing a graphic from the appropriate Sketch layer.
Convenience method for removing multiple graphics from the appropriate Sketch layer.
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.
OptionalupdateOptions: SketchViewModelUpdateUpdateOptionsUpdate options for the graphics to be updated.
Optionalsync: boolean
Extended sketch view model for measure.