@twick/timeline / Exports / ElementDeserializer
Class: ElementDeserializer
Table of contents
Constructors
Methods
- deserializeAudioElement
- deserializeBaseElement
- deserializeCaptionElement
- deserializeCircleElement
- deserializeIconElement
- deserializeImageElement
- deserializeRectElement
- deserializeTextElement
- deserializeVideoElement
- fromJSON
Constructors
constructor
• new ElementDeserializer(): ElementDeserializer
Returns
Methods
deserializeAudioElement
▸ deserializeAudioElement(json): AudioElement
Parameters
| Name | Type |
|---|---|
json | ElementJSON |
Returns
Defined in
packages/timeline/src/core/visitor/element-deserializer.ts:42
deserializeBaseElement
▸ deserializeBaseElement(element, json): void
Parameters
| Name | Type |
|---|---|
element | TrackElement |
json | ElementJSON |
Returns
void
Defined in
packages/timeline/src/core/visitor/element-deserializer.ts:16
deserializeCaptionElement
▸ deserializeCaptionElement(json): CaptionElement
Parameters
| Name | Type |
|---|---|
json | ElementJSON |
Returns
Defined in
packages/timeline/src/core/visitor/element-deserializer.ts:76
deserializeCircleElement
▸ deserializeCircleElement(json): CircleElement
Parameters
| Name | Type |
|---|---|
json | ElementJSON |
Returns
Defined in
packages/timeline/src/core/visitor/element-deserializer.ts:101
deserializeIconElement
▸ deserializeIconElement(json): IconElement
Parameters
| Name | Type |
|---|---|
json | ElementJSON |
Returns
Defined in
packages/timeline/src/core/visitor/element-deserializer.ts:87
deserializeImageElement
▸ deserializeImageElement(json): ImageElement
Parameters
| Name | Type |
|---|---|
json | ElementJSON |
Returns
Defined in
packages/timeline/src/core/visitor/element-deserializer.ts:51
deserializeRectElement
▸ deserializeRectElement(json): RectElement
Parameters
| Name | Type |
|---|---|
json | ElementJSON |
Returns
Defined in
packages/timeline/src/core/visitor/element-deserializer.ts:111
deserializeTextElement
▸ deserializeTextElement(json): TextElement
Parameters
| Name | Type |
|---|---|
json | ElementJSON |
Returns
Defined in
packages/timeline/src/core/visitor/element-deserializer.ts:67
deserializeVideoElement
▸ deserializeVideoElement(json): VideoElement
Parameters
| Name | Type |
|---|---|
json | ElementJSON |
Returns
Defined in
packages/timeline/src/core/visitor/element-deserializer.ts:25
fromJSON
▸ fromJSON(json): null | TrackElement
Parameters
| Name | Type |
|---|---|
json | ElementJSON |
Returns
null | TrackElement
Defined in
packages/timeline/src/core/visitor/element-deserializer.ts:124