@synnaxlabs/x 0.40.0 → 0.42.0
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 +33 -33
- package/dist/binary.cjs +1 -1
- package/dist/binary.js +2 -2
- package/dist/bounds-BQo7rvs9.cjs +1 -0
- package/dist/{bounds-azUOoVVR.js → bounds-Bn5_l4Z3.js} +84 -86
- package/dist/bounds.cjs +1 -1
- package/dist/bounds.js +1 -1
- package/dist/box-0YrQibkB.cjs +1 -0
- package/dist/box-Cc8IzcNo.js +205 -0
- package/dist/box.cjs +1 -1
- package/dist/box.js +1 -1
- package/dist/compare.cjs +1 -1
- package/dist/compare.js +1 -1
- package/dist/deep.cjs +1 -1
- package/dist/deep.js +66 -69
- package/dist/{dimensions-PWy5QZoM.cjs → dimensions-D2QGoNXO.cjs} +1 -1
- package/dist/dimensions.cjs +1 -1
- package/dist/{external-CvWr1nhS.cjs → external-DWQITF5_.cjs} +1 -1
- package/dist/index-BywOGO8U.js +1074 -0
- package/dist/index-CYYjI7Uf.cjs +1 -0
- package/dist/index-C_6NXBlg.cjs +3 -0
- package/dist/{index-BVC_8Cg9.js → index-QGplUHuy.js} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +736 -240
- package/dist/location-BGl5Ddds.cjs +1 -0
- package/dist/{location-BuYbIFHD.js → location-C3aeu046.js} +16 -12
- package/dist/location.cjs +1 -1
- package/dist/location.js +1 -1
- package/dist/{position-DTrNGtrm.cjs → position-Cai5-wi1.cjs} +1 -1
- package/dist/{position-DemzGvAY.js → position-DIglP1l2.js} +2 -2
- package/dist/position.cjs +1 -1
- package/dist/position.js +1 -1
- package/dist/record.js +3 -1
- package/dist/{scale-DpJM6__6.cjs → scale-BtZINJ-A.cjs} +1 -1
- package/dist/{scale-C0EllH-1.js → scale-DfJe9755.js} +4 -4
- package/dist/scale.cjs +1 -1
- package/dist/scale.js +1 -1
- package/dist/{series-CXnO-P0V.js → series-B9JERcqi.js} +541 -474
- package/dist/series-DqJ6f97G.cjs +11 -0
- package/dist/spatial.cjs +1 -1
- package/dist/spatial.js +6 -6
- package/dist/src/binary/{encoder.d.ts → codec.d.ts} +14 -8
- package/dist/src/binary/codec.d.ts.map +1 -0
- package/dist/src/binary/codec.spec.d.ts +2 -0
- package/dist/src/binary/codec.spec.d.ts.map +1 -0
- package/dist/src/binary/index.d.ts +1 -1
- package/dist/src/binary/index.d.ts.map +1 -1
- package/dist/src/breaker/breaker.d.ts +14 -21
- package/dist/src/breaker/breaker.d.ts.map +1 -1
- package/dist/src/change/change.d.ts +5 -18
- package/dist/src/change/change.d.ts.map +1 -1
- package/dist/src/color/color.d.ts +126 -0
- package/dist/src/color/color.d.ts.map +1 -0
- package/dist/src/color/color.spec.d.ts +2 -0
- package/dist/src/color/color.spec.d.ts.map +1 -0
- package/dist/src/color/external.d.ts +5 -0
- package/dist/src/color/external.d.ts.map +1 -0
- package/dist/src/color/gradient.d.ts +18 -0
- package/dist/src/color/gradient.d.ts.map +1 -0
- package/dist/src/color/index.d.ts +2 -0
- package/dist/src/color/index.d.ts.map +1 -0
- package/dist/src/color/palette.d.ts +19 -0
- package/dist/src/color/palette.d.ts.map +1 -0
- package/dist/src/color/transformColorsToHex.d.ts +6 -0
- package/dist/src/color/transformColorsToHex.d.ts.map +1 -0
- package/dist/src/control/control.d.ts +69 -74
- package/dist/src/control/control.d.ts.map +1 -1
- package/dist/src/deep/merge.d.ts +1 -1
- package/dist/src/deep/merge.d.ts.map +1 -1
- package/dist/src/errors/errors.d.ts +127 -7
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/errors/errors.spec.d.ts +2 -0
- package/dist/src/errors/errors.spec.d.ts.map +1 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/jsonrpc/jsonrpc.d.ts +10 -7
- package/dist/src/jsonrpc/jsonrpc.d.ts.map +1 -1
- package/dist/src/kv/types.d.ts +1 -7
- package/dist/src/kv/types.d.ts.map +1 -1
- package/dist/src/math/external.d.ts +3 -0
- package/dist/src/math/external.d.ts.map +1 -0
- package/dist/src/math/index.d.ts +1 -1
- package/dist/src/math/index.d.ts.map +1 -1
- package/dist/src/math/round.d.ts +40 -0
- package/dist/src/math/round.d.ts.map +1 -0
- package/dist/src/math/round.spec.d.ts +2 -0
- package/dist/src/math/round.spec.d.ts.map +1 -0
- package/dist/src/migrate/migrate.d.ts +1 -1
- package/dist/src/notation/index.d.ts +2 -0
- package/dist/src/notation/index.d.ts.map +1 -0
- package/dist/src/notation/notation.d.ts +37 -0
- package/dist/src/notation/notation.d.ts.map +1 -0
- package/dist/src/notation/notation.spec.d.ts +2 -0
- package/dist/src/notation/notation.spec.d.ts.map +1 -0
- package/dist/src/record.d.ts +2 -1
- package/dist/src/record.d.ts.map +1 -1
- package/dist/src/replace.d.ts +2 -0
- package/dist/src/replace.d.ts.map +1 -0
- package/dist/src/runtime/os.d.ts +9 -1
- package/dist/src/runtime/os.d.ts.map +1 -1
- package/dist/src/singleton/define.d.ts +9 -0
- package/dist/src/singleton/define.d.ts.map +1 -0
- package/dist/src/singleton/define.spec.d.ts +2 -0
- package/dist/src/singleton/define.spec.d.ts.map +1 -0
- package/dist/src/singleton/index.d.ts +2 -0
- package/dist/src/singleton/index.d.ts.map +1 -0
- package/dist/src/spatial/base.d.ts +74 -70
- package/dist/src/spatial/base.d.ts.map +1 -1
- package/dist/src/spatial/box/box.d.ts +22 -76
- package/dist/src/spatial/box/box.d.ts.map +1 -1
- package/dist/src/spatial/dimensions/dimensions.d.ts +5 -29
- package/dist/src/spatial/dimensions/dimensions.d.ts.map +1 -1
- package/dist/src/spatial/direction/direction.d.ts +9 -1
- package/dist/src/spatial/direction/direction.d.ts.map +1 -1
- package/dist/src/spatial/location/location.d.ts +45 -24
- package/dist/src/spatial/location/location.d.ts.map +1 -1
- package/dist/src/spatial/scale/scale.d.ts +12 -120
- package/dist/src/spatial/scale/scale.d.ts.map +1 -1
- package/dist/src/spatial/xy/xy.d.ts +15 -29
- package/dist/src/spatial/xy/xy.d.ts.map +1 -1
- package/dist/src/sync/index.d.ts +2 -0
- package/dist/src/sync/index.d.ts.map +1 -0
- package/dist/src/sync/mutex.d.ts +8 -0
- package/dist/src/sync/mutex.d.ts.map +1 -0
- package/dist/src/telem/gl.d.ts +4 -1
- package/dist/src/telem/gl.d.ts.map +1 -1
- package/dist/src/telem/series.d.ts +46 -125
- package/dist/src/telem/series.d.ts.map +1 -1
- package/dist/src/telem/telem.d.ts +102 -85
- package/dist/src/telem/telem.d.ts.map +1 -1
- package/dist/src/toArray.d.ts +1 -1
- package/dist/src/toArray.d.ts.map +1 -1
- package/dist/src/zod/util.d.ts.map +1 -1
- package/dist/telem.cjs +1 -1
- package/dist/telem.js +1 -1
- package/dist/toArray.cjs +1 -1
- package/dist/toArray.js +1 -1
- package/dist/{xy-DyQSETQZ.cjs → xy-B7065J2S.cjs} +1 -1
- package/dist/{xy-DHBO1dG_.js → xy-D_LqxaGt.js} +8 -4
- package/dist/xy.cjs +1 -1
- package/dist/xy.js +1 -1
- package/dist/zod.cjs +1 -1
- package/package.json +11 -8
- package/src/binary/codec.spec.ts +370 -0
- package/src/binary/{encoder.ts → codec.ts} +55 -11
- package/src/binary/index.ts +1 -1
- package/src/breaker/breaker.spec.ts +16 -25
- package/src/breaker/breaker.ts +36 -19
- package/src/color/color.spec.ts +673 -0
- package/src/color/color.ts +317 -0
- package/src/color/external.ts +13 -0
- package/src/color/gradient.ts +78 -0
- package/src/color/index.ts +10 -0
- package/src/color/palette.ts +28 -0
- package/src/color/transformColorsToHex.ts +30 -0
- package/src/control/control.ts +30 -22
- package/src/deep/merge.ts +2 -8
- package/src/errors/errors.spec.ts +152 -0
- package/src/errors/errors.ts +225 -10
- package/src/index.ts +5 -0
- package/src/jsonrpc/jsonrpc.ts +12 -8
- package/src/math/external.ts +11 -0
- package/src/math/index.ts +1 -1
- package/src/math/round.spec.ts +81 -0
- package/src/math/round.ts +68 -0
- package/src/migrate/migrate.ts +2 -2
- package/src/notation/index.ts +10 -0
- package/src/notation/notation.spec.ts +88 -0
- package/src/notation/notation.ts +61 -0
- package/src/primitive.ts +1 -1
- package/src/record.ts +5 -1
- package/src/replace.ts +1 -0
- package/src/singleton/define.spec.ts +93 -0
- package/src/singleton/define.ts +27 -0
- package/src/singleton/index.ts +10 -0
- package/src/spatial/box/box.spec.ts +3 -3
- package/src/spatial/box/box.ts +8 -0
- package/src/spatial/location/location.ts +4 -4
- package/src/spatial/position/position.spec.ts +10 -10
- package/src/spatial/xy/xy.spec.ts +8 -0
- package/src/spatial/xy/xy.ts +14 -0
- package/src/sync/index.ts +1 -0
- package/src/sync/mutex.ts +16 -0
- package/src/telem/series.spec.ts +71 -0
- package/src/telem/series.ts +69 -46
- package/src/telem/telem.spec.ts +151 -10
- package/src/telem/telem.ts +134 -73
- package/src/toArray.ts +2 -2
- package/src/zod/util.spec.ts +17 -1
- package/src/zod/util.ts +4 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/bounds-Dwq6ZFHm.cjs +0 -1
- package/dist/box-Bzya27QS.cjs +0 -1
- package/dist/box-DrsrRNSe.js +0 -201
- package/dist/index-BG3Scw3G.cjs +0 -1
- package/dist/index-C3QzbIwt.js +0 -101
- package/dist/index-CnclyYpG.cjs +0 -3
- package/dist/location-BgpQ3rN2.cjs +0 -1
- package/dist/series-BgoCtU71.cjs +0 -11
- package/dist/src/binary/encoder.d.ts.map +0 -1
- package/dist/src/binary/encoder.spec.d.ts +0 -2
- package/dist/src/binary/encoder.spec.d.ts.map +0 -1
- package/src/binary/encoder.spec.ts +0 -174
package/dist/compare.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CYYjI7Uf.cjs");exports.compare=e.compare;
|
package/dist/compare.js
CHANGED
package/dist/deep.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./identity.cjs"),y=require("./path-1tZLZ4AN.cjs"),j=e=>JSON.parse(JSON.stringify(e)),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./identity.cjs"),y=require("./path-1tZLZ4AN.cjs"),j=e=>JSON.parse(JSON.stringify(e)),d=(e,...f)=>(f.forEach(i=>{let r=e;const o=i.split(".");o.forEach((n,t)=>{t===o.length-1?delete r[n]:n in r&&(r=r[n])})}),e),A=(e,f,i="")=>{const r={},o=(n,t,s)=>{if(typeof n!=typeof t||n===null||t===null){r[s]=[n,t];return}if(typeof n=="object"&&typeof t=="object")if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length){r[s]=[n,t];return}for(let l=0;l<n.length;l++)o(n[l],t[l],`${s}[${l}]`)}else new Set([...Object.keys(n),...Object.keys(t)]).forEach(c=>{o(n[c],t[c],s!==""?`${s}.${c}`:c)});else n!==t&&(r[s]=[n,t])};return o(e,f,i),r},p=(e,f)=>{const i=Array.isArray(e),r=Array.isArray(f);if(i!==r)return!1;if(i&&r){const t=e,s=f;if(t.length!==s.length)return!1;for(let l=0;l<t.length;l++)if(!p(t[l],s[l]))return!1;return!0}if(e==null||f==null||typeof e!="object"||typeof f!="object")return e===f;if("equals"in e)return e.equals(f);const o=Object.keys(e),n=Object.keys(f);if(o.length!==n.length)return!1;for(const t of o){const s=e[t],l=f[t];if(typeof s=="object"&&typeof l=="object"){if(!p(s,l))return!1}else if(s!==l)return!1}return!0},h=(e,f)=>{if(typeof e!="object"||e==null)return e===f;const i=Object.keys(e),r=Object.keys(f);if(r.length>i.length)return!1;for(const o of r){const n=e[o],t=f[o];if(typeof n=="object"&&typeof t=="object"){if(!h(n,t))return!1}else if(n!==t)return!1}return!0},a=(e,...f)=>{if(f.length===0)return e;const i=f.shift();if(u.isObject(e)&&u.isObject(i))for(const r in i)try{u.isObject(i[r])?(r in e||Object.assign(e,{[r]:{}}),a(e[r],i[r])):Object.assign(e,{[r]:i[r]})}catch(o){throw o instanceof TypeError?new TypeError(`.${r}: ${o.message}`):o}return a(e,...f)},m=(e,f,i)=>{const r=(o,n,t)=>{for(const s in n){const l=n[s],c=t.shape;if(c!=null&&c[s]){const g=c[s].safeParse(l);g.success&&(o[s]=g.data)}else typeof l=="object"&&!Array.isArray(l)&&l!==null&&t&&t.shape&&t.shape[s]&&(o[s]||(o[s]={}),r(o[s],l,t.shape[s]))}return o};return r({...e},f,i)},O=Object.freeze(Object.defineProperty({__proto__:null,copy:j,deleteD:d,difference:A,element:y.element,equal:p,get:y.get,has:y.has,override:a,overrideValidItems:m,partialEqual:h,pathsMatch:y.pathsMatch,remove:y.remove,set:y.set,transformPath:y.transformPath},Symbol.toStringTag,{value:"Module"}));exports.deep=O;
|
package/dist/deep.js
CHANGED
|
@@ -1,106 +1,103 @@
|
|
|
1
1
|
import { isObject as y } from "./identity.js";
|
|
2
|
-
import { e as
|
|
3
|
-
const
|
|
2
|
+
import { e as h, g as A, h as j, p as d, r as m, s as V, t as E } from "./path-DD6ytXzr.js";
|
|
3
|
+
const $ = (e) => JSON.parse(JSON.stringify(e)), k = (e, ...f) => (f.forEach((i) => {
|
|
4
4
|
let r = e;
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
t ===
|
|
5
|
+
const n = i.split(".");
|
|
6
|
+
n.forEach((s, t) => {
|
|
7
|
+
t === n.length - 1 ? delete r[s] : s in r && (r = r[s]);
|
|
8
8
|
});
|
|
9
|
-
}), e), O = (e,
|
|
10
|
-
const r = {},
|
|
11
|
-
if (typeof
|
|
12
|
-
r[
|
|
9
|
+
}), e), O = (e, f, i = "") => {
|
|
10
|
+
const r = {}, n = (s, t, o) => {
|
|
11
|
+
if (typeof s != typeof t || s === null || t === null) {
|
|
12
|
+
r[o] = [s, t];
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
|
-
if (typeof
|
|
16
|
-
if (Array.isArray(
|
|
17
|
-
if (
|
|
18
|
-
r[
|
|
15
|
+
if (typeof s == "object" && typeof t == "object")
|
|
16
|
+
if (Array.isArray(s) && Array.isArray(t)) {
|
|
17
|
+
if (s.length !== t.length) {
|
|
18
|
+
r[o] = [s, t];
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
|
-
for (let l = 0; l <
|
|
21
|
+
for (let l = 0; l < s.length; l++) n(s[l], t[l], `${o}[${l}]`);
|
|
22
22
|
} else
|
|
23
|
-
(/* @__PURE__ */ new Set([...Object.keys(
|
|
24
|
-
|
|
23
|
+
(/* @__PURE__ */ new Set([...Object.keys(s), ...Object.keys(t)])).forEach((c) => {
|
|
24
|
+
n(s[c], t[c], o !== "" ? `${o}.${c}` : c);
|
|
25
25
|
});
|
|
26
|
-
else
|
|
26
|
+
else s !== t && (r[o] = [s, t]);
|
|
27
27
|
};
|
|
28
|
-
return
|
|
29
|
-
}, u = (e,
|
|
30
|
-
const i = Array.isArray(e), r = Array.isArray(
|
|
28
|
+
return n(e, f, i), r;
|
|
29
|
+
}, u = (e, f) => {
|
|
30
|
+
const i = Array.isArray(e), r = Array.isArray(f);
|
|
31
31
|
if (i !== r) return !1;
|
|
32
32
|
if (i && r) {
|
|
33
|
-
const t = e,
|
|
34
|
-
if (t.length !==
|
|
35
|
-
for (let l = 0; l < t.length; l++) if (!u(t[l],
|
|
33
|
+
const t = e, o = f;
|
|
34
|
+
if (t.length !== o.length) return !1;
|
|
35
|
+
for (let l = 0; l < t.length; l++) if (!u(t[l], o[l])) return !1;
|
|
36
36
|
return !0;
|
|
37
37
|
}
|
|
38
|
-
if (e == null ||
|
|
39
|
-
return e ===
|
|
40
|
-
if ("equals" in e) return e.equals(
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
for (const t of
|
|
44
|
-
const
|
|
45
|
-
if (typeof
|
|
46
|
-
if (!u(
|
|
47
|
-
} else if (
|
|
38
|
+
if (e == null || f == null || typeof e != "object" || typeof f != "object")
|
|
39
|
+
return e === f;
|
|
40
|
+
if ("equals" in e) return e.equals(f);
|
|
41
|
+
const n = Object.keys(e), s = Object.keys(f);
|
|
42
|
+
if (n.length !== s.length) return !1;
|
|
43
|
+
for (const t of n) {
|
|
44
|
+
const o = e[t], l = f[t];
|
|
45
|
+
if (typeof o == "object" && typeof l == "object") {
|
|
46
|
+
if (!u(o, l)) return !1;
|
|
47
|
+
} else if (o !== l) return !1;
|
|
48
48
|
}
|
|
49
49
|
return !0;
|
|
50
|
-
}, g = (e,
|
|
51
|
-
if (typeof e != "object" || e == null) return e ===
|
|
52
|
-
const i = Object.keys(e), r = Object.keys(
|
|
50
|
+
}, g = (e, f) => {
|
|
51
|
+
if (typeof e != "object" || e == null) return e === f;
|
|
52
|
+
const i = Object.keys(e), r = Object.keys(f);
|
|
53
53
|
if (r.length > i.length) return !1;
|
|
54
|
-
for (const
|
|
55
|
-
const
|
|
56
|
-
if (typeof
|
|
57
|
-
if (!g(
|
|
58
|
-
} else if (
|
|
54
|
+
for (const n of r) {
|
|
55
|
+
const s = e[n], t = f[n];
|
|
56
|
+
if (typeof s == "object" && typeof t == "object") {
|
|
57
|
+
if (!g(s, t)) return !1;
|
|
58
|
+
} else if (s !== t) return !1;
|
|
59
59
|
}
|
|
60
60
|
return !0;
|
|
61
|
-
}, p = (e, ...
|
|
62
|
-
if (
|
|
63
|
-
const i =
|
|
61
|
+
}, p = (e, ...f) => {
|
|
62
|
+
if (f.length === 0) return e;
|
|
63
|
+
const i = f.shift();
|
|
64
64
|
if (y(e) && y(i))
|
|
65
65
|
for (const r in i)
|
|
66
66
|
try {
|
|
67
67
|
y(i[r]) ? (r in e || Object.assign(e, { [r]: {} }), p(e[r], i[r])) : Object.assign(e, { [r]: i[r] });
|
|
68
|
-
} catch (
|
|
69
|
-
throw
|
|
68
|
+
} catch (n) {
|
|
69
|
+
throw n instanceof TypeError ? new TypeError(`.${r}: ${n.message}`) : n;
|
|
70
70
|
}
|
|
71
|
-
return p(e, ...
|
|
72
|
-
}, q = (e,
|
|
73
|
-
const r = (
|
|
74
|
-
for (const
|
|
75
|
-
const l = o
|
|
76
|
-
if (c != null && c[
|
|
77
|
-
const a = c[
|
|
78
|
-
a.success && (
|
|
79
|
-
} else typeof l == "object" && !Array.isArray(l) && l !== null && t && t.shape && t.shape[
|
|
71
|
+
return p(e, ...f);
|
|
72
|
+
}, q = (e, f, i) => {
|
|
73
|
+
const r = (n, s, t) => {
|
|
74
|
+
for (const o in s) {
|
|
75
|
+
const l = s[o], c = t.shape;
|
|
76
|
+
if (c != null && c[o]) {
|
|
77
|
+
const a = c[o].safeParse(l);
|
|
78
|
+
a.success && (n[o] = a.data);
|
|
79
|
+
} else typeof l == "object" && !Array.isArray(l) && l !== null && t && t.shape && t.shape[o] && (n[o] || (n[o] = {}), r(n[o], l, t.shape[o]));
|
|
80
80
|
}
|
|
81
|
-
return
|
|
81
|
+
return n;
|
|
82
82
|
};
|
|
83
|
-
return r({ ...e },
|
|
84
|
-
},
|
|
85
|
-
var n;
|
|
86
|
-
return ((n = e._def) == null ? void 0 : n.typeName) === "ZodEffects" ? h(e._def.schema) : e == null ? void 0 : e.shape;
|
|
87
|
-
}, I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83
|
+
return r({ ...e }, f, i);
|
|
84
|
+
}, _ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
88
85
|
__proto__: null,
|
|
89
|
-
copy:
|
|
90
|
-
deleteD:
|
|
86
|
+
copy: $,
|
|
87
|
+
deleteD: k,
|
|
91
88
|
difference: O,
|
|
92
|
-
element:
|
|
89
|
+
element: h,
|
|
93
90
|
equal: u,
|
|
94
91
|
get: A,
|
|
95
92
|
has: j,
|
|
96
93
|
override: p,
|
|
97
94
|
overrideValidItems: q,
|
|
98
95
|
partialEqual: g,
|
|
99
|
-
pathsMatch:
|
|
100
|
-
remove:
|
|
101
|
-
set:
|
|
102
|
-
transformPath:
|
|
96
|
+
pathsMatch: d,
|
|
97
|
+
remove: m,
|
|
98
|
+
set: V,
|
|
99
|
+
transformPath: E
|
|
103
100
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
104
101
|
export {
|
|
105
|
-
|
|
102
|
+
_ as deep
|
|
106
103
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const h=require("zod"),s=require("./base-BAM2mqCy.cjs"),
|
|
1
|
+
"use strict";const h=require("zod"),s=require("./base-BAM2mqCy.cjs"),o=h.z.object({signedWidth:h.z.number(),signedHeight:h.z.number()}),g=h.z.union([s.dimensions,o,s.xy,s.numberCouple]),c={width:0,height:0},u={width:1,height:1},n=(t,e)=>typeof t=="number"?{width:t,height:e??t}:Array.isArray(t)?{width:t[0],height:t[1]}:"x"in t?{width:t.x,height:t.y}:"signedWidth"in t?{width:t.signedWidth,height:t.signedHeight}:{...t},a=(t,e)=>{if(e==null)return!1;const i=n(t),r=n(e);return i.width===r.width&&i.height===r.height},d=t=>{const e=n(t);return{width:e.height,height:e.width}},m=t=>{const e=n(t);return`0 0 ${e.width} ${e.height}`},l=t=>{const e=n(t);return[e.width,e.height]},p=t=>({width:Math.max(...t.map(e=>n(e).width)),height:Math.max(...t.map(e=>n(e).height))}),b=t=>({width:Math.min(...t.map(e=>n(e).width)),height:Math.min(...t.map(e=>n(e).height))}),f=(t,e)=>{const i=n(t);return{width:i.width*e,height:i.height*e}},w=Object.freeze(Object.defineProperty({__proto__:null,DECIMAL:u,ZERO:c,construct:n,couple:l,crude:g,dimensions:s.dimensions,equals:a,max:p,min:b,scale:f,signed:o,svgViewBox:m,swap:d},Symbol.toStringTag,{value:"Module"}));exports.dimensions=w;
|
package/dist/dimensions.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./dimensions-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./dimensions-D2QGoNXO.cjs");exports.dimensions=e.dimensions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("zod"),o=require("./path-1tZLZ4AN.cjs"),N=-128,I=127,T=e.z.number().int().min(N).max(I),l=-32768,_=32767,M=e.z.number().int().min(l).max(_),x=-2147483648,z=2147483647,g=e.z.number().int().min(x).max(z),p=-9223372036854775808n,b=9223372036854775807n,f=e.z.bigint().min(p).max(b),h=255,A=e.z.number().int().min(0).max(h),X=65535,y=e.z.number().int().min(0).max(X),P=4294967295,
|
|
1
|
+
"use strict";const e=require("zod"),o=require("./path-1tZLZ4AN.cjs"),N=-128,I=127,T=e.z.number().int().min(N).max(I),l=-32768,_=32767,M=e.z.number().int().min(l).max(_),x=-2147483648,z=2147483647,g=e.z.number().int().min(x).max(z),p=-9223372036854775808n,b=9223372036854775807n,f=e.z.bigint().min(p).max(b),h=255,A=e.z.number().int().min(0).max(h),X=65535,y=e.z.number().int().min(0).max(X),P=4294967295,S=e.z.number().int().min(0).max(P),U=18446744073709551615n,d=e.z.bigint().min(0n).max(U),r=n=>o.transformPath(n,(t,s,c)=>{const u=s===c.length-1,m=!isNaN(parseInt(t)),a=!isNaN(parseInt(c[s+1]));return m&&(t="element"),u||a?t:[t,"shape"]}),i=(n,t)=>{if(n==null)return null;const s=n[t];return s==null&&typeof n=="object"&&"sourceType"in n?n.sourceType()[t]:s},q=(n,t,s)=>o.get(i(n,"shape"),r(t),{...s,getter:i}),v=Object.freeze(Object.defineProperty({__proto__:null,getFieldSchema:q,getFieldSchemaPath:r,int16:M,int32:g,int64:f,int8:T,uint16:y,uint32:S,uint64:d,uint8:A},Symbol.toStringTag,{value:"Module"}));exports.external=v;
|