LogoPixi’VN
pixi-jsInterfaces

Interface: SplitOptions

Defined in: node_modules/pixi.js/lib/scene/text-split/SplitText.d.ts:11

Configuration options for Text splitting.

Standard

Extends

Extended by

Properties

autoSplit?

> optional autoSplit?: boolean

Defined in: node_modules/pixi.js/lib/scene/text-split/AbstractSplitText.d.ts:20

Enables automatic splitting on text/style changes

Default

true

Inherited from

AbstractSplitOptions.autoSplit


charAnchor?

> optional charAnchor?: number | PointData

Defined in: node_modules/pixi.js/lib/scene/text-split/AbstractSplitText.d.ts:51

Transform origin for character segments. Range: [0-1]

Example

charAnchor: { x: 0.5, y: 1 }  // Bottom-center alignment
charAnchor: 0.5  // Center alignment

Default

0

Inherited from

AbstractSplitOptions.charAnchor


lineAnchor?

> optional lineAnchor?: number | PointData

Defined in: node_modules/pixi.js/lib/scene/text-split/AbstractSplitText.d.ts:31

Transform origin for line segments. Range: [0-1]

Example

lineAnchor: 0.5        // Center horizontally and vertically
lineAnchor: { x: 0, y: 0.5 }  // Left-center alignment

Default

0

Inherited from

AbstractSplitOptions.lineAnchor


style

> style: TextStyle | Partial<TextStyleOptions>

Defined in: node_modules/pixi.js/lib/scene/text-split/AbstractSplitText.d.ts:15

Text styling - accepts TextStyle instance or style object

Inherited from

AbstractSplitOptions.style


text

> text: string

Defined in: node_modules/pixi.js/lib/scene/text-split/AbstractSplitText.d.ts:13

Text content to be split

Inherited from

AbstractSplitOptions.text


wordAnchor?

> optional wordAnchor?: number | PointData

Defined in: node_modules/pixi.js/lib/scene/text-split/AbstractSplitText.d.ts:41

Transform origin for word segments. Range: [0-1]

Example

wordAnchor: { x: 1, y: 0 }  // Top-right alignment
wordAnchor: 0.5  // Center alignment

Default

0

Inherited from

AbstractSplitOptions.wordAnchor