@node-projects/web-component-designer-visualization-addons 0.1.69 → 0.1.70

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.
@@ -244,13 +244,13 @@ export class ScriptSystem {
244
244
  }
245
245
  }
246
246
  getTarget(context, targetSelectorTarget, parentLevel) {
247
- if (targetSelectorTarget == 'element') {
247
+ if (targetSelectorTarget === 'container') {
248
248
  let el = context.element.getRootNode().host;
249
249
  for (let i = 0; i < (parentLevel ?? 0); i++)
250
250
  el = el.getRootNode().host;
251
251
  return el;
252
252
  }
253
- else if (targetSelectorTarget == "container") {
253
+ else if (targetSelectorTarget === "element") {
254
254
  let el = context.element;
255
255
  for (let i = 0; i < (parentLevel ?? 0); i++)
256
256
  el = el.parentElement;
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.69",
4
+ "version": "0.1.70",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "author": "jochen.kuehner@gmx.de",