@node-projects/web-component-designer-visualization-addons 0.1.91 → 0.1.93

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.
@@ -202,13 +202,13 @@ export class ScriptSystem {
202
202
  }
203
203
  else if (target == 'class') {
204
204
  if (mode === 'toggle') {
205
- e.classList.toggle(value);
205
+ e.classList.toggle(name ?? value);
206
206
  }
207
207
  else if (mode === 'remove') {
208
- e.classList.remove(value);
208
+ e.classList.remove(name ?? value);
209
209
  }
210
210
  else {
211
- e.classList.add(value);
211
+ e.classList.add(name ?? value);
212
212
  }
213
213
  }
214
214
  }
@@ -310,6 +310,8 @@ export class ScriptSystem {
310
310
  return elements;
311
311
  }
312
312
  async getValue(value, outerContext) {
313
+ if (value == null)
314
+ return null;
313
315
  if (typeof value === 'object') {
314
316
  switch (value.source) {
315
317
  case 'property': {
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.91",
4
+ "version": "0.1.93",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",