ef-canvas

Adds a selection and hover overlay to a composition's DOM subtree, with click-to-select, drag-to-move, and corner-resize.

Adds a selection and hover overlay to a composition's DOM subtree, with click-to-select, drag-to-move, and corner-resize.

Attributes

AttributeReact propTypeDefaultDescription
readonlyreadonlybooleanfalseDisables selection/drag/resize/rotate interaction; overlays remain visible but non-interactive.
targettargetstring""ID of the target element this component controls or reads from.

Slots

SlotDescription
(default)Composition elements registered with the canvas for selection, drag, and resize actions.

Events

EventDetailDescription
canvas-transform{ elementId: string }Fires when a drag, resize, or rotate gesture on a selection box ends.