Skip to main content

Interface: TextLineOptions

Extends​

Properties​

alpha?​

optional alpha: number

Opacity of the node. 0 is fully transparent, 1 is fully opaque. Default is 1.0. Alpha has multiplicative inheritance. For example, if the node's parent is alpha .5 and this node's is alpha .4, then the node will appear with alpha .2.

Inherited from​

M2NodeOptions.alpha

Defined in​

m2c2kit/packages/core/src/M2NodeOptions.ts:12


anchorPoint?​

optional anchorPoint: Point

Point within the node that determines its position. Default is { x: 0.5, y: 0.5 }, which centers the node on its position

Inherited from​

DrawableOptions.anchorPoint

Defined in​

m2c2kit/packages/core/src/DrawableOptions.ts:5


draggable?​

optional draggable: boolean

Can the node be dragged?

Inherited from​

M2NodeOptions.draggable

Defined in​

m2c2kit/packages/core/src/M2NodeOptions.ts:18


fontColor?​

optional fontColor: RgbaColor

Color of text. Default is Constants.DEFAULT_FONT_COLOR (WebColors.Black)

Inherited from​

TextOptions.fontColor

Defined in​

m2c2kit/packages/core/src/TextOptions.ts:10


fontName?​

optional fontName: string

Name of font to use for text. Must have been previously loaded

Inherited from​

TextOptions.fontName

Defined in​

m2c2kit/packages/core/src/TextOptions.ts:8


fontSize?​

optional fontSize: number

Size of text. Default is Constants.DEFAULT_FONT_SIZE (16)

Inherited from​

TextOptions.fontSize

Defined in​

m2c2kit/packages/core/src/TextOptions.ts:12


hidden?​

optional hidden: boolean

Is the node, and its children, hidden? (not displayed). Default is false

Inherited from​

M2NodeOptions.hidden

Defined in​

m2c2kit/packages/core/src/M2NodeOptions.ts:20


interpolation?​

optional interpolation: StringInterpolationMap

Map of placeholders to values for use in string interpolation during localization.

Inherited from​

TextOptions.interpolation

Defined in​

m2c2kit/packages/core/src/TextOptions.ts:14


isPartOfComposite?​

optional isPartOfComposite: boolean

Is the node part of a composite? Default is false.

Remarks​

This property is for use by authors of Composite nodes. It is not intended for general use.

Inherited from​

M2NodeOptions.isPartOfComposite

Defined in​

m2c2kit/packages/core/src/M2NodeOptions.ts:27


isUserInteractionEnabled?​

optional isUserInteractionEnabled: boolean

Does the node respond to user events, such as taps? Default is false

Inherited from​

M2NodeOptions.isUserInteractionEnabled

Defined in​

m2c2kit/packages/core/src/M2NodeOptions.ts:16


layout?​

optional layout: Layout

FOR INTERNAL USE ONLY

Inherited from​

M2NodeOptions.layout

Defined in​

m2c2kit/packages/core/src/M2NodeOptions.ts:22


localize?​

optional localize: boolean

If true, try to use a localized version of the text. Default is true.

Inherited from​

TextOptions.localize

Defined in​

m2c2kit/packages/core/src/TextOptions.ts:16


name?​

optional name: string

Name of the node. Only needed if the node will be referred to by name in a later function

Inherited from​

M2NodeOptions.name

Defined in​

m2c2kit/packages/core/src/M2NodeOptions.ts:6


position?​

optional position: Point

Position of the node within its parent coordinate system. Default is (0, 0)

Inherited from​

M2NodeOptions.position

Defined in​

m2c2kit/packages/core/src/M2NodeOptions.ts:8


scale?​

optional scale: number

Scale of the node. Default is 1.0

Inherited from​

M2NodeOptions.scale

Defined in​

m2c2kit/packages/core/src/M2NodeOptions.ts:10


text?​

optional text: string

Text to be displayed

Inherited from​

TextOptions.text

Defined in​

m2c2kit/packages/core/src/TextOptions.ts:6


uuid?​

optional uuid: string

Internal

Unique identifier (UUID). Will be generated automatically. For m2c2kit library use only

Inherited from​

M2NodeOptions.uuid

Defined in​

m2c2kit/packages/core/src/M2NodeOptions.ts:24


width?​

optional width: number

Defined in​

m2c2kit/packages/core/src/TextLineOptions.ts:9


zPosition?​

optional zPosition: number

Value along the z-axis to determine drawing and tap order. Larger values are on top.

Inherited from​

DrawableOptions.zPosition

Defined in​

m2c2kit/packages/core/src/DrawableOptions.ts:7


zRotation?​

optional zRotation: number

Rotation of the node around the Z axis. Unit is radians. Default is 0 (no rotation). zRotation has inheritance. In addition to this node's zRotation, all ancestors' zRotations will be applied.

Inherited from​

M2NodeOptions.zRotation

Defined in​

m2c2kit/packages/core/src/M2NodeOptions.ts:14