Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Class FixedBoundsData

Data to set up fixed bounds, which is a rectangular area for typesetting and rendering the text of this node.

Note the node position is controlled with the local transform. For English, the node position is the upper-left corner of the rendered region, whose shape can be controlled with this data; see functions getFixedBounds and setFixedBounds.

Hierarchy

  • FixedBoundsData

Index

Constructors

Properties

Methods

Constructors

constructor

  • Note clip = true has no effect; clipping partially visible glyphs to the edges of the area is not yet implemented. At present, only glyphs fully enclosed by the area will be drawn.

    Parameters

    • width: number
    • height: number
    • Optional wrap: boolean
    • Optional clip: boolean

    Returns FixedBoundsData

  • Leaves all values uninitialized, same as a C-style struct.

    Returns FixedBoundsData

Properties

clip

clip: boolean

Not yet implemented; right now, partial glyphs will not display at all.

height

height: number

Height of the area in which to render the text.

width

width: number

Width of the area in which to render the text.

wrap

wrap: boolean

Control whether text wraps at the edge; single-line only if false.

Methods

toString

  • toString(): string

Generated using TypeDoc