@twick/timeline / Exports / ElementValidator
Class: ElementValidator
Implements
ElementVisitor<boolean>
Table of contents
Constructors
Methods
- validateAudioElement
- validateBasicProperties
- validateCaptionElement
- validateCircleElement
- validateIconElement
- validateImageElement
- validateRectElement
- validateTextElement
- validateVideoElement
- visitAudioElement
- visitCaptionElement
- visitCircleElement
- visitIconElement
- visitImageElement
- visitRectElement
- visitTextElement
- visitVideoElement
Constructors
constructor
• new ElementValidator(): ElementValidator
Returns
Methods
validateAudioElement
▸ validateAudioElement(element): Object
Parameters
| Name | Type |
|---|---|
element | AudioElement |
Returns
Object
| Name | Type |
|---|---|
errors | string[] |
warnings | string[] |
Defined in
packages/timeline/src/core/visitor/element-validator.ts:112
validateBasicProperties
▸ validateBasicProperties(element): Object
Parameters
| Name | Type |
|---|---|
element | any |
Returns
Object
| Name | Type |
|---|---|
errors | string[] |
warnings | string[] |
Defined in
packages/timeline/src/core/visitor/element-validator.ts:23
validateCaptionElement
▸ validateCaptionElement(element): Object
Parameters
| Name | Type |
|---|---|
element | CaptionElement |
Returns
Object
| Name | Type |
|---|---|
errors | string[] |
warnings | string[] |
Defined in
packages/timeline/src/core/visitor/element-validator.ts:151
validateCircleElement
▸ validateCircleElement(element): Object
Parameters
| Name | Type |
|---|---|
element | CircleElement |
Returns
Object
| Name | Type |
|---|---|
errors | string[] |
warnings | string[] |
Defined in
packages/timeline/src/core/visitor/element-validator.ts:182
validateIconElement
▸ validateIconElement(element): Object
Parameters
| Name | Type |
|---|---|
element | IconElement |
Returns
Object
| Name | Type |
|---|---|
errors | string[] |
warnings | string[] |
Defined in
packages/timeline/src/core/visitor/element-validator.ts:165
validateImageElement
▸ validateImageElement(element): Object
Parameters
| Name | Type |
|---|---|
element | ImageElement |
Returns
Object
| Name | Type |
|---|---|
errors | string[] |
warnings | string[] |
Defined in
packages/timeline/src/core/visitor/element-validator.ts:134
validateRectElement
▸ validateRectElement(element): Object
Parameters
| Name | Type |
|---|---|
element | RectElement |
Returns
Object
| Name | Type |
|---|---|
errors | string[] |
warnings | string[] |
Defined in
packages/timeline/src/core/visitor/element-validator.ts:199
validateTextElement
▸ validateTextElement(element): Object
Parameters
| Name | Type |
|---|---|
element | TextElement |
Returns
Object
| Name | Type |
|---|---|
errors | string[] |
warnings | string[] |
Defined in
packages/timeline/src/core/visitor/element-validator.ts:65
validateVideoElement
▸ validateVideoElement(element): Object
Parameters
| Name | Type |
|---|---|
element | VideoElement |
Returns
Object
| Name | Type |
|---|---|
errors | string[] |
warnings | string[] |
Defined in
packages/timeline/src/core/visitor/element-validator.ts:87
visitAudioElement
▸ visitAudioElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | AudioElement |
Returns
boolean
Implementation of
ElementVisitor.visitAudioElement
Defined in
packages/timeline/src/core/visitor/element-validator.ts:234
visitCaptionElement
▸ visitCaptionElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | CaptionElement |
Returns
boolean
Implementation of
ElementVisitor.visitCaptionElement
Defined in
packages/timeline/src/core/visitor/element-validator.ts:276
visitCircleElement
▸ visitCircleElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | CircleElement |
Returns
boolean
Implementation of
ElementVisitor.visitCircleElement
Defined in
packages/timeline/src/core/visitor/element-validator.ts:304
visitIconElement
▸ visitIconElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | IconElement |
Returns
boolean
Implementation of
ElementVisitor.visitIconElement
Defined in
packages/timeline/src/core/visitor/element-validator.ts:290
visitImageElement
▸ visitImageElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | ImageElement |
Returns
boolean
Implementation of
ElementVisitor.visitImageElement
Defined in
packages/timeline/src/core/visitor/element-validator.ts:248
visitRectElement
▸ visitRectElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | RectElement |
Returns
boolean
Implementation of
ElementVisitor.visitRectElement
Defined in
packages/timeline/src/core/visitor/element-validator.ts:318
visitTextElement
▸ visitTextElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | TextElement |
Returns
boolean
Implementation of
ElementVisitor.visitTextElement
Defined in
packages/timeline/src/core/visitor/element-validator.ts:262
visitVideoElement
▸ visitVideoElement(element): boolean
Parameters
| Name | Type |
|---|---|
element | VideoElement |
Returns
boolean
Implementation of
ElementVisitor.visitVideoElement