@splinetool/runtime 1.10.17 → 1.10.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splinetool/runtime",
3
- "version": "1.10.17",
3
+ "version": "1.10.18",
4
4
  "description": "Spline is a collaborative design platform for creating production-ready interactive experiences in multiple dimensions. © 2024 Spline, Inc.",
5
5
  "keywords": [
6
6
  "spline",
package/runtime.d.ts CHANGED
@@ -6,6 +6,16 @@ declare module '@splinetool/runtime' {
6
6
  };
7
7
  };
8
8
 
9
+ export enum Easing {
10
+ LINEAR = 0,
11
+ EASE = 1,
12
+ EASE_IN = 2,
13
+ EASE_OUT = 3,
14
+ EASE_IN_OUT = 4,
15
+ CUBIC = 5,
16
+ SPRING = 6,
17
+ }
18
+
9
19
  export type SplineEventName =
10
20
  | 'mouseDown'
11
21
  | 'mouseUp'
@@ -19,8 +29,6 @@ declare module '@splinetool/runtime' {
19
29
  | 'collision'
20
30
  | 'rendered';
21
31
 
22
- export { EASING_TYPE as Easing } from 'spline-data';
23
-
24
32
  export type TransitionChainParams = {
25
33
  /**
26
34
  * When set, the transition will start from this state. If undefined (or not set) it will start from current state in the timeline.
@@ -30,7 +38,7 @@ declare module '@splinetool/runtime' {
30
38
  to: string | null;
31
39
  duration?: number;
32
40
  delay?: number;
33
- } & Easing;
41
+ } & EasingData;
34
42
 
35
43
  export type TransitionParams = TransitionChainParams & {
36
44
  autoPlay?: boolean;