Initializes a Transform component.
Object to configure the initialization of the Transform interaction
The geometry API used to retrieve geometry groups if a geometry group key is provided in the options
Adds a feature to be transformed.
The feature to add
Applies a transformation from a grabbed coordinate to a new coordinate (Keyboard / Crosshair). Handles all transformation types internally based on the handle type.
The coordinate where the handle was grabbed
The coordinate to transform to
The type of handle being transformed
Whether the transformation was successfully applied
Initializes transformation state for keyboard-based transformations (Keyboard / Crosshair). Must be called after grabbing a handle and before applying transformations.
The coordinate where the transformation begins
The type of handle being transformed
True if the keyboard transform was successfully initiated, false otherwise (e.g. if no handle at coordinate or transform instance not initialized)
Checks if redo is possible
Checks if undo is possible
Clears the current selection.
Deletes a vertex at the specified coordinate if one exists.
The coordinate to check for a vertex
Whether a vertex was deleted
Gets the features being transformed.
The features collection
Gets the handle type at the given coordinate (Keyboard / Crosshair).
The map coordinate to check
The handle type if a handle exists at the coordinate, otherwise undefined
Gets the currently selected/transforming feature.
The selected feature
Checks if there is a handle at the given coordinate (Keyboard / Crosshair).
The map coordinate to check
True if a handle exists at the coordinate
Checks if a feature is currently being transformed.
The feature to check
True if the feature is being transformed
Checks if any transformation is currently active.
True if transformation is active
Unregisters a delete feature event handler.
The callback to stop being called whenever the event is emitted
Unregisters a selection change event handler.
The callback to stop being called whenever the event is emitted
Unregisters a transform end event handler.
The callback to stop being called whenever the event is emitted
Unregisters a transforming event handler.
The callback to stop being called whenever the event is emitted
Unregisters a transform start event handler.
The callback to stop being called whenever the event is emitted
Registers a delete feature event handler.
The callback to be executed whenever the event is emitted
Registers a selection change event handler.
The callback to be executed whenever the event is emitted
Registers a transform end event handler.
The callback to be executed whenever the event is emitted
Registers a transforming event handler.
The callback to be executed whenever the event is emitted
Registers a transform start event handler.
The callback to be executed whenever the event is emitted
Redo the last action
Optionalcallback: () => voidRemoves a feature from being transformed.
The feature to remove
Restores the original style of any highlighted handle (Keyboard / Crosshair).
Selects a feature for transformation.
The feature to select
If true, clears the previous history stack. Default is true
Sets the features to be transformed.
The features to transform
Displays the text editor for the selected feature
Starts the interaction on the map.
Stops the interaction on the map.
Undo the last action
Optionalcallback: () => void
Class used for transforming features on a map.