@twick/timeline / Exports / ElementUpdater
Class: ElementUpdater
ElementUpdater visitor for updating elements in tracks Uses the visitor pattern to handle different element types Implements the Friend Class Pattern for explicit access control
Implements
ElementVisitor<boolean>
Table of contents
Constructors
Properties
Methods
- visitAudioElement
- visitCaptionElement
- visitCircleElement
- visitIconElement
- visitImageElement
- visitRectElement
- visitTextElement
- visitVideoElement
Constructors
constructor
• new ElementUpdater(track): ElementUpdater
Parameters
| Name | Type |
|---|---|
track | Track |
Returns
Defined in
packages/timeline/src/core/visitor/element-updater.ts:21
Properties
trackFriend
• Private trackFriend: TrackFriend
Defined in
packages/timeline/src/core/visitor/element-updater.ts:19
Methods
visitAudioElement
▸ visitAudioElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | AudioElement |
Returns
boolean
Implementation of
ElementVisitor.visitAudioElement
Defined in
packages/timeline/src/core/visitor/element-updater.ts:29
visitCaptionElement
▸ visitCaptionElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | CaptionElement |
Returns
boolean
Implementation of
ElementVisitor.visitCaptionElement
Defined in
packages/timeline/src/core/visitor/element-updater.ts:41
visitCircleElement
▸ visitCircleElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | CircleElement |
Returns
boolean
Implementation of
ElementVisitor.visitCircleElement
Defined in
packages/timeline/src/core/visitor/element-updater.ts:49
visitIconElement
▸ visitIconElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | IconElement |
Returns
boolean
Implementation of
ElementVisitor.visitIconElement
Defined in
packages/timeline/src/core/visitor/element-updater.ts:45
visitImageElement
▸ visitImageElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | ImageElement |
Returns
boolean
Implementation of
ElementVisitor.visitImageElement
Defined in
packages/timeline/src/core/visitor/element-updater.ts:33
visitRectElement
▸ visitRectElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | RectElement |
Returns
boolean
Implementation of
ElementVisitor.visitRectElement
Defined in
packages/timeline/src/core/visitor/element-updater.ts:53
visitTextElement
▸ visitTextElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | TextElement |
Returns
boolean
Implementation of
ElementVisitor.visitTextElement
Defined in
packages/timeline/src/core/visitor/element-updater.ts:37
visitVideoElement
▸ visitVideoElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | VideoElement |
Returns
boolean
Implementation of
ElementVisitor.visitVideoElement