pivotick - v2.0.1
    Preparing search index...

    Interface NodeCreateContext

    interface NodeCreateContext {
        origin: NodeCreateOrigin;
        position: { x: number; y: number };
        promptData: (options: NodePromptDataOptions) => Promise<NodeData | null>;
    }
    Index

    Properties

    Which affordance initiated the create.

    position: { x: number; y: number }

    Graph-space position the node will be placed at (correct under any zoom/pan).

    promptData: (options: NodePromptDataOptions) => Promise<NodeData | null>

    Prompt the user for the new node's data payload via a modal — a declarative form (PromptDataOptions.fields) or custom HTML (render + getValues). Resolves to the collected object, or null if the user cancelled. Feed it straight into the decision — e.g. return { accept: true, data: values }.