Events Definitions
This commit is contained in:
1 parent
0652aebf47
commit
17512ff718
6 files changed
+69
-30
No files matched your search
@@ -401,37 +401,37 @@ function newSuperalgosActionSwitch() {
|
||||
break
|
||||
case 'Play Tutorial':
|
||||
{
|
||||
canvas.tutorialSpace.playTutorial(action.node)
|
||||
UI.projects.superalgos.spaces.tutorialSpace.playTutorial(action.node)
|
||||
}
|
||||
break
|
||||
case 'Play Tutorial Topic':
|
||||
{
|
||||
canvas.tutorialSpace.playTutorialTopic(action.node)
|
||||
UI.projects.superalgos.spaces.tutorialSpace.playTutorialTopic(action.node)
|
||||
}
|
||||
break
|
||||
case 'Play Tutorial Step':
|
||||
{
|
||||
canvas.tutorialSpace.playTutorialStep(action.node)
|
||||
UI.projects.superalgos.spaces.tutorialSpace.playTutorialStep(action.node)
|
||||
}
|
||||
break
|
||||
case 'Resume Tutorial':
|
||||
{
|
||||
canvas.tutorialSpace.resumeTutorial(action.node)
|
||||
UI.projects.superalgos.spaces.tutorialSpace.resumeTutorial(action.node)
|
||||
}
|
||||
break
|
||||
case 'Resume Tutorial Topic':
|
||||
{
|
||||
canvas.tutorialSpace.resumeTutorialTopic(action.node)
|
||||
UI.projects.superalgos.spaces.tutorialSpace.resumeTutorialTopic(action.node)
|
||||
}
|
||||
break
|
||||
case 'Resume Tutorial Step':
|
||||
{
|
||||
canvas.tutorialSpace.resumeTutorialStep(action.node)
|
||||
UI.projects.superalgos.spaces.tutorialSpace.resumeTutorialStep(action.node)
|
||||
}
|
||||
break
|
||||
case 'Reset Tutorial Progress':
|
||||
{
|
||||
canvas.tutorialSpace.resetTutorialProgress(action.node)
|
||||
UI.projects.superalgos.spaces.tutorialSpace.resetTutorialProgress(action.node)
|
||||
}
|
||||
break
|
||||
case 'Send Webhook Test Message':
|
||||
@@ -492,7 +492,7 @@ function newSuperalgosActionSwitch() {
|
||||
let definition = getNodeDefinition(action.node)
|
||||
if (definition !== undefined) {
|
||||
if (definition.docURL !== undefined) {
|
||||
canvas.docSpace.navigateTo(definition.docURL)
|
||||
UI.projects.superalgos.spaces.docSpace.navigateTo(definition.docURL)
|
||||
} else {
|
||||
let headName = getHiriarchyHead(action.node).type
|
||||
headName = headName.toLowerCase()
|
||||
@@ -501,7 +501,7 @@ function newSuperalgosActionSwitch() {
|
||||
nodeName = nodeName.toLowerCase()
|
||||
nodeName = nodeName.split(" ").join("-")
|
||||
url = DOCUMENTATION_URL_PREFIX + "suite-hierarchy-" + headName + ".html#" + nodeName
|
||||
canvas.docSpace.navigateTo(url)
|
||||
UI.projects.superalgos.spaces.docSpace.navigateTo(url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,9 +84,14 @@ function newSuperalgosChatSpace() {
|
||||
if (container !== undefined) { return container }
|
||||
|
||||
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
|
||||
return thisObject.container
|
||||
if (container.isWheelable === true) {
|
||||
return thisObject.container
|
||||
} else {
|
||||
canvas.chartingSpace.viewport.onMouseWheel(event)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
return undefined
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -236,7 +236,7 @@ function newWorkspace() {
|
||||
|
||||
switch (workingAtTask) {
|
||||
case 1:
|
||||
canvas.tutorialSpace.stop()
|
||||
UI.projects.superalgos.spaces.tutorialSpace.stop()
|
||||
executeAction({ node: thisObject.workspaceNode, name: 'Delete Workspace', project: 'Superalgos' })
|
||||
workingAtTask++
|
||||
break
|
||||
|
||||
@@ -353,6 +353,7 @@ function newSuperalgosPanelSpace() {
|
||||
|
||||
function getContainer(point, purpose) {
|
||||
if (thisObject.visible !== true) { return }
|
||||
if (purpose === GET_CONTAINER_PURPOSE.DRAGGING && point.shiftKey !== false) {return}
|
||||
|
||||
let container
|
||||
/*
|
||||
|
||||
@@ -268,14 +268,14 @@ function newSuperalgosTutorialSpace() {
|
||||
/*
|
||||
This forces the tutorial to close the documentation panel and to keep it closed.
|
||||
*/
|
||||
canvas.docSpace.sidePanelTab.close()
|
||||
UI.projects.superalgos.spaces.docSpace.sidePanelTab.close()
|
||||
return
|
||||
}
|
||||
canvas.docSpace.sidePanelTab.open()
|
||||
UI.projects.superalgos.spaces.docSpace.sidePanelTab.open()
|
||||
if (newDocumentationURL === currentDocumentationURL) { return }
|
||||
|
||||
currentDocumentationURL = newDocumentationURL
|
||||
canvas.docSpace.navigateTo(currentDocumentationURL)
|
||||
UI.projects.superalgos.spaces.docSpace.navigateTo(currentDocumentationURL)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -294,7 +294,7 @@ function newSuperalgosTutorialSpace() {
|
||||
This forces the tutorial to close the workspaces panel and to keep it closed.
|
||||
*/
|
||||
if (workspacesCounter === 5) {
|
||||
canvas.sideSpace.sidePanelTab.close()
|
||||
UI.projects.superalgos.spaces.sideSpace.sidePanelTab.close()
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -303,7 +303,7 @@ function newSuperalgosTutorialSpace() {
|
||||
This forces the tutorial to open the workspaces panel and to keep it closed.
|
||||
*/
|
||||
if (workspacesCounter === 5) {
|
||||
canvas.sideSpace.sidePanelTab.open()
|
||||
UI.projects.superalgos.spaces.sideSpace.sidePanelTab.open()
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user