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

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
  }
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.92",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",