Skip to main content

VertexDrawingPluginTypeGenerator

VertexDrawingPluginTypeGenerator = (origin, e) => object

Defines a function used by the vertex drawing plugin to generate an objectType (Group/Node) and type (app-specific) for a vertex that is about to be drawn.

Parameters

origin

PointXY

e

MouseEvent

Returns

object

data?

optional data: ObjectData

objectType

objectType: typeof Node.objectType | typeof Group.objectType

type

type: string