videodb / Exports / core/asset / TextAsset
core/asset.TextAsset
-
MediaAsset
↳
TextAsset
• new TextAsset(config?
): TextAsset
Name | Type |
---|---|
config? |
Partial <TextAssetConfig > |
MediaAsset.constructor
• assetId: string
MediaAsset.assetId
• duration: null
| number
• style: Partial
<TextStyleProps
>
• text: string
▸ toJSON(): Object
Object
Name | Type |
---|---|
assetId |
string |
duration |
null | number |
style |
{ alpha? : number ; basetime? : number ; bordercolor? : string ; borderw? : number ; box? : boolean ; boxborderw? : string ; boxcolor? : string ; boxh? : number ; boxw? : number ; expansion? : string ; fixBounds? : boolean ; font? : string ; fontcolor? : string ; fontcolorExpr? : string ; fontsize? : number ; lineSpacing? : number ; shadowcolor? : string ; shadowx? : number ; shadowy? : number ; tabsize? : number ; textAlign? : string ; textShaping? : boolean ; x? : string | number ; y? : string | number ; yAlign? : string } |
style.alpha? |
number |
style.basetime? |
number |
style.bordercolor? |
string |
style.borderw? |
number |
style.box? |
boolean |
style.boxborderw? |
string |
style.boxcolor? |
string |
style.boxh? |
number |
style.boxw? |
number |
style.expansion? |
string |
style.fixBounds? |
boolean |
style.font? |
string |
style.fontcolor? |
string |
style.fontcolorExpr? |
string |
style.fontsize? |
number |
style.lineSpacing? |
number |
style.shadowcolor? |
string |
style.shadowx? |
number |
style.shadowy? |
number |
style.tabsize? |
number |
style.textAlign? |
string |
style.textShaping? |
boolean |
style.x? |
string | number |
style.y? |
string | number |
style.yAlign? |
string |
text |
string |