@retikz/core 0.3.0-alpha.2 → 0.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -41
- package/dist/es/compile/anchor-cache.d.ts +5 -3
- package/dist/es/compile/anchor-cache.d.ts.map +1 -1
- package/dist/es/compile/anchor-cache.js +14 -10
- package/dist/es/compile/boundary.d.ts +19 -0
- package/dist/es/compile/boundary.d.ts.map +1 -0
- package/dist/es/compile/boundary.js +64 -0
- package/dist/es/compile/compile.d.ts.map +1 -1
- package/dist/es/compile/compile.js +15 -2
- package/dist/es/compile/node.d.ts +24 -8
- package/dist/es/compile/node.d.ts.map +1 -1
- package/dist/es/compile/node.js +106 -17
- package/dist/es/compile/path/anchor.d.ts.map +1 -1
- package/dist/es/compile/path/anchor.js +7 -6
- package/dist/es/compile/path/index.d.ts.map +1 -1
- package/dist/es/compile/path/index.js +7 -3
- package/dist/es/compile/path/relative.js +1 -1
- package/dist/es/compile/scope.d.ts.map +1 -1
- package/dist/es/compile/scope.js +2 -1
- package/dist/es/geometry/arc.d.ts +14 -0
- package/dist/es/geometry/arc.d.ts.map +1 -1
- package/dist/es/geometry/arc.js +65 -9
- package/dist/es/geometry/index.d.ts +1 -0
- package/dist/es/geometry/index.d.ts.map +1 -1
- package/dist/es/geometry/rect.d.ts +2 -2
- package/dist/es/geometry/rect.d.ts.map +1 -1
- package/dist/es/geometry/rect.js +3 -3
- package/dist/es/geometry/roundedContour.d.ts +88 -0
- package/dist/es/geometry/roundedContour.d.ts.map +1 -0
- package/dist/es/geometry/roundedContour.js +417 -0
- package/dist/es/index.d.ts +6 -5
- package/dist/es/index.d.ts.map +1 -1
- package/dist/es/index.js +9 -6
- package/dist/es/ir/boundary.d.ts +25 -0
- package/dist/es/ir/boundary.d.ts.map +1 -0
- package/dist/es/ir/boundary.js +14 -0
- package/dist/es/ir/index.d.ts +2 -0
- package/dist/es/ir/index.d.ts.map +1 -1
- package/dist/es/ir/node.d.ts +43 -7
- package/dist/es/ir/node.d.ts.map +1 -1
- package/dist/es/ir/node.js +8 -3
- package/dist/es/ir/path/arrow.d.ts +12 -12
- package/dist/es/ir/path/path.d.ts +493 -147
- package/dist/es/ir/path/path.d.ts.map +1 -1
- package/dist/es/ir/path/path.js +3 -0
- package/dist/es/ir/path/step.d.ts +674 -154
- package/dist/es/ir/path/step.d.ts.map +1 -1
- package/dist/es/ir/path/step.js +2 -2
- package/dist/es/ir/path/target.d.ts +43 -8
- package/dist/es/ir/path/target.d.ts.map +1 -1
- package/dist/es/ir/path/target.js +4 -5
- package/dist/es/ir/scope.d.ts +851 -234
- package/dist/es/ir/scope.d.ts.map +1 -1
- package/dist/es/ir/scope.js +6 -2
- package/dist/es/ir/shape.d.ts +14 -0
- package/dist/es/ir/shape.d.ts.map +1 -0
- package/dist/es/ir/shape.js +9 -0
- package/dist/es/parsers/parseNodeTarget.d.ts.map +1 -1
- package/dist/es/parsers/parseNodeTarget.js +4 -2
- package/dist/es/primitive/ellipse.d.ts +5 -0
- package/dist/es/primitive/ellipse.d.ts.map +1 -1
- package/dist/es/primitive/group.d.ts +5 -0
- package/dist/es/primitive/group.d.ts.map +1 -1
- package/dist/es/primitive/path.d.ts +5 -0
- package/dist/es/primitive/path.d.ts.map +1 -1
- package/dist/es/primitive/rect.d.ts +5 -0
- package/dist/es/primitive/rect.d.ts.map +1 -1
- package/dist/es/primitive/text.d.ts +5 -0
- package/dist/es/primitive/text.d.ts.map +1 -1
- package/dist/es/shapes/_contour.d.ts +19 -0
- package/dist/es/shapes/_contour.d.ts.map +1 -0
- package/dist/es/shapes/_contour.js +60 -0
- package/dist/es/shapes/_shared.d.ts +54 -0
- package/dist/es/shapes/_shared.d.ts.map +1 -1
- package/dist/es/shapes/_shared.js +68 -1
- package/dist/es/shapes/arc.d.ts +8 -0
- package/dist/es/shapes/arc.d.ts.map +1 -0
- package/dist/es/shapes/arc.js +104 -0
- package/dist/es/shapes/define.d.ts +13 -0
- package/dist/es/shapes/define.d.ts.map +1 -0
- package/dist/es/shapes/define.js +13 -0
- package/dist/es/shapes/ellipse.d.ts +5 -4
- package/dist/es/shapes/ellipse.d.ts.map +1 -1
- package/dist/es/shapes/ellipse.js +15 -7
- package/dist/es/shapes/index.d.ts +9 -6
- package/dist/es/shapes/index.d.ts.map +1 -1
- package/dist/es/shapes/index.js +10 -5
- package/dist/es/shapes/polygon.d.ts +13 -0
- package/dist/es/shapes/polygon.d.ts.map +1 -0
- package/dist/es/shapes/polygon.js +104 -0
- package/dist/es/shapes/rectangle.d.ts +7 -5
- package/dist/es/shapes/rectangle.d.ts.map +1 -1
- package/dist/es/shapes/rectangle.js +37 -8
- package/dist/es/shapes/sector.d.ts +9 -0
- package/dist/es/shapes/sector.d.ts.map +1 -0
- package/dist/es/shapes/sector.js +143 -0
- package/dist/es/shapes/star.d.ts +15 -0
- package/dist/es/shapes/star.d.ts.map +1 -0
- package/dist/es/shapes/star.js +113 -0
- package/dist/es/shapes/types.d.ts +47 -14
- package/dist/es/shapes/types.d.ts.map +1 -1
- package/dist/lib/compile/anchor-cache.cjs +14 -10
- package/dist/lib/compile/anchor-cache.d.ts +5 -3
- package/dist/lib/compile/anchor-cache.d.ts.map +1 -1
- package/dist/lib/compile/boundary.cjs +65 -0
- package/dist/lib/compile/boundary.d.ts +19 -0
- package/dist/lib/compile/boundary.d.ts.map +1 -0
- package/dist/lib/compile/compile.cjs +15 -2
- package/dist/lib/compile/compile.d.ts.map +1 -1
- package/dist/lib/compile/node.cjs +106 -17
- package/dist/lib/compile/node.d.ts +24 -8
- package/dist/lib/compile/node.d.ts.map +1 -1
- package/dist/lib/compile/path/anchor.cjs +7 -6
- package/dist/lib/compile/path/anchor.d.ts.map +1 -1
- package/dist/lib/compile/path/index.cjs +7 -3
- package/dist/lib/compile/path/index.d.ts.map +1 -1
- package/dist/lib/compile/path/relative.cjs +1 -1
- package/dist/lib/compile/scope.cjs +2 -1
- package/dist/lib/compile/scope.d.ts.map +1 -1
- package/dist/lib/geometry/arc.cjs +66 -8
- package/dist/lib/geometry/arc.d.ts +14 -0
- package/dist/lib/geometry/arc.d.ts.map +1 -1
- package/dist/lib/geometry/index.d.ts +1 -0
- package/dist/lib/geometry/index.d.ts.map +1 -1
- package/dist/lib/geometry/rect.cjs +3 -3
- package/dist/lib/geometry/rect.d.ts +2 -2
- package/dist/lib/geometry/rect.d.ts.map +1 -1
- package/dist/lib/geometry/roundedContour.cjs +418 -0
- package/dist/lib/geometry/roundedContour.d.ts +88 -0
- package/dist/lib/geometry/roundedContour.d.ts.map +1 -0
- package/dist/lib/index.cjs +14 -7
- package/dist/lib/index.d.ts +6 -5
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/ir/boundary.cjs +15 -0
- package/dist/lib/ir/boundary.d.ts +25 -0
- package/dist/lib/ir/boundary.d.ts.map +1 -0
- package/dist/lib/ir/index.d.ts +2 -0
- package/dist/lib/ir/index.d.ts.map +1 -1
- package/dist/lib/ir/node.cjs +8 -3
- package/dist/lib/ir/node.d.ts +43 -7
- package/dist/lib/ir/node.d.ts.map +1 -1
- package/dist/lib/ir/path/arrow.d.ts +12 -12
- package/dist/lib/ir/path/path.cjs +3 -0
- package/dist/lib/ir/path/path.d.ts +493 -147
- package/dist/lib/ir/path/path.d.ts.map +1 -1
- package/dist/lib/ir/path/step.cjs +2 -2
- package/dist/lib/ir/path/step.d.ts +674 -154
- package/dist/lib/ir/path/step.d.ts.map +1 -1
- package/dist/lib/ir/path/target.cjs +4 -5
- package/dist/lib/ir/path/target.d.ts +43 -8
- package/dist/lib/ir/path/target.d.ts.map +1 -1
- package/dist/lib/ir/scope.cjs +6 -2
- package/dist/lib/ir/scope.d.ts +851 -234
- package/dist/lib/ir/scope.d.ts.map +1 -1
- package/dist/lib/ir/shape.cjs +9 -0
- package/dist/lib/ir/shape.d.ts +14 -0
- package/dist/lib/ir/shape.d.ts.map +1 -0
- package/dist/lib/parsers/parseNodeTarget.cjs +4 -2
- package/dist/lib/parsers/parseNodeTarget.d.ts.map +1 -1
- package/dist/lib/primitive/ellipse.d.ts +5 -0
- package/dist/lib/primitive/ellipse.d.ts.map +1 -1
- package/dist/lib/primitive/group.d.ts +5 -0
- package/dist/lib/primitive/group.d.ts.map +1 -1
- package/dist/lib/primitive/path.d.ts +5 -0
- package/dist/lib/primitive/path.d.ts.map +1 -1
- package/dist/lib/primitive/rect.d.ts +5 -0
- package/dist/lib/primitive/rect.d.ts.map +1 -1
- package/dist/lib/primitive/text.d.ts +5 -0
- package/dist/lib/primitive/text.d.ts.map +1 -1
- package/dist/lib/shapes/_contour.cjs +61 -0
- package/dist/lib/shapes/_contour.d.ts +19 -0
- package/dist/lib/shapes/_contour.d.ts.map +1 -0
- package/dist/lib/shapes/_shared.cjs +70 -0
- package/dist/lib/shapes/_shared.d.ts +54 -0
- package/dist/lib/shapes/_shared.d.ts.map +1 -1
- package/dist/lib/shapes/arc.cjs +104 -0
- package/dist/lib/shapes/arc.d.ts +8 -0
- package/dist/lib/shapes/arc.d.ts.map +1 -0
- package/dist/lib/shapes/define.cjs +13 -0
- package/dist/lib/shapes/define.d.ts +13 -0
- package/dist/lib/shapes/define.d.ts.map +1 -0
- package/dist/lib/shapes/ellipse.cjs +15 -7
- package/dist/lib/shapes/ellipse.d.ts +5 -4
- package/dist/lib/shapes/ellipse.d.ts.map +1 -1
- package/dist/lib/shapes/index.cjs +12 -6
- package/dist/lib/shapes/index.d.ts +9 -6
- package/dist/lib/shapes/index.d.ts.map +1 -1
- package/dist/lib/shapes/polygon.cjs +104 -0
- package/dist/lib/shapes/polygon.d.ts +13 -0
- package/dist/lib/shapes/polygon.d.ts.map +1 -0
- package/dist/lib/shapes/rectangle.cjs +37 -8
- package/dist/lib/shapes/rectangle.d.ts +7 -5
- package/dist/lib/shapes/rectangle.d.ts.map +1 -1
- package/dist/lib/shapes/sector.cjs +143 -0
- package/dist/lib/shapes/sector.d.ts +9 -0
- package/dist/lib/shapes/sector.d.ts.map +1 -0
- package/dist/lib/shapes/star.cjs +113 -0
- package/dist/lib/shapes/star.d.ts +15 -0
- package/dist/lib/shapes/star.d.ts.map +1 -0
- package/dist/lib/shapes/types.d.ts +47 -14
- package/dist/lib/shapes/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/es/shapes/circle.d.ts +0 -8
- package/dist/es/shapes/circle.d.ts.map +0 -1
- package/dist/es/shapes/circle.js +0 -34
- package/dist/es/shapes/diamond.d.ts +0 -8
- package/dist/es/shapes/diamond.d.ts.map +0 -1
- package/dist/es/shapes/diamond.js +0 -66
- package/dist/lib/shapes/circle.cjs +0 -34
- package/dist/lib/shapes/circle.d.ts +0 -8
- package/dist/lib/shapes/circle.d.ts.map +0 -1
- package/dist/lib/shapes/diamond.cjs +0 -66
- package/dist/lib/shapes/diamond.d.ts +0 -8
- package/dist/lib/shapes/diamond.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../../src/ir/path/step.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDzB,CAAC;AAEJ,gBAAgB;AAChB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../../src/ir/path/step.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDzB,CAAC;AAEJ,gBAAgB;AAChB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eA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AAC;AACtE,sCAAsC;AACtC,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,6EAA6E;AAC7E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAElE;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
const require_position = require("../position/position.cjs");
|
|
2
2
|
const require_polar_position = require("../position/polar-position.cjs");
|
|
3
3
|
const require_offset_position = require("../position/offset-position.cjs");
|
|
4
|
-
const
|
|
4
|
+
const require_boundary = require("../boundary.cjs");
|
|
5
5
|
const require_between_position = require("../position/between-position.cjs");
|
|
6
6
|
let zod = require("zod");
|
|
7
7
|
//#region src/ir/path/target.ts
|
|
8
|
-
/** 9 个命名 anchor(复用 geometry/rect.ts,避免两套常量) */
|
|
9
|
-
var NAMED_ANCHORS = Object.values(require_rect.RECT_ANCHORS);
|
|
10
8
|
var AnchorRefSchema = zod.z.union([
|
|
11
|
-
zod.z.
|
|
9
|
+
zod.z.string().min(1).describe("Named anchor: one of the 9 built-in rect anchors (center / north / ... / south-west) or any anchor name interpreted by the referenced shape (e.g. sector apex / outer-arc-mid). Unrecognized names throw at compile time."),
|
|
12
10
|
zod.z.number().finite().describe("Angle anchor in degrees (boundary point in that direction)"),
|
|
13
11
|
zod.z.object({
|
|
14
12
|
side: zod.z.enum([
|
|
@@ -23,7 +21,8 @@ var AnchorRefSchema = zod.z.union([
|
|
|
23
21
|
var NodeTargetSchema = zod.z.object({
|
|
24
22
|
id: zod.z.string().min(1).describe("Referenced Node/Coordinate id"),
|
|
25
23
|
anchor: AnchorRefSchema.optional().describe("Optional anchor; omitted = auto clip to boundary"),
|
|
26
|
-
offset: zod.z.tuple([zod.z.number().finite(), zod.z.number().finite()]).optional().describe("Optional world-space 2D offset added after the anchor/edge point is resolved")
|
|
24
|
+
offset: zod.z.tuple([zod.z.number().finite(), zod.z.number().finite()]).optional().describe("Optional world-space 2D offset added after the anchor/edge point is resolved"),
|
|
25
|
+
boundary: require_boundary.BoundarySchema.optional().describe("Per-edge override of the target node connection surface for THIS endpoint only; omitted = the node's `boundary` (default \"shape\"). Effective only where a connection surface is meaningful: path-endpoint auto-clip (no explicit anchor) and this endpoint's compass / angle anchor. In toward-less reference contexts (between endpoints, offset `of`, node center) it is a no-op.")
|
|
27
26
|
}).describe("Reference to a Node/Coordinate by id, with optional anchor and world-space offset");
|
|
28
27
|
var RelativeTargetSchema = zod.z.object({ relative: zod.z.tuple([zod.z.number(), zod.z.number()]).describe("Relative offset (dx, dy)") }).describe("Relative offset from the previous step end point (does NOT update the cursor position; matches TikZ `(+x, +y)` syntax)");
|
|
29
28
|
var RelativeAccumulateTargetSchema = zod.z.object({ relativeAccumulate: zod.z.tuple([zod.z.number(), zod.z.number()]).describe("Accumulated relative offset (dx, dy)") }).describe("Accumulated relative offset from the previous step end point (DOES update the cursor; matches TikZ `(++x, ++y)` syntax)");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export declare const AnchorRefSchema: z.ZodUnion<[z.ZodEnum<[RectAnchor, ...RectAnchor[]]>, z.ZodNumber, z.ZodObject<{
|
|
2
|
+
export declare const AnchorRefSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4
3
|
side: z.ZodEnum<["north", "south", "east", "west"]>;
|
|
5
4
|
t: z.ZodNumber;
|
|
6
5
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -12,7 +11,7 @@ export declare const AnchorRefSchema: z.ZodUnion<[z.ZodEnum<[RectAnchor, ...Rect
|
|
|
12
11
|
}>]>;
|
|
13
12
|
export declare const NodeTargetSchema: z.ZodObject<{
|
|
14
13
|
id: z.ZodString;
|
|
15
|
-
anchor: z.ZodOptional<z.ZodUnion<[z.
|
|
14
|
+
anchor: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
16
15
|
side: z.ZodEnum<["north", "south", "east", "west"]>;
|
|
17
16
|
t: z.ZodNumber;
|
|
18
17
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -23,20 +22,38 @@ export declare const NodeTargetSchema: z.ZodObject<{
|
|
|
23
22
|
t: number;
|
|
24
23
|
}>]>>;
|
|
25
24
|
offset: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
25
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
26
|
+
type: z.ZodString;
|
|
27
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import('..').JsonValue, z.ZodTypeDef, import('..').JsonValue>>>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
type: string;
|
|
30
|
+
params?: Record<string, import('..').JsonValue> | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
type: string;
|
|
33
|
+
params?: Record<string, import('..').JsonValue> | undefined;
|
|
34
|
+
}>]>>;
|
|
26
35
|
}, "strip", z.ZodTypeAny, {
|
|
27
36
|
id: string;
|
|
28
37
|
offset?: [number, number] | undefined;
|
|
29
|
-
anchor?:
|
|
38
|
+
anchor?: string | number | {
|
|
30
39
|
side: "north" | "south" | "east" | "west";
|
|
31
40
|
t: number;
|
|
32
41
|
} | undefined;
|
|
42
|
+
boundary?: string | {
|
|
43
|
+
type: string;
|
|
44
|
+
params?: Record<string, import('..').JsonValue> | undefined;
|
|
45
|
+
} | undefined;
|
|
33
46
|
}, {
|
|
34
47
|
id: string;
|
|
35
48
|
offset?: [number, number] | undefined;
|
|
36
|
-
anchor?:
|
|
49
|
+
anchor?: string | number | {
|
|
37
50
|
side: "north" | "south" | "east" | "west";
|
|
38
51
|
t: number;
|
|
39
52
|
} | undefined;
|
|
53
|
+
boundary?: string | {
|
|
54
|
+
type: string;
|
|
55
|
+
params?: Record<string, import('..').JsonValue> | undefined;
|
|
56
|
+
} | undefined;
|
|
40
57
|
}>;
|
|
41
58
|
/** anchor 引用:命名 anchor / 角度 / 边上比例点 */
|
|
42
59
|
export type IRAnchorRef = z.infer<typeof AnchorRefSchema>;
|
|
@@ -58,7 +75,7 @@ export declare const RelativeAccumulateTargetSchema: z.ZodObject<{
|
|
|
58
75
|
}>;
|
|
59
76
|
export declare const TargetSchema: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodObject<{
|
|
60
77
|
id: z.ZodString;
|
|
61
|
-
anchor: z.ZodOptional<z.ZodUnion<[z.
|
|
78
|
+
anchor: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
62
79
|
side: z.ZodEnum<["north", "south", "east", "west"]>;
|
|
63
80
|
t: z.ZodNumber;
|
|
64
81
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -69,20 +86,38 @@ export declare const TargetSchema: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNum
|
|
|
69
86
|
t: number;
|
|
70
87
|
}>]>>;
|
|
71
88
|
offset: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
89
|
+
boundary: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
90
|
+
type: z.ZodString;
|
|
91
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import('..').JsonValue, z.ZodTypeDef, import('..').JsonValue>>>;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
type: string;
|
|
94
|
+
params?: Record<string, import('..').JsonValue> | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
type: string;
|
|
97
|
+
params?: Record<string, import('..').JsonValue> | undefined;
|
|
98
|
+
}>]>>;
|
|
72
99
|
}, "strip", z.ZodTypeAny, {
|
|
73
100
|
id: string;
|
|
74
101
|
offset?: [number, number] | undefined;
|
|
75
|
-
anchor?:
|
|
102
|
+
anchor?: string | number | {
|
|
76
103
|
side: "north" | "south" | "east" | "west";
|
|
77
104
|
t: number;
|
|
78
105
|
} | undefined;
|
|
106
|
+
boundary?: string | {
|
|
107
|
+
type: string;
|
|
108
|
+
params?: Record<string, import('..').JsonValue> | undefined;
|
|
109
|
+
} | undefined;
|
|
79
110
|
}, {
|
|
80
111
|
id: string;
|
|
81
112
|
offset?: [number, number] | undefined;
|
|
82
|
-
anchor?:
|
|
113
|
+
anchor?: string | number | {
|
|
83
114
|
side: "north" | "south" | "east" | "west";
|
|
84
115
|
t: number;
|
|
85
116
|
} | undefined;
|
|
117
|
+
boundary?: string | {
|
|
118
|
+
type: string;
|
|
119
|
+
params?: Record<string, import('..').JsonValue> | undefined;
|
|
120
|
+
} | undefined;
|
|
86
121
|
}>, z.ZodObject<{
|
|
87
122
|
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
88
123
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../src/ir/path/target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"target.d.ts","sourceRoot":"","sources":["../../../../src/ir/path/target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe;;;;;;;;;IAsBsF,CAAC;AAEnH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYmE,CAAC;AAEjG,uCAAuC;AACvC,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D,oDAAoD;AACpD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE5D,eAAO,MAAM,oBAAoB;;;;;;EAQ9B,CAAC;AAEJ,eAAO,MAAM,8BAA8B;;;;;;EAQxC,CAAC;AAEJ,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wGAatB,CAAC;AAEJ,4CAA4C;AAC5C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEpD,mDAAmD;AACnD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEpE,2CAA2C;AAC3C,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
package/dist/lib/ir/scope.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const require_json = require("./json.cjs");
|
|
1
2
|
const require_font = require("./font.cjs");
|
|
2
3
|
const require_paint = require("./paint.cjs");
|
|
3
4
|
const require_clip = require("./clip.cjs");
|
|
@@ -18,7 +19,8 @@ var NodeDefaultSchema = require_node.NodeSchema.omit({
|
|
|
18
19
|
position: true,
|
|
19
20
|
text: true,
|
|
20
21
|
label: true,
|
|
21
|
-
zIndex: true
|
|
22
|
+
zIndex: true,
|
|
23
|
+
meta: true
|
|
22
24
|
}).strict();
|
|
23
25
|
/**
|
|
24
26
|
* every path 默认样式 schema
|
|
@@ -29,7 +31,8 @@ var PathDefaultSchema = require_path.PathSchema.omit({
|
|
|
29
31
|
children: true,
|
|
30
32
|
arrow: true,
|
|
31
33
|
arrowDetail: true,
|
|
32
|
-
zIndex: true
|
|
34
|
+
zIndex: true,
|
|
35
|
+
meta: true
|
|
33
36
|
}).strict();
|
|
34
37
|
/**
|
|
35
38
|
* every label 默认样式 schema(node label 与 step label 共享)
|
|
@@ -86,6 +89,7 @@ var ScopeSchema = zod.z.object({
|
|
|
86
89
|
]))]).optional().describe("Inheritance barrier: drop the outer scope cascade + every-X defaults for the listed channels (or all when true), falling back to the built-in baseline. Only cuts the scope-inheritance axis; labels / arrows still follow their host path / node resolved color (structural relation, not scope inheritance)."),
|
|
87
90
|
zIndex: zod.z.number().int().finite().optional().describe("Explicit stacking order of this scope as a whole among its sibling IR children. Higher draws on top. Applies to the scope group as a single unit in the parent; does NOT affect how children stack inside the scope. Omitted = 0 = source order."),
|
|
88
91
|
clip: require_clip.ClipSpecSchema.optional().describe("Clip region (rect / circle / ellipse / polygon, in scope-local coords); when set, all children of this scope are clipped to it. Compiled into a renderer-agnostic ClipResource referenced via the group clipRef."),
|
|
92
|
+
meta: require_json.JsonObjectSchema.optional().describe("Opaque provenance metadata carried by this element (e.g. a Tier 2 lowering tagging which datum / series / layer it came from). Provenance passthrough: preserved verbatim into the Scene primitive(s) this element emits, ignored by renderers, and never interpreted by the compiler — it does not affect layout, connection, style, or bounding box. Must be a JSON object (fully serializable). Not inherited across scopes; not part of the every-X style defaults."),
|
|
89
93
|
children: zod.z.array(zod.z.lazy(() => {
|
|
90
94
|
if (!childSchemaRef) throw new Error("ScopeSchema: ChildSchema not registered yet; ensure scene.ts loaded");
|
|
91
95
|
return childSchemaRef;
|