Rigth Scale added
This commit is contained in:
1 parent
fde86df7d4
commit
594e4851d8
4 files changed
+32
-13
No files matched your search
@@ -41,6 +41,7 @@ function newTimeMachine () {
|
||||
const SEPARATION_BETWEEN_TIMELINE_CHARTS = 1.5
|
||||
|
||||
let timeScale
|
||||
let rigthScale
|
||||
|
||||
return thisObject
|
||||
|
||||
@@ -71,6 +72,9 @@ function newTimeMachine () {
|
||||
timeScale = newTimeScale()
|
||||
timeScale.initialize()
|
||||
|
||||
rigthScale = newRigthScale()
|
||||
rigthScale.initialize()
|
||||
|
||||
timeScale.container.eventHandler.listenToEvent('Lenght Percentage Changed', function (event) {
|
||||
thisObject.container.frame.width = TIME_MACHINE_WIDTH * event.lenghtPercentage / 100
|
||||
thisObject.container.eventHandler.raiseEvent('Dimmensions Changed', event)
|
||||
|
||||
Reference in new issue
Block a user