@synnaxlabs/x 0.38.0 → 0.38.1
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/.turbo/turbo-build.log +19 -19
- package/dist/binary.js +1 -1
- package/dist/{box-Cto-5Uxu.js → box-DPJAbf32.js} +64 -64
- package/dist/box-Daep7oxr.cjs +1 -0
- package/dist/box.cjs +1 -1
- package/dist/box.js +1 -1
- package/dist/caseconv.js +1 -1
- package/dist/{external-vFGUdZf6.js → external-CtAt3tnU.js} +14 -15
- package/dist/external-DSKjMZ7J.cjs +1 -0
- package/dist/{index-OHIRoCei.js → index-C3QzbIwt.js} +1 -1
- package/dist/{index-BfDeGfej.js → index-DizUWH6z.js} +8 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +9 -9
- package/dist/{location-C5Ot4MVG.js → location-BVkZhfQG.js} +1 -1
- package/dist/location.js +1 -1
- package/dist/{position-CvSNZkSD.cjs → position-96CBRKEd.cjs} +1 -1
- package/dist/{position-GeF1oEYk.js → position-uVDP52PM.js} +2 -2
- package/dist/position.cjs +1 -1
- package/dist/position.js +1 -1
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +1 -1
- package/dist/{scale-BTgf0Mr-.cjs → scale-Bzjm1mhv.cjs} +1 -1
- package/dist/{scale-Dh1UNRoC.js → scale-D_UMXSZN.js} +2 -2
- package/dist/scale.cjs +1 -1
- package/dist/scale.js +1 -1
- package/dist/{series-DxDIugLj.js → series-Cwc_z2OS.js} +5 -5
- package/dist/{series-BMhEEJZL.cjs → series-DuOxifEy.cjs} +1 -1
- package/dist/spatial.cjs +1 -1
- package/dist/spatial.js +4 -4
- package/dist/src/breaker/breaker.d.ts.map +1 -1
- package/dist/src/breaker/index.d.ts.map +1 -1
- package/dist/src/caseconv/caseconv.d.ts.map +1 -1
- package/dist/src/runtime/os.d.ts +7 -7
- package/dist/src/runtime/os.d.ts.map +1 -1
- package/dist/src/sleep/index.d.ts.map +1 -1
- package/dist/src/sleep/sleep.d.ts.map +1 -1
- package/dist/src/testutil/index.d.ts +2 -0
- package/dist/src/testutil/index.d.ts.map +1 -0
- package/dist/src/testutil/testutil.d.ts +2 -0
- package/dist/src/testutil/testutil.d.ts.map +1 -0
- package/dist/src/url/url.d.ts +1 -1
- package/dist/src/url/url.d.ts.map +1 -1
- package/dist/src/zodutil/zodutil.d.ts.map +1 -1
- package/dist/telem.cjs +1 -1
- package/dist/telem.js +1 -1
- package/eslint.config.js +1 -1
- package/package.json +3 -3
- package/src/binary/encoder.spec.ts +1 -1
- package/src/binary/encoder.ts +1 -1
- package/src/binary/index.ts +1 -1
- package/src/breaker/breaker.spec.ts +9 -0
- package/src/breaker/breaker.ts +9 -0
- package/src/breaker/index.ts +9 -0
- package/src/caseconv/caseconv.spec.ts +1 -1
- package/src/caseconv/caseconv.ts +16 -8
- package/src/caseconv/index.ts +1 -1
- package/src/change/change.ts +1 -1
- package/src/change/index.ts +1 -1
- package/src/clamp/clamp.ts +1 -1
- package/src/clamp/index.ts +1 -1
- package/src/compare/compare.spec.ts +1 -1
- package/src/compare/compare.ts +1 -1
- package/src/compare/index.ts +1 -1
- package/src/control/control.ts +1 -1
- package/src/control/index.ts +1 -1
- package/src/debounce/debounce.spec.ts +1 -1
- package/src/debounce/debounce.ts +1 -1
- package/src/debounce/index.ts +1 -1
- package/src/deep/copy.ts +1 -1
- package/src/deep/delete.spec.ts +1 -1
- package/src/deep/delete.ts +1 -1
- package/src/deep/difference.spec.ts +1 -1
- package/src/deep/difference.ts +1 -1
- package/src/deep/equal.spec.ts +1 -1
- package/src/deep/equal.ts +1 -1
- package/src/deep/external.ts +1 -1
- package/src/deep/index.ts +1 -1
- package/src/deep/merge.spec.ts +1 -1
- package/src/deep/merge.ts +1 -1
- package/src/deep/partial.ts +1 -1
- package/src/deep/path.spec.ts +2 -3
- package/src/deep/path.ts +3 -3
- package/src/destructor.ts +1 -1
- package/src/errors/errors.ts +1 -1
- package/src/errors/index.ts +1 -1
- package/src/id/id.ts +6 -6
- package/src/id/index.ts +1 -1
- package/src/identity.ts +1 -1
- package/src/index.ts +1 -1
- package/src/invert.ts +1 -1
- package/src/join.ts +1 -1
- package/src/kv/external.ts +1 -1
- package/src/kv/index.ts +1 -1
- package/src/kv/mock.ts +1 -1
- package/src/kv/types.ts +1 -1
- package/src/link/index.ts +1 -1
- package/src/link/link.spec.ts +1 -1
- package/src/link/link.ts +1 -1
- package/src/math/index.ts +1 -1
- package/src/math/math.spec.ts +1 -1
- package/src/math/math.ts +1 -1
- package/src/migrate/index.ts +1 -1
- package/src/migrate/migrate.spec.ts +1 -1
- package/src/migrate/migrate.ts +1 -1
- package/src/mock/MockGLBufferController.ts +1 -1
- package/src/mock/index.ts +1 -1
- package/src/numeric/index.ts +1 -1
- package/src/numeric/numeric.ts +1 -1
- package/src/observe/index.ts +1 -1
- package/src/observe/observe.ts +1 -1
- package/src/observe/obsever.spec.ts +1 -1
- package/src/optional.ts +1 -1
- package/src/primitive.ts +1 -1
- package/src/record.spec.ts +9 -0
- package/src/record.ts +1 -1
- package/src/renderable.ts +1 -1
- package/src/runtime/detect.ts +3 -3
- package/src/runtime/external.ts +1 -1
- package/src/runtime/index.ts +1 -1
- package/src/runtime/os.ts +20 -20
- package/src/search.ts +1 -1
- package/src/shallowCopy.ts +1 -1
- package/src/sleep/index.ts +9 -0
- package/src/sleep/sleep.ts +9 -0
- package/src/spatial/base.ts +1 -1
- package/src/spatial/bounds/bounds.spec.ts +4 -3
- package/src/spatial/bounds/bounds.ts +4 -4
- package/src/spatial/bounds/index.ts +1 -1
- package/src/spatial/box/box.spec.ts +1 -1
- package/src/spatial/box/box.ts +2 -2
- package/src/spatial/box/index.ts +1 -1
- package/src/spatial/dimensions/dimensions.spec.ts +1 -1
- package/src/spatial/dimensions/dimensions.ts +1 -1
- package/src/spatial/dimensions/index.ts +1 -1
- package/src/spatial/direction/direction.spec.ts +1 -1
- package/src/spatial/direction/direction.ts +1 -1
- package/src/spatial/direction/index.ts +1 -1
- package/src/spatial/external.ts +1 -1
- package/src/spatial/index.ts +1 -1
- package/src/spatial/location/index.ts +1 -1
- package/src/spatial/location/location.spec.ts +1 -1
- package/src/spatial/location/location.ts +2 -2
- package/src/spatial/position/index.ts +1 -1
- package/src/spatial/position/position.spec.ts +1 -1
- package/src/spatial/position/position.ts +1 -1
- package/src/spatial/scale/index.ts +1 -1
- package/src/spatial/scale/scale.spec.ts +1 -1
- package/src/spatial/scale/scale.ts +2 -2
- package/src/spatial/spatial.ts +1 -1
- package/src/spatial/xy/index.ts +1 -1
- package/src/spatial/xy/xy.spec.ts +1 -1
- package/src/spatial/xy/xy.ts +1 -1
- package/src/strings/index.ts +1 -1
- package/src/strings/strings.spec.ts +1 -1
- package/src/strings/strings.ts +1 -1
- package/src/telem/generate.ts +1 -1
- package/src/telem/gl.ts +1 -1
- package/src/telem/index.ts +1 -1
- package/src/telem/series.spec.ts +1 -1
- package/src/telem/series.ts +4 -4
- package/src/telem/telem.spec.ts +2 -2
- package/src/telem/telem.ts +1 -1
- package/src/testutil/index.ts +10 -0
- package/src/testutil/testutil.ts +14 -0
- package/src/toArray.ts +1 -1
- package/src/transform.ts +1 -1
- package/src/unique/index.ts +1 -1
- package/src/unique/unique.spec.ts +1 -1
- package/src/unique/unique.ts +1 -1
- package/src/url/index.ts +1 -1
- package/src/url/url.spec.ts +1 -1
- package/src/url/url.ts +2 -2
- package/src/worker/index.ts +1 -1
- package/src/worker/worker.spec.ts +1 -1
- package/src/worker/worker.ts +1 -1
- package/src/zodutil/index.ts +1 -1
- package/src/zodutil/zodutil.spec.ts +1 -1
- package/src/zodutil/zodutil.ts +2 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/vite.config.ts +1 -1
- package/dist/box-BZ6d2d5A.cjs +0 -1
- package/dist/external-Cax-LfQW.cjs +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @synnaxlabs/x@0.38.
|
|
2
|
+
> @synnaxlabs/x@0.38.1 build /home/runner/work/synnax/synnax/x/ts
|
|
3
3
|
> tsc --noEmit && vite build
|
|
4
4
|
|
|
5
5
|
[34m Synnax - Production mode[0m
|
|
@@ -41,32 +41,32 @@ computing gzip size...
|
|
|
41
41
|
[2mdist/[22m[36mspatial.js [39m[1m[2m 0.58 kB[22m[1m[22m[2m │ gzip: 0.28 kB[22m
|
|
42
42
|
[2mdist/[22m[36mdirection-CScbfCdT.js [39m[1m[2m 0.65 kB[22m[1m[22m[2m │ gzip: 0.37 kB[22m
|
|
43
43
|
[2mdist/[22m[36mzodutil-BfrF8jE3.js [39m[1m[2m 0.77 kB[22m[1m[22m[2m │ gzip: 0.48 kB[22m
|
|
44
|
-
[2mdist/[22m[36mexternal-
|
|
44
|
+
[2mdist/[22m[36mexternal-CtAt3tnU.js [39m[1m[2m 0.99 kB[22m[1m[22m[2m │ gzip: 0.56 kB[22m
|
|
45
45
|
[2mdist/[22m[36mexternal-DqPrWKvU.js [39m[1m[2m 1.07 kB[22m[1m[22m[2m │ gzip: 0.46 kB[22m
|
|
46
46
|
[2mdist/[22m[36mworker.js [39m[1m[2m 1.17 kB[22m[1m[22m[2m │ gzip: 0.53 kB[22m
|
|
47
47
|
[2mdist/[22m[36mbase-DnZzEvvz.js [39m[1m[2m 1.21 kB[22m[1m[22m[2m │ gzip: 0.51 kB[22m
|
|
48
48
|
[2mdist/[22m[36mobserve.js [39m[1m[2m 1.41 kB[22m[1m[22m[2m │ gzip: 0.60 kB[22m
|
|
49
49
|
[2mdist/[22m[36mdimensions-D-1PnJVI.js [39m[1m[2m 1.49 kB[22m[1m[22m[2m │ gzip: 0.66 kB[22m
|
|
50
50
|
[2mdist/[22m[36mpath-DD6ytXzr.js [39m[1m[2m 1.79 kB[22m[1m[22m[2m │ gzip: 0.72 kB[22m
|
|
51
|
-
[2mdist/[22m[36mindex-
|
|
51
|
+
[2mdist/[22m[36mindex-DizUWH6z.js [39m[1m[2m 1.89 kB[22m[1m[22m[2m │ gzip: 0.88 kB[22m
|
|
52
52
|
[2mdist/[22m[36murl.js [39m[1m[2m 1.98 kB[22m[1m[22m[2m │ gzip: 0.87 kB[22m
|
|
53
|
-
[2mdist/[22m[36mposition-
|
|
54
|
-
[2mdist/[22m[36mlocation-
|
|
53
|
+
[2mdist/[22m[36mposition-uVDP52PM.js [39m[1m[2m 2.25 kB[22m[1m[22m[2m │ gzip: 1.06 kB[22m
|
|
54
|
+
[2mdist/[22m[36mlocation-BVkZhfQG.js [39m[1m[2m 2.81 kB[22m[1m[22m[2m │ gzip: 1.16 kB[22m
|
|
55
55
|
[2mdist/[22m[36mindex-BVC_8Cg9.js [39m[1m[2m 2.91 kB[22m[1m[22m[2m │ gzip: 1.15 kB[22m
|
|
56
|
-
[2mdist/[22m[36mindex-
|
|
56
|
+
[2mdist/[22m[36mindex-C3QzbIwt.js [39m[1m[2m 2.95 kB[22m[1m[22m[2m │ gzip: 1.12 kB[22m
|
|
57
57
|
[2mdist/[22m[36mdeep.js [39m[1m[2m 3.23 kB[22m[1m[22m[2m │ gzip: 1.28 kB[22m
|
|
58
58
|
[2mdist/[22m[36mxy-DxjPL2DZ.js [39m[1m[2m 3.76 kB[22m[1m[22m[2m │ gzip: 1.43 kB[22m
|
|
59
|
-
[2mdist/[22m[36mbox-
|
|
59
|
+
[2mdist/[22m[36mbox-DPJAbf32.js [39m[1m[2m 6.13 kB[22m[1m[22m[2m │ gzip: 2.17 kB[22m
|
|
60
60
|
[2mdist/[22m[36mbounds-BtccGJW0.js [39m[1m[2m 6.52 kB[22m[1m[22m[2m │ gzip: 2.06 kB[22m
|
|
61
|
-
[2mdist/[22m[36mscale-
|
|
62
|
-
[2mdist/[22m[36mindex.js [39m[1m[2m 9.02 kB[22m[1m[22m[2m │ gzip: 3.
|
|
63
|
-
[2mdist/[22m[36mseries-
|
|
64
|
-
[vite:dts] Declaration files built in
|
|
61
|
+
[2mdist/[22m[36mscale-D_UMXSZN.js [39m[1m[2m 6.82 kB[22m[1m[22m[2m │ gzip: 2.03 kB[22m
|
|
62
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m 9.02 kB[22m[1m[22m[2m │ gzip: 3.36 kB[22m
|
|
63
|
+
[2mdist/[22m[36mseries-Cwc_z2OS.js [39m[1m[2m63.74 kB[22m[1m[22m[2m │ gzip: 14.00 kB[22m
|
|
64
|
+
[vite:dts] Declaration files built in 5143ms.
|
|
65
65
|
|
|
66
66
|
Generated an empty chunk: "destructor".
|
|
67
67
|
[2mdist/[22m[36mdestructor.cjs [39m[1m[2m 0.01 kB[22m[1m[22m[2m │ gzip: 0.03 kB[22m
|
|
68
68
|
[2mdist/[22m[36mxy.cjs [39m[1m[2m 0.13 kB[22m[1m[22m[2m │ gzip: 0.14 kB[22m
|
|
69
|
-
[2mdist/[22m[36mbox.cjs [39m[1m[2m 0.14 kB[22m[1m[22m[2m │ gzip: 0.
|
|
69
|
+
[2mdist/[22m[36mbox.cjs [39m[1m[2m 0.14 kB[22m[1m[22m[2m │ gzip: 0.14 kB[22m
|
|
70
70
|
[2mdist/[22m[36mscale.cjs [39m[1m[2m 0.14 kB[22m[1m[22m[2m │ gzip: 0.15 kB[22m
|
|
71
71
|
[2mdist/[22m[36munique.cjs [39m[1m[2m 0.15 kB[22m[1m[22m[2m │ gzip: 0.15 kB[22m
|
|
72
72
|
[2mdist/[22m[36mkv.cjs [39m[1m[2m 0.15 kB[22m[1m[22m[2m │ gzip: 0.15 kB[22m
|
|
@@ -93,9 +93,9 @@ Generated an empty chunk: "destructor".
|
|
|
93
93
|
[2mdist/[22m[36mdirection-D7qoo_GJ.cjs [39m[1m[2m 0.53 kB[22m[1m[22m[2m │ gzip: 0.34 kB[22m
|
|
94
94
|
[2mdist/[22m[36mtelem.cjs [39m[1m[2m 0.58 kB[22m[1m[22m[2m │ gzip: 0.28 kB[22m
|
|
95
95
|
[2mdist/[22m[36mzodutil-DFJyyQd2.cjs [39m[1m[2m 0.62 kB[22m[1m[22m[2m │ gzip: 0.42 kB[22m
|
|
96
|
-
[2mdist/[22m[36mspatial.cjs [39m[1m[2m 0.63 kB[22m[1m[22m[2m │ gzip: 0.
|
|
96
|
+
[2mdist/[22m[36mspatial.cjs [39m[1m[2m 0.63 kB[22m[1m[22m[2m │ gzip: 0.32 kB[22m
|
|
97
97
|
[2mdist/[22m[36mexternal-C-dNgNQw.cjs [39m[1m[2m 0.79 kB[22m[1m[22m[2m │ gzip: 0.40 kB[22m
|
|
98
|
-
[2mdist/[22m[36mexternal-
|
|
98
|
+
[2mdist/[22m[36mexternal-DSKjMZ7J.cjs [39m[1m[2m 0.79 kB[22m[1m[22m[2m │ gzip: 0.49 kB[22m
|
|
99
99
|
[2mdist/[22m[36mworker.cjs [39m[1m[2m 0.94 kB[22m[1m[22m[2m │ gzip: 0.49 kB[22m
|
|
100
100
|
[2mdist/[22m[36mobserve.cjs [39m[1m[2m 1.00 kB[22m[1m[22m[2m │ gzip: 0.47 kB[22m
|
|
101
101
|
[2mdist/[22m[36murl.cjs [39m[1m[2m 1.10 kB[22m[1m[22m[2m │ gzip: 0.60 kB[22m
|
|
@@ -103,15 +103,15 @@ Generated an empty chunk: "destructor".
|
|
|
103
103
|
[2mdist/[22m[36mpath-1tZLZ4AN.cjs [39m[1m[2m 1.35 kB[22m[1m[22m[2m │ gzip: 0.66 kB[22m
|
|
104
104
|
[2mdist/[22m[36mbase-B48bPNx5.cjs [39m[1m[2m 1.38 kB[22m[1m[22m[2m │ gzip: 0.57 kB[22m
|
|
105
105
|
[2mdist/[22m[36mindex-Dd8DLyMx.cjs [39m[1m[2m 1.38 kB[22m[1m[22m[2m │ gzip: 0.71 kB[22m
|
|
106
|
-
[2mdist/[22m[36mposition-
|
|
106
|
+
[2mdist/[22m[36mposition-96CBRKEd.cjs [39m[1m[2m 1.71 kB[22m[1m[22m[2m │ gzip: 0.94 kB[22m
|
|
107
107
|
[2mdist/[22m[36mindex-BG3Scw3G.cjs [39m[1m[2m 2.24 kB[22m[1m[22m[2m │ gzip: 1.04 kB[22m
|
|
108
108
|
[2mdist/[22m[36mindex-CnclyYpG.cjs [39m[1m[2m 2.30 kB[22m[1m[22m[2m │ gzip: 1.01 kB[22m
|
|
109
109
|
[2mdist/[22m[36mdeep.cjs [39m[1m[2m 2.39 kB[22m[1m[22m[2m │ gzip: 1.08 kB[22m
|
|
110
110
|
[2mdist/[22m[36mlocation-BIet4Mig.cjs [39m[1m[2m 2.40 kB[22m[1m[22m[2m │ gzip: 1.05 kB[22m
|
|
111
111
|
[2mdist/[22m[36mxy-Budz-qz-.cjs [39m[1m[2m 2.75 kB[22m[1m[22m[2m │ gzip: 1.28 kB[22m
|
|
112
|
-
[2mdist/[22m[36mscale-
|
|
113
|
-
[2mdist/[22m[36mbox-
|
|
112
|
+
[2mdist/[22m[36mscale-Bzjm1mhv.cjs [39m[1m[2m 4.37 kB[22m[1m[22m[2m │ gzip: 1.59 kB[22m
|
|
113
|
+
[2mdist/[22m[36mbox-Daep7oxr.cjs [39m[1m[2m 4.74 kB[22m[1m[22m[2m │ gzip: 1.95 kB[22m
|
|
114
114
|
[2mdist/[22m[36mbounds-8aFLdbEj.cjs [39m[1m[2m 4.89 kB[22m[1m[22m[2m │ gzip: 1.80 kB[22m
|
|
115
115
|
[2mdist/[22m[36mindex.cjs [39m[1m[2m 7.44 kB[22m[1m[22m[2m │ gzip: 2.92 kB[22m
|
|
116
|
-
[2mdist/[22m[36mseries-
|
|
117
|
-
[32m✓ built in
|
|
116
|
+
[2mdist/[22m[36mseries-DuOxifEy.cjs [39m[1m[2m36.54 kB[22m[1m[22m[2m │ gzip: 9.70 kB[22m
|
|
117
|
+
[32m✓ built in 5.73s[39m
|
package/dist/binary.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { z as x } from "zod";
|
|
2
2
|
import { c as M } from "./direction-CScbfCdT.js";
|
|
3
|
-
import { c as S, T as E, B as H, b as Z, d as q, e as N, f as D
|
|
4
|
-
import { Z as p, O as
|
|
5
|
-
import { x as j, X as P, Y } from "./base-DnZzEvvz.js";
|
|
6
|
-
const h = x.union([x.number(), x.string()]),
|
|
3
|
+
import { c as S, T as E, B as H, b as Z, d as q, e as N, f as D } from "./location-BVkZhfQG.js";
|
|
4
|
+
import { Z as p, O as F, e as $, t as O, c as G, a as C } from "./xy-DxjPL2DZ.js";
|
|
5
|
+
import { x as j, X as P, Y as X } from "./base-DnZzEvvz.js";
|
|
6
|
+
const h = x.union([x.number(), x.string()]), Y = x.object({
|
|
7
7
|
top: h,
|
|
8
8
|
left: h,
|
|
9
9
|
width: h,
|
|
10
10
|
height: h
|
|
11
|
-
}),
|
|
11
|
+
}), U = x.object({
|
|
12
12
|
left: x.number(),
|
|
13
13
|
top: x.number(),
|
|
14
14
|
right: x.number(),
|
|
15
15
|
bottom: x.number()
|
|
16
|
-
}),
|
|
16
|
+
}), k = x.object({
|
|
17
17
|
one: j,
|
|
18
18
|
two: j,
|
|
19
19
|
root: S
|
|
20
|
-
}), R = { one: p, two: p, root: E },
|
|
20
|
+
}), R = { one: p, two: p, root: E }, J = { one: p, two: F, root: H }, W = (t, o) => ({
|
|
21
21
|
one: t.one,
|
|
22
22
|
two: t.two,
|
|
23
23
|
root: o ?? t.root
|
|
@@ -39,7 +39,7 @@ const h = x.union([x.number(), x.string()]), U = x.object({
|
|
|
39
39
|
x: s.one.x + o.signedWidth,
|
|
40
40
|
y: s.one.y + o.signedHeight
|
|
41
41
|
} : s.two = o, s));
|
|
42
|
-
},
|
|
42
|
+
}, K = (t, o, e) => {
|
|
43
43
|
const n = c(t);
|
|
44
44
|
if (typeof o == "string") {
|
|
45
45
|
if (e == null) throw new Error("Invalid arguments for resize");
|
|
@@ -53,17 +53,17 @@ const h = x.union([x.number(), x.string()]), U = x.object({
|
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
55
|
return c(n.one, o, void 0, void 0, n.root);
|
|
56
|
-
},
|
|
56
|
+
}, Q = (t, o, e = !0) => {
|
|
57
57
|
const n = c(t);
|
|
58
58
|
let r = (s, i) => s < i;
|
|
59
|
-
return e && (r = (s, i) => s <= i), "one" in o ? r(y(n), y(o)) && r(d(o), d(n)) && r(u(n), u(o)) && r(
|
|
60
|
-
},
|
|
59
|
+
return e && (r = (s, i) => s <= i), "one" in o ? r(y(n), y(o)) && r(d(o), d(n)) && r(u(n), u(o)) && r(w(o), w(n)) : r(y(n), o.x) && r(o.x, d(n)) && r(u(n), o.y) && r(o.y, w(n));
|
|
60
|
+
}, V = (t, o) => $(t.one, o.one) && $(t.two, o.two) && Z(t.root, o.root), z = (t) => ({
|
|
61
61
|
width: a(t),
|
|
62
62
|
height: f(t)
|
|
63
|
-
}),
|
|
63
|
+
}), v = (t) => ({
|
|
64
64
|
signedWidth: _(t),
|
|
65
65
|
signedHeight: b(t)
|
|
66
|
-
}),
|
|
66
|
+
}), tt = (t) => ({
|
|
67
67
|
top: u(t),
|
|
68
68
|
left: y(t),
|
|
69
69
|
width: a(t),
|
|
@@ -74,19 +74,19 @@ const h = x.union([x.number(), x.string()]), U = x.object({
|
|
|
74
74
|
}, g = (t, o) => {
|
|
75
75
|
const e = c(t);
|
|
76
76
|
return {
|
|
77
|
-
x: o.x === "center" ? T(e).x :
|
|
78
|
-
y: o.y === "center" ? T(e).y :
|
|
77
|
+
x: o.x === "center" ? T(e).x : l(e, o.x),
|
|
78
|
+
y: o.y === "center" ? T(e).y : l(e, o.y)
|
|
79
79
|
};
|
|
80
|
-
},
|
|
80
|
+
}, l = (t, o) => {
|
|
81
81
|
const e = c(t), n = q(e.root).includes(o) ? Math.min : Math.max;
|
|
82
82
|
return P.includes(o) ? n(e.one.x, e.two.x) : n(e.one.y, e.two.y);
|
|
83
|
-
},
|
|
83
|
+
}, ot = (t) => t.one.x === t.two.x && t.one.y === t.two.y, a = (t) => B(t, "x"), f = (t) => B(t, "y"), _ = (t) => {
|
|
84
84
|
const o = c(t);
|
|
85
85
|
return o.two.x - o.one.x;
|
|
86
86
|
}, b = (t) => {
|
|
87
87
|
const o = c(t);
|
|
88
88
|
return o.two.y - o.one.y;
|
|
89
|
-
}, A = (t) => g(t, E),
|
|
89
|
+
}, A = (t) => g(t, E), nt = (t) => g(t, N), et = (t) => g(t, H), st = (t) => g(t, D), d = (t) => l(t, "right"), w = (t) => l(t, "bottom"), y = (t) => l(t, "left"), u = (t) => l(t, "top"), T = (t) => O(A(t), {
|
|
90
90
|
x: _(t) / 2,
|
|
91
91
|
y: b(t) / 2
|
|
92
92
|
}), I = (t) => {
|
|
@@ -94,26 +94,26 @@ const h = x.union([x.number(), x.string()]), U = x.object({
|
|
|
94
94
|
return o.root.x === "left" ? y(o) : d(o);
|
|
95
95
|
}, L = (t) => {
|
|
96
96
|
const o = c(t);
|
|
97
|
-
return o.root.y === "top" ? u(o) :
|
|
98
|
-
},
|
|
97
|
+
return o.root.y === "top" ? u(o) : w(o);
|
|
98
|
+
}, rt = (t) => ({ x: I(t), y: L(t) }), ct = (t) => {
|
|
99
99
|
const o = c(t);
|
|
100
100
|
return { lower: o.one.x, upper: o.two.x };
|
|
101
|
-
},
|
|
101
|
+
}, it = (t) => {
|
|
102
102
|
const o = c(t);
|
|
103
103
|
return { lower: o.one.y, upper: o.two.y };
|
|
104
|
-
},
|
|
105
|
-
const e = c(t), n = P.includes(o) ? "x" :
|
|
106
|
-
if (n === null) throw new Error(`Invalid location: ${
|
|
104
|
+
}, xt = (t, o) => W(t, o), yt = (t, o) => {
|
|
105
|
+
const e = c(t), n = P.includes(o) ? "x" : X.includes(o) ? "y" : null;
|
|
106
|
+
if (n === null) throw new Error(`Invalid location: ${o}`);
|
|
107
107
|
const r = o === "top" || o === "left" ? Math.min : Math.max, s = { ...e.one }, i = { ...e.two };
|
|
108
108
|
return s[n] = r(e.one[n], e.two[n]), i[n] = r(e.one[n], e.two[n]), [s, i];
|
|
109
|
-
},
|
|
109
|
+
}, ut = (t, o) => {
|
|
110
110
|
const e = c(t), n = c(o), r = I(n) + (a(n) - a(e)) / 2, s = L(n) + (f(n) - f(e)) / 2;
|
|
111
111
|
return c({ x: r, y: s }, z(e));
|
|
112
|
-
},
|
|
112
|
+
}, at = (t) => typeof t != "object" || t == null ? !1 : "one" in t && "two" in t && "root" in t, ft = (t) => a(t) / f(t), dt = (t, o, e) => {
|
|
113
113
|
if (typeof o == "string") {
|
|
114
114
|
if (e == null) throw new Error("Undefined amount passed into box.translate");
|
|
115
115
|
const r = M(o);
|
|
116
|
-
o =
|
|
116
|
+
o = G(r, e);
|
|
117
117
|
}
|
|
118
118
|
const n = c(t);
|
|
119
119
|
return c(
|
|
@@ -124,9 +124,9 @@ const h = x.union([x.number(), x.string()]), U = x.object({
|
|
|
124
124
|
n.root
|
|
125
125
|
);
|
|
126
126
|
}, wt = (t, o) => {
|
|
127
|
-
const e = Math.max(y(t), y(o)), n = Math.max(u(t), u(o)), r = Math.min(d(t), d(o)), s = Math.min(
|
|
127
|
+
const e = Math.max(y(t), y(o)), n = Math.max(u(t), u(o)), r = Math.min(d(t), d(o)), s = Math.min(w(t), w(o));
|
|
128
128
|
return e > r || n > s ? R : c({ x: e, y: n }, { x: r, y: s }, void 0, void 0, t.root);
|
|
129
|
-
},
|
|
129
|
+
}, lt = (t) => a(t) * f(t), mt = (t, o) => {
|
|
130
130
|
const e = c(t);
|
|
131
131
|
return c(
|
|
132
132
|
C(e.one, o),
|
|
@@ -135,67 +135,67 @@ const h = x.union([x.number(), x.string()]), U = x.object({
|
|
|
135
135
|
void 0,
|
|
136
136
|
e.root
|
|
137
137
|
);
|
|
138
|
-
},
|
|
138
|
+
}, pt = (t, o, e, n, r, s) => {
|
|
139
139
|
const i = { x: t, y: o }, m = { x: t + e, y: o + n };
|
|
140
140
|
return r.x !== s.x && (r.x === "center" ? (i.x -= e / 2, m.x -= e / 2) : (i.x -= e, m.x -= e)), r.y !== s.y && (r.y === "center" ? (i.y -= n / 2, m.y -= n / 2) : (i.y -= n, m.y -= n)), c(i, m, void 0, void 0, s);
|
|
141
|
-
},
|
|
141
|
+
}, Tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
142
142
|
__proto__: null,
|
|
143
|
-
DECIMAL:
|
|
143
|
+
DECIMAL: J,
|
|
144
144
|
ZERO: R,
|
|
145
|
-
area:
|
|
146
|
-
areaIsZero:
|
|
147
|
-
aspect:
|
|
148
|
-
bottom:
|
|
149
|
-
bottomLeft:
|
|
150
|
-
bottomRight:
|
|
151
|
-
box:
|
|
145
|
+
area: lt,
|
|
146
|
+
areaIsZero: ot,
|
|
147
|
+
aspect: ft,
|
|
148
|
+
bottom: w,
|
|
149
|
+
bottomLeft: et,
|
|
150
|
+
bottomRight: st,
|
|
151
|
+
box: k,
|
|
152
152
|
center: T,
|
|
153
153
|
construct: c,
|
|
154
|
-
constructWithAlternateRoot:
|
|
155
|
-
contains:
|
|
154
|
+
constructWithAlternateRoot: pt,
|
|
155
|
+
contains: Q,
|
|
156
156
|
copy: W,
|
|
157
|
-
css:
|
|
158
|
-
cssBox:
|
|
157
|
+
css: tt,
|
|
158
|
+
cssBox: Y,
|
|
159
159
|
dim: B,
|
|
160
160
|
dims: z,
|
|
161
|
-
domRect:
|
|
162
|
-
edgePoints:
|
|
163
|
-
equals:
|
|
161
|
+
domRect: U,
|
|
162
|
+
edgePoints: yt,
|
|
163
|
+
equals: V,
|
|
164
164
|
height: f,
|
|
165
165
|
intersection: wt,
|
|
166
|
-
isBox:
|
|
166
|
+
isBox: at,
|
|
167
167
|
left: y,
|
|
168
|
-
loc:
|
|
169
|
-
positionInCenter:
|
|
170
|
-
reRoot:
|
|
171
|
-
resize:
|
|
168
|
+
loc: l,
|
|
169
|
+
positionInCenter: ut,
|
|
170
|
+
reRoot: xt,
|
|
171
|
+
resize: K,
|
|
172
172
|
right: d,
|
|
173
|
-
root:
|
|
174
|
-
signedDims:
|
|
173
|
+
root: rt,
|
|
174
|
+
signedDims: v,
|
|
175
175
|
signedHeight: b,
|
|
176
176
|
signedWidth: _,
|
|
177
177
|
top: u,
|
|
178
178
|
topLeft: A,
|
|
179
|
-
topRight:
|
|
180
|
-
translate:
|
|
181
|
-
truncate:
|
|
179
|
+
topRight: nt,
|
|
180
|
+
translate: dt,
|
|
181
|
+
truncate: mt,
|
|
182
182
|
width: a,
|
|
183
183
|
x: I,
|
|
184
|
-
xBounds:
|
|
184
|
+
xBounds: ct,
|
|
185
185
|
xyLoc: g,
|
|
186
186
|
y: L,
|
|
187
|
-
yBounds:
|
|
187
|
+
yBounds: it
|
|
188
188
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
189
189
|
export {
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
pt as a,
|
|
191
|
+
Tt as b,
|
|
192
192
|
c,
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
lt as d,
|
|
194
|
+
at as e,
|
|
195
|
+
ct as f,
|
|
196
196
|
f as h,
|
|
197
197
|
wt as i,
|
|
198
198
|
a as w,
|
|
199
199
|
g as x,
|
|
200
|
-
|
|
200
|
+
it as y
|
|
201
201
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const x=require("zod"),z=require("./direction-D7qoo_GJ.cjs"),y=require("./location-BIet4Mig.cjs"),i=require("./xy-Budz-qz-.cjs"),p=require("./base-B48bPNx5.cjs"),O=x.z.union([x.z.number(),x.z.string()]),H=x.z.object({top:O,left:O,width:O,height:O}),S=x.z.object({left:x.z.number(),top:x.z.number(),right:x.z.number(),bottom:x.z.number()}),N=x.z.object({one:p.xy,two:p.xy,root:y.corner}),I={one:i.ZERO,two:i.ZERO,root:y.TOP_LEFT},D={one:i.ZERO,two:i.ONE,root:y.BOTTOM_LEFT},R=(t,o)=>({one:t.one,two:t.two,root:o??t.root}),c=(t,o,e=0,n=0,s)=>{const r={one:{...i.ZERO},two:{...i.ZERO},root:s??y.TOP_LEFT};if(typeof t=="number"){if(typeof o!="number")throw new Error("Box constructor called with invalid arguments");return r.one={x:t,y:o},r.two={x:r.one.x+e,y:r.one.y+n},r}return"one"in t&&"two"in t&&"root"in t?{...t,root:s??t.root}:("getBoundingClientRect"in t&&(t=t.getBoundingClientRect()),"left"in t?(r.one={x:t.left,y:t.top},r.two={x:t.right,y:t.bottom},r):(r.one=t,o==null?r.two={x:r.one.x+e,y:r.one.y+n}:typeof o=="number"?r.two={x:r.one.x+o,y:r.one.y+e}:"width"in o?r.two={x:r.one.x+o.width,y:r.one.y+o.height}:"signedWidth"in o?r.two={x:r.one.x+o.signedWidth,y:r.one.y+o.signedHeight}:r.two=o,r))},G=(t,o,e)=>{const n=c(t);if(typeof o=="string"){if(e==null)throw new Error("Invalid arguments for resize");const s=z.construct(o);return c(n.one,void 0,s==="x"?e:d(n),s==="y"?e:f(n),n.root)}return c(n.one,o,void 0,void 0,n.root)},X=(t,o,e=!0)=>{const n=c(t);let s=(r,u)=>r<u;return e&&(s=(r,u)=>r<=u),"one"in o?s(l(n),l(o))&&s(a(o),a(n))&&s(w(n),w(o))&&s(h(o),h(n)):s(l(n),o.x)&&s(o.x,a(n))&&s(w(n),o.y)&&s(o.y,h(n))},$=(t,o)=>i.equals(t.one,o.one)&&i.equals(t.two,o.two)&&y.xyEquals(t.root,o.root),q=t=>({width:d(t),height:f(t)}),U=t=>({signedWidth:b(t),signedHeight:T(t)}),Y=t=>({top:w(t),left:l(t),width:d(t),height:f(t)}),M=(t,o,e=!1)=>{const n=z.construct(o)==="y"?T(t):b(t);return e?n:Math.abs(n)},_=(t,o)=>{const e=c(t);return{x:o.x==="center"?E(e).x:g(e,o.x),y:o.y==="center"?E(e).y:g(e,o.y)}},g=(t,o)=>{const e=c(t),n=y.xyCouple(e.root).includes(o)?Math.min:Math.max;return p.X_LOCATIONS.includes(o)?n(e.one.x,e.two.x):n(e.one.y,e.two.y)},k=t=>t.one.x===t.two.x&&t.one.y===t.two.y,d=t=>M(t,"x"),f=t=>M(t,"y"),b=t=>{const o=c(t);return o.two.x-o.one.x},T=t=>{const o=c(t);return o.two.y-o.one.y},C=t=>_(t,y.TOP_LEFT),J=t=>_(t,y.TOP_RIGHT),K=t=>_(t,y.BOTTOM_LEFT),Q=t=>_(t,y.BOTTOM_RIGHT),a=t=>g(t,"right"),h=t=>g(t,"bottom"),l=t=>g(t,"left"),w=t=>g(t,"top"),E=t=>i.translate(C(t),{x:b(t)/2,y:T(t)/2}),B=t=>{const o=c(t);return o.root.x==="left"?l(o):a(o)},L=t=>{const o=c(t);return o.root.y==="top"?w(o):h(o)},V=t=>({x:B(t),y:L(t)}),P=t=>{const o=c(t);return{lower:o.one.x,upper:o.two.x}},Z=t=>{const o=c(t);return{lower:o.one.y,upper:o.two.y}},v=(t,o)=>R(t,o),tt=(t,o)=>{const e=c(t),n=p.X_LOCATIONS.includes(o)?"x":p.Y_LOCATIONS.includes(o)?"y":null;if(n===null)throw new Error(`Invalid location: ${o}`);const s=o==="top"||o==="left"?Math.min:Math.max,r={...e.one},u={...e.two};return r[n]=s(e.one[n],e.two[n]),u[n]=s(e.one[n],e.two[n]),[r,u]},ot=(t,o)=>{const e=c(t),n=c(o),s=B(n)+(d(n)-d(e))/2,r=L(n)+(f(n)-f(e))/2;return c({x:s,y:r},q(e))},j=t=>typeof t!="object"||t==null?!1:"one"in t&&"two"in t&&"root"in t,nt=t=>d(t)/f(t),et=(t,o,e)=>{if(typeof o=="string"){if(e==null)throw new Error("Undefined amount passed into box.translate");const s=z.construct(o);o=i.construct(s,e)}const n=c(t);return c(i.translate(n.one,o),i.translate(n.two,o),void 0,void 0,n.root)},A=(t,o)=>{const e=Math.max(l(t),l(o)),n=Math.max(w(t),w(o)),s=Math.min(a(t),a(o)),r=Math.min(h(t),h(o));return e>s||n>r?I:c({x:e,y:n},{x:s,y:r},void 0,void 0,t.root)},W=t=>d(t)*f(t),rt=(t,o)=>{const e=c(t);return c(i.truncate(e.one,o),i.truncate(e.two,o),void 0,void 0,e.root)},F=(t,o,e,n,s,r)=>{const u={x:t,y:o},m={x:t+e,y:o+n};return s.x!==r.x&&(s.x==="center"?(u.x-=e/2,m.x-=e/2):(u.x-=e,m.x-=e)),s.y!==r.y&&(s.y==="center"?(u.y-=n/2,m.y-=n/2):(u.y-=n,m.y-=n)),c(u,m,void 0,void 0,r)},st=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:D,ZERO:I,area:W,areaIsZero:k,aspect:nt,bottom:h,bottomLeft:K,bottomRight:Q,box:N,center:E,construct:c,constructWithAlternateRoot:F,contains:X,copy:R,css:Y,cssBox:H,dim:M,dims:q,domRect:S,edgePoints:tt,equals:$,height:f,intersection:A,isBox:j,left:l,loc:g,positionInCenter:ot,reRoot:v,resize:G,right:a,root:V,signedDims:U,signedHeight:T,signedWidth:b,top:w,topLeft:C,topRight:J,translate:et,truncate:rt,width:d,x:B,xBounds:P,xyLoc:_,y:L,yBounds:Z},Symbol.toStringTag,{value:"Module"}));exports.area=W;exports.box=st;exports.construct=c;exports.constructWithAlternateRoot=F;exports.height=f;exports.intersection=A;exports.isBox=j;exports.width=d;exports.xBounds=P;exports.xyLoc=_;exports.yBounds=Z;
|
package/dist/box.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./box-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./box-Daep7oxr.cjs");exports.box=e.box;
|
package/dist/box.js
CHANGED
package/dist/caseconv.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { z as r } from "zod";
|
|
2
|
-
const t = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", s = t(), u = ["
|
|
3
|
-
macos: "
|
|
2
|
+
const t = () => typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser", s = t(), u = ["macOS", "Windows", "Linux"], d = ["macos", "windows", "linux"], c = {
|
|
3
|
+
macos: "macOS",
|
|
4
4
|
windows: "Windows",
|
|
5
|
-
linux: "Linux"
|
|
6
|
-
docker: "Docker"
|
|
5
|
+
linux: "Linux"
|
|
7
6
|
}, f = r.enum(u).or(
|
|
8
|
-
r.enum(d).transform((
|
|
9
|
-
)
|
|
10
|
-
let n;
|
|
11
|
-
const l = () => {
|
|
7
|
+
r.enum(d).transform((n) => c[n])
|
|
8
|
+
), l = () => {
|
|
12
9
|
if (typeof window > "u") return;
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
15
|
-
if (
|
|
16
|
-
if (
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
const n = window.navigator.userAgent.toLowerCase();
|
|
11
|
+
if (n.includes("mac")) return "macOS";
|
|
12
|
+
if (n.includes("win")) return "Windows";
|
|
13
|
+
if (n.includes("linux")) return "Linux";
|
|
14
|
+
};
|
|
15
|
+
let e;
|
|
16
|
+
const w = (n = {}) => {
|
|
17
|
+
const { force: o, default: i } = n;
|
|
18
|
+
return o ?? e ?? (e = l(), e ?? i);
|
|
20
19
|
}, S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21
20
|
__proto__: null,
|
|
22
21
|
OPERATING_SYSTEMS: u,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("zod"),t=()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null?"node":typeof window>"u"||window.document===void 0?"webworker":"browser",i=t(),u=["macOS","Windows","Linux"],d=["macos","windows","linux"],c={macos:"macOS",windows:"Windows",linux:"Linux"},l=r.z.enum(u).or(r.z.enum(d).transform(n=>c[n])),f=()=>{if(typeof window>"u")return;const n=window.navigator.userAgent.toLowerCase();if(n.includes("mac"))return"macOS";if(n.includes("win"))return"Windows";if(n.includes("linux"))return"Linux"};let e;const w=(n={})=>{const{force:o,default:s}=n;return o??e??(e=f(),e??s)},a=Object.freeze(Object.defineProperty({__proto__:null,OPERATING_SYSTEMS:u,RUNTIME:i,detect:t,getOS:w,osZ:l},Symbol.toStringTag,{value:"Module"}));exports.external=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
2
|
var C = (o, e, t) => e in o ? m(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var i = (o, e, t) => C(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { s as y, b } from "./index-
|
|
4
|
+
import { s as y, b } from "./index-DizUWH6z.js";
|
|
5
5
|
import { isObject as l } from "./identity.js";
|
|
6
6
|
class f {
|
|
7
7
|
constructor() {
|
|
@@ -21,12 +21,18 @@ const m = (e) => {
|
|
|
21
21
|
}, C = u(m), O = (e) => (
|
|
22
22
|
// Don't convert the first character and don't convert a character that is after a
|
|
23
23
|
// non-alphanumeric character
|
|
24
|
-
e.replace(
|
|
24
|
+
e.replace(
|
|
25
|
+
/([a-z0-9])([A-Z])/g,
|
|
26
|
+
(r, n, s) => `${n}_${s.toLowerCase()}`
|
|
27
|
+
)
|
|
25
28
|
), k = u(O), T = (e) => e.length === 0 ? e : e[0].toUpperCase() + e.slice(1), o = {
|
|
26
29
|
recursive: !0,
|
|
27
30
|
recursiveInArray: !0,
|
|
28
31
|
keepTypesOnRecursion: [Number, String, Uint8Array]
|
|
29
|
-
}, v = (e = o) => (e.recursive == null ? e = o : e.recursiveInArray ?? (e.recursiveInArray = !1), e), p = (e) => e != null && Array.isArray(e), l = (e) => e != null && typeof e == "object" && !Array.isArray(e), A = (e, r) => (r || []).some((n) => e instanceof n), S = (e) => e.replace(/\s+/g, "-").replace(
|
|
32
|
+
}, v = (e = o) => (e.recursive == null ? e = o : e.recursiveInArray ?? (e.recursiveInArray = !1), e), p = (e) => e != null && Array.isArray(e), l = (e) => e != null && typeof e == "object" && !Array.isArray(e), A = (e, r) => (r || []).some((n) => e instanceof n), S = (e) => e.replace(/\s+/g, "-").replace(
|
|
33
|
+
/([a-z0-9])([A-Z])/g,
|
|
34
|
+
(r, n, s) => `${n}-${s.toLowerCase()}`
|
|
35
|
+
).toLowerCase(), _ = u(S), d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
30
36
|
__proto__: null,
|
|
31
37
|
camelToSnake: k,
|
|
32
38
|
capitalize: T,
|
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var x=Object.defineProperty;var _=(e,t,r)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var p=(e,t,r)=>_(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./index-CnclyYpG.cjs"),u=require("zod"),i=require("./series-
|
|
1
|
+
"use strict";var x=Object.defineProperty;var _=(e,t,r)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var p=(e,t,r)=>_(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./index-CnclyYpG.cjs"),u=require("zod"),i=require("./series-DuOxifEy.cjs"),N=require("./index-Dd8DLyMx.cjs"),L=require("./change-C-YELKx6.cjs"),k=require("./scale-Bzjm1mhv.cjs"),l=require("./index-BG3Scw3G.cjs"),A=require("./debounce.cjs"),P=require("./deep.cjs"),C=require("./identity.cjs"),Z=require("./external-C-dNgNQw.cjs"),D=require("./link.cjs"),w=require("./bounds-8aFLdbEj.cjs"),G=require("./observe.cjs"),$=require("./record.cjs"),V=require("./external-DSKjMZ7J.cjs"),W=require("./search.cjs"),H=require("./box-Daep7oxr.cjs"),I=require("./dimensions-zMcb9pMk.cjs"),Q=require("./direction-D7qoo_GJ.cjs"),U=require("./location-BIet4Mig.cjs"),B=require("./position-96CBRKEd.cjs"),F=require("./spatial-BOhaO8xN.cjs"),J=require("./xy-Budz-qz-.cjs"),z=require("./toArray.cjs"),K=require("./index-udOjA9d-.cjs"),j=require("./url.cjs"),E=require("./worker.cjs"),X=require("./zodutil-DFJyyQd2.cjs"),Y=async e=>await new Promise(t=>setTimeout(t,i.TimeSpan.fromMilliseconds(e).milliseconds)),ee=u.z.object({interval:i.TimeSpan.z.optional(),maxRetries:u.z.number().optional(),scale:u.z.number().optional()}),re=(e={})=>{const t=e.sleepFn||Y,r=e.maxRetries??5,o=e.scale??1;let s=0,d=new i.TimeSpan(e.interval??i.TimeSpan.milliseconds(1));return async()=>s>=r?!1:(await t(d),d=d.mult(o),s++,!0)},te=Object.freeze(Object.defineProperty({__proto__:null,breakerConfig:ee,create:re},Symbol.toStringTag,{value:"Module"})),m=class m extends Number{};p(m,"Absolute",255),p(m,"Default",1),p(m,"z",u.z.union([u.z.instanceof(m),u.z.number().int().min(0).max(255).transform(t=>new m(t)),u.z.instanceof(Number).transform(t=>new m(t))]));let h=m;const M=u.z.object({name:u.z.string(),key:u.z.string()}),ne=e=>u.z.object({subject:M,resource:e,authority:h.z}),oe=(...e)=>t=>t.filter(r=>{let o=!1;return r.to!=null&&(o=e.includes(r.to.resource)),r.from!=null&&!o&&(o=e.includes(r.from.resource)),o}),ie=Object.freeze(Object.defineProperty({__proto__:null,Authority:h,filterTransfersByChannelKey:oe,stateZ:ne,subjectZ:M},Symbol.toStringTag,{value:"Module"})),g=class g extends Error{constructor(){super(g.MESSAGE)}matches(t){return typeof t=="string"?t.includes(g.MESSAGE):t instanceof g||t.message.includes(g.MESSAGE)}};p(g,"MESSAGE","canceled");let v=g;const se=new v,ce=Object.freeze(Object.defineProperty({__proto__:null,CANCELED:se},Symbol.toStringTag,{value:"Module"})),ae=e=>e?-1:1,q=u.z.string().regex(/^\d+\.\d+\.\d+$/),S=(e,t,r={})=>{r.checkMajor??(r.checkMajor=!0),r.checkMinor??(r.checkMinor=!0),r.checkPatch??(r.checkPatch=!0);const o=q.parse(e),s=q.parse(t),[d,f,b]=o.split(".").map(Number),[c,n,a]=s.split(".").map(Number);if(r.checkMajor){if(d<c)return l.LESS_THAN;if(d>c)return l.GREATER_THAN}if(r.checkMinor){if(f<n)return l.LESS_THAN;if(f>n)return l.GREATER_THAN}if(r.checkPatch){if(b<a)return l.LESS_THAN;if(b>a)return l.GREATER_THAN}return l.EQUAL},le=(e,t,r={})=>l.isEqualTo(S(e,t,r)),R=(e,t,r={})=>l.isGreaterThan(S(e,t,r)),ue=(e,t,r={})=>l.isLessThan(S(e,t,r)),de=({name:e,migrate:t})=>r=>{try{const o=t(r);return console.log(`${e} migrated: ${r.version} -> ${o.version}`),o}catch(o){throw console.log(`${e} failed to migrate from ${r.version}`),console.error(o),o}},me=({name:e,migrations:t,targetSchema:r,defaultVersion:o,def:s})=>{const d=Object.keys(t).sort(S).pop();if(d==null)return n=>{if(n.version??(n.version=o),n.version!==s.version)return console.log(`${e} version ${n.version} is newer than latest version of ${s.version}.
|
|
2
2
|
Returning default instead.
|
|
3
3
|
`),s;try{return r!=null?r.parse(n):n}catch(a){return console.log(`${e} failed to parse default. Exiting with default`),console.error(a),s}};const f=Object.keys(t).length;let b=!1;const c=n=>{try{if(f===0||R(n.version,d))return console.log(b?`${e} ${n.version} now up to date`:`${e} version ${n.version} is up to date with target version ${s.version}`),n;const a=n.version,y=t[a],T=y(n);return b=!0,c(T)}catch(a){return console.log(`${e} failed to migrate from ${n.version} to ${d}`),console.error(a),s}};return n=>{try{if(n.version==null)if(o!=null)console.log(`${e} version is null. Setting version to default of ${o}`),n.version=o;else return console.log(`${e} version is null and no default version set. Exiting with default`),s;return c(n)}catch(a){return console.log(`${e} failed to parse final result. Exiting with default`),console.error(a),s}}},fe=Object.freeze(Object.defineProperty({__proto__:null,compareSemVer:S,createMigration:de,migrator:me,semVerNewer:R,semVerOlder:ue,semVerZ:q,versionsEqual:le},Symbol.toStringTag,{value:"Module"})),ge=e=>{if(e===void 0||typeof e=="string"||typeof e=="number")return e;if(e.toString===void 0)throw new Error("invalid renderer");return e.toString()},be=e=>Array.isArray(e)?[...e]:typeof e=="object"&&e!==null?{...e}:e,pe=(e,t="")=>{const r=e.length;return r===0?t:r===1?e[0]:r===2?`${e[0]} and ${e[1]}`:`${e.slice(0,-1).join(", ")}, and ${e[r-1]}`},Se=e=>{const t=e.split(" "),r=new Set,o=t.map(c=>c.charAt(0).toLowerCase()).join("");r.add(o),r.add(o.replace(/(.)(.)/g,"$1_$2"));const s=/\d+/g;e.match(s)&&t.forEach((c,n)=>{if(s.test(c)){const a=t.map((y,T)=>T!==n?y.charAt(0).toLowerCase():y).join("");r.add(a),r.add(a.replace(/(.)(.)/g,"$1_$2"))}});const f=t.map(c=>(c.length>3?c.substring(0,3):c).toLowerCase());return r.add(f.join("")),r.add(f.join("_")),Array.from(r).filter(c=>c.length>=2&&c.length<=12)},ye=Object.freeze(Object.defineProperty({__proto__:null,generateShortIdentifiers:Se,naturalLanguageJoin:pe},Symbol.toStringTag,{value:"Module"}));exports.binary=O.encoder;exports.DataType=i.DataType;exports.Density=i.Density;exports.MultiSeries=i.MultiSeries;exports.Rate=i.Rate;exports.Series=i.Series;exports.Size=i.Size;exports.TimeRange=i.TimeRange;exports.TimeSpan=i.TimeSpan;exports.TimeStamp=i.TimeStamp;exports.addSamples=i.addSamples;exports.convertDataType=i.convertDataType;exports.id=i.id;exports.isCrudeSeries=i.isCrudeSeries;exports.isTelemValue=i.isTelemValue;exports.sortTimeRange=i.sortTimeRange;exports.typedArrayZ=i.typedArrayZ;exports.caseconv=N.caseconv;exports.change=L.change;exports.clamp=k.clamp;exports.scale=k.scale;exports.compare=l.compare;exports.isStringer=l.isStringer;exports.primitiveIsZero=l.primitiveIsZero;exports.debounce=A.debounce;exports.throttle=A.throttle;exports.deep=P.deep;exports.isObject=C.isObject;exports.kv=Z.external;exports.link=D.link;exports.bounds=w.bounds;exports.math=w.math;exports.observe=G.observe;exports.getEntries=$.getEntries;exports.mapValues=$.mapValues;exports.unknownRecordZ=$.unknownRecordZ;exports.runtime=V.external;exports.Search=W.Search;exports.box=H.box;exports.dimensions=I.dimensions;exports.direction=Q.direction;exports.location=U.location;exports.position=B.position;exports.spatial=F.spatial;exports.xy=J.xy;exports.nullToArr=z.nullToArr;exports.toArray=z.toArray;exports.unique=K.unique;exports.URL=j.URL;exports.buildQueryString=j.buildQueryString;exports.RoutedWorker=E.RoutedWorker;exports.TypedWorker=E.TypedWorker;exports.createMockWorkers=E.createMockWorkers;exports.zodutil=X.zodutil;exports.breaker=te;exports.control=ie;exports.convertRenderV=ge;exports.errors=ce;exports.invert=ae;exports.migrate=fe;exports.shallowCopy=be;exports.strings=ye;
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var M = Object.defineProperty;
|
|
2
2
|
var T = (e, t, r) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var p = (e, t, r) => T(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { e as ne } from "./index-
|
|
4
|
+
import { e as ne } from "./index-C3QzbIwt.js";
|
|
5
5
|
import { z as c } from "zod";
|
|
6
|
-
import { b as x } from "./series-
|
|
7
|
-
import { d as ie, D as ae, M as ce, R as le, S as ue, e as fe, c as me, T as de, a as pe, g as ge, h as be, i as xe, f as he, s as ye, t as Se } from "./series-
|
|
8
|
-
import { a as ve } from "./index-
|
|
6
|
+
import { b as x } from "./series-Cwc_z2OS.js";
|
|
7
|
+
import { d as ie, D as ae, M as ce, R as le, S as ue, e as fe, c as me, T as de, a as pe, g as ge, h as be, i as xe, f as he, s as ye, t as Se } from "./series-Cwc_z2OS.js";
|
|
8
|
+
import { a as ve } from "./index-DizUWH6z.js";
|
|
9
9
|
import { c as je } from "./change-DLl6DccR.js";
|
|
10
|
-
import { c as Me, s as Te } from "./scale-
|
|
10
|
+
import { c as Me, s as Te } from "./scale-D_UMXSZN.js";
|
|
11
11
|
import { L as S, G as $, E as k, i as A, a as _, b as O } from "./index-BVC_8Cg9.js";
|
|
12
12
|
import { c as Ae, d as _e, p as Oe } from "./index-BVC_8Cg9.js";
|
|
13
13
|
import { debounce as ze, throttle as Le } from "./debounce.js";
|
|
@@ -18,13 +18,13 @@ import { link as Ie } from "./link.js";
|
|
|
18
18
|
import { b as qe, f as Be } from "./bounds-BtccGJW0.js";
|
|
19
19
|
import { observe as He } from "./observe.js";
|
|
20
20
|
import { getEntries as Ue, mapValues as Je, unknownRecordZ as Ke } from "./record.js";
|
|
21
|
-
import { e as Ye } from "./external-
|
|
21
|
+
import { e as Ye } from "./external-CtAt3tnU.js";
|
|
22
22
|
import { Search as rr } from "./search.js";
|
|
23
|
-
import { b as or } from "./box-
|
|
23
|
+
import { b as or } from "./box-DPJAbf32.js";
|
|
24
24
|
import { d as sr } from "./dimensions-D-1PnJVI.js";
|
|
25
25
|
import { d as ar } from "./direction-CScbfCdT.js";
|
|
26
|
-
import { l as lr } from "./location-
|
|
27
|
-
import { p as fr } from "./position-
|
|
26
|
+
import { l as lr } from "./location-BVkZhfQG.js";
|
|
27
|
+
import { p as fr } from "./position-uVDP52PM.js";
|
|
28
28
|
import { s as dr } from "./spatial-DozyssiN.js";
|
|
29
29
|
import { x as gr } from "./xy-DxjPL2DZ.js";
|
|
30
30
|
import { nullToArr as xr, toArray as hr } from "./toArray.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as O } from "zod";
|
|
2
|
-
import { c as m } from "./index-
|
|
2
|
+
import { c as m } from "./index-DizUWH6z.js";
|
|
3
3
|
import { e as a, f, y, g, D as C, C as z, X as L, Y as h, l as S, h as d } from "./base-DnZzEvvz.js";
|
|
4
4
|
const N = a, R = y, I = f, X = {
|
|
5
5
|
top: "bottom",
|
package/dist/location.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./box-
|
|
1
|
+
"use strict";const c=require("./box-Daep7oxr.cjs"),T=require("./direction-D7qoo_GJ.cjs"),n=require("./location-BIet4Mig.cjs"),b=require("./base-B48bPNx5.cjs"),P=t=>{if(t==null)return{x:void 0,y:void 0};const r=n.xy.safeParse(t);if(r.success)return r.data;const e=b.location.safeParse(t);return e.success?T.construct(e.data)==="x"?{x:e.data,y:void 0}:{x:void 0,y:e.data}:t},N=({container:t,target:r,dialog:e,initial:u,prefer:a,alignments:f=["start"],disable:x=[]})=>{const i=P(u);let l=n.XY_LOCATIONS;if(a!=null){const o=a.map(s=>P(s));l=l.slice().sort((s,p)=>{const d=o.findIndex(g=>n.xyMatches(s,g)),h=o.findIndex(g=>n.xyMatches(p,g));return d>-1&&h>-1?d-h:d>-1?-1:h>-1?1:0})}const O=l.filter(o=>!n.xyEquals(o,n.CENTER)&&(i.x==null||o.x===i.x)&&(i.y==null||o.y===i.y)&&!x.some(s=>n.xyMatches(o,s))).map(o=>f==null?void 0:f.map(s=>[o,s])).flat(),A=c.construct(t),M=c.construct(r),_=c.construct(e);let E=-1/0;const y={location:n.CENTER,adjustedDialog:_};return O.forEach(([o,s])=>{const[p,d]=I({option:o,alignment:s,container:A,target:M,dialog:_});d>E&&(E=d,y.location=o,y.adjustedDialog=p)}),y},I=({option:t,alignment:r,container:e,target:u,dialog:a})=>{const f=L(t,r),x=c.xyLoc(u,t),i=c.constructWithAlternateRoot(x.x,x.y,c.width(a),c.height(a),f,n.TOP_LEFT),l=c.area(c.intersection(i,e));return[i,l]},j={start:"left",center:"center",end:"right"},q={start:"bottom",center:"center",end:"top"},L=(t,r)=>{const e={x:"center",y:"center"};if(t.y!=="center"){e.y=n.swap(t.y);const u=t.x==="left"?n.swap:a=>a;e.x=u(j[r])}else e.x=n.swap(t.x),e.y=q[r];return e},w=Object.freeze(Object.defineProperty({__proto__:null,dialog:N,getRoot:L,parseLocationOptions:P},Symbol.toStringTag,{value:"Module"}));exports.position=w;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as g, x as I, a as M, h as N, w as X, d as j, i as w } from "./box-
|
|
1
|
+
import { c as g, x as I, a as M, h as N, w as X, d as j, i as w } from "./box-DPJAbf32.js";
|
|
2
2
|
import { c as B } from "./direction-CScbfCdT.js";
|
|
3
|
-
import { x as C, a as h, b as R, C as O, T as S, s as m, X as Y } from "./location-
|
|
3
|
+
import { x as C, a as h, b as R, C as O, T as S, s as m, X as Y } from "./location-BVkZhfQG.js";
|
|
4
4
|
import { l as v } from "./base-DnZzEvvz.js";
|
|
5
5
|
const P = (t) => {
|
|
6
6
|
if (t == null) return { x: void 0, y: void 0 };
|
package/dist/position.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./position-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./position-96CBRKEd.cjs");exports.position=o.position;
|
package/dist/position.js
CHANGED
package/dist/runtime.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-DSKjMZ7J.cjs");exports.runtime=e.external;
|
package/dist/runtime.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var v=Object.defineProperty;var R=(r,t,e)=>t in r?v(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var i=(r,t,e)=>R(r,typeof t!="symbol"?t+"":t,e);const h=require("zod"),x=require("./bounds-8aFLdbEj.cjs"),u=require("./box-
|
|
1
|
+
"use strict";var v=Object.defineProperty;var R=(r,t,e)=>t in r?v(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var i=(r,t,e)=>R(r,typeof t!="symbol"?t+"":t,e);const h=require("zod"),x=require("./bounds-8aFLdbEj.cjs"),u=require("./box-Daep7oxr.cjs"),T=require("./location-BIet4Mig.cjs"),d=require("./xy-Budz-qz-.cjs"),B=(r,t,e)=>t!==void 0&&r<t?t:e!==void 0&&r>e?e:r,q=h.z.object({offset:d.crudeZ,scale:d.crudeZ}),z=h.z.object({offset:h.z.number(),scale:h.z.number()}),E=r=>(t,e,s,n)=>e==="dimension"?[t,s]:[t,n?s-r:s+r],I=r=>(t,e,s,n)=>[t,n?s/r:s*r],j=r=>(t,e,s)=>{if(t===null)return[r,s];const{lower:n,upper:o}=t,{lower:p,upper:l}=r,w=o-n,m=l-p;if(e==="dimension")return[r,s*(m/w)];const g=(s-n)*(m/w)+p;return[r,g]},Y=r=>(t,e,s)=>[r,s],D=()=>(r,t,e)=>{if(r===null)throw new Error("cannot invert without bounds");if(t==="dimension")return[r,e];const{lower:s,upper:n}=r;return[r,n-(e-s)]},L=r=>(t,e,s)=>{const{lower:n,upper:o}=r;return s=B(s,n,o),[t,s]},a=class a{constructor(){i(this,"ops",[]);i(this,"currBounds",null);i(this,"currType",null);i(this,"reversed",!1);this.ops=[]}static translate(t){return new a().translate(t)}static magnify(t){return new a().magnify(t)}static scale(t,e){return new a().scale(t,e)}translate(t){const e=this.new(),s=E(t);return s.type="translate",e.ops.push(s),e}magnify(t){const e=this.new(),s=I(t);return s.type="magnify",e.ops.push(s),e}scale(t,e){const s=x.construct(t,e),n=this.new(),o=j(s);return o.type="scale",n.ops.push(o),n}clamp(t,e){const s=x.construct(t,e),n=this.new(),o=L(s);return o.type="clamp",n.ops.push(o),n}reBound(t,e){const s=x.construct(t,e),n=this.new(),o=Y(s);return o.type="re-bound",n.ops.push(o),n}invert(){const t=D();t.type="invert";const e=this.new();return e.ops.push(t),e}pos(t){return this.exec("position",t)}dim(t){return this.exec("dimension",t)}new(){const t=new a;return t.ops=this.ops.slice(),t.reversed=this.reversed,t}exec(t,e){return this.currBounds=null,this.ops.reduce(([s,n],o)=>o(s,t,n,this.reversed),[null,e])[1]}reverse(){const t=this.new();t.ops.reverse();const e=[];return t.ops.forEach((s,n)=>{if(s.type==="scale"||e.some(([p,l])=>n>=p&&n<=l))return;const o=t.ops.findIndex((p,l)=>p.type==="scale"&&l>n);o!==-1&&e.push([n,o])}),e.forEach(([s,n])=>{const o=t.ops.slice(s,n);o.unshift(t.ops[n]),t.ops.splice(s,n-s+1,...o)}),t.reversed=!t.reversed,t}get transform(){return{scale:this.dim(1),offset:this.pos(0)}}};i(a,"IDENTITY",new a);let y=a;const c=class c{constructor(t=new y,e=new y,s=null){i(this,"x");i(this,"y");i(this,"currRoot");this.x=t,this.y=e,this.currRoot=s}static translate(t,e){return new c().translate(t,e)}static translateX(t){return new c().translateX(t)}static translateY(t){return new c().translateY(t)}static clamp(t){return new c().clamp(t)}static magnify(t){return new c().magnify(t)}static scale(t){return new c().scale(t)}static reBound(t){return new c().reBound(t)}translate(t,e){const s=d.construct(t,e),n=this.copy();return n.x=this.x.translate(s.x),n.y=this.y.translate(s.y),n}translateX(t){const e=this.copy();return e.x=this.x.translate(t),e}translateY(t){const e=this.copy();return e.y=this.y.translate(t),e}magnify(t){const e=this.copy();return e.x=this.x.magnify(t.x),e.y=this.y.magnify(t.y),e}scale(t){const e=this.copy();if(u.isBox(t)){const s=this.currRoot;return e.currRoot=t.root,s!=null&&!T.xyEquals(s,t.root)&&(s.x!==t.root.x&&(e.x=e.x.invert()),s.y!==t.root.y&&(e.y=e.y.invert())),e.x=e.x.scale(u.xBounds(t)),e.y=e.y.scale(u.yBounds(t)),e}return e.x=e.x.scale(t.width),e.y=e.y.scale(t.height),e}reBound(t){const e=this.copy();return e.x=this.x.reBound(u.xBounds(t)),e.y=this.y.reBound(u.yBounds(t)),e}clamp(t){const e=this.copy();return e.x=this.x.clamp(u.xBounds(t)),e.y=this.y.clamp(u.yBounds(t)),e}copy(){const t=new c;return t.currRoot=this.currRoot,t.x=this.x,t.y=this.y,t}reverse(){const t=this.copy();return t.x=this.x.reverse(),t.y=this.y.reverse(),t}pos(t){return{x:this.x.pos(t.x),y:this.y.pos(t.y)}}dim(t){return{x:this.x.dim(t.x),y:this.y.dim(t.y)}}box(t){return u.construct(this.pos(t.one),this.pos(t.two),0,0,this.currRoot??t.root)}get transform(){return{scale:this.dim({x:1,y:1}),offset:this.pos({x:0,y:0})}}};i(c,"IDENTITY",new c);let f=c;const M=Object.freeze(Object.defineProperty({__proto__:null,Scale:y,XY:f,crudeXYTransform:q,transform:z},Symbol.toStringTag,{value:"Module"}));exports.clamp=B;exports.scale=M;
|
|
@@ -3,8 +3,8 @@ var R = (n, t, e) => t in n ? B(n, t, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var i = (n, t, e) => R(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { z as y } from "zod";
|
|
5
5
|
import { c as h } from "./bounds-BtccGJW0.js";
|
|
6
|
-
import { e as T, f as x, y as f, c as E } from "./box-
|
|
7
|
-
import { b as I } from "./location-
|
|
6
|
+
import { e as T, f as x, y as f, c as E } from "./box-DPJAbf32.js";
|
|
7
|
+
import { b as I } from "./location-BVkZhfQG.js";
|
|
8
8
|
import { b as g, c as j } from "./xy-DxjPL2DZ.js";
|
|
9
9
|
const Y = (n, t, e) => t !== void 0 && n < t ? t : e !== void 0 && n > e ? e : n, z = y.object({ offset: g, scale: g }), D = y.object({ offset: y.number(), scale: y.number() }), L = (n) => (t, e, s, r) => e === "dimension" ? [t, s] : [
|
|
10
10
|
t,
|
package/dist/scale.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./scale-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./scale-Bzjm1mhv.cjs");exports.scale=e.scale;
|