Viewport saving
This commit is contained in:
1 parent
40b3bafcfc
commit
d6edd68984
4 files changed
+7
-8
No files matched your search
@@ -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 () {
|
||||
|
||||
+2
-2
@@ -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);
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
@@ -245,7 +245,6 @@ function newTimeFrameScale () {
|
||||
}
|
||||
|
||||
function readObjectState () {
|
||||
return
|
||||
try {
|
||||
let code = JSON.parse(thisObject.payload.node.code)
|
||||
if (code.value !== timeFrameLabel) {
|
||||
|
||||
Reference in new issue
Block a user