@getorrery/ui 0.2.2 → 0.3.1

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.
@@ -2400,6 +2400,15 @@ function logoMarkup(o) {
2400
2400
  }
2401
2401
  return `<style>${CSS}</style>` + html;
2402
2402
  }
2403
+ function syncMotion(root) {
2404
+ if (typeof requestAnimationFrame === "undefined" || typeof document === "undefined" || !root.getAnimations || !document.timeline) return;
2405
+ requestAnimationFrame(() => requestAnimationFrame(() => {
2406
+ const t0 = document.timeline.currentTime;
2407
+ for (const a of root.getAnimations()) try {
2408
+ a.startTime = t0;
2409
+ } catch {}
2410
+ }));
2411
+ }
2403
2412
  var OrrLogoComponent = class OrrLogoComponent {
2404
2413
  logo = input(void 0, ...ngDevMode ? [{ debugName: "logo" }] : /* istanbul ignore next */ []);
2405
2414
  type = input(void 0, ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
@@ -2443,6 +2452,7 @@ var OrrLogoComponent = class OrrLogoComponent {
2443
2452
  light,
2444
2453
  shader: this.shader()
2445
2454
  });
2455
+ syncMotion(root);
2446
2456
  });
2447
2457
  }
2448
2458
  static ɵfac = i0.ɵɵngDeclareFactory({