Skip to main content
Version: 4.3

HaloMakeElementParams

Arguments passed to a HaloMakeElement callback: the native ui.Halo.MakeElementContext fields plus the originating event and the React context (model = the haloed source cell, paper, graph).

Extends​

  • HaloHandleEventContext

Properties​

action​

readonly action: string;

Halo action that triggered creation (e.g. 'clone', 'fork').


defaultAction​

readonly defaultAction: string;

The handle's defaultAction, if any.


elementView​

readonly elementView: ElementView;

View of the source element the halo is attached to.


event​

readonly event: Event;

The originating (normalized) pointer event.


graph​

readonly graph: Graph;

The graph the cell belongs to.

model​

readonly model: Cell;

The cell the halo is attached to.

paper​

readonly paper: Paper;

The paper the halo is rendered on.

validation​

readonly validation: boolean;

Whether the drop target passed validation.

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub