Interface TerraDrawSketchFinishEventExperimental

A finished terra-draw sketch as applied (or not) to the workflow model.

interface TerraDrawSketchFinishEvent {
    action: string;
    applied: boolean;
    featureId: TerraDrawSketchFeatureId;
    geometry: null | Record<string, unknown>;
    mode: string;
    tool?: EditSketchTool;
}

Properties

action: string

The terra-draw finishing action ("draw", "dragFeature", ...).

applied: boolean

Whether the model accepted the geometry (mapped + supported tool).

geometry: null | Record<string, unknown>

Geometry handed to the model (after transformGeometry).

mode: string

The terra-draw mode that produced the feature.

The sketch tool the finished mode mapped to, when one exists.