Skip to main content
Version: 4.3

HaloMakeElement

type HaloMakeElement = (params) => dia.Element | Partial<ElementRecord>;

Creates the element produced by a clone / fork handle. Return either a JointJS model instance or a React ElementRecord (the latter is converted to an ElementModel). ui.Halo positions the new element itself.

Parameters

ParameterType
paramsHaloMakeElementParams

Returns

dia.Element | Partial<ElementRecord>

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub