Skip to main content
Version: 4.3

ValidateEmbeddingParams

Context handed to a ValidateEmbedding callback while an element is dragged over a candidate parent. Use it to compare the dragged child against the parent it would drop into.

Properties​

child​

readonly child: object;

The element being dragged (the would-be child).

id​

readonly id: ID;

model​

readonly model: Element;

graph​

readonly graph: Graph;

The graph the elements belong to.


paper​

readonly paper: Paper;

The paper the elements live on.


parent​

readonly parent: object;

The element it would be embedded into (the would-be parent).

id​

readonly id: ID;

model​

readonly model: Element;

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub