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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "mywebui",
4
- "version": "1.37.94",
4
+ "version": "1.37.96",
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.94",
3
+ "version": "1.37.96",
4
4
  "description": "ioBroker mywebui - Custom edited mywebui by gokturk413",
5
5
  "type": "module",
6
6
  "main": "dist/backend/main.js",
@@ -440,8 +440,12 @@ class AnimationInstance {
440
440
  const effect = this.cfg.effect;
441
441
 
442
442
  if (effect === 'motionPath' && this.cfg.pathId) {
443
- const pathEl = findElementAcrossShadows(this.element, this.cfg.pathId);
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',