ducjs - v4.4.2
    Preparing search index...

    Type Alias DucTextElement

    DucTextElement: _DucElementBase & DucTextStyle & {
        autoResize: boolean;
        containerId: DucGenericElement["id"] | null;
        originalText: string;
        text: string;
        type: "text";
    }

    Type Declaration

    • autoResize: boolean

      Text sizing behavior:

      • true: Width adjusts to fit text content (single line or natural wrapping)
      • false: Text wraps to fit within the element's fixed width
      true
      
    • containerId: DucGenericElement["id"] | null

      The ID of an element that this text is contained within (e.g., for labels on shapes)

    • originalText: string

      A non-rendered, original version of the text, e.g., before finishing writing the text

    • text: string

      The display text, which can contain zero or more placeholders in the format {{tag}}. Each tag corresponds to an object in the dynamic array. Example: "Part: {{PN}} on Layer: {{LAYER}}"

    • type: "text"