turning chartspace invisible works

This commit is contained in:
Luis Fernando Molina committed 2019-05-03 16:20:38 +02:00
1 parent 43dbfa4420
commit 69cce193bb
3 files changed
+12 -2

No files matched your search

+5 -2
View File
@@ -14,6 +14,7 @@ function newChartSpace () {
logger.fileName = MODULE_NAME
let thisObject = {
visible: true,
container: undefined,
drawBackground: drawBackground,
draw: draw,
@@ -83,6 +84,8 @@ function newChartSpace () {
}
function drawBackground () {
if (thisObject.visible !== true) { return }
for (var i = 0; i < thisObject.timeMachines.length; i++) {
var timeMachine = thisObject.timeMachines[i]
timeMachine.drawBackground()
@@ -90,7 +93,7 @@ function newChartSpace () {
}
function draw () {
// thisObject.container.frame.draw(false, false)
if (thisObject.visible !== true) { return }
for (var i = 0; i < thisObject.timeMachines.length; i++) {
var timeMachine = thisObject.timeMachines[i]
@@ -99,7 +102,7 @@ function newChartSpace () {
}
function getContainer (point, purpose) {
if (INFO_LOG === true) { logger.write('[INFO] getContainer -> Entering function.') }
if (thisObject.visible !== true) { return }
let container
+5
View File
@@ -6,6 +6,7 @@ The Panel Space y the place wehre all panels live, no matter who create them.
function newPanelsSpace () {
let thisObject = {
visible: true,
container: undefined,
createNewPanel: createNewPanel,
destroyPanel: destroyPanel,
@@ -100,6 +101,8 @@ function newPanelsSpace () {
}
function draw () {
if (thisObject.visible !== true) { return }
thisObject.container.frame.draw(false, false)
thisObject.panels = panelsMap.get('Global')
@@ -120,6 +123,8 @@ function newPanelsSpace () {
}
function getContainer (point) {
if (thisObject.visible !== true) { return }
let container
/*
+2
View File
@@ -37,6 +37,8 @@ function newStrategyCollectionItem () {
}
function onMouseClick (event) {
canvas.chartSpace.visible = false
canvas.panelsSpace.visible = false
generateStrategyParts()
}