iobroker.mywebui 1.37.94 → 1.37.95
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
package/package.json
CHANGED
|
@@ -440,8 +440,11 @@ class AnimationInstance {
|
|
|
440
440
|
const effect = this.cfg.effect;
|
|
441
441
|
|
|
442
442
|
if (effect === 'motionPath' && this.cfg.pathId) {
|
|
443
|
-
|
|
443
|
+
let pathEl = findElementAcrossShadows(this.element, this.cfg.pathId);
|
|
444
444
|
if (!pathEl) { console.warn('[AnimationService] motionPath: path element not found:', this.cfg.pathId); return; }
|
|
445
|
+
// If ID is on <svg> container, use the first <path> inside it
|
|
446
|
+
if (pathEl.tagName.toLowerCase() === 'svg')
|
|
447
|
+
pathEl = pathEl.querySelector('path') ?? pathEl;
|
|
445
448
|
this.tween = gsap.to(this.element, {
|
|
446
449
|
duration: parseFloat(this.cfg.duration) || 1,
|
|
447
450
|
ease: this.cfg.ease || 'none',
|