@synnaxlabs/x 0.55.0 → 0.56.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 +10 -13
- package/dist/src/array/nullable.d.ts +1 -1
- package/dist/src/array/nullable.d.ts.map +1 -1
- package/dist/src/caseconv/caseconv.d.ts.map +1 -1
- package/dist/src/compare/compare.d.ts +14 -0
- package/dist/src/compare/compare.d.ts.map +1 -1
- package/dist/src/debounce/debounce.d.ts +7 -2
- package/dist/src/debounce/debounce.d.ts.map +1 -1
- package/dist/src/destructor/destructor.d.ts +1 -0
- package/dist/src/destructor/destructor.d.ts.map +1 -1
- package/dist/src/errors/errors.d.ts +6 -10
- package/dist/src/errors/errors.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/notation/external.d.ts +3 -0
- package/dist/src/notation/external.d.ts.map +1 -0
- package/dist/src/notation/index.d.ts +1 -1
- package/dist/src/notation/notation.d.ts +5 -9
- package/dist/src/notation/notation.d.ts.map +1 -1
- package/dist/src/notation/types.gen.d.ts +9 -0
- package/dist/src/notation/types.gen.d.ts.map +1 -0
- package/dist/src/primitive/primitive.d.ts +16 -0
- package/dist/src/primitive/primitive.d.ts.map +1 -1
- package/dist/src/record/record.d.ts +8 -1
- package/dist/src/record/record.d.ts.map +1 -1
- package/dist/src/require/index.d.ts +2 -0
- package/dist/src/require/index.d.ts.map +1 -0
- package/dist/src/require/require.d.ts +2 -0
- package/dist/src/require/require.d.ts.map +1 -0
- package/dist/src/spatial/base.d.ts +1 -103
- package/dist/src/spatial/base.d.ts.map +1 -1
- package/dist/src/spatial/bounds/bounds.d.ts +3 -3
- package/dist/src/spatial/bounds/bounds.d.ts.map +1 -1
- package/dist/src/spatial/box/box.d.ts +7 -13
- package/dist/src/spatial/box/box.d.ts.map +1 -1
- package/dist/src/spatial/direction/direction.d.ts +17 -16
- package/dist/src/spatial/direction/direction.d.ts.map +1 -1
- package/dist/src/spatial/external.d.ts +1 -2
- package/dist/src/spatial/external.d.ts.map +1 -1
- package/dist/src/spatial/location/location.d.ts +28 -28
- package/dist/src/spatial/location/location.d.ts.map +1 -1
- package/dist/src/spatial/scale/scale.d.ts +2 -2
- package/dist/src/spatial/scale/scale.d.ts.map +1 -1
- package/dist/src/spatial/sticky/sticky.d.ts +15 -15
- package/dist/src/spatial/sticky/sticky.d.ts.map +1 -1
- package/dist/src/spatial/types.gen.d.ts +179 -2
- package/dist/src/spatial/types.gen.d.ts.map +1 -1
- package/dist/src/spatial/xy/xy.d.ts +4 -4
- package/dist/src/spatial/xy/xy.d.ts.map +1 -1
- package/dist/src/status/status.d.ts +11 -0
- package/dist/src/status/status.d.ts.map +1 -1
- package/dist/src/telem/external.d.ts +1 -0
- package/dist/src/telem/external.d.ts.map +1 -1
- package/dist/src/telem/series.d.ts +5 -2
- package/dist/src/telem/series.d.ts.map +1 -1
- package/dist/src/telem/telem.d.ts +42 -34
- package/dist/src/telem/telem.d.ts.map +1 -1
- package/dist/src/telem/types.gen.d.ts +19 -0
- package/dist/src/telem/types.gen.d.ts.map +1 -0
- package/dist/src/text/external.d.ts +3 -0
- package/dist/src/text/external.d.ts.map +1 -0
- package/dist/src/text/index.d.ts +2 -0
- package/dist/src/text/index.d.ts.map +1 -0
- package/dist/src/text/types.d.ts +21 -0
- package/dist/src/text/types.d.ts.map +1 -0
- package/dist/src/text/types.gen.d.ts +13 -0
- package/dist/src/text/types.gen.d.ts.map +1 -0
- package/dist/src/throttle/index.d.ts +2 -0
- package/dist/src/throttle/index.d.ts.map +1 -0
- package/dist/src/throttle/throttle.d.ts +3 -0
- package/dist/src/throttle/throttle.d.ts.map +1 -0
- package/dist/src/throttle/throttle.spec.d.ts +2 -0
- package/dist/src/throttle/throttle.spec.d.ts.map +1 -0
- package/dist/src/zod/parse.d.ts.map +1 -1
- package/dist/x.cjs +9 -9
- package/dist/x.js +1469 -1346
- package/package.json +11 -11
- package/src/array/nullable.ts +1 -4
- package/src/caseconv/caseconv.spec.ts +71 -0
- package/src/caseconv/caseconv.ts +15 -2
- package/src/compare/compare.spec.ts +115 -0
- package/src/compare/compare.ts +29 -0
- package/src/debounce/debounce.spec.ts +258 -24
- package/src/debounce/debounce.ts +49 -30
- package/src/deep/copy.spec.ts +13 -0
- package/src/deep/difference.ts +1 -1
- package/src/destructor/destructor.ts +2 -0
- package/src/errors/errors.spec.ts +30 -0
- package/src/errors/errors.ts +29 -17
- package/src/index.ts +4 -1
- package/src/notation/external.ts +11 -0
- package/src/notation/index.ts +1 -1
- package/src/notation/notation.spec.ts +260 -2
- package/src/notation/notation.ts +25 -7
- package/src/notation/types.gen.ts +16 -0
- package/src/primitive/primitive.spec.ts +58 -5
- package/src/primitive/primitive.ts +22 -0
- package/src/record/record.spec.ts +26 -0
- package/src/record/record.ts +20 -5
- package/src/require/index.ts +10 -0
- package/src/require/require.ts +10 -0
- package/src/spatial/base.ts +1 -93
- package/src/spatial/bounds/bounds.ts +10 -10
- package/src/spatial/box/box.ts +5 -5
- package/src/spatial/direction/direction.ts +16 -17
- package/src/spatial/external.ts +1 -2
- package/src/spatial/location/location.ts +19 -17
- package/src/spatial/scale/scale.ts +2 -2
- package/src/spatial/sticky/sticky.spec.ts +2 -2
- package/src/spatial/sticky/sticky.ts +6 -13
- package/src/spatial/types.gen.ts +140 -0
- package/src/spatial/xy/xy.ts +7 -7
- package/src/status/status.spec.ts +65 -0
- package/src/status/status.ts +20 -0
- package/src/telem/external.ts +8 -0
- package/src/telem/series.spec.ts +183 -0
- package/src/telem/series.ts +54 -16
- package/src/telem/telem.spec.ts +128 -9
- package/src/telem/telem.ts +91 -79
- package/src/telem/types.gen.ts +28 -0
- package/src/text/external.ts +11 -0
- package/src/text/index.ts +10 -0
- package/src/text/types.gen.ts +16 -0
- package/src/text/types.ts +37 -0
- package/src/{worker → throttle}/index.ts +1 -1
- package/src/throttle/throttle.spec.ts +147 -0
- package/src/throttle/throttle.ts +44 -0
- package/src/zod/parse.ts +2 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/src/spatial/spatial.d.ts +0 -3
- package/dist/src/spatial/spatial.d.ts.map +0 -1
- package/dist/src/worker/index.d.ts +0 -2
- package/dist/src/worker/index.d.ts.map +0 -1
- package/dist/src/worker/worker.d.ts +0 -33
- package/dist/src/worker/worker.d.ts.map +0 -1
- package/dist/src/worker/worker.spec.d.ts +0 -2
- package/dist/src/worker/worker.spec.d.ts.map +0 -1
- package/src/spatial/spatial.ts +0 -44
- package/src/worker/worker.spec.ts +0 -41
- package/src/worker/worker.ts +0 -86
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { default as z } from 'zod';
|
|
2
|
+
import { AngularDirection, Dimension, Direction, DIRECTIONS, directionZ, Location, SignedDimension } from '../types.gen';
|
|
2
3
|
export { type Direction, DIRECTIONS, directionZ };
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
top: "top";
|
|
4
|
+
export type Angular = AngularDirection;
|
|
5
|
+
export declare const crudeZ: z.ZodEnum<{
|
|
6
|
+
left: "left";
|
|
7
7
|
right: "right";
|
|
8
|
+
top: "top";
|
|
8
9
|
bottom: "bottom";
|
|
9
|
-
|
|
10
|
+
x: "x";
|
|
11
|
+
y: "y";
|
|
10
12
|
center: "center";
|
|
11
13
|
}>;
|
|
12
|
-
export type Crude =
|
|
13
|
-
export type CrudeX =
|
|
14
|
-
export type CrudeY =
|
|
15
|
-
export type Angular = AngularDirection;
|
|
14
|
+
export type Crude = z.infer<typeof crudeZ>;
|
|
15
|
+
export type CrudeX = "x" | "left" | "right";
|
|
16
|
+
export type CrudeY = "y" | "top" | "bottom";
|
|
16
17
|
export declare const construct: (c: Crude) => Direction;
|
|
17
|
-
export declare const swap: (direction:
|
|
18
|
-
export declare const dimension: (direction:
|
|
19
|
-
export declare const location: (direction:
|
|
18
|
+
export declare const swap: (direction: Crude) => Direction;
|
|
19
|
+
export declare const dimension: (direction: Crude) => Dimension;
|
|
20
|
+
export declare const location: (direction: Crude) => Location;
|
|
20
21
|
export declare const isDirection: (c: unknown) => c is Direction;
|
|
21
|
-
export declare const signedDimension: (direction:
|
|
22
|
-
export declare const isX: (direction:
|
|
23
|
-
export declare const isY: (direction:
|
|
22
|
+
export declare const signedDimension: (direction: Crude) => SignedDimension;
|
|
23
|
+
export declare const isX: (direction: Crude) => direction is CrudeX;
|
|
24
|
+
export declare const isY: (direction: Crude) => direction is CrudeY;
|
|
24
25
|
//# sourceMappingURL=direction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../../../../src/spatial/direction/direction.ts"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"direction.d.ts","sourceRoot":"","sources":["../../../../src/spatial/direction/direction.ts"],"names":[],"mappings":"AASA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,OAAO,EACL,KAAK,gBAAgB,EAErB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,UAAU,EACV,UAAU,EACV,KAAK,QAAQ,EAEb,KAAK,eAAe,EAGrB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AAElD,MAAM,MAAM,OAAO,GAAG,gBAAgB,CAAC;AACvC,eAAO,MAAM,MAAM;;;;;;;;EAA8D,CAAC;AAClF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAC3C,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,MAAM,GAAG,OAAO,CAAC;AAC5C,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE5C,eAAO,MAAM,SAAS,GAAI,GAAG,KAAK,KAAG,SAIpC,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,WAAW,KAAK,KAAG,SACE,CAAC;AAE3C,eAAO,MAAM,SAAS,GAAI,WAAW,KAAK,KAAG,SACM,CAAC;AAEpD,eAAO,MAAM,QAAQ,GAAI,WAAW,KAAK,KAAG,QACG,CAAC;AAEhD,eAAO,MAAM,WAAW,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,SAAwC,CAAC;AAEvF,eAAO,MAAM,eAAe,GAAI,WAAW,KAAK,KAAG,eACY,CAAC;AAEhE,eAAO,MAAM,GAAG,GAAI,WAAW,KAAK,KAAG,SAAS,IAAI,MAGnD,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,WAAW,KAAK,KAAG,SAAS,IAAI,MACtB,CAAC"}
|
|
@@ -4,8 +4,7 @@ export * from './dimensions';
|
|
|
4
4
|
export * from './direction';
|
|
5
5
|
export * from './location';
|
|
6
6
|
export * from './scale';
|
|
7
|
-
export * as spatial from './spatial';
|
|
8
7
|
export * from './sticky';
|
|
9
|
-
export * from './types.gen';
|
|
8
|
+
export * as spatial from './types.gen';
|
|
10
9
|
export * from './xy';
|
|
11
10
|
//# sourceMappingURL=external.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/spatial/external.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/spatial/external.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAC/C,cAAc,cAAc,CAAC"}
|
|
@@ -1,46 +1,58 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AngularDirection, CENTER_LOCATIONS, CenterLocation,
|
|
2
|
+
import { AngularDirection, CENTER_LOCATIONS, CenterLocation, CornerLocation, Direction, Location, LOCATIONS, locationZ, OUTER_LOCATIONS, OuterLocation, X_LOCATIONS, XLocation, Y_LOCATIONS, YLocation } from '../base';
|
|
3
3
|
export { CENTER_LOCATIONS, type Location, LOCATIONS, locationZ, OUTER_LOCATIONS, X_LOCATIONS, Y_LOCATIONS, };
|
|
4
|
-
export declare const
|
|
5
|
-
right: "right";
|
|
4
|
+
export declare const xZ: z.ZodEnum<{
|
|
6
5
|
left: "left";
|
|
6
|
+
right: "right";
|
|
7
7
|
}>;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const yZ: z.ZodEnum<{
|
|
9
9
|
top: "top";
|
|
10
10
|
bottom: "bottom";
|
|
11
11
|
}>;
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const centerZ: z.ZodEnum<{
|
|
13
13
|
center: "center";
|
|
14
14
|
}>;
|
|
15
15
|
export declare const outerZ: z.ZodEnum<{
|
|
16
|
-
|
|
16
|
+
left: "left";
|
|
17
17
|
right: "right";
|
|
18
|
+
top: "top";
|
|
18
19
|
bottom: "bottom";
|
|
19
|
-
left: "left";
|
|
20
20
|
}>;
|
|
21
|
+
export declare const cornerZ: z.ZodObject<{
|
|
22
|
+
x: z.ZodEnum<{
|
|
23
|
+
left: "left";
|
|
24
|
+
right: "right";
|
|
25
|
+
}>;
|
|
26
|
+
y: z.ZodEnum<{
|
|
27
|
+
top: "top";
|
|
28
|
+
bottom: "bottom";
|
|
29
|
+
}>;
|
|
30
|
+
}, z.core.$strip>;
|
|
21
31
|
export type X = XLocation;
|
|
22
32
|
export type Y = YLocation;
|
|
23
33
|
export type Outer = OuterLocation;
|
|
24
34
|
export type Center = CenterLocation;
|
|
25
|
-
export
|
|
35
|
+
export type Corner = CornerLocation;
|
|
36
|
+
export type CornerString = "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
37
|
+
export declare const crudeZ: z.ZodUnion<readonly [z.ZodEnum<{
|
|
26
38
|
x: "x";
|
|
27
39
|
y: "y";
|
|
28
40
|
}>, z.ZodEnum<{
|
|
29
|
-
|
|
41
|
+
left: "left";
|
|
30
42
|
right: "right";
|
|
43
|
+
top: "top";
|
|
31
44
|
bottom: "bottom";
|
|
32
|
-
left: "left";
|
|
33
45
|
center: "center";
|
|
34
46
|
}>, z.ZodCustom<String, String>]>;
|
|
35
|
-
export type Crude =
|
|
47
|
+
export type Crude = z.infer<typeof crudeZ>;
|
|
36
48
|
export declare const construct: (cl: Crude) => Location;
|
|
37
49
|
export declare const swap: (cl: Crude) => Location;
|
|
38
50
|
export declare const rotate: (loc: Outer, dir: AngularDirection) => Outer;
|
|
39
51
|
export declare const direction: (cl: Crude) => Direction;
|
|
40
52
|
export declare const xy: z.ZodObject<{
|
|
41
53
|
x: z.ZodUnion<[z.ZodEnum<{
|
|
42
|
-
right: "right";
|
|
43
54
|
left: "left";
|
|
55
|
+
right: "right";
|
|
44
56
|
}>, z.ZodEnum<{
|
|
45
57
|
center: "center";
|
|
46
58
|
}>]>;
|
|
@@ -51,23 +63,11 @@ export declare const xy: z.ZodObject<{
|
|
|
51
63
|
center: "center";
|
|
52
64
|
}>]>;
|
|
53
65
|
}, z.core.$strip>;
|
|
54
|
-
export declare const corner: z.ZodObject<{
|
|
55
|
-
x: z.ZodEnum<{
|
|
56
|
-
right: "right";
|
|
57
|
-
left: "left";
|
|
58
|
-
}>;
|
|
59
|
-
y: z.ZodEnum<{
|
|
60
|
-
top: "top";
|
|
61
|
-
bottom: "bottom";
|
|
62
|
-
}>;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
66
|
export type XY = z.infer<typeof xy>;
|
|
65
|
-
export
|
|
66
|
-
export
|
|
67
|
-
export declare const
|
|
68
|
-
export declare const
|
|
69
|
-
export declare const BOTTOM_LEFT: CornerXY;
|
|
70
|
-
export declare const BOTTOM_RIGHT: CornerXY;
|
|
67
|
+
export declare const TOP_LEFT: Corner;
|
|
68
|
+
export declare const TOP_RIGHT: Corner;
|
|
69
|
+
export declare const BOTTOM_LEFT: Corner;
|
|
70
|
+
export declare const BOTTOM_RIGHT: Corner;
|
|
71
71
|
export declare const CENTER: XY;
|
|
72
72
|
export declare const TOP_CENTER: XY;
|
|
73
73
|
export declare const BOTTOM_CENTER: XY;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../../src/spatial/location/location.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EACL,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,KAAK,cAAc,EAEnB,KAAK,
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../../src/spatial/location/location.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EACL,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,KAAK,cAAc,EAEnB,KAAK,cAAc,EAEnB,KAAK,SAAS,EAGd,KAAK,QAAQ,EACb,SAAS,EACT,SAAS,EACT,eAAe,EACf,KAAK,aAAa,EAElB,WAAW,EACX,KAAK,SAAS,EAEd,WAAW,EACX,KAAK,SAAS,EAEf,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,gBAAgB,EAChB,KAAK,QAAQ,EACb,SAAS,EACT,SAAS,EACT,eAAe,EACf,WAAW,EACX,WAAW,GACZ,CAAC;AAEF,eAAO,MAAM,EAAE;;;EAAa,CAAC;AAC7B,eAAO,MAAM,EAAE;;;EAAa,CAAC;AAC7B,eAAO,MAAM,OAAO;;EAAkB,CAAC;AACvC,eAAO,MAAM,MAAM;;;;;EAAiB,CAAC;AACrC,eAAO,MAAM,OAAO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,CAAC;AACzE,eAAO,MAAM,YAAY,EAAE,SAAS,EAAE,EAUpC,CAAC;AAEH,eAAO,MAAM,QAAQ,GAAI,GAAG,EAAE,EAAE,GAAG,EAAE,KAAG,OAAqC,CAAC;AAE9E,eAAO,MAAM,SAAS,GAAI,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC,GAAG,QAAQ,KAAG,OAc5D,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,GAAG,EAAE,KAAG,CAAC,QAAQ,EAAE,QAAQ,CAAe,CAAC;AAEpE,eAAO,MAAM,GAAG,GAAI,GAAG,KAAK,KAAG,CAAC,IAAI,SAAS,GAAG,cACf,CAAC;AAElC,eAAO,MAAM,GAAG,GAAI,GAAG,KAAK,KAAG,CAAC,IAAI,SAA4C,CAAC;AAEjF,eAAO,MAAM,UAAU,GAAI,GAAG,EAAE,KAAG,MAA6C,CAAC;AAEjF,eAAO,MAAM,WAAW,GAAI,GAAG,KAAK,GAAG,EAAE,EAAE,IAAI,KAAK,KAAG,EA4BtD,CAAC"}
|
|
@@ -250,8 +250,8 @@ export declare class Scale<T extends numeric.Value = number> {
|
|
|
250
250
|
export declare class XY {
|
|
251
251
|
x: Scale<number>;
|
|
252
252
|
y: Scale<number>;
|
|
253
|
-
currRoot: location.
|
|
254
|
-
constructor(x?: Scale<number>, y?: Scale<number>, root?: location.
|
|
253
|
+
currRoot: location.Corner | null;
|
|
254
|
+
constructor(x?: Scale<number>, y?: Scale<number>, root?: location.Corner | null);
|
|
255
255
|
static translate(xy: number | xy.XY, y?: number): XY;
|
|
256
256
|
static translateX(x: number): XY;
|
|
257
257
|
static translateY(y: number): XY;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../../src/spatial/scale/scale.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,W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../box';
|
|
3
3
|
import { location } from '../location';
|
|
4
|
+
import { StickyXY } from '../types.gen';
|
|
4
5
|
import { xy as base } from '../xy';
|
|
5
|
-
export declare const
|
|
6
|
+
export declare const xyZ: z.ZodObject<{
|
|
6
7
|
x: z.ZodNumber;
|
|
7
8
|
y: z.ZodNumber;
|
|
8
|
-
root: z.ZodObject<{
|
|
9
|
+
root: z.ZodOptional<z.ZodObject<{
|
|
9
10
|
x: z.ZodEnum<{
|
|
10
|
-
right: "right";
|
|
11
11
|
left: "left";
|
|
12
|
+
right: "right";
|
|
12
13
|
}>;
|
|
13
14
|
y: z.ZodEnum<{
|
|
14
15
|
top: "top";
|
|
15
16
|
bottom: "bottom";
|
|
16
17
|
}>;
|
|
17
|
-
}, z.core.$strip
|
|
18
|
-
units: z.ZodObject<{
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
units: z.ZodOptional<z.ZodObject<{
|
|
19
20
|
x: z.ZodEnum<{
|
|
20
21
|
px: "px";
|
|
21
22
|
decimal: "decimal";
|
|
@@ -24,23 +25,23 @@ export declare const completeXY: z.ZodObject<{
|
|
|
24
25
|
px: "px";
|
|
25
26
|
decimal: "decimal";
|
|
26
27
|
}>;
|
|
27
|
-
}, z.core.$strip
|
|
28
|
+
}, z.core.$strip>>;
|
|
28
29
|
}, z.core.$strip>;
|
|
29
|
-
export type
|
|
30
|
-
export declare const
|
|
30
|
+
export type XY = StickyXY;
|
|
31
|
+
export declare const completeXYZ: z.ZodObject<{
|
|
31
32
|
x: z.ZodNumber;
|
|
32
33
|
y: z.ZodNumber;
|
|
33
|
-
root: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
root: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
34
35
|
x: z.ZodEnum<{
|
|
35
|
-
right: "right";
|
|
36
36
|
left: "left";
|
|
37
|
+
right: "right";
|
|
37
38
|
}>;
|
|
38
39
|
y: z.ZodEnum<{
|
|
39
40
|
top: "top";
|
|
40
41
|
bottom: "bottom";
|
|
41
42
|
}>;
|
|
42
|
-
}, z.core.$strip
|
|
43
|
-
units: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
units: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
44
45
|
x: z.ZodEnum<{
|
|
45
46
|
px: "px";
|
|
46
47
|
decimal: "decimal";
|
|
@@ -49,10 +50,9 @@ export declare const xy: z.ZodObject<{
|
|
|
49
50
|
px: "px";
|
|
50
51
|
decimal: "decimal";
|
|
51
52
|
}>;
|
|
52
|
-
}, z.core.$strip
|
|
53
|
+
}, z.core.$strip>>>;
|
|
53
54
|
}, z.core.$strip>;
|
|
54
|
-
export
|
|
55
|
-
}
|
|
55
|
+
export type CompleteXY = z.infer<typeof completeXYZ>;
|
|
56
56
|
interface ToCSSReturn extends Partial<Record<location.Outer, string>> {
|
|
57
57
|
}
|
|
58
58
|
export declare const toCSS: (pos: XY) => ToCSSReturn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sticky.d.ts","sourceRoot":"","sources":["../../../../src/spatial/sticky/sticky.ts"],"names":[],"mappings":"AASA,OAAO,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"sticky.d.ts","sourceRoot":"","sources":["../../../../src/spatial/sticky/sticky.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;iBAAY,CAAC;AAC7B,MAAM,MAAM,EAAE,GAAG,QAAQ,CAAC;AAE1B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;iBAAkD,CAAC;AAC3E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAErD,UAAU,WAAY,SAAQ,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CAAG;AAExE,eAAO,MAAM,KAAK,GAAI,KAAK,EAAE,KAAG,WAM/B,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,EAAE,CAAC;IACb,OAAO,EAAE,GAAG,CAAC,GAAG,CAAC;IACjB,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,GAAI,mCAIvB,cAAc,KAAG,IAAI,CAAC,EAaxB,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,EAAE,CAAC;IACb,OAAO,EAAE,GAAG,CAAC,GAAG,CAAC;IACjB,SAAS,EAAE,GAAG,CAAC,GAAG,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,SAAS,GAAI,mEAMvB,cAAc,KAAG,EAmBnB,CAAC"}
|
|
@@ -1,12 +1,82 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { numeric } from '../numeric';
|
|
3
|
+
export declare const X_LOCATIONS: readonly ["left", "right"];
|
|
4
|
+
export declare const xLocationZ: z.ZodEnum<{
|
|
5
|
+
left: "left";
|
|
6
|
+
right: "right";
|
|
7
|
+
}>;
|
|
8
|
+
export type XLocation = z.infer<typeof xLocationZ>;
|
|
9
|
+
export declare const Y_LOCATIONS: readonly ["top", "bottom"];
|
|
10
|
+
export declare const yLocationZ: z.ZodEnum<{
|
|
11
|
+
top: "top";
|
|
12
|
+
bottom: "bottom";
|
|
13
|
+
}>;
|
|
14
|
+
export type YLocation = z.infer<typeof yLocationZ>;
|
|
15
|
+
export declare const STICKY_UNITS: readonly ["px", "decimal"];
|
|
16
|
+
export declare const stickyUnitZ: z.ZodEnum<{
|
|
17
|
+
px: "px";
|
|
18
|
+
decimal: "decimal";
|
|
19
|
+
}>;
|
|
20
|
+
export type StickyUnit = z.infer<typeof stickyUnitZ>;
|
|
2
21
|
export declare const OUTER_LOCATIONS: readonly ["top", "right", "bottom", "left"];
|
|
3
22
|
export declare const outerLocationZ: z.ZodEnum<{
|
|
4
|
-
|
|
23
|
+
left: "left";
|
|
5
24
|
right: "right";
|
|
25
|
+
top: "top";
|
|
6
26
|
bottom: "bottom";
|
|
7
|
-
left: "left";
|
|
8
27
|
}>;
|
|
9
28
|
export type OuterLocation = z.infer<typeof outerLocationZ>;
|
|
29
|
+
export declare const DIRECTIONS: readonly ["x", "y"];
|
|
30
|
+
export declare const directionZ: z.ZodEnum<{
|
|
31
|
+
x: "x";
|
|
32
|
+
y: "y";
|
|
33
|
+
}>;
|
|
34
|
+
export type Direction = z.infer<typeof directionZ>;
|
|
35
|
+
export declare const ANGULAR_DIRECTIONS: readonly ["clockwise", "counterclockwise"];
|
|
36
|
+
export declare const angularDirectionZ: z.ZodEnum<{
|
|
37
|
+
clockwise: "clockwise";
|
|
38
|
+
counterclockwise: "counterclockwise";
|
|
39
|
+
}>;
|
|
40
|
+
export type AngularDirection = z.infer<typeof angularDirectionZ>;
|
|
41
|
+
export declare const CENTER_LOCATIONS: readonly ["center"];
|
|
42
|
+
export declare const centerLocationZ: z.ZodEnum<{
|
|
43
|
+
center: "center";
|
|
44
|
+
}>;
|
|
45
|
+
export type CenterLocation = z.infer<typeof centerLocationZ>;
|
|
46
|
+
export declare const LOCATIONS: readonly ["top", "right", "bottom", "left", "center"];
|
|
47
|
+
export declare const locationZ: z.ZodEnum<{
|
|
48
|
+
left: "left";
|
|
49
|
+
right: "right";
|
|
50
|
+
top: "top";
|
|
51
|
+
bottom: "bottom";
|
|
52
|
+
center: "center";
|
|
53
|
+
}>;
|
|
54
|
+
export type Location = z.infer<typeof locationZ>;
|
|
55
|
+
export declare const ALIGNMENTS: readonly ["start", "center", "end"];
|
|
56
|
+
export declare const alignmentZ: z.ZodEnum<{
|
|
57
|
+
center: "center";
|
|
58
|
+
start: "start";
|
|
59
|
+
end: "end";
|
|
60
|
+
}>;
|
|
61
|
+
export type Alignment = z.infer<typeof alignmentZ>;
|
|
62
|
+
export declare const ORDERS: readonly ["first", "last"];
|
|
63
|
+
export declare const orderZ: z.ZodEnum<{
|
|
64
|
+
first: "first";
|
|
65
|
+
last: "last";
|
|
66
|
+
}>;
|
|
67
|
+
export type Order = z.infer<typeof orderZ>;
|
|
68
|
+
export declare const DIMENSIONS: readonly ["width", "height"];
|
|
69
|
+
export declare const dimensionZ: z.ZodEnum<{
|
|
70
|
+
width: "width";
|
|
71
|
+
height: "height";
|
|
72
|
+
}>;
|
|
73
|
+
export type Dimension = z.infer<typeof dimensionZ>;
|
|
74
|
+
export declare const SIGNED_DIMENSIONS: readonly ["signedWidth", "signedHeight"];
|
|
75
|
+
export declare const signedDimensionZ: z.ZodEnum<{
|
|
76
|
+
signedWidth: "signedWidth";
|
|
77
|
+
signedHeight: "signedHeight";
|
|
78
|
+
}>;
|
|
79
|
+
export type SignedDimension = z.infer<typeof signedDimensionZ>;
|
|
10
80
|
/**
|
|
11
81
|
* XY is a 2D coordinate point with x and y values. Used for positioning
|
|
12
82
|
* elements in two-dimensional space.
|
|
@@ -17,4 +87,111 @@ export declare const xyZ: z.ZodObject<{
|
|
|
17
87
|
}, z.core.$strip>;
|
|
18
88
|
export interface XY extends z.infer<typeof xyZ> {
|
|
19
89
|
}
|
|
90
|
+
/** CornerLocation is an anchor corner for positioning. */
|
|
91
|
+
export declare const cornerLocationZ: z.ZodObject<{
|
|
92
|
+
x: z.ZodEnum<{
|
|
93
|
+
left: "left";
|
|
94
|
+
right: "right";
|
|
95
|
+
}>;
|
|
96
|
+
y: z.ZodEnum<{
|
|
97
|
+
top: "top";
|
|
98
|
+
bottom: "bottom";
|
|
99
|
+
}>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export interface CornerLocation extends z.infer<typeof cornerLocationZ> {
|
|
102
|
+
}
|
|
103
|
+
/** StickyUnits specifies the measurement units for sticky positioning. */
|
|
104
|
+
export declare const stickyUnitsZ: z.ZodObject<{
|
|
105
|
+
x: z.ZodEnum<{
|
|
106
|
+
px: "px";
|
|
107
|
+
decimal: "decimal";
|
|
108
|
+
}>;
|
|
109
|
+
y: z.ZodEnum<{
|
|
110
|
+
px: "px";
|
|
111
|
+
decimal: "decimal";
|
|
112
|
+
}>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export interface StickyUnits extends z.infer<typeof stickyUnitsZ> {
|
|
115
|
+
}
|
|
116
|
+
/** Dimensions is a 2D size with width and height values. */
|
|
117
|
+
export declare const dimensionsZ: z.ZodObject<{
|
|
118
|
+
width: z.ZodNumber;
|
|
119
|
+
height: z.ZodNumber;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
export interface Dimensions extends z.infer<typeof dimensionsZ> {
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* SignedDimensions is a 2D size whose width and height components carry sign, allowing
|
|
125
|
+
* negative values to express direction.
|
|
126
|
+
*/
|
|
127
|
+
export declare const signedDimensionsZ: z.ZodObject<{
|
|
128
|
+
signedWidth: z.ZodNumber;
|
|
129
|
+
signedHeight: z.ZodNumber;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
export interface SignedDimensions extends z.infer<typeof signedDimensionsZ> {
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* ClientXY is a 2D coordinate point expressed in client (viewport) space, matching
|
|
135
|
+
* the shape of DOM mouse events.
|
|
136
|
+
*/
|
|
137
|
+
export declare const clientXYZ: z.ZodObject<{
|
|
138
|
+
clientX: z.ZodNumber;
|
|
139
|
+
clientY: z.ZodNumber;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export interface ClientXY extends z.infer<typeof clientXYZ> {
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Bounds is a closed-open interval [lower, upper) over an ordered numeric value
|
|
145
|
+
* space. The TypeScript binding is generic over T so callers can express
|
|
146
|
+
* bounds over either number or bigint values; other languages emit a
|
|
147
|
+
* concrete float64-based type.
|
|
148
|
+
*/
|
|
149
|
+
export declare const boundsZ: <T extends numeric.Value = number>(t?: z.ZodType<T>) => z.ZodObject<{
|
|
150
|
+
lower: z.ZodNumber | z.ZodType<T, unknown, z.core.$ZodTypeInternals<T, unknown>>;
|
|
151
|
+
upper: z.ZodNumber | z.ZodType<T, unknown, z.core.$ZodTypeInternals<T, unknown>>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
export interface Bounds<T extends numeric.Value = number> {
|
|
154
|
+
lower: T;
|
|
155
|
+
upper: T;
|
|
156
|
+
}
|
|
157
|
+
/** Viewport is the camera state of a viewport. */
|
|
158
|
+
export declare const viewportZ: z.ZodObject<{
|
|
159
|
+
zoom: z.ZodDefault<z.ZodNumber>;
|
|
160
|
+
position: z.ZodObject<{
|
|
161
|
+
x: z.ZodNumber;
|
|
162
|
+
y: z.ZodNumber;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
export interface Viewport extends z.infer<typeof viewportZ> {
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* StickyXY is a position that can be anchored to different corners of a
|
|
169
|
+
* container with configurable units (pixels or decimal fractions).
|
|
170
|
+
*/
|
|
171
|
+
export declare const stickyXYZ: z.ZodObject<{
|
|
172
|
+
x: z.ZodNumber;
|
|
173
|
+
y: z.ZodNumber;
|
|
174
|
+
root: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
x: z.ZodEnum<{
|
|
176
|
+
left: "left";
|
|
177
|
+
right: "right";
|
|
178
|
+
}>;
|
|
179
|
+
y: z.ZodEnum<{
|
|
180
|
+
top: "top";
|
|
181
|
+
bottom: "bottom";
|
|
182
|
+
}>;
|
|
183
|
+
}, z.core.$strip>>;
|
|
184
|
+
units: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
x: z.ZodEnum<{
|
|
186
|
+
px: "px";
|
|
187
|
+
decimal: "decimal";
|
|
188
|
+
}>;
|
|
189
|
+
y: z.ZodEnum<{
|
|
190
|
+
px: "px";
|
|
191
|
+
decimal: "decimal";
|
|
192
|
+
}>;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
export interface StickyXY extends z.infer<typeof stickyXYZ> {
|
|
196
|
+
}
|
|
20
197
|
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/spatial/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe,6CAA8C,CAAC;AAC3E,eAAO,MAAM,cAAc;;;;;EAA0B,CAAC;AACtD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,GAAG;;;iBAKd,CAAC;AACH,MAAM,WAAW,EAAG,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC;CAAG"}
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/spatial/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,eAAO,MAAM,WAAW,4BAA6B,CAAC;AACtD,eAAO,MAAM,UAAU;;;EAAsB,CAAC;AAC9C,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEnD,eAAO,MAAM,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AACH,eAAO,MAAM,SAAS;;;iBAKpB,CAAC;AACH,MAAM,WAAW,QAAS,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC;CAAG;AAE9D;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,OAAO,CAAC,KAAK,GAAG,MAAM,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;;;iBAMtE,CAAC;AACL,MAAM,WAAW,MAAM,CAAC,CAAC,SAAS,OAAO,CAAC,KAAK,GAAG,MAAM;IACtD,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,CAAC,CAAC;CACV;AAED,kDAAkD;AAClD,eAAO,MAAM,SAAS;;;;;;iBAKpB,CAAC;AACH,MAAM,WAAW,QAAS,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC;CAAG;AAE9D;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;iBASpB,CAAC;AACH,MAAM,WAAW,QAAS,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC;CAAG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AngularDirection, ClientXY,
|
|
2
|
+
import { AngularDirection, ClientXY, clientXYZ, Direction, NumberCouple, XY, xyZ } from '../base';
|
|
3
|
+
import { direction } from '../direction';
|
|
3
4
|
import { location } from '../location';
|
|
4
|
-
|
|
5
|
-
export { type ClientXY as Client, clientXyZ, type XY, xyZ };
|
|
5
|
+
export { type ClientXY as Client, clientXYZ, type XY, xyZ };
|
|
6
6
|
/** A crude representation of a {@link XY} coordinate as a zod schema. */
|
|
7
7
|
export declare const crudeZ: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
8
8
|
x: z.ZodNumber;
|
|
@@ -62,7 +62,7 @@ export declare const translate: Translate;
|
|
|
62
62
|
* @returns the given coordinate the given direction set to the given value.
|
|
63
63
|
* @example set({ x: 1, y: 2 }, "x", 3) // { x: 3, y: 2 }
|
|
64
64
|
*/
|
|
65
|
-
export declare const set: (c: Crude, direction:
|
|
65
|
+
export declare const set: (c: Crude, direction: direction.Crude, value: number) => XY;
|
|
66
66
|
/** @returns the magnitude of the distance between the two given coordinates. */
|
|
67
67
|
export declare const distance: (ca: Crude, cb: Crude) => number;
|
|
68
68
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xy.d.ts","sourceRoot":"","sources":["../../../../src/spatial/xy/xy.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,SAAS,
|
|
1
|
+
{"version":3,"file":"xy.d.ts","sourceRoot":"","sources":["../../../../src/spatial/xy/xy.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,SAAS,EAET,KAAK,SAAS,EACd,KAAK,YAAY,EAGjB,KAAK,EAAE,EACP,GAAG,EACJ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,KAAK,QAAQ,IAAI,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,CAAC;AAE5D,yEAAyE;AACzE,eAAO,MAAM,MAAM;;;;;;;;;;;;mBAOjB,CAAC;AAEH,yDAAyD;AACzD,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAE3C;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,GAAI,GAAG,KAAK,GAAG,SAAS,EAAE,IAAI,MAAM,KAAG,EAa5D,CA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AAEF,eAAO,MAAM,KAAK,GAAI,GAAG,KAAK,KAAG,EAGhC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,GAAI,GAAG,KAAK,KAAG,EAGrC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,GAAI,OAAO,KAAK,EAAE,QAAQ,KAAK,EAAE,KAAK,gBAAgB,KAAG,EAY3E,CAAC"}
|
|
@@ -30,6 +30,17 @@ export declare const exceptionDetailsSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
30
30
|
error: z.ZodCustom<Error, Error>;
|
|
31
31
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodUnknown>>;
|
|
32
32
|
export declare const fromException: (exc: unknown, message?: string) => Status<typeof exceptionDetailsSchema, z.ZodLiteral<"error">>;
|
|
33
|
+
/**
|
|
34
|
+
* Converts an exception-shaped status (one built via {@link fromException}) back
|
|
35
|
+
* into a thrown-shaped {@link Error}. The returned error carries the status's
|
|
36
|
+
* wrapped message, copies `name` and `stack` from the inner error preserved on
|
|
37
|
+
* `details.error`, and stashes the full status on `cause` for callers that need
|
|
38
|
+
* the rich shape.
|
|
39
|
+
*
|
|
40
|
+
* Use this when bridging the status pipeline back into a context that expects
|
|
41
|
+
* a real Error — typically before `throw`-ing across an error boundary.
|
|
42
|
+
*/
|
|
43
|
+
export declare const toError: (s: Status<typeof exceptionDetailsSchema, z.ZodLiteral<"error">>) => Error;
|
|
33
44
|
export declare const create: <DetailsSchema extends z.ZodType = z.ZodNever, V extends Variant = Variant>(spec: Crude<DetailsSchema, V>) => Status<DetailsSchema, z.ZodType<V>>;
|
|
34
45
|
export declare const keepVariants: (variant?: Variant, keep?: Variant | Variant[]) => Variant | undefined;
|
|
35
46
|
export declare const removeVariants: (variant?: Variant, remove?: Variant | Variant[]) => Variant | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"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OAAM,OAAO,GAAG,OAAO,EAAO,KAC7B,OAAO,GAAG,SAOZ,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,UAAU,OAAO,EACjB,SAAQ,OAAO,GAAG,OAAO,EAAO,KAC/B,OAAO,GAAG,SAOZ,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAiBD,eAAO,MAAM,QAAQ,GAAI,OAAO,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,QAAQ,EAC7D,MAAM,MAAM,CAAC,OAAO,CAAC,EACrB,UAAS,eAAoB,KAC5B,MAoBF,CAAC"}
|
|
@@ -2,4 +2,5 @@ export * from './clockSkew';
|
|
|
2
2
|
export { type GLBufferController } from './gl';
|
|
3
3
|
export * from './series';
|
|
4
4
|
export * from './telem';
|
|
5
|
+
export { TIME_ZONES, TIMESTAMP_FORMATS, type TimestampFormat, timestampFormatZ, type TimeZone, timeZoneZ, } from './types.gen';
|
|
5
6
|
//# sourceMappingURL=external.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/telem/external.ts"],"names":[],"mappings":"AASA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/telem/external.ts"],"names":[],"mappings":"AASA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,KAAK,eAAe,EACpB,gBAAgB,EAChB,KAAK,QAAQ,EACb,SAAS,GACV,MAAM,mBAAmB,CAAC"}
|
|
@@ -117,7 +117,7 @@ export declare class Series<T extends TelemValue = TelemValue> implements instan
|
|
|
117
117
|
}>>, z.ZodCustom<TimeRange, TimeRange>]>>;
|
|
118
118
|
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DataType, string>>, z.ZodCustom<DataType, DataType>]>;
|
|
119
119
|
alignment: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
120
|
-
data: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<ArrayBuffer, string>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<ArrayBuffer, null | undefined>>, z.ZodCustom<ArrayBuffer, ArrayBuffer>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]
|
|
120
|
+
data: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<ArrayBuffer, string>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<ArrayBuffer, null | undefined>>, z.ZodCustom<ArrayBuffer, ArrayBuffer>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
121
121
|
glBufferUsage: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
122
122
|
static: "static";
|
|
123
123
|
dynamic: "dynamic";
|
|
@@ -145,7 +145,7 @@ export declare class Series<T extends TelemValue = TelemValue> implements instan
|
|
|
145
145
|
}>>, z.ZodCustom<TimeRange, TimeRange>]>>;
|
|
146
146
|
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DataType, string>>, z.ZodCustom<DataType, DataType>]>;
|
|
147
147
|
alignment: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
148
|
-
data: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<ArrayBuffer, string>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<ArrayBuffer, null | undefined>>, z.ZodCustom<ArrayBuffer, ArrayBuffer>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]
|
|
148
|
+
data: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<ArrayBuffer, string>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<ArrayBuffer, null | undefined>>, z.ZodCustom<ArrayBuffer, ArrayBuffer>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
149
149
|
glBufferUsage: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
150
150
|
static: "static";
|
|
151
151
|
dynamic: "dynamic";
|
|
@@ -363,7 +363,10 @@ export declare class Series<T extends TelemValue = TelemValue> implements instan
|
|
|
363
363
|
* @param required throws an error if the value is not found.
|
|
364
364
|
*/
|
|
365
365
|
at(index: number, required?: false): T | undefined;
|
|
366
|
+
private applyOffset;
|
|
366
367
|
private atUUID;
|
|
368
|
+
asString(index: number, required: true): string;
|
|
369
|
+
asString(index: number, required?: false): string | undefined;
|
|
367
370
|
private atVariable;
|
|
368
371
|
/**
|
|
369
372
|
* @returns the index of the first sample that is greater than or equal to the given value.
|