@ssgoi/core 2.5.5 → 2.5.6

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.
Files changed (36) hide show
  1. package/dist/animator/animate/css-runner.d.ts +17 -0
  2. package/dist/animator/animate/css-runner.d.ts.map +1 -0
  3. package/dist/animator/animate/index.d.ts +42 -0
  4. package/dist/animator/animate/index.d.ts.map +1 -0
  5. package/dist/animator/animate/tick-runner.d.ts +16 -0
  6. package/dist/animator/animate/tick-runner.d.ts.map +1 -0
  7. package/dist/animator/animate/types.d.ts +31 -0
  8. package/dist/animator/animate/types.d.ts.map +1 -0
  9. package/dist/animator/animation-scheduler.d.ts +4 -17
  10. package/dist/animator/animation-scheduler.d.ts.map +1 -1
  11. package/dist/animator/index.d.ts +32 -32
  12. package/dist/animator/index.d.ts.map +1 -1
  13. package/dist/animator/spring-core.d.ts +63 -0
  14. package/dist/animator/spring-core.d.ts.map +1 -0
  15. package/dist/index.cjs +2 -2
  16. package/dist/index.js +588 -631
  17. package/dist/ssgoi-transition/create-ssgoi-transition-context.d.ts.map +1 -1
  18. package/dist/ssgoi-transition/create-swipe-detector.d.ts +1 -0
  19. package/dist/ssgoi-transition/create-swipe-detector.d.ts.map +1 -1
  20. package/dist/transition/create-transition-callback.d.ts +2 -2
  21. package/dist/transition/create-transition-callback.d.ts.map +1 -1
  22. package/dist/transition/transition-strategy.d.ts +16 -16
  23. package/dist/transition/transition-strategy.d.ts.map +1 -1
  24. package/dist/transition/transition.d.ts +2 -18
  25. package/dist/transition/transition.d.ts.map +1 -1
  26. package/dist/types.cjs +1 -1
  27. package/dist/types.d.ts +74 -34
  28. package/dist/types.d.ts.map +1 -1
  29. package/dist/types.js +21 -6
  30. package/dist/view-transitions/drill.d.ts.map +1 -1
  31. package/dist/view-transitions/hero.d.ts.map +1 -1
  32. package/dist/view-transitions/index.cjs +9 -9
  33. package/dist/view-transitions/index.js +271 -257
  34. package/package.json +1 -1
  35. package/dist/animator/animate.d.ts +0 -35
  36. package/dist/animator/animate.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssgoi/core",
3
- "version": "2.5.5",
3
+ "version": "2.5.6",
4
4
  "description": "Core animation engine for SSGOI - Native app-like page transitions with spring physics",
5
5
  "private": false,
6
6
  "type": "module",
@@ -1,35 +0,0 @@
1
- /**
2
- * Custom spring animation implementation (replacing popmotion)
3
- * Interface-compatible with popmotion's animate function
4
- * Uses optimized semi-implicit Euler method (Allen Chou's approach)
5
- */
6
- export interface AnimateOptions {
7
- from: number;
8
- to: number;
9
- stiffness: number;
10
- damping: number;
11
- mass: number;
12
- velocity?: number;
13
- onUpdate: (value: number) => void;
14
- onComplete: () => void;
15
- }
16
- export interface AnimationControls {
17
- stop: () => void;
18
- }
19
- /**
20
- * Spring-based animation using optimized semi-implicit Euler
21
- * Based on Allen Chou's implementation for stability and performance
22
- *
23
- * Instead of computing F = -k(x-xt) - d*v, then a = F/m,
24
- * we use angular frequency (omega) and damping ratio (zeta):
25
- * - omega = sqrt(k/m) - angular frequency
26
- * - zeta = d/(2*sqrt(k*m)) - damping ratio
27
- *
28
- * Semi-implicit Euler update:
29
- * v += -2*h*zeta*omega*v + h*omega^2*(xt - x)
30
- * x += h*v
31
- *
32
- * This formulation is more stable and efficient than the naive approach.
33
- */
34
- export declare function animate(options: AnimateOptions): AnimationControls;
35
- //# sourceMappingURL=animate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"animate.d.ts","sourceRoot":"","sources":["../../src/lib/animator/animate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,iBAAiB,CAgFlE"}