Abstract base editor for "composed shapes". These are shapes with nested shapes, such as a shape list , a extruded shape.

All the shapes in the composed shape are moved together.

For the sub-shape Editor.

Since

2022.1

Hierarchy

Constructors

Accessors

  • get delegate(): Editor
  • Returns the delegate, as passed into the constructor.

    Returns Editor

  • get shapeType(): ShapeType
  • Returns the shape type, as passed into the constructor.

    Returns ShapeType

Methods

  • Indicates whether this editor can edit the given context.

    Parameters

    Returns boolean

    true if context.shape matches the shape type defined in the constructor, and the delegate can edit all subshapes.

  • Creates the shape translation handle.

    This is a handle that allows translation (moving) of an entire shape / feature.

    Parameters

    • context: EditContext

      The context to retrieve the shape translate handle for

    Returns null | EditHandle

  • Returns a handle that is used to create the given object.

    Parameters

    Returns null | EditHandle

    an editing handle that is used to initialize the state of the object being created.