iobroker.mywebui 1.37.95 → 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
|
@@ -442,9 +442,10 @@ class AnimationInstance {
|
|
|
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
|
|
445
|
+
// If ID is on <svg> container, use the first SVG shape inside it
|
|
446
|
+
// GSAP MotionPathPlugin supports path, circle, ellipse, rect, polyline, polygon
|
|
446
447
|
if (pathEl.tagName.toLowerCase() === 'svg')
|
|
447
|
-
pathEl = pathEl.querySelector('path') ?? pathEl;
|
|
448
|
+
pathEl = pathEl.querySelector('path, circle, ellipse, rect, polyline, polygon') ?? pathEl;
|
|
448
449
|
this.tween = gsap.to(this.element, {
|
|
449
450
|
duration: parseFloat(this.cfg.duration) || 1,
|
|
450
451
|
ease: this.cfg.ease || 'none',
|