Assign decoration rotation
This commit is contained in:
parent
4e16683b37
commit
ec113bd348
|
@ -48,6 +48,7 @@ export class SegmentDecoration {
|
|||
flip: boolean
|
||||
timeOffset: number = 0
|
||||
speed: number = 1.0
|
||||
rotation: number = 0
|
||||
constructor(o: any) {
|
||||
this.decor = o.decor
|
||||
this.decoration = o.decoration
|
||||
|
@ -61,6 +62,9 @@ export class SegmentDecoration {
|
|||
if (!isNaN(o.speed)) {
|
||||
this.speed = o.speed
|
||||
}
|
||||
if (!isNaN(o.rotation)) {
|
||||
this.rotation = o.rotation
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user