FixedBoundsData

lumin.text. FixedBoundsData

new FixedBoundsData(width, height, wrapopt, clipopt)

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:
Name Type Attributes Default Description
width number
height number
wrap boolean <optional>
true
clip boolean <optional>
false

Members

clip :boolean

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

Type:
  • boolean

height :number

Height of the area in which to render the text.

Type:
  • number

width :number

Width of the area in which to render the text.

Type:
  • number

wrap :boolean

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

Type:
  • boolean

Methods

toString() → {string}

Returns:

a string representation of the data.

Type
string

lumin.text. 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.

Constructor

new FixedBoundsData()

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

Members

clip :boolean

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

Type:
  • boolean

height :number

Height of the area in which to render the text.

Type:
  • number

width :number

Width of the area in which to render the text.

Type:
  • number

wrap :boolean

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

Type:
  • boolean

Methods

toString() → {string}

Returns:

a string representation of the data.

Type
string