@flighthq/easing 0.5.1-edge.1692.64cda40 → 0.5.1-edge.1892.cbd15bd
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/README.md +2 -2
- package/dist/contract.d.ts +21 -21
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +21 -21
- package/dist/contract.js.map +1 -1
- package/dist/enableEasingGuards.js +1 -1
- package/dist/enableEasingGuards.js.map +1 -1
- package/dist/index.d.ts +21 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -21
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/createEasingSamples.test.ts +3 -3
- package/src/easeBack.test.ts +1 -1
- package/src/easeBounce.test.ts +1 -1
- package/src/easeCircular.test.ts +1 -1
- package/src/easeCombinators.test.ts +2 -2
- package/src/easeCubic.test.ts +1 -1
- package/src/easeCubicBezier.test.ts +1 -1
- package/src/easeDampedSine.test.ts +2 -2
- package/src/easeElastic.test.ts +1 -1
- package/src/easeExponential.test.ts +1 -1
- package/src/easeLinear.test.ts +1 -1
- package/src/easePiecewise.test.ts +3 -3
- package/src/easePower.test.ts +4 -4
- package/src/easeQuadratic.test.ts +1 -1
- package/src/easeQuartic.test.ts +1 -1
- package/src/easeQuintic.test.ts +1 -1
- package/src/easeSine.test.ts +1 -1
- package/src/easeSmoothstep.test.ts +1 -1
- package/src/easeSteps.test.ts +1 -1
- package/src/easingFamilies.test.ts +1 -1
- package/src/enableEasingGuards.test.ts +2 -2
- package/src/getEasingDerivative.test.ts +3 -3
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/easing`. The `@fligh
|
|
|
13
13
|
This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
|
|
14
14
|
|
|
15
15
|
- [Flight project](https://github.com/flighthq/flight)
|
|
16
|
-
- [Source for @flighthq/easing@0.5.1-edge.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/easing@0.5.1-edge.1892.cbd15bd](https://github.com/flighthq/flight/tree/cbd15bd13373265e8f6dcf0cb057a16aee812919/packages/easing)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/cbd15bd13373265e8f6dcf0cb057a16aee812919/LICENSE.md)
|
package/dist/contract.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export * from './createEasingSamples';
|
|
2
|
-
export * from './easeBack';
|
|
3
|
-
export * from './easeBounce';
|
|
4
|
-
export * from './easeCircular';
|
|
5
|
-
export * from './easeCombinators';
|
|
6
|
-
export * from './easeCubic';
|
|
7
|
-
export * from './easeCubicBezier';
|
|
8
|
-
export * from './easeDampedSine';
|
|
9
|
-
export * from './easeElastic';
|
|
10
|
-
export * from './easeExponential';
|
|
11
|
-
export * from './easeLinear';
|
|
12
|
-
export * from './easePiecewise';
|
|
13
|
-
export * from './easePower';
|
|
14
|
-
export * from './easeQuadratic';
|
|
15
|
-
export * from './easeQuartic';
|
|
16
|
-
export * from './easeQuintic';
|
|
17
|
-
export * from './easeSine';
|
|
18
|
-
export * from './easeSmoothstep';
|
|
19
|
-
export * from './easeSteps';
|
|
20
|
-
export * from './enableEasingGuards';
|
|
21
|
-
export * from './getEasingDerivative';
|
|
1
|
+
export * from './createEasingSamples.ts';
|
|
2
|
+
export * from './easeBack.ts';
|
|
3
|
+
export * from './easeBounce.ts';
|
|
4
|
+
export * from './easeCircular.ts';
|
|
5
|
+
export * from './easeCombinators.ts';
|
|
6
|
+
export * from './easeCubic.ts';
|
|
7
|
+
export * from './easeCubicBezier.ts';
|
|
8
|
+
export * from './easeDampedSine.ts';
|
|
9
|
+
export * from './easeElastic.ts';
|
|
10
|
+
export * from './easeExponential.ts';
|
|
11
|
+
export * from './easeLinear.ts';
|
|
12
|
+
export * from './easePiecewise.ts';
|
|
13
|
+
export * from './easePower.ts';
|
|
14
|
+
export * from './easeQuadratic.ts';
|
|
15
|
+
export * from './easeQuartic.ts';
|
|
16
|
+
export * from './easeQuintic.ts';
|
|
17
|
+
export * from './easeSine.ts';
|
|
18
|
+
export * from './easeSmoothstep.ts';
|
|
19
|
+
export * from './easeSteps.ts';
|
|
20
|
+
export * from './enableEasingGuards.ts';
|
|
21
|
+
export * from './getEasingDerivative.ts';
|
|
22
22
|
//# sourceMappingURL=contract.d.ts.map
|
package/dist/contract.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC"}
|
package/dist/contract.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
1
|
+
export * from "./createEasingSamples.js";
|
|
2
|
+
export * from "./easeBack.js";
|
|
3
|
+
export * from "./easeBounce.js";
|
|
4
|
+
export * from "./easeCircular.js";
|
|
5
|
+
export * from "./easeCombinators.js";
|
|
6
|
+
export * from "./easeCubic.js";
|
|
7
|
+
export * from "./easeCubicBezier.js";
|
|
8
|
+
export * from "./easeDampedSine.js";
|
|
9
|
+
export * from "./easeElastic.js";
|
|
10
|
+
export * from "./easeExponential.js";
|
|
11
|
+
export * from "./easeLinear.js";
|
|
12
|
+
export * from "./easePiecewise.js";
|
|
13
|
+
export * from "./easePower.js";
|
|
14
|
+
export * from "./easeQuadratic.js";
|
|
15
|
+
export * from "./easeQuartic.js";
|
|
16
|
+
export * from "./easeQuintic.js";
|
|
17
|
+
export * from "./easeSine.js";
|
|
18
|
+
export * from "./easeSmoothstep.js";
|
|
19
|
+
export * from "./easeSteps.js";
|
|
20
|
+
export * from "./enableEasingGuards.js";
|
|
21
|
+
export * from "./getEasingDerivative.js";
|
|
22
22
|
//# sourceMappingURL=contract.js.map
|
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { logOnce } from '@flighthq/log/contract';
|
|
2
2
|
import { LogLevel } from '@flighthq/types/contract';
|
|
3
|
-
import { setEasingStepsGuard } from
|
|
3
|
+
import { setEasingStepsGuard } from "./easeSteps.js";
|
|
4
4
|
// Uninstalls the guard installed by enableEasingGuards.
|
|
5
5
|
export function disableEasingGuards() {
|
|
6
6
|
setEasingStepsGuard(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enableEasingGuards.js","sourceRoot":"","sources":["../src/enableEasingGuards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"enableEasingGuards.js","sourceRoot":"","sources":["../src/enableEasingGuards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,wDAAwD;AACxD,MAAM,UAAU,mBAAmB;IACjC,mBAAmB,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,mGAAmG;AACnG,yGAAyG;AACzG,0GAA0G;AAC1G,uGAAuG;AACvG,EAAE;AACF,2GAA2G;AAC3G,0GAA0G;AAC1G,4GAA4G;AAC5G,uGAAuG;AACvG,MAAM,UAAU,kBAAkB;IAChC,mBAAmB,CAAC,qBAAqB,CAAC,CAAC;AAC7C,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAa,EAAE,QAAsB;IAClE,OAAO,CACL,yBAAyB,EACzB,QAAQ,CAAC,IAAI,EACb;QACE,OAAO,EAAE,aAAa,KAAK,MAAM,QAAQ,QAAQ,QAAQ,uDAAuD,KAAK,iNAAiN;KACvU,EACD,QAAQ,CACT,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export * from './createEasingSamples';
|
|
2
|
-
export * from './easeBack';
|
|
3
|
-
export * from './easeBounce';
|
|
4
|
-
export * from './easeCircular';
|
|
5
|
-
export * from './easeCombinators';
|
|
6
|
-
export * from './easeCubic';
|
|
7
|
-
export * from './easeCubicBezier';
|
|
8
|
-
export * from './easeDampedSine';
|
|
9
|
-
export * from './easeElastic';
|
|
10
|
-
export * from './easeExponential';
|
|
11
|
-
export * from './easeLinear';
|
|
12
|
-
export * from './easePiecewise';
|
|
13
|
-
export * from './easePower';
|
|
14
|
-
export * from './easeQuadratic';
|
|
15
|
-
export * from './easeQuartic';
|
|
16
|
-
export * from './easeQuintic';
|
|
17
|
-
export * from './easeSine';
|
|
18
|
-
export * from './easeSmoothstep';
|
|
19
|
-
export { easeSteps } from './easeSteps';
|
|
20
|
-
export * from './enableEasingGuards';
|
|
21
|
-
export * from './getEasingDerivative';
|
|
1
|
+
export * from './createEasingSamples.ts';
|
|
2
|
+
export * from './easeBack.ts';
|
|
3
|
+
export * from './easeBounce.ts';
|
|
4
|
+
export * from './easeCircular.ts';
|
|
5
|
+
export * from './easeCombinators.ts';
|
|
6
|
+
export * from './easeCubic.ts';
|
|
7
|
+
export * from './easeCubicBezier.ts';
|
|
8
|
+
export * from './easeDampedSine.ts';
|
|
9
|
+
export * from './easeElastic.ts';
|
|
10
|
+
export * from './easeExponential.ts';
|
|
11
|
+
export * from './easeLinear.ts';
|
|
12
|
+
export * from './easePiecewise.ts';
|
|
13
|
+
export * from './easePower.ts';
|
|
14
|
+
export * from './easeQuadratic.ts';
|
|
15
|
+
export * from './easeQuartic.ts';
|
|
16
|
+
export * from './easeQuintic.ts';
|
|
17
|
+
export * from './easeSine.ts';
|
|
18
|
+
export * from './easeSmoothstep.ts';
|
|
19
|
+
export { easeSteps } from './easeSteps.ts';
|
|
20
|
+
export * from './enableEasingGuards.ts';
|
|
21
|
+
export * from './getEasingDerivative.ts';
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export { easeSteps } from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
1
|
+
export * from "./createEasingSamples.js";
|
|
2
|
+
export * from "./easeBack.js";
|
|
3
|
+
export * from "./easeBounce.js";
|
|
4
|
+
export * from "./easeCircular.js";
|
|
5
|
+
export * from "./easeCombinators.js";
|
|
6
|
+
export * from "./easeCubic.js";
|
|
7
|
+
export * from "./easeCubicBezier.js";
|
|
8
|
+
export * from "./easeDampedSine.js";
|
|
9
|
+
export * from "./easeElastic.js";
|
|
10
|
+
export * from "./easeExponential.js";
|
|
11
|
+
export * from "./easeLinear.js";
|
|
12
|
+
export * from "./easePiecewise.js";
|
|
13
|
+
export * from "./easePower.js";
|
|
14
|
+
export * from "./easeQuadratic.js";
|
|
15
|
+
export * from "./easeQuartic.js";
|
|
16
|
+
export * from "./easeQuintic.js";
|
|
17
|
+
export * from "./easeSine.js";
|
|
18
|
+
export * from "./easeSmoothstep.js";
|
|
19
|
+
export { easeSteps } from "./easeSteps.js";
|
|
20
|
+
export * from "./enableEasingGuards.js";
|
|
21
|
+
export * from "./getEasingDerivative.js";
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/easing",
|
|
3
|
-
"version": "0.5.1-edge.
|
|
3
|
+
"version": "0.5.1-edge.1892.cbd15bd",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/log": "0.5.1-edge.
|
|
42
|
-
"@flighthq/types": "0.5.1-edge.
|
|
41
|
+
"@flighthq/log": "0.5.1-edge.1892.cbd15bd",
|
|
42
|
+
"@flighthq/types": "0.5.1-edge.1892.cbd15bd"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.3.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createEasingSamples } from './createEasingSamples';
|
|
2
|
-
import { easeInCubic } from './easeCubic';
|
|
3
|
-
import { easeLinear } from './easeLinear';
|
|
1
|
+
import { createEasingSamples } from './createEasingSamples.ts';
|
|
2
|
+
import { easeInCubic } from './easeCubic.ts';
|
|
3
|
+
import { easeLinear } from './easeLinear.ts';
|
|
4
4
|
|
|
5
5
|
describe('createEasingSamples', () => {
|
|
6
6
|
it('throws for count < 1', () => {
|
package/src/easeBack.test.ts
CHANGED
package/src/easeBounce.test.ts
CHANGED
package/src/easeCircular.test.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { easeClamp, easeClampOutput, easeInvert, easeMirror, easeReverse, easeScaleOutput } from './easeCombinators';
|
|
2
|
-
import { easeInCubic, easeOutCubic } from './easeCubic';
|
|
1
|
+
import { easeClamp, easeClampOutput, easeInvert, easeMirror, easeReverse, easeScaleOutput } from './easeCombinators.ts';
|
|
2
|
+
import { easeInCubic, easeOutCubic } from './easeCubic.ts';
|
|
3
3
|
|
|
4
4
|
describe('easeClamp', () => {
|
|
5
5
|
it('passes through values already in [0,1]', () => {
|
package/src/easeCubic.test.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { easeInDampedSine, easeInOutDampedSine, easeOutDampedSine } from './easeDampedSine';
|
|
2
|
-
import { easeInElastic, easeInOutElastic, easeOutElastic } from './easeElastic';
|
|
1
|
+
import { easeInDampedSine, easeInOutDampedSine, easeOutDampedSine } from './easeDampedSine.ts';
|
|
2
|
+
import { easeInElastic, easeInOutElastic, easeOutElastic } from './easeElastic.ts';
|
|
3
3
|
|
|
4
4
|
describe('easeInDampedSine', () => {
|
|
5
5
|
it('returns 0 at t=0 and 1 at t=1', () => {
|
package/src/easeElastic.test.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { easeInExponential, easeInOutExponential, easeOutExponential } from './easeExponential';
|
|
1
|
+
import { easeInExponential, easeInOutExponential, easeOutExponential } from './easeExponential.ts';
|
|
2
2
|
|
|
3
3
|
describe('easeInExponential', () => {
|
|
4
4
|
it('returns 0 at t=0 and 1 at t=1', () => {
|
package/src/easeLinear.test.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { easeInCubic } from './easeCubic';
|
|
2
|
-
import { easeLinear } from './easeLinear';
|
|
3
|
-
import { easePiecewise } from './easePiecewise';
|
|
1
|
+
import { easeInCubic } from './easeCubic.ts';
|
|
2
|
+
import { easeLinear } from './easeLinear.ts';
|
|
3
|
+
import { easePiecewise } from './easePiecewise.ts';
|
|
4
4
|
|
|
5
5
|
describe('easePiecewise', () => {
|
|
6
6
|
it('throws on an empty segments array', () => {
|
package/src/easePower.test.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { easeInOutCubic } from './easeCubic';
|
|
2
|
-
import { easeInOutPower, easeInPower, easeOutPower } from './easePower';
|
|
3
|
-
import { easeInQuadratic, easeOutQuadratic } from './easeQuadratic';
|
|
4
|
-
import { easeInQuintic } from './easeQuintic';
|
|
1
|
+
import { easeInOutCubic } from './easeCubic.ts';
|
|
2
|
+
import { easeInOutPower, easeInPower, easeOutPower } from './easePower.ts';
|
|
3
|
+
import { easeInQuadratic, easeOutQuadratic } from './easeQuadratic.ts';
|
|
4
|
+
import { easeInQuintic } from './easeQuintic.ts';
|
|
5
5
|
|
|
6
6
|
describe('easeInOutPower', () => {
|
|
7
7
|
it('returns 0 at t=0 and 1 at t=1', () => {
|
package/src/easeQuartic.test.ts
CHANGED
package/src/easeQuintic.test.ts
CHANGED
package/src/easeSine.test.ts
CHANGED
package/src/easeSteps.test.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StepPosition } from '@flighthq/types/contract';
|
|
2
2
|
|
|
3
|
-
import { easeSteps, setEasingStepsGuard } from './easeSteps';
|
|
3
|
+
import { easeSteps, setEasingStepsGuard } from './easeSteps.ts';
|
|
4
4
|
|
|
5
5
|
describe('easeSteps', () => {
|
|
6
6
|
it('jumpEnd holds at 0 first and reaches 1 only at t=1', () => {
|
|
@@ -2,8 +2,8 @@ import { addLogSink, createMemoryLogSink, getMemoryLogSinkEntries, removeLogSink
|
|
|
2
2
|
import type { LogEntry } from '@flighthq/types/contract';
|
|
3
3
|
import { describe, expect, it } from 'vitest';
|
|
4
4
|
|
|
5
|
-
import { easeSteps } from './easeSteps';
|
|
6
|
-
import { disableEasingGuards, enableEasingGuards } from './enableEasingGuards';
|
|
5
|
+
import { easeSteps } from './easeSteps.ts';
|
|
6
|
+
import { disableEasingGuards, enableEasingGuards } from './enableEasingGuards.ts';
|
|
7
7
|
|
|
8
8
|
function captureLog(run: () => void): readonly LogEntry[] {
|
|
9
9
|
const sink = createMemoryLogSink(8);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { easeInCubic, easeOutCubic } from './easeCubic';
|
|
2
|
-
import { easeLinear } from './easeLinear';
|
|
3
|
-
import { getEasingDerivative } from './getEasingDerivative';
|
|
1
|
+
import { easeInCubic, easeOutCubic } from './easeCubic.ts';
|
|
2
|
+
import { easeLinear } from './easeLinear.ts';
|
|
3
|
+
import { getEasingDerivative } from './getEasingDerivative.ts';
|
|
4
4
|
|
|
5
5
|
describe('getEasingDerivative', () => {
|
|
6
6
|
it('returns ~1 everywhere for easeLinear (slope is constant 1)', () => {
|