Assign decoration rotation

This commit is contained in:
Ketchetwahmeegwun T. Southall 2022-01-29 16:30:36 -08:00
parent 4e16683b37
commit ec113bd348

View File

@ -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
}
}
}