interface DwgTextBase {
    endPoint: DwgPoint2D;
    extrusionDirection: DwgPoint3D;
    generationFlag: DwgTextGenerationFlag;
    halign: DwgTextHorizontalAlign;
    obliqueAngle: number;
    rotation: number;
    startPoint: DwgPoint2D;
    styleName: string;
    text: string;
    textHeight: number;
    thickness: number;
    valign: DwgTextVerticalAlign;
    xScale: number;
}

Hierarchy (View Summary)

Properties

endPoint: DwgPoint2D

Second alignment point (in OCS) (optional) This value is meaningful only if the justification is anything other than baseline/left

extrusionDirection: DwgPoint3D

Extrusion direction (optional; default = 0, 0, 1)

generationFlag: DwgTextGenerationFlag

Text generation flags (optional, default = 0):

  • 2: Text is backward (mirrored in X)
  • 4: Text is upside down (mirrored in Y)

Horizontal text justification type (optional, default = 0) integer codes (not bit-coded):

  • 0: Left
  • 1: Center
  • 2: Right
  • 3: Aligned (if vertical alignment = 0)
  • 4: Middle (if vertical alignment = 0)
  • 5: Fit (if vertical alignment = 0)
obliqueAngle: number

Oblique angle (optional; default = 0)

rotation: number

Text rotation (optional; default = 0)

startPoint: DwgPoint2D

First alignment point (in OCS)

styleName: string

Text style name (optional, default = STANDARD)

text: string

Text value

textHeight: number

Text height

thickness: number

Thickness (optional; default = 0)

Vertical text justification type (optional, default = 0): integer codes (not bit-coded):

  • 0: Baseline
  • 1: Bottom
  • 2: Middle
  • 3: Top
xScale: number

Relative X scale factor—width (optional; default = 1) This value is also adjusted when fit-type text is used