@twick/timeline / Exports / ElementRemover
Class: ElementRemover
ElementRemover visitor for removing elements from 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 ElementRemover(track): ElementRemover
Parameters
| Name | Type |
|---|---|
track | Track |
Returns
Defined in
packages/timeline/src/core/visitor/element-remover.ts:21
Properties
trackFriend
• Private trackFriend: TrackFriend
Defined in
packages/timeline/src/core/visitor/element-remover.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-remover.ts:30
visitCaptionElement
▸ visitCaptionElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | CaptionElement |
Returns
boolean
Implementation of
ElementVisitor.visitCaptionElement
Defined in
packages/timeline/src/core/visitor/element-remover.ts:45
visitCircleElement
▸ visitCircleElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | CircleElement |
Returns
boolean
Implementation of
ElementVisitor.visitCircleElement
Defined in
packages/timeline/src/core/visitor/element-remover.ts:55
visitIconElement
▸ visitIconElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | IconElement |
Returns
boolean
Implementation of
ElementVisitor.visitIconElement
Defined in
packages/timeline/src/core/visitor/element-remover.ts:50
visitImageElement
▸ visitImageElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | ImageElement |
Returns
boolean
Implementation of
ElementVisitor.visitImageElement
Defined in
packages/timeline/src/core/visitor/element-remover.ts:35
visitRectElement
▸ visitRectElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | RectElement |
Returns
boolean
Implementation of
ElementVisitor.visitRectElement
Defined in
packages/timeline/src/core/visitor/element-remover.ts:60
visitTextElement
▸ visitTextElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | TextElement |
Returns
boolean
Implementation of
ElementVisitor.visitTextElement
Defined in
packages/timeline/src/core/visitor/element-remover.ts:40
visitVideoElement
▸ visitVideoElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | VideoElement |
Returns
boolean
Implementation of
ElementVisitor.visitVideoElement