@node-projects/web-component-designer-visualization-addons 0.1.114 → 0.1.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//@ts-ignore
|
|
3
|
+
Blockly.Blocks['open_screen'] = {
|
|
4
|
+
init: function () {
|
|
5
|
+
this.appendDummyInput()
|
|
6
|
+
.appendField('open screen');
|
|
7
|
+
this.appendValueInput('SCREEN')
|
|
8
|
+
.setCheck('String')
|
|
9
|
+
.appendField('screen');
|
|
10
|
+
this.appendValueInput('RELATIVESIGNALSPATH')
|
|
11
|
+
.setCheck("String")
|
|
12
|
+
.appendField('relativeSignalsPath');
|
|
13
|
+
this.appendValueInput('NOHISTORY')
|
|
14
|
+
.setCheck("Boolean")
|
|
15
|
+
.appendField('noHistory');
|
|
16
|
+
this.setPreviousStatement(true, null);
|
|
17
|
+
this.setNextStatement(true, null);
|
|
18
|
+
this.setColour(230);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//@ts-ignore
|
|
22
|
+
Blockly.JavaScript.forBlock['open_screen'] = function (block) {
|
|
23
|
+
//@ts-ignore
|
|
24
|
+
const screen = Blockly.JavaScript.valueToCode(block, 'SCREEN', Blockly.JavaScript.ORDER_ATOMIC);
|
|
25
|
+
//@ts-ignore
|
|
26
|
+
const relativeSignalsPath = Blockly.JavaScript.valueToCode(block, 'RELATIVESIGNALSPATH', Blockly.JavaScript.ORDER_ATOMIC);
|
|
27
|
+
//@ts-ignore
|
|
28
|
+
const noHistory = Blockly.JavaScript.valueToCode(block, 'NOHISTORY', Blockly.JavaScript.ORDER_ATOMIC);
|
|
29
|
+
let code = `RUNTIME.openScreen({screen: ${screen}, relativeSignalsPath: ${relativeSignalsPath}, noHistory: ${noHistory}})`;
|
|
30
|
+
return code;
|
|
31
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "web-component-designer addon for visualizations",
|
|
3
3
|
"name": "@node-projects/web-component-designer-visualization-addons",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.115",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|