@flighthq/path 0.5.1-next.1471.4e82419 → 0.5.1-next.1505.5790c72
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 +7 -6
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +7 -6
- package/dist/contract.js.map +1 -1
- package/dist/index.d.ts +29 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/dist/pathMorph.d.ts +1 -2
- package/dist/pathMorph.d.ts.map +1 -1
- package/dist/pathMorph.js +1 -1
- package/dist/pathMorph.js.map +1 -1
- package/package.json +4 -4
- package/src/pathMorph.test.ts +1 -6
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/path`. The `@flighth
|
|
|
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/path@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/path@0.5.1-next.1505.5790c72](https://github.com/flighthq/flight/tree/5790c722bf2e004f1af3f1d1f9a8fa7469a0a449/packages/path)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/5790c722bf2e004f1af3f1d1f9a8fa7469a0a449/LICENSE.md)
|
package/dist/contract.d.ts
CHANGED
|
@@ -2,28 +2,29 @@ export * from './cleanPath';
|
|
|
2
2
|
export * from './containsPathPoint';
|
|
3
3
|
export * from './copyPath';
|
|
4
4
|
export * from './dashPath';
|
|
5
|
+
export * from './decimatePath';
|
|
6
|
+
export * from './explainPathMorphCreation';
|
|
7
|
+
export * from './explainStrokePathTessellation';
|
|
5
8
|
export * from './fitPathCurves';
|
|
6
9
|
export * from './flattenPath';
|
|
7
10
|
export * from './forEachPathSegment';
|
|
8
11
|
export * from './getPathBounds';
|
|
9
|
-
export * from './getPathCurvatureAtDistance';
|
|
10
12
|
export * from './getPathContourLengths';
|
|
13
|
+
export * from './getPathCurvatureAtDistance';
|
|
11
14
|
export * from './getPathLength';
|
|
12
15
|
export * from './getPathNearestPoint';
|
|
13
16
|
export * from './getPathPointAtDistance';
|
|
14
17
|
export * from './getPathSegmentAtParameter';
|
|
15
18
|
export * from './getPathSignedArea';
|
|
16
19
|
export * from './path';
|
|
17
|
-
export * from './pathMorph';
|
|
18
20
|
export * from './pathMeshPool';
|
|
21
|
+
export * from './pathMorph';
|
|
22
|
+
export * from './pathMorphGeometry';
|
|
19
23
|
export * from './reversePath';
|
|
20
|
-
export * from './decimatePath';
|
|
21
|
-
export * from './explainPathMorphCreation';
|
|
22
|
-
export * from './explainStrokePathTessellation';
|
|
23
24
|
export * from './strokePath';
|
|
25
|
+
export * from './strokePathGeometry';
|
|
24
26
|
export * from './tessellatePath';
|
|
25
27
|
export * from './tessellatePathTyped';
|
|
26
28
|
export * from './tessellateStrokePath';
|
|
27
29
|
export * from './transformPath';
|
|
28
|
-
export { initializePath } from './path';
|
|
29
30
|
//# 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,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"}
|
package/dist/contract.js
CHANGED
|
@@ -2,28 +2,29 @@ export * from './cleanPath';
|
|
|
2
2
|
export * from './containsPathPoint';
|
|
3
3
|
export * from './copyPath';
|
|
4
4
|
export * from './dashPath';
|
|
5
|
+
export * from './decimatePath';
|
|
6
|
+
export * from './explainPathMorphCreation';
|
|
7
|
+
export * from './explainStrokePathTessellation';
|
|
5
8
|
export * from './fitPathCurves';
|
|
6
9
|
export * from './flattenPath';
|
|
7
10
|
export * from './forEachPathSegment';
|
|
8
11
|
export * from './getPathBounds';
|
|
9
|
-
export * from './getPathCurvatureAtDistance';
|
|
10
12
|
export * from './getPathContourLengths';
|
|
13
|
+
export * from './getPathCurvatureAtDistance';
|
|
11
14
|
export * from './getPathLength';
|
|
12
15
|
export * from './getPathNearestPoint';
|
|
13
16
|
export * from './getPathPointAtDistance';
|
|
14
17
|
export * from './getPathSegmentAtParameter';
|
|
15
18
|
export * from './getPathSignedArea';
|
|
16
19
|
export * from './path';
|
|
17
|
-
export * from './pathMorph';
|
|
18
20
|
export * from './pathMeshPool';
|
|
21
|
+
export * from './pathMorph';
|
|
22
|
+
export * from './pathMorphGeometry';
|
|
19
23
|
export * from './reversePath';
|
|
20
|
-
export * from './decimatePath';
|
|
21
|
-
export * from './explainPathMorphCreation';
|
|
22
|
-
export * from './explainStrokePathTessellation';
|
|
23
24
|
export * from './strokePath';
|
|
25
|
+
export * from './strokePathGeometry';
|
|
24
26
|
export * from './tessellatePath';
|
|
25
27
|
export * from './tessellatePathTyped';
|
|
26
28
|
export * from './tessellateStrokePath';
|
|
27
29
|
export * from './transformPath';
|
|
28
|
-
export { initializePath } from './path';
|
|
29
30
|
//# 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,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './cleanPath';
|
|
2
|
+
export * from './containsPathPoint';
|
|
3
|
+
export * from './copyPath';
|
|
4
|
+
export * from './dashPath';
|
|
5
|
+
export * from './decimatePath';
|
|
6
|
+
export * from './explainPathMorphCreation';
|
|
7
|
+
export * from './explainStrokePathTessellation';
|
|
8
|
+
export * from './fitPathCurves';
|
|
9
|
+
export * from './flattenPath';
|
|
10
|
+
export * from './forEachPathSegment';
|
|
11
|
+
export * from './getPathBounds';
|
|
12
|
+
export * from './getPathContourLengths';
|
|
13
|
+
export * from './getPathCurvatureAtDistance';
|
|
14
|
+
export * from './getPathLength';
|
|
15
|
+
export * from './getPathNearestPoint';
|
|
16
|
+
export * from './getPathPointAtDistance';
|
|
17
|
+
export * from './getPathSegmentAtParameter';
|
|
18
|
+
export * from './getPathSignedArea';
|
|
19
|
+
export { appendPathArc, appendPathCircle, appendPathClose, appendPathCubicCurveTo, appendPathEllipse, appendPathEllipticalArcTo, appendPathLineTo, appendPathMoveTo, appendPathPolygon, appendPathPolyline, appendPathQuadraticCurveTo, appendPathRectangle, appendPathRoundedRectangle, appendPathRoundedRectangleWithCornerRadii, appendPathTangentArcTo, createPath, getPathLastPoint, } from './path';
|
|
20
|
+
export * from './pathMeshPool';
|
|
21
|
+
export { createPathMorph, samplePathMorph } from './pathMorph';
|
|
22
|
+
export { PathMorphIssueNone, PathMorphIssueWindingMismatch, PathMorphIssueContourCountMismatch, PathMorphIssueContourClosednessMismatch, PathMorphIssueContourOrientationMismatch, buildPathMorph, } from './pathMorphGeometry';
|
|
23
|
+
export * from './reversePath';
|
|
24
|
+
export * from './strokePath';
|
|
25
|
+
export * from './strokePathGeometry';
|
|
26
|
+
export * from './tessellatePath';
|
|
27
|
+
export * from './tessellatePathTyped';
|
|
28
|
+
export * from './tessellateStrokePath';
|
|
29
|
+
export * from './transformPath';
|
|
4
30
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,EACnB,0BAA0B,EAC1B,yCAAyC,EACzC,sBAAsB,EACtB,UAAU,EACV,gBAAgB,GACjB,MAAM,QAAQ,CAAC;AAChB,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,kCAAkC,EAClC,uCAAuC,EACvC,wCAAwC,EACxC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './cleanPath';
|
|
2
|
+
export * from './containsPathPoint';
|
|
3
|
+
export * from './copyPath';
|
|
4
|
+
export * from './dashPath';
|
|
5
|
+
export * from './decimatePath';
|
|
6
|
+
export * from './explainPathMorphCreation';
|
|
7
|
+
export * from './explainStrokePathTessellation';
|
|
8
|
+
export * from './fitPathCurves';
|
|
9
|
+
export * from './flattenPath';
|
|
10
|
+
export * from './forEachPathSegment';
|
|
11
|
+
export * from './getPathBounds';
|
|
12
|
+
export * from './getPathContourLengths';
|
|
13
|
+
export * from './getPathCurvatureAtDistance';
|
|
14
|
+
export * from './getPathLength';
|
|
15
|
+
export * from './getPathNearestPoint';
|
|
16
|
+
export * from './getPathPointAtDistance';
|
|
17
|
+
export * from './getPathSegmentAtParameter';
|
|
18
|
+
export * from './getPathSignedArea';
|
|
19
|
+
export { appendPathArc, appendPathCircle, appendPathClose, appendPathCubicCurveTo, appendPathEllipse, appendPathEllipticalArcTo, appendPathLineTo, appendPathMoveTo, appendPathPolygon, appendPathPolyline, appendPathQuadraticCurveTo, appendPathRectangle, appendPathRoundedRectangle, appendPathRoundedRectangleWithCornerRadii, appendPathTangentArcTo, createPath, getPathLastPoint, } from './path';
|
|
20
|
+
export * from './pathMeshPool';
|
|
21
|
+
export { createPathMorph, samplePathMorph } from './pathMorph';
|
|
22
|
+
export { PathMorphIssueNone, PathMorphIssueWindingMismatch, PathMorphIssueContourCountMismatch, PathMorphIssueContourClosednessMismatch, PathMorphIssueContourOrientationMismatch, buildPathMorph, } from './pathMorphGeometry';
|
|
23
|
+
export * from './reversePath';
|
|
24
|
+
export * from './strokePath';
|
|
25
|
+
export * from './strokePathGeometry';
|
|
26
|
+
export * from './tessellatePath';
|
|
27
|
+
export * from './tessellatePathTyped';
|
|
28
|
+
export * from './tessellateStrokePath';
|
|
29
|
+
export * from './transformPath';
|
|
2
30
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,EACnB,0BAA0B,EAC1B,yCAAyC,EACzC,sBAAsB,EACtB,UAAU,EACV,gBAAgB,GACjB,MAAM,QAAQ,CAAC;AAChB,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,kCAAkC,EAClC,uCAAuC,EACvC,wCAAwC,EACxC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC"}
|
package/dist/pathMorph.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Path, PathMorph } from '@flighthq/types/contract';
|
|
2
2
|
export type { PathMorph } from '@flighthq/types/contract';
|
|
3
3
|
export declare function createPathMorph(start: Readonly<Path>, end: Readonly<Path>): PathMorph | null;
|
|
4
|
-
export declare function initializePathMorph(out: EntityConstruction<PathMorph>, morph: Readonly<PathMorph>): void;
|
|
5
4
|
export declare function samplePathMorph(out: Path, morph: Readonly<PathMorph>, progress: number): void;
|
|
6
5
|
//# sourceMappingURL=pathMorph.d.ts.map
|
package/dist/pathMorph.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pathMorph.d.ts","sourceRoot":"","sources":["../src/pathMorph.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"pathMorph.d.ts","sourceRoot":"","sources":["../src/pathMorph.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAsB,IAAI,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEpF,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAS1D,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,IAAI,CAM5F;AAYD,wBAAgB,eAAe,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAoB7F"}
|
package/dist/pathMorph.js
CHANGED
|
@@ -13,7 +13,7 @@ export function createPathMorph(start, end) {
|
|
|
13
13
|
initializePathMorph(out, morph);
|
|
14
14
|
return finishEntity(out);
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
function initializePathMorph(out, morph) {
|
|
17
17
|
out.commands = morph.commands;
|
|
18
18
|
out.endData = morph.endData;
|
|
19
19
|
out.startData = morph.startData;
|
package/dist/pathMorph.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pathMorph.js","sourceRoot":"","sources":["../src/pathMorph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAKzE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,qGAAqG;AACrG,qGAAqG;AACrG,mGAAmG;AACnG,mGAAmG;AACnG,gGAAgG;AAChG,MAAM,UAAU,eAAe,CAAC,KAAqB,EAAE,GAAmB;IACxE,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC;IAC/C,IAAI,KAAK,KAAK,IAAI;Q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,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/path",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.1505.5790c72",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/entity": "0.5.1-next.
|
|
42
|
-
"@flighthq/math": "0.5.1-next.
|
|
43
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/entity": "0.5.1-next.1505.5790c72",
|
|
42
|
+
"@flighthq/math": "0.5.1-next.1505.5790c72",
|
|
43
|
+
"@flighthq/types": "0.5.1-next.1505.5790c72"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"typescript": "^5.3.0"
|
package/src/pathMorph.test.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
appendPathRectangle,
|
|
11
11
|
createPath,
|
|
12
12
|
} from './path';
|
|
13
|
-
import { createPathMorph,
|
|
13
|
+
import { createPathMorph, samplePathMorph } from './pathMorph';
|
|
14
14
|
|
|
15
15
|
describe('createPathMorph', () => {
|
|
16
16
|
it('normalizes different line and quadratic verbs to one cubic command stream', () => {
|
|
@@ -203,11 +203,6 @@ describe('createPathMorph', () => {
|
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
205
|
|
|
206
|
-
describe('initializePathMorph', () => {
|
|
207
|
-
it('is the construction initializer of createPathMorph', () => {
|
|
208
|
-
expect(typeof initializePathMorph).toBe('function');
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
206
|
describe('samplePathMorph', () => {
|
|
212
207
|
it('samples the prepared endpoints at zero and one', () => {
|
|
213
208
|
const start = createPath();
|