coily 0.8.2 → 0.9.0
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/dist/api.cjs +6 -0
- package/dist/api.d.cts +2 -2
- package/dist/api.d.mts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.mjs +6 -0
- package/dist/loop.d.cts +1 -1
- package/dist/loop.d.mts +1 -1
- package/dist/loop.d.ts +1 -1
- package/dist/shared/{coily.fc8a32a3.d.cts → coily.0b4474af.d.cts} +1 -0
- package/dist/shared/{coily.fc8a32a3.d.mts → coily.0b4474af.d.mts} +1 -0
- package/dist/shared/{coily.fc8a32a3.d.ts → coily.0b4474af.d.ts} +1 -0
- package/package.json +1 -1
package/dist/api.cjs
CHANGED
|
@@ -576,6 +576,12 @@ class Spring {
|
|
|
576
576
|
onStop(callback) {
|
|
577
577
|
return __privateGet$1(this, _solver).onStop(callback);
|
|
578
578
|
}
|
|
579
|
+
jumpTo(value) {
|
|
580
|
+
__privateSet$1(this, _target, value);
|
|
581
|
+
__privateGet$1(this, _solver).position = 0;
|
|
582
|
+
__privateGet$1(this, _solver).velocity = 0;
|
|
583
|
+
__privateGet$1(this, _solver).tick(0);
|
|
584
|
+
}
|
|
579
585
|
}
|
|
580
586
|
_target = new WeakMap();
|
|
581
587
|
_solver = new WeakMap();
|
package/dist/api.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SpringSystem } from './shared/coily.
|
|
2
|
-
export { a as Spring } from './shared/coily.
|
|
1
|
+
import { S as SpringSystem } from './shared/coily.0b4474af.cjs';
|
|
2
|
+
export { a as Spring } from './shared/coily.0b4474af.cjs';
|
|
3
3
|
|
|
4
4
|
declare function createSpringSystem(): SpringSystem;
|
|
5
5
|
|
package/dist/api.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SpringSystem } from './shared/coily.
|
|
2
|
-
export { a as Spring } from './shared/coily.
|
|
1
|
+
import { S as SpringSystem } from './shared/coily.0b4474af.mjs';
|
|
2
|
+
export { a as Spring } from './shared/coily.0b4474af.mjs';
|
|
3
3
|
|
|
4
4
|
declare function createSpringSystem(): SpringSystem;
|
|
5
5
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SpringSystem } from './shared/coily.
|
|
2
|
-
export { a as Spring } from './shared/coily.
|
|
1
|
+
import { S as SpringSystem } from './shared/coily.0b4474af.js';
|
|
2
|
+
export { a as Spring } from './shared/coily.0b4474af.js';
|
|
3
3
|
|
|
4
4
|
declare function createSpringSystem(): SpringSystem;
|
|
5
5
|
|
package/dist/api.mjs
CHANGED
|
@@ -574,6 +574,12 @@ class Spring {
|
|
|
574
574
|
onStop(callback) {
|
|
575
575
|
return __privateGet$1(this, _solver).onStop(callback);
|
|
576
576
|
}
|
|
577
|
+
jumpTo(value) {
|
|
578
|
+
__privateSet$1(this, _target, value);
|
|
579
|
+
__privateGet$1(this, _solver).position = 0;
|
|
580
|
+
__privateGet$1(this, _solver).velocity = 0;
|
|
581
|
+
__privateGet$1(this, _solver).tick(0);
|
|
582
|
+
}
|
|
577
583
|
}
|
|
578
584
|
_target = new WeakMap();
|
|
579
585
|
_solver = new WeakMap();
|
package/dist/loop.d.cts
CHANGED
package/dist/loop.d.mts
CHANGED
package/dist/loop.d.ts
CHANGED