@node-projects/web-component-designer-visualization-addons 0.1.98 → 0.1.99
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.
|
@@ -426,14 +426,14 @@ export class ScriptSystem {
|
|
|
426
426
|
if (script[0] == '{') {
|
|
427
427
|
let scriptObj = JSON.parse(script);
|
|
428
428
|
if ('commands' in scriptObj) {
|
|
429
|
-
e.addEventListener(evtName, (evt) => this.execute(scriptObj.commands,
|
|
429
|
+
e.addEventListener(evtName, (evt) => this.execute(scriptObj.commands, contextCreator(instance, evt, e, scriptObj.parameters, scriptObj.relativeSignalsPath)));
|
|
430
430
|
}
|
|
431
431
|
else if ('blocks' in scriptObj) {
|
|
432
432
|
let compiledFunc = null;
|
|
433
433
|
e.addEventListener(evtName, async (evt) => {
|
|
434
434
|
if (!compiledFunc)
|
|
435
435
|
compiledFunc = await generateEventCodeFromBlockly(scriptObj);
|
|
436
|
-
compiledFunc(evt, shadowRoot, scriptObj.parameters, scriptObj.relativeSignalsPath ?? '', visualizationHandler,
|
|
436
|
+
compiledFunc(evt, shadowRoot, scriptObj.parameters, scriptObj.relativeSignalsPath ?? '', visualizationHandler, contextCreator(instance, evt, e, scriptObj.parameters, scriptObj.relativeSignalsPath));
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
else {
|
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.99",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|