@flighthq/clip 0.5.1-next.903.f434bc2 → 0.5.1-next.905.5fbf787
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/package.json +7 -7
- package/src/clipRegion.test.ts +21 -1
package/README.md
CHANGED
|
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/clip`. 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/clip@0.5.1-next.
|
|
17
|
-
- [License](https://github.com/flighthq/flight/blob/
|
|
16
|
+
- [Source for @flighthq/clip@0.5.1-next.905.5fbf787](https://github.com/flighthq/flight/tree/5fbf7874064c384307542d68b4dcb6a895ff0dcf/packages/clip)
|
|
17
|
+
- [License](https://github.com/flighthq/flight/blob/5fbf7874064c384307542d68b4dcb6a895ff0dcf/LICENSE.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/clip",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.905.5fbf787",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/entity": "0.5.1-next.
|
|
42
|
-
"@flighthq/geometry": "0.5.1-next.
|
|
43
|
-
"@flighthq/log": "0.5.1-next.
|
|
44
|
-
"@flighthq/math": "0.5.1-next.
|
|
45
|
-
"@flighthq/path": "0.5.1-next.
|
|
46
|
-
"@flighthq/types": "0.5.1-next.
|
|
41
|
+
"@flighthq/entity": "0.5.1-next.905.5fbf787",
|
|
42
|
+
"@flighthq/geometry": "0.5.1-next.905.5fbf787",
|
|
43
|
+
"@flighthq/log": "0.5.1-next.905.5fbf787",
|
|
44
|
+
"@flighthq/math": "0.5.1-next.905.5fbf787",
|
|
45
|
+
"@flighthq/path": "0.5.1-next.905.5fbf787",
|
|
46
|
+
"@flighthq/types": "0.5.1-next.905.5fbf787"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"typescript": "^5.3.0"
|
package/src/clipRegion.test.ts
CHANGED
|
@@ -16,6 +16,9 @@ import {
|
|
|
16
16
|
createClipRegionFromRoundedRectangle,
|
|
17
17
|
equalsClipRegion,
|
|
18
18
|
getClipRegionBounds,
|
|
19
|
+
initializeClipRegionFromContours,
|
|
20
|
+
initializeClipRegionFromPath,
|
|
21
|
+
initializeClipRegionFromRectangle,
|
|
19
22
|
intersectClipRegions,
|
|
20
23
|
invalidateClipRegion,
|
|
21
24
|
isClipRegionEmpty,
|
|
@@ -326,6 +329,24 @@ describe('getClipRegionBounds', () => {
|
|
|
326
329
|
});
|
|
327
330
|
});
|
|
328
331
|
|
|
332
|
+
describe('initializeClipRegionFromContours', () => {
|
|
333
|
+
it('is the construction initializer of createClipRegionFromContours', () => {
|
|
334
|
+
expect(typeof initializeClipRegionFromContours).toBe('function');
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
describe('initializeClipRegionFromPath', () => {
|
|
339
|
+
it('is the construction initializer of createClipRegionFromPath', () => {
|
|
340
|
+
expect(typeof initializeClipRegionFromPath).toBe('function');
|
|
341
|
+
});
|
|
342
|
+
});
|
|
343
|
+
|
|
344
|
+
describe('initializeClipRegionFromRectangle', () => {
|
|
345
|
+
it('is the construction initializer of createClipRegionFromRectangle', () => {
|
|
346
|
+
expect(typeof initializeClipRegionFromRectangle).toBe('function');
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
|
|
329
350
|
describe('intersectClipRegions', () => {
|
|
330
351
|
it('produces a scissor-eligible rect when both inputs are rectangular', () => {
|
|
331
352
|
const a = createClipRegionFromRectangle(createRectangle(0, 0, 20, 20));
|
|
@@ -540,7 +561,6 @@ describe('setClipRegionReleaseGuard', () => {
|
|
|
540
561
|
expect(doubled).toEqual([]);
|
|
541
562
|
});
|
|
542
563
|
});
|
|
543
|
-
|
|
544
564
|
describe('setClipRegionToRectangle', () => {
|
|
545
565
|
it('retargets a contour clip to a rectangle form and bumps version', () => {
|
|
546
566
|
const path = createPath();
|