Skip to content

pixi-hm05 (player) / pixi-hm05 / TextObject

Class: TextObject ​

A live text of a published animation (TextItem). text reads / sets the characters (setting it drops rich runs: the whole text takes the base font); def is the full definition — assign a changed copy to restyle. Once a script set either, the timeline no longer overwrites it.

Extends ​

  • Container

Constructors ​

Constructor ​

ts
new TextObject(def): TextObject;

Parameters ​

ParameterType
defAnimText

Returns ​

TextObject

Overrides ​

Container.constructor

Properties ​

PropertyTypeDefault valueDescription
scriptedbooleanfalsea script changed it: frames showing another definition leave it be

Accessors ​

def ​

Get Signature ​

ts
get def(): AnimText;
Returns ​

AnimText

Set Signature ​

ts
set def(def): void;
Parameters ​
ParameterType
defAnimText
Returns ​

void


text ​

Get Signature ​

ts
get text(): string;
Returns ​

string

Set Signature ​

ts
set text(value): void;
Parameters ​
ParameterType
valuestring
Returns ​

void

Methods ​

animate() ​

ts
animate(specs, frame): void;

TEXT ANIMATION (gap plan #8, AnimLayer.tx): the layer's presets at frame (the layer's symbol frame). While one still has something to do the text is drawn a glyph at a time (AnimatedText), over whatever characters it holds now — script-set ones too; otherwise whole.

Parameters ​

ParameterType
specsreadonly TextAnimSpec[] | null
framenumber

Returns ​

void


releaseProps() ​

ts
releaseProps(...props): void;

hands properties a script set back to the timeline (none = all)

Parameters ​

ParameterType
...propsScriptProp[]

Returns ​

void


showDef() ​

ts
showDef(def): void;

the timeline's definition for this frame (ignored once scripted)

Parameters ​

ParameterType
defAnimText

Returns ​

void

HereSplash — 2D animation for the web