Tutorials

This commit is contained in:
Luis Fernando Molina committed 2020-09-04 17:47:46 +02:00
1 parent 818aa8599a
commit 5c28229127
2 files changed
+30

No files matched your search

@@ -0,0 +1,24 @@
function newTutorialFunctions() {
thisObject = {
play: play
}
const HEIGHT = 800
const WIDTH = 600
const MARGIN = 300
return thisObject
function play(node) {
let docAppDiv = document.getElementById('tutorialStepDiv')
tutorialPosition = {
x: MARGIN,
y: (browserCanvas.height - HEIGHT) / 2
}
docAppDiv.style = ' ' +
'position:fixed; top:' + tutorialPosition.y + 'px; ' +
'left:' + tutorialPosition.x + 'px; ' +
'width: ' + WIDTH + 'px;' +
'height: ' + HEIGHT + 'px;' +
'z-index:1;'
}
}
+6
View File
@@ -69,6 +69,7 @@ function newWorkspace() {
let functionLibraryDataMineFunctions = newDataMineFunctions()
let functionLibraryDataStorageFunctions = newDataStorageFunctions()
let functionLibraryChartingSpaceFunctions = newChartingSpaceFunctions()
let functionLibraryTutorialFunctions = newTutorialFunctions()
thisObject.nodeChildren = newNodeChildren()
@@ -635,6 +636,11 @@ function newWorkspace() {
functionLibraryChartingSpaceFunctions.addAllDataMineLayers(payload.node, functionLibraryUiObjectsFromNodes)
}
break
case 'Play Tutorial':
{
functionLibraryTutorialFunctions.play(payload.node)
}
break
case 'Send Webhook Test Message':
{
functionLibraryWebhookFunctions.sendTestMessage(payload.node, callBackFunction)