@flighthq/velocity 0.2.1-next.841.373388f → 0.3.0-next.1032.e2b99fc

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.
@@ -0,0 +1,4 @@
1
+ export { contributeTransformVelocity } from './transformVelocity';
2
+ export { addVelocity, beginVelocityFrame, clampVelocity, contributeVelocity, copyVelocity, createVelocityField, dampVelocity, ensureVelocitySample, getVelocity, hasVelocity, isVelocityZero, lengthOfVelocity, lerpVelocity, normalizeVelocity, scaleVelocity, subtractVelocity, suppressVelocity, zeroVelocity, } from './velocityField';
3
+ export { getVelocitySampleAt } from './velocitySample';
4
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { contributeTransformVelocity } from './transformVelocity';
2
+ export { addVelocity, beginVelocityFrame, clampVelocity, contributeVelocity, copyVelocity, createVelocityField, dampVelocity, ensureVelocitySample, getVelocity, hasVelocity, isVelocityZero, lengthOfVelocity, lerpVelocity, normalizeVelocity, scaleVelocity, subtractVelocity, suppressVelocity, zeroVelocity, } from './velocityField';
3
+ export { getVelocitySampleAt } from './velocitySample';
4
+ //# sourceMappingURL=contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,2 @@
1
- export { contributeTransformVelocity } from './transformVelocity';
2
- export { addVelocity, beginVelocityFrame, clampVelocity, contributeVelocity, copyVelocity, createVelocityField, dampVelocity, ensureVelocitySample, getVelocity, hasVelocity, isVelocityZero, lengthOfVelocity, lerpVelocity, normalizeVelocity, scaleVelocity, subtractVelocity, suppressVelocity, zeroVelocity, } from './velocityField';
3
- export { getVelocitySampleAt } from './velocitySample';
1
+ export { addVelocity, beginVelocityFrame, clampVelocity, contributeTransformVelocity, contributeVelocity, copyVelocity, createVelocityField, dampVelocity, getVelocity, getVelocitySampleAt, hasVelocity, isVelocityZero, lengthOfVelocity, lerpVelocity, normalizeVelocity, scaleVelocity, subtractVelocity, suppressVelocity, zeroVelocity, } from './contract';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,2BAA2B,EAC3B,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,GACb,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,2 @@
1
- export { contributeTransformVelocity } from './transformVelocity';
2
- export { addVelocity, beginVelocityFrame, clampVelocity, contributeVelocity, copyVelocity, createVelocityField, dampVelocity, ensureVelocitySample, getVelocity, hasVelocity, isVelocityZero, lengthOfVelocity, lerpVelocity, normalizeVelocity, scaleVelocity, subtractVelocity, suppressVelocity, zeroVelocity, } from './velocityField';
3
- export { getVelocitySampleAt } from './velocitySample';
1
+ export { addVelocity, beginVelocityFrame, clampVelocity, contributeTransformVelocity, contributeVelocity, copyVelocity, createVelocityField, dampVelocity, getVelocity, getVelocitySampleAt, hasVelocity, isVelocityZero, lengthOfVelocity, lerpVelocity, normalizeVelocity, scaleVelocity, subtractVelocity, suppressVelocity, zeroVelocity, } from './contract';
4
2
  //# 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,OAAO,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,2BAA2B,EAC3B,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,GACb,MAAM,YAAY,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { Transform2DNode, VelocityField } from '@flighthq/types';
1
+ import type { Transform2DNode, VelocityField } from '@flighthq/types/contract';
2
2
  export declare function contributeTransformVelocity<Traits extends object>(field: VelocityField, root: Readonly<Transform2DNode<Traits>>): void;
3
3
  //# sourceMappingURL=transformVelocity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transformVelocity.d.ts","sourceRoot":"","sources":["../src/transformVelocity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAatE,wBAAgB,2BAA2B,CAAC,MAAM,SAAS,MAAM,EAC/D,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,GACtC,IAAI,CAEN"}
1
+ {"version":3,"file":"transformVelocity.d.ts","sourceRoot":"","sources":["../src/transformVelocity.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAa/E,wBAAgB,2BAA2B,CAAC,MAAM,SAAS,MAAM,EAC/D,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,GACtC,IAAI,CAEN"}
@@ -1,5 +1,5 @@
1
- import { copyMatrix, createMatrix } from '@flighthq/geometry';
2
- import { ensureNodeWorldMatrix, getNodeChildAt, getNodeChildCount, getNodeWorldMatrix } from '@flighthq/node';
1
+ import { copyMatrix, createMatrix } from '@flighthq/geometry/contract';
2
+ import { ensureNodeWorldMatrix, getNodeChildAt, getNodeChildCount, getNodeWorldMatrix } from '@flighthq/node/contract';
3
3
  import { ensureVelocitySample } from './velocityField';
4
4
  // The default velocity contributor. Walks `root`'s subtree top-down, deriving each node's screen-space
5
5
  // velocity from the delta of its world transform since the previous frame, then commits the current world
@@ -1 +1 @@
1
- {"version":3,"file":"transformVelocity.js","sourceRoot":"","sources":["../src/transformVelocity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAG9G,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,uGAAuG;AACvG,0GAA0G;AAC1G,qGAAqG;AACrG,uGAAuG;AACvG,EAAE;AACF,2GAA2G;AAC3G,uGAAuG;AACvG,uGAAuG;AACvG,0BAA0B;AAC1B,MAAM,UAAU,2BAA2B,CACzC,KAAoB,EACpB,IAAuC;IAEvC,sBAAsB,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC;AAED,SAAS,sBAAsB,CAC7B,KAAoB,EACpB,IAAuC;IAEvC,MAAM,WAAW,GAAG,IAA+B,CAAC;IACpD,qBAAqB,CAAC,WAAW,CAAC,CAAC;IACnC,MAAM,KAAK,GA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AK,CAAC,OAAO,CAAC;IACrC,CAAC;IAED,IAAI,MAAM,CAAC,sBAAsB,KAAK,IAAI;QAAE,MAAM,CAAC,sBAAsB,GAAG,YAAY,EAAE,CAAC;IAC3F,UAAU,CAAC,MAAM,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC;IAEjD,qGAAqG;IACrG,oEAAoE;IACpE,MAAM,KAAK,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;QAC/B,MAAM,KAAK,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QAC7C,IAAI,KAAK,KAAK,IAAI;YAAE,sBAAsB,CAAC,KAAK,EAAE,KAAqD,CAAC,CAAC;IAC3G,CAAC;AACH,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Velocity2D, VelocityField, VelocitySample } from '@flighthq/types';
1
+ import type { Velocity2D, VelocityField, VelocitySample } from '@flighthq/types/contract';
2
2
  export declare function addVelocity(out: Velocity2D, a: Readonly<Velocity2D>, b: Readonly<Velocity2D>): Velocity2D;
3
3
  export declare function beginVelocityFrame(field: VelocityField): void;
4
4
  export declare function clampVelocity(out: Velocity2D, velocity: Readonly<Velocity2D>, maxLength: number): Velocity2D;
@@ -1 +1 @@
1
- {"version":3,"file":"velocityField.d.ts","sourceRoot":"","sources":["../src/velocityField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AASjF,wBAAgB,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,UAAU,CAMzG;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,CAE7D;AAID,wBAAgB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UAAU,EAAE,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,UAAU,CAM9G;AAGD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAE3E;AAGD,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,UAAU,CAIxD"}
@@ -1,3 +1,3 @@
1
- import type { Matrix, Velocity2D, VelocitySample } from '@flighthq/types';
1
+ import type { Matrix, Velocity2D, VelocitySample } from '@flighthq/types/contract';
2
2
  export declare function getVelocitySampleAt(sample: Readonly<VelocitySample>, currentWorldTransform: Readonly<Matrix>, pointX: number, pointY: number, out: Velocity2D): Velocity2D;
3
3
  //# sourceMappingURL=velocitySample.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"velocitySample.d.ts","sourceRoot":"","sources":["../src/velocitySample.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAQ1E,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,EAChC,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,EACvC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,UAAU,GACd,UAAU,CAoBZ"}
1
+ {"version":3,"file":"velocitySample.d.ts","sourceRoot":"","sources":["../src/velocitySample.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAQnF,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,EAChC,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,EACvC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,UAAU,GACd,UAAU,CAoBZ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/velocity",
3
- "version": "0.2.1-next.841.373388f",
3
+ "version": "0.3.0-next.1032.e2b99fc",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/flighthq/flight.git",
@@ -13,6 +13,10 @@
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
15
  "default": "./dist/index.js"
16
+ },
17
+ "./contract": {
18
+ "types": "./dist/contract.d.ts",
19
+ "default": "./dist/contract.js"
16
20
  }
17
21
  },
18
22
  "files": [
@@ -32,9 +36,9 @@
32
36
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
33
37
  },
34
38
  "dependencies": {
35
- "@flighthq/geometry": "0.2.1-next.841.373388f",
36
- "@flighthq/node": "0.2.1-next.841.373388f",
37
- "@flighthq/types": "0.2.1-next.841.373388f"
39
+ "@flighthq/geometry": "0.3.0-next.1032.e2b99fc",
40
+ "@flighthq/node": "0.3.0-next.1032.e2b99fc",
41
+ "@flighthq/types": "0.3.0-next.1032.e2b99fc"
38
42
  },
39
43
  "devDependencies": {
40
44
  "@flighthq/scene2d": "*",
@@ -1,5 +1,5 @@
1
- import { invalidateNodeLocalTransform } from '@flighthq/node';
2
- import { createDisplayObject } from '@flighthq/scene2d';
1
+ import { invalidateNodeLocalTransform } from '@flighthq/node/contract';
2
+ import { createDisplayObject } from '@flighthq/scene2d/contract';
3
3
 
4
4
  import { contributeTransformVelocity } from './transformVelocity';
5
5
  import { beginVelocityFrame, contributeVelocity, createVelocityField, getVelocity } from './velocityField';
@@ -1,4 +1,4 @@
1
- import { createMatrix } from '@flighthq/geometry';
1
+ import { createMatrix } from '@flighthq/geometry/contract';
2
2
 
3
3
  import { createVelocityField, ensureVelocitySample } from './velocityField';
4
4
  import { getVelocitySampleAt } from './velocitySample';