iobroker.mywebui 1.37.92 → 1.37.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.
package/io-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "mywebui",
4
- "version": "1.37.92",
4
+ "version": "1.37.93",
5
5
  "titleLang": {
6
6
  "en": "mywebui",
7
7
  "de": "mywebui",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.mywebui",
3
- "version": "1.37.92",
3
+ "version": "1.37.93",
4
4
  "description": "ioBroker mywebui - Custom edited mywebui by gokturk413",
5
5
  "type": "module",
6
6
  "main": "dist/backend/main.js",
@@ -413,7 +413,10 @@ class AnimationInstance {
413
413
  const effect = this.cfg.effect;
414
414
 
415
415
  if (effect === 'motionPath' && this.cfg.pathId) {
416
- const pathEl = document.getElementById(this.cfg.pathId);
416
+ // Search in shadow root first — document.getElementById doesn't see shadow DOM elements
417
+ const rootNode = this.element.getRootNode();
418
+ const pathEl = (rootNode instanceof ShadowRoot ? rootNode : document).getElementById(this.cfg.pathId)
419
+ ?? document.getElementById(this.cfg.pathId);
417
420
  if (!pathEl) { console.warn('[AnimationService] motionPath: path element not found:', this.cfg.pathId); return; }
418
421
  this.tween = gsap.to(this.element, {
419
422
  duration: parseFloat(this.cfg.duration) || 1,
@@ -422,8 +425,8 @@ class AnimationInstance {
422
425
  yoyo: this.cfg.yoyo === true,
423
426
  paused: true,
424
427
  motionPath: {
425
- path: '#' + this.cfg.pathId,
426
- align: this.cfg.alignToPath ? '#' + this.cfg.pathId : false,
428
+ path: pathEl,
429
+ align: this.cfg.alignToPath ? pathEl : false,
427
430
  autoRotate: this.cfg.orientToPath === true,
428
431
  alignOrigin: [0.5, 0.5],
429
432
  start: this.cfg.valueFrom ? parseFloat(this.cfg.valueFrom) / 100 : 0,