Skip to content

Latest commit

 

History

History
142 lines (89 loc) · 3.52 KB

core_asset.TextAsset.md

File metadata and controls

142 lines (89 loc) · 3.52 KB

videodb / Exports / core/asset / TextAsset

Class: TextAsset

core/asset.TextAsset

Hierarchy

  • MediaAsset

    TextAsset

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new TextAsset(config?): TextAsset

Parameters

Name Type
config? Partial<TextAssetConfig>

Returns

TextAsset

Overrides

MediaAsset.constructor

Defined in

src/core/asset.ts:159

Properties

assetId

assetId: string

Inherited from

MediaAsset.assetId

Defined in

src/core/asset.ts:31


duration

duration: null | number

Defined in

src/core/asset.ts:156


style

style: Partial<TextStyleProps>

Defined in

src/core/asset.ts:157


text

text: string

Defined in

src/core/asset.ts:155

Methods

toJSON

toJSON(): Object

Returns

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

Defined in

src/core/asset.ts:168