docx
    Preparing search index...

    Type Alias ShapeTreeLayout

    Places shapes as a tree, such as an org chart: each connector joins a parent (from) to a child (to), and children are placed side by side below their parent, which is centred over them.

    type ShapeTreeLayout = {
        direction?: ShapeLayoutDirection;
        levelSpacing?: number;
        spacing?: number;
        type: "tree";
    }
    Index

    The way the tree grows from its root. Default is "down"

    levelSpacing?: number

    Space between one level and the next, in pixels. Default is 40

    spacing?: number

    Space between shapes on the same level, in pixels. Default is 20

    type: "tree"