diff --git a/Spaces/TutorialSpace.js b/Spaces/TutorialSpace.js index bf9537ed8..c49082f40 100644 --- a/Spaces/TutorialSpace.js +++ b/Spaces/TutorialSpace.js @@ -119,6 +119,7 @@ function newTutorialSpace() { checkGif() checkImage() checkDocumentation() + checkWorkspaces() checkSlider() checkReference() checkViewportZoom() @@ -238,6 +239,32 @@ function newTutorialSpace() { canvas.docSpace.navigateTo(currentDocumentationURL) } + function checkWorkspaces() { + if (currentNode === undefined) { return } + let config = JSON.parse(currentNode.config) + if (config.workspaces === undefined) { + /* + The worspaces panel will remain as it is, and the user will be free to open or close it at will. + */ + return + } + if (config.workspaces === "" || config.workspaces === "Close") { + /* + This forces the tutorial to close the documentation panel and to keep it closed. + */ + canvas.sideSpace.sidePanelTab.close() + return + } + if (config.workspaces === "Open") { + /* + This forces the tutorial to close the documentation panel and to keep it closed. + */ + canvas.sideSpace.sidePanelTab.open() + return + } + canvas.docSpace.sidePanelTab.open() + } + function checkSlider() { if (currentNode === undefined) { return } let config = JSON.parse(currentNode.config)