diff --git a/ChartsSpace/ViewPort.js b/ChartsSpace/ViewPort.js index b082bec4f..fe7199a23 100644 --- a/ChartsSpace/ViewPort.js +++ b/ChartsSpace/ViewPort.js @@ -86,15 +86,15 @@ function newViewport () { } loadFrame(thisObject.payload, frame) if (!isNaN(frame.position.x)) { - // position.x = frame.position.x + position.x = frame.position.x } if (!isNaN(frame.position.y)) { - // position.y = frame.position.y + position.y = frame.position.y } } resize() - // readObjectState() + readObjectState() } function resize () { @@ -136,7 +136,7 @@ function newViewport () { function physics () { animationPhysics() positioningphysics() - // readObjectState() + readObjectState() } function positioningphysics () { diff --git a/Globals.js b/Globals.js index 06fdd3706..66c535e1e 100644 --- a/Globals.js +++ b/Globals.js @@ -188,8 +188,8 @@ const PERIOD_01_MIN = "01-min"; We define here the size of the chartSpace. It has to bee enough big in order to accomodate all the charts we expect to display in this space. */ -const TIME_MACHINE_WIDTH = 1000; -const TIME_MACHINE_HEIGHT = 50; +const TIME_MACHINE_WIDTH = 2000; +const TIME_MACHINE_HEIGHT = 200 / 25; function toRadians(angle) { return angle * (Math.PI / 180); diff --git a/Scales/RateScale.js b/Scales/RateScale.js index 934a70714..0c79ee8a3 100644 --- a/Scales/RateScale.js +++ b/Scales/RateScale.js @@ -16,7 +16,7 @@ function newRateScale () { finalize: finalize } - const DEFAULT_VALUE = 1 + const DEFAULT_VALUE = 25 const STEP_SIZE = 1 const MIN_WIDTH = 50 const MAX_VALUE = 100 diff --git a/Scales/TimeFrameScale.js b/Scales/TimeFrameScale.js index 1e3dd51cc..fb09442fc 100644 --- a/Scales/TimeFrameScale.js +++ b/Scales/TimeFrameScale.js @@ -245,7 +245,6 @@ function newTimeFrameScale () { } function readObjectState () { - return try { let code = JSON.parse(thisObject.payload.node.code) if (code.value !== timeFrameLabel) {