@witchcraft/layout
    Preparing search index...

    Type Alias LayoutEdgesProps

    LayoutEdgesProps: {
        activeFrame?: LayoutFrame;
        draggingEdge?: Edge;
        draggingIntersection?: IntersectionEntry;
        edges: Edge[];
        intersections: IntersectionEntry[];
        win: LayoutWindow;
    } & Partial<LayoutShapeSquareProps>

    Type Declaration

    • OptionalactiveFrame?: LayoutFrame

      The active frame, used to render the active edges. Calculate it from the frames returned by useFrames composable because otherwise it will be the wrong size while dragging.

    • OptionaldraggingEdge?: Edge
    • OptionaldraggingIntersection?: IntersectionEntry
    • edges: Edge[]
    • intersections: IntersectionEntry[]
    • win: LayoutWindow

      The owning window, needed so we can correctly scale coordinates.