Composition
此内容尚不支持你的语言。
Defined in: packages/sdk/src/composition.ts:162
Product-level authoring API. It keeps Composition/Layer/Clip ergonomics while producing the same portable, validator-backed Project document as ProjectBuilder.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Composition(
options):Composition
Defined in: packages/sdk/src/composition.ts:165
Parameters
Section titled “Parameters”options
Section titled “options”CreateProjectOptions = {}
Returns
Section titled “Returns”Composition
Accessors
Section titled “Accessors”projectId
Section titled “projectId”Get Signature
Section titled “Get Signature”get projectId():
string
Defined in: packages/sdk/src/composition.ts:169
Returns
Section titled “Returns”string
sequenceId
Section titled “sequenceId”Get Signature
Section titled “Get Signature”get sequenceId():
string
Defined in: packages/sdk/src/composition.ts:173
Returns
Section titled “Returns”string
Methods
Section titled “Methods”advanced()
Section titled “advanced()”advanced():
ProjectBuilder
Defined in: packages/sdk/src/composition.ts:217
Escape hatch for advanced, schema-level operations without changing document semantics.
Returns
Section titled “Returns”asset()
Section titled “asset()”asset(
options):this
Defined in: packages/sdk/src/composition.ts:177
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”this
build()
Section titled “build()”build():
Readonly<AelionProject>
Defined in: packages/sdk/src/composition.ts:212
Returns
Section titled “Returns”Readonly<AelionProject>
layer()
Section titled “layer()”layer(
kind,options):Layer
Defined in: packages/sdk/src/composition.ts:182
Parameters
Section titled “Parameters”"audio" | "visual" | "caption"
options
Section titled “options”LayerOptions = {}
Returns
Section titled “Returns”material()
Section titled “material()”material(
options):Material
Defined in: packages/sdk/src/composition.ts:186
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”transition()
Section titled “transition()”transition(
from,to,material,options):string
Defined in: packages/sdk/src/composition.ts:190
Parameters
Section titled “Parameters”material
Section titled “material”options
Section titled “options”Returns
Section titled “Returns”string