iobroker.mywebui 1.37.94 → 1.37.96
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,12 @@ 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 SVG shape inside it
|
|
446
|
+
// GSAP MotionPathPlugin supports path, circle, ellipse, rect, polyline, polygon
|
|
447
|
+
if (pathEl.tagName.toLowerCase() === 'svg')
|
|
448
|
+
pathEl = pathEl.querySelector('path, circle, ellipse, rect, polyline, polygon') ?? pathEl;
|
|
445
449
|
this.tween = gsap.to(this.element, {
|
|
446
450
|
duration: parseFloat(this.cfg.duration) || 1,
|
|
447
451
|
ease: this.cfg.ease || 'none',
|