Provides context information to handles, such as the feature, its (sub)shape being edited or created.

Since

2022.1

Hierarchy

  • EditContext

Constructors

Accessors

Constructors

Accessors

  • get map(): Map
  • The map on which the feature is being edited or created.

    Returns Map

  • get shape(): Shape
  • The (sub)shape being edited or created.

    This can differ from context.feature.shape, for example when editing the base shape of an extruded shape.

    Typically, you want to use context.shape instead of context.feature.shape. This ensures editors and handles work correctly with subshapes and base shapes.

    Returns Shape