@twick/timeline / Exports / IconElement
Class: IconElement
Hierarchy
-
↳
IconElement
Table of contents
Constructors
Properties
Methods
- accept
- getAnimation
- getDuration
- getEnd
- getId
- getName
- getPosition
- getProps
- getStart
- getTrackId
- getType
- setAnimation
- setEnd
- setId
- setName
- setPosition
- setProps
- setStart
- setTrackId
- setType
Constructors
constructor
• new IconElement(src, size, fill): IconElement
Parameters
| Name | Type |
|---|---|
src | string |
size | Size |
Returns
Overrides
Defined in
packages/timeline/src/core/elements/icon.element.ts:8
Properties
animation
• Protected Optional animation: ElementAnimation
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:13
e
• Protected e: number
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:10
id
• Protected id: string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:7
name
• Protected name: string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:12
props
• Protected props: IconProps
Overrides
Defined in
packages/timeline/src/core/elements/icon.element.ts:7
s
• Protected s: number
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:9
trackId
• Protected trackId: string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:11
type
• Protected type: string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:8
Methods
accept
▸ accept<T>(visitor): T
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type |
|---|---|
visitor | ElementVisitor<T> |
Returns
T
Overrides
Defined in
packages/timeline/src/core/elements/icon.element.ts:16
getAnimation
▸ getAnimation(): undefined | ElementAnimation
Returns
undefined | ElementAnimation
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:59
getDuration
▸ getDuration(): number
Returns
number
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:43
getEnd
▸ getEnd(): number
Returns
number
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:39
getId
▸ getId(): string
Returns
string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:27
getName
▸ getName(): string
Returns
string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:55
getPosition
▸ getPosition(): Position
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:63
getProps
▸ getProps(): Record<string, any>
Returns
Record<string, any>
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:51
getStart
▸ getStart(): number
Returns
number
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:35
getTrackId
▸ getTrackId(): string
Returns
string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:47
getType
▸ getType(): string
Returns
string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:31
setAnimation
▸ setAnimation(animation?): IconElement
Parameters
| Name | Type |
|---|---|
animation? | ElementAnimation |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:100
setEnd
▸ setEnd(e): IconElement
Parameters
| Name | Type |
|---|---|
e | number |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:85
setId
▸ setId(id): IconElement
Parameters
| Name | Type |
|---|---|
id | string |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:70
setName
▸ setName(name): IconElement
Parameters
| Name | Type |
|---|---|
name | string |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:95
setPosition
▸ setPosition(position): IconElement
Parameters
| Name | Type |
|---|---|
position | Position |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:105
setProps
▸ setProps(props): IconElement
Parameters
| Name | Type |
|---|---|
props | Record<string, any> |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:111
setStart
▸ setStart(s): IconElement
Parameters
| Name | Type |
|---|---|
s | number |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:80
setTrackId
▸ setTrackId(trackId): IconElement
Parameters
| Name | Type |
|---|---|
trackId | string |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:90
setType
▸ setType(type): IconElement
Parameters
| Name | Type |
|---|---|
type | string |