Bug fixes

This commit is contained in:
Luis Fernando Molina committed 2020-03-02 20:37:09 +01:00
1 parent 6b6ffbebdd
commit 7c6c7dbabf
7 files changed
+22 -3

No files matched your search

+2
View File
@@ -318,6 +318,8 @@ function newTimelineChart () {
}
function thisObjectPhysics () {
timelineChartCoordinateSystem.reportXValue(timeMachineCoordinateSystem.min.x)
timelineChartCoordinateSystem.reportXValue(timeMachineCoordinateSystem.max.x)
timelineChartCoordinateSystem.physics()
}
+1 -1
View File
@@ -88,7 +88,7 @@ function newWorkspace () {
functionLibraryUiObjectsFromNodes.recreateWorkspace(thisObject.workspaceNode)
thisObject.enabled = true
setInterval(saveWorkspace, 5000)
setInterval(saveWorkspace, 30000)
} catch (err) {
if (ERROR_LOG === true) { logger.write('[ERROR] initialize -> err = ' + err.stack) }
}
+1
View File
@@ -47,6 +47,7 @@ const ZOOM_OUT_THRESHOLD_FOR_CHANGING_TIME_FRAME = 5 // This help regulate when
const ZOOM_OUT_THRESHOLD_FOR_PACKING_OBJECTS_AT_THE_BOTTOM_OR_TOP_OF_VIEWPORT = 2
const ZOOM_OUT_THRESHOLD_FOR_PLOTTING_IN_LOW_RESOLUTION = 3
const ZOOM_OUT_THRESHOLD_FOR_DISPLAYING_TIME_MACHINES_ICONIZED = 5
const ZOOM_OUT_THRESHOLD_FOR_DISPLAYING_SCALES = 3
let FONT_ASPECT_RATIO = 0.32;
+4
View File
@@ -370,6 +370,10 @@ function newRateScale () {
thisObject.isVisible = false
thisObject.payload.isVisible = false
}
if (canvas.chartingSpace.viewport.zoomTargetLevel < ZOOM_OUT_THRESHOLD_FOR_DISPLAYING_SCALES) {
thisObject.isVisible = false
}
}
function draw () {
+4
View File
@@ -212,6 +212,10 @@ function newTimeFrameScale () {
thisObject.isVisible = false
thisObject.payload.isVisible = false
}
if (canvas.chartingSpace.viewport.zoomTargetLevel < ZOOM_OUT_THRESHOLD_FOR_DISPLAYING_SCALES) {
thisObject.isVisible = false
}
}
function onViewportZoomChanged (event) {
+4
View File
@@ -245,6 +245,10 @@ function newTimeScale () {
thisObject.container.frame.position.x < upCorner.x) {
thisObject.isVisible = false
}
if (canvas.chartingSpace.viewport.zoomTargetLevel < ZOOM_OUT_THRESHOLD_FOR_DISPLAYING_SCALES) {
thisObject.isVisible = false
}
}
function draw () {
+6 -2
View File
@@ -138,10 +138,14 @@ function newChartingSpace () {
container = thisObject.timeMachines[i].getContainer(point, purpose)
if (container !== undefined) {
if (purpose !== undefined) {
containerFound = container
if (containerFound === undefined) {
containerFound = container
}
} else {
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
containerFound = container
if (containerFound === undefined) {
containerFound = container
}
}
}
}