weasel API - v0.8.0
    Preparing search index...

    Interface CreateTextLayerOpts<T>

    Options for createTextLayer.

    interface CreateTextLayerOpts<T> {
        clipToBounds?: boolean;
        getPose: (node: T) => TextPose;
        getTexts: () => readonly T[];
        id?: string;
        isHidden?: (node: T) => boolean;
        label?: string;
    }

    Type Parameters

    • T
    Index

    Properties

    clipToBounds?: boolean

    When true, each text command is wrapped in a clipped group so any overflow beyond the pose's (width × height) is hidden. Default false (legacy: text can spill outside the declared bounds). Opt-in so existing consumers who rely on overflow keep working.

    getPose: (node: T) => TextPose
    getTexts: () => readonly T[]
    id?: string
    isHidden?: (node: T) => boolean

    Optional per-node hide hook (e.g., suppress while editing).

    label?: string