SCION Workbench Client - v1.0.0-beta.35
    Preparing search index...

    Interface RelativeTo

    Describes how to lay out a part relative to another part.

    interface RelativeTo {
        align: "left" | "right" | "top" | "bottom";
        ratio?: number;
        relativeTo?: string;
    }
    Index

    Properties

    align: "left" | "right" | "top" | "bottom"

    Specifies the side of the reference part where to add the part.

    ratio?: number

    Specifies the proportional size of the part relative to the reference part. The ratio is the closed interval [0,1]. If not set, defaults to 0.5.

    relativeTo?: string

    Specifies the part which to use as the reference part to lay out the part. If not set, the part will be aligned relative to the root of the layout.