IFClite TypeScript API
    Preparing search index...

    Interface DimensionMarkupParams

    interface DimensionMarkupParams {
        a: MarkupPoint2D;
        b: MarkupPoint2D;
        distance: number;
        label: {
            angle: number;
            height: number;
            position: MarkupPoint2D;
            value: string;
        };
        lines: readonly DimensionMarkupSegment[];
        Name?: string;
        offset: number;
        orientation: DimensionMarkupOrientation;
        plane?: string;
        refA?: string;
        refB?: string;
        text?: string;
        ticks: readonly DimensionMarkupSegment[];
    }
    Index

    The measured points, drawing coords (metres).

    distance: number

    The measured value, metres.

    label: { angle: number; height: number; position: MarkupPoint2D; value: string }

    The printed value: centre of the text, baseline angle (radians, drawing space) and text height (metres).

    lines: readonly DimensionMarkupSegment[]

    Drawn lines: the dimension line first, then the extension lines.

    Name?: string
    offset: number

    Signed distance from the measured points to the dimension line, metres.

    plane?: string

    The drawing cut the dimension belongs to, in the caller's own encoding.

    refA?: string

    The elements the measured points were snapped to, in the caller's own encoding.

    refB?: string
    text?: string

    Text override; <> stands for the measured value.

    ticks: readonly DimensionMarkupSegment[]

    Drawn ticks, one per end of the dimension line.