Appearance
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
| Parameter | Type |
|---|---|
def | AnimText |
Returns
TextObject
Overrides
Container.constructor
Properties
| Property | Type | Default value | Description |
|---|---|---|---|
scripted | boolean | false | a script changed it: frames showing another definition leave it be |
Accessors
def
Get Signature
ts
get def(): AnimText;Returns
Set Signature
ts
set def(def): void;Parameters
| Parameter | Type |
|---|---|
def | AnimText |
Returns
void
text
Get Signature
ts
get text(): string;Returns
string
Set Signature
ts
set text(value): void;Parameters
| Parameter | Type |
|---|---|
value | string |
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
| Parameter | Type |
|---|---|
specs | readonly TextAnimSpec[] | null |
frame | number |
Returns
void
releaseProps()
ts
releaseProps(...props): void;hands properties a script set back to the timeline (none = all)
Parameters
| Parameter | Type |
|---|---|
...props | ScriptProp[] |
Returns
void
showDef()
ts
showDef(def): void;the timeline's definition for this frame (ignored once scripted)
Parameters
| Parameter | Type |
|---|---|
def | AnimText |
Returns
void