Improvements on layer panels

This commit is contained in:
Luis Fernando Molina committed 2020-03-08 18:17:58 +01:00
1 parent fbd7a771e4
commit ec996bd41b
2 files changed
+8 -5

No files matched your search

+4 -1
View File
@@ -417,7 +417,10 @@ function newTimeMachine () {
}
function panelPhysics () {
if (thisObject.container.frame.isCenterInViewPort() && canvas.chartingSpace.viewport.zoomTargetLevel >= ZOOM_OUT_THRESHOLD_FOR_HIDDING_PANELS) {
if (
thisObject.container.frame.isCenterInViewPort() &&
canvas.chartingSpace.viewport.zoomLevel >= ZOOM_OUT_THRESHOLD_FOR_HIDDING_PANELS
) {
canvas.panelsSpace.unHide(thisObject.payload.node.id, 'Layers Panel')
canvas.panelsSpace.unHide(thisObject.payload.node.id, 'Plotter Panel')
} else {
+4 -4
View File
@@ -81,13 +81,13 @@ function newFrame () {
/* This function is usefull to know if the object who has this frame is currently appearing at least in part at the canvas.chartingSpace.viewport */
point1 = {
x: thisObject.width * 25 / 100,
y: thisObject.height * 25 / 100
x: thisObject.width * 40 / 100,
y: thisObject.height * 40 / 100
}
point3 = {
x: thisObject.width * 75 / 100,
y: thisObject.height * 75 / 100
x: thisObject.width * 40 / 100,
y: thisObject.height * 40 / 100
}
/* Now the transformations. */