@twick/timeline / Exports / ElementCloner
Class: ElementCloner
Implements
Table of contents
Constructors
Methods
- cloneElementProperties
- visitAudioElement
- visitCaptionElement
- visitCircleElement
- visitIconElement
- visitImageElement
- visitRectElement
- visitTextElement
- visitVideoElement
Constructors
constructor
• new ElementCloner(): ElementCloner
Returns
Methods
cloneElementProperties
▸ cloneElementProperties(srcElement, destElement): TrackElement
Parameters
| Name | Type |
|---|---|
srcElement | TrackElement |
destElement | TrackElement |
Returns
Defined in
packages/timeline/src/core/visitor/element-cloner.ts:13
visitAudioElement
▸ visitAudioElement(element): TrackElement
Parameters
| Name | Type |
|---|---|
element | AudioElement |
Returns
Implementation of
ElementVisitor.visitAudioElement
Defined in
packages/timeline/src/core/visitor/element-cloner.ts:37
visitCaptionElement
▸ visitCaptionElement(element): TrackElement
Parameters
| Name | Type |
|---|---|
element | CaptionElement |
Returns
Implementation of
ElementVisitor.visitCaptionElement
Defined in
packages/timeline/src/core/visitor/element-cloner.ts:67
visitCircleElement
▸ visitCircleElement(element): TrackElement
Parameters
| Name | Type |
|---|---|
element | CircleElement |
Returns
Implementation of
ElementVisitor.visitCircleElement
Defined in
packages/timeline/src/core/visitor/element-cloner.ts:86
visitIconElement
▸ visitIconElement(element): TrackElement
Parameters
| Name | Type |
|---|---|
element | IconElement |
Returns
Implementation of
ElementVisitor.visitIconElement
Defined in
packages/timeline/src/core/visitor/element-cloner.ts:95
visitImageElement
▸ visitImageElement(element): TrackElement
Parameters
| Name | Type |
|---|---|
element | ImageElement |
Returns
Implementation of
ElementVisitor.visitImageElement
Defined in
packages/timeline/src/core/visitor/element-cloner.ts:44
visitRectElement
▸ visitRectElement(element): TrackElement
Parameters
| Name | Type |
|---|---|
element | RectElement |
Returns
Implementation of
ElementVisitor.visitRectElement
Defined in
packages/timeline/src/core/visitor/element-cloner.ts:77
visitTextElement
▸ visitTextElement(element): TrackElement
Parameters
| Name | Type |
|---|---|
element | TextElement |
Returns
Implementation of
ElementVisitor.visitTextElement
Defined in
packages/timeline/src/core/visitor/element-cloner.ts:60
visitVideoElement
▸ visitVideoElement(element): TrackElement
Parameters
| Name | Type |
|---|---|
element | VideoElement |
Returns
Implementation of
ElementVisitor.visitVideoElement