@joint/react
    Preparing search index...

    Interface 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.

    interface ValidateEmbeddingParams {
        child: { id: ID; model: Element };
        graph: Graph;
        paper: Paper;
        parent: { id: ID; model: Element };
    }
    Index

    Properties

    Properties

    child: { id: ID; model: Element }

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

    graph: Graph

    The graph the elements belong to.

    paper: Paper

    The paper the elements live on.

    parent: { id: ID; model: Element }

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