coily 0.7.1 → 0.7.3
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 +2 -2
- 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 +2 -2
- 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.87d79480.d.cts → coily.7c365057.d.cts} +1 -1
- package/dist/shared/{coily.87d79480.d.mts → coily.7c365057.d.mts} +1 -1
- package/dist/shared/{coily.87d79480.d.ts → coily.7c365057.d.ts} +1 -1
- package/package.json +4 -4
package/dist/api.cjs
CHANGED
|
@@ -457,7 +457,7 @@ class Spring {
|
|
|
457
457
|
"Damping must be greater than or equal to 0"
|
|
458
458
|
);
|
|
459
459
|
invariant(
|
|
460
|
-
options.
|
|
460
|
+
options.precision === void 0 || options.precision > 0,
|
|
461
461
|
"Precision must be greater than 0"
|
|
462
462
|
);
|
|
463
463
|
__privateSet$1(this, _target, options.target);
|
|
@@ -467,7 +467,7 @@ class Spring {
|
|
|
467
467
|
damping: options.damping,
|
|
468
468
|
position: options.target + (options.value ?? 0),
|
|
469
469
|
velocity: 0,
|
|
470
|
-
precision: options.
|
|
470
|
+
precision: options.precision ?? 2
|
|
471
471
|
}));
|
|
472
472
|
__privateSet$1(this, _scheduler$1, scheduler);
|
|
473
473
|
__privateSet$1(this, _newTarget, __privateGet$1(this, _target));
|
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.7c365057.cjs';
|
|
2
|
+
export { a as Spring } from './shared/coily.7c365057.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.7c365057.mjs';
|
|
2
|
+
export { a as Spring } from './shared/coily.7c365057.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.7c365057.js';
|
|
2
|
+
export { a as Spring } from './shared/coily.7c365057.js';
|
|
3
3
|
|
|
4
4
|
declare function createSpringSystem(): SpringSystem;
|
|
5
5
|
|
package/dist/api.mjs
CHANGED
|
@@ -455,7 +455,7 @@ class Spring {
|
|
|
455
455
|
"Damping must be greater than or equal to 0"
|
|
456
456
|
);
|
|
457
457
|
invariant(
|
|
458
|
-
options.
|
|
458
|
+
options.precision === void 0 || options.precision > 0,
|
|
459
459
|
"Precision must be greater than 0"
|
|
460
460
|
);
|
|
461
461
|
__privateSet$1(this, _target, options.target);
|
|
@@ -465,7 +465,7 @@ class Spring {
|
|
|
465
465
|
damping: options.damping,
|
|
466
466
|
position: options.target + (options.value ?? 0),
|
|
467
467
|
velocity: 0,
|
|
468
|
-
precision: options.
|
|
468
|
+
precision: options.precision ?? 2
|
|
469
469
|
}));
|
|
470
470
|
__privateSet$1(this, _scheduler$1, scheduler);
|
|
471
471
|
__privateSet$1(this, _newTarget, __privateGet$1(this, _target));
|
package/dist/loop.d.cts
CHANGED
package/dist/loop.d.mts
CHANGED
package/dist/loop.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coily",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "Simulate values using spring physics",
|
|
5
5
|
"author": "Tim Morris <timthewebguy@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/tkofh/coily#readme",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"url": "https://github.com/tkofh/coily/issues"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@vitest/coverage-v8": "^
|
|
40
|
-
"@vitest/ui": "^
|
|
39
|
+
"@vitest/coverage-v8": "^2.0.4",
|
|
40
|
+
"@vitest/ui": "^2.0.4",
|
|
41
41
|
"unbuild": "^2.0.0",
|
|
42
|
-
"vitest": "^
|
|
42
|
+
"vitest": "^2.0.4"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"tickloop": "^0.5.0"
|