@retikz/core 0.1.0-alpha.4 → 0.1.0-alpha.5
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/dist/es/compile/compile.d.ts +6 -13
- package/dist/es/compile/compile.d.ts.map +1 -1
- package/dist/es/compile/compile.js +4 -10
- package/dist/es/compile/node.d.ts +40 -59
- package/dist/es/compile/node.d.ts.map +1 -1
- package/dist/es/compile/node.js +51 -43
- package/dist/es/compile/parseTarget.d.ts +3 -8
- package/dist/es/compile/parseTarget.d.ts.map +1 -1
- package/dist/es/compile/parseTarget.js +7 -19
- package/dist/es/compile/path.d.ts +2 -19
- package/dist/es/compile/path.d.ts.map +1 -1
- package/dist/es/compile/path.js +232 -213
- package/dist/es/compile/position.d.ts +4 -8
- package/dist/es/compile/position.d.ts.map +1 -1
- package/dist/es/compile/position.js +10 -10
- package/dist/es/compile/text-metrics.d.ts +2 -4
- package/dist/es/compile/text-metrics.d.ts.map +1 -1
- package/dist/es/compile/view-box.d.ts +1 -4
- package/dist/es/compile/view-box.d.ts.map +1 -1
- package/dist/es/compile/view-box.js +1 -4
- package/dist/es/geometry/arc.d.ts +3 -28
- package/dist/es/geometry/arc.d.ts.map +1 -1
- package/dist/es/geometry/arc.js +4 -31
- package/dist/es/geometry/bend.d.ts +2 -13
- package/dist/es/geometry/bend.d.ts.map +1 -1
- package/dist/es/geometry/bend.js +2 -13
- package/dist/es/geometry/circle.d.ts +5 -13
- package/dist/es/geometry/circle.d.ts.map +1 -1
- package/dist/es/geometry/circle.js +1 -4
- package/dist/es/geometry/diamond.d.ts +9 -24
- package/dist/es/geometry/diamond.d.ts.map +1 -1
- package/dist/es/geometry/diamond.js +4 -14
- package/dist/es/geometry/ellipse.d.ts +9 -15
- package/dist/es/geometry/ellipse.d.ts.map +1 -1
- package/dist/es/geometry/ellipse.js +4 -8
- package/dist/es/geometry/point.d.ts +8 -9
- package/dist/es/geometry/point.d.ts.map +1 -1
- package/dist/es/geometry/point.js +8 -9
- package/dist/es/geometry/polar.d.ts +12 -21
- package/dist/es/geometry/polar.d.ts.map +1 -1
- package/dist/es/geometry/polar.js +7 -14
- package/dist/es/geometry/rect.d.ts +8 -32
- package/dist/es/geometry/rect.d.ts.map +1 -1
- package/dist/es/geometry/rect.js +7 -33
- package/dist/es/geometry/segment.d.ts +11 -18
- package/dist/es/geometry/segment.d.ts.map +1 -1
- package/dist/es/geometry/segment.js +9 -16
- package/dist/es/index.d.ts +6 -10
- package/dist/es/index.d.ts.map +1 -1
- package/dist/es/index.js +4 -3
- package/dist/es/ir/coordinate.d.ts +18 -10
- package/dist/es/ir/coordinate.d.ts.map +1 -1
- package/dist/es/ir/coordinate.js +6 -11
- package/dist/es/ir/node.d.ts +46 -65
- package/dist/es/ir/node.d.ts.map +1 -1
- package/dist/es/ir/node.js +15 -46
- package/dist/es/ir/path/arrow.d.ts +210 -12
- package/dist/es/ir/path/arrow.d.ts.map +1 -1
- package/dist/es/ir/path/arrow.js +39 -12
- package/dist/es/ir/path/path.d.ts +477 -153
- package/dist/es/ir/path/path.d.ts.map +1 -1
- package/dist/es/ir/path/path.js +2 -2
- package/dist/es/ir/path/step.d.ts +395 -223
- package/dist/es/ir/path/step.d.ts.map +1 -1
- package/dist/es/ir/path/step.js +13 -14
- package/dist/es/ir/path/target.d.ts +25 -16
- package/dist/es/ir/path/target.d.ts.map +1 -1
- package/dist/es/ir/path/target.js +8 -6
- package/dist/es/ir/position/at-position.d.ts +4 -11
- package/dist/es/ir/position/at-position.d.ts.map +1 -1
- package/dist/es/ir/position/at-position.js +2 -9
- package/dist/es/ir/position/index.d.ts +1 -0
- package/dist/es/ir/position/index.d.ts.map +1 -1
- package/dist/es/ir/position/offset-position.d.ts +14 -0
- package/dist/es/ir/position/offset-position.d.ts.map +1 -0
- package/dist/es/ir/position/offset-position.js +14 -0
- package/dist/es/ir/position/polar-position.d.ts +1 -4
- package/dist/es/ir/position/polar-position.d.ts.map +1 -1
- package/dist/es/ir/position/polar-position.js +1 -4
- package/dist/es/ir/scene.d.ts +1200 -386
- package/dist/es/ir/scene.d.ts.map +1 -1
- package/dist/es/parsers/parseTargetSugar.d.ts.map +1 -1
- package/dist/es/parsers/parseTargetSugar.js +6 -19
- package/dist/es/parsers/parseWay.d.ts +26 -118
- package/dist/es/parsers/parseWay.d.ts.map +1 -1
- package/dist/es/parsers/parseWay.js +19 -61
- package/dist/es/primitive/ellipse.d.ts +4 -14
- package/dist/es/primitive/ellipse.d.ts.map +1 -1
- package/dist/es/primitive/group.d.ts +21 -3
- package/dist/es/primitive/group.d.ts.map +1 -1
- package/dist/es/primitive/path.d.ts +67 -7
- package/dist/es/primitive/path.d.ts.map +1 -1
- package/dist/es/primitive/scene.d.ts +2 -4
- package/dist/es/primitive/scene.d.ts.map +1 -1
- package/dist/es/primitive/text.d.ts +9 -32
- package/dist/es/primitive/text.d.ts.map +1 -1
- package/dist/lib/compile/compile.cjs +4 -10
- package/dist/lib/compile/compile.d.ts +6 -13
- package/dist/lib/compile/compile.d.ts.map +1 -1
- package/dist/lib/compile/node.cjs +51 -43
- package/dist/lib/compile/node.d.ts +40 -59
- package/dist/lib/compile/node.d.ts.map +1 -1
- package/dist/lib/compile/parseTarget.cjs +7 -19
- package/dist/lib/compile/parseTarget.d.ts +3 -8
- package/dist/lib/compile/parseTarget.d.ts.map +1 -1
- package/dist/lib/compile/path.cjs +231 -212
- package/dist/lib/compile/path.d.ts +2 -19
- package/dist/lib/compile/path.d.ts.map +1 -1
- package/dist/lib/compile/position.cjs +10 -10
- package/dist/lib/compile/position.d.ts +4 -8
- package/dist/lib/compile/position.d.ts.map +1 -1
- package/dist/lib/compile/text-metrics.d.ts +2 -4
- package/dist/lib/compile/text-metrics.d.ts.map +1 -1
- package/dist/lib/compile/view-box.cjs +1 -4
- package/dist/lib/compile/view-box.d.ts +1 -4
- package/dist/lib/compile/view-box.d.ts.map +1 -1
- package/dist/lib/geometry/arc.cjs +3 -31
- package/dist/lib/geometry/arc.d.ts +3 -28
- package/dist/lib/geometry/arc.d.ts.map +1 -1
- package/dist/lib/geometry/bend.cjs +2 -13
- package/dist/lib/geometry/bend.d.ts +2 -13
- package/dist/lib/geometry/bend.d.ts.map +1 -1
- package/dist/lib/geometry/circle.cjs +1 -4
- package/dist/lib/geometry/circle.d.ts +5 -13
- package/dist/lib/geometry/circle.d.ts.map +1 -1
- package/dist/lib/geometry/diamond.cjs +4 -14
- package/dist/lib/geometry/diamond.d.ts +9 -24
- package/dist/lib/geometry/diamond.d.ts.map +1 -1
- package/dist/lib/geometry/ellipse.cjs +4 -8
- package/dist/lib/geometry/ellipse.d.ts +9 -15
- package/dist/lib/geometry/ellipse.d.ts.map +1 -1
- package/dist/lib/geometry/point.cjs +8 -9
- package/dist/lib/geometry/point.d.ts +8 -9
- package/dist/lib/geometry/point.d.ts.map +1 -1
- package/dist/lib/geometry/polar.cjs +7 -14
- package/dist/lib/geometry/polar.d.ts +12 -21
- package/dist/lib/geometry/polar.d.ts.map +1 -1
- package/dist/lib/geometry/rect.cjs +7 -33
- package/dist/lib/geometry/rect.d.ts +8 -32
- package/dist/lib/geometry/rect.d.ts.map +1 -1
- package/dist/lib/geometry/segment.cjs +9 -16
- package/dist/lib/geometry/segment.d.ts +11 -18
- package/dist/lib/geometry/segment.d.ts.map +1 -1
- package/dist/lib/index.cjs +9 -2
- package/dist/lib/index.d.ts +6 -10
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/ir/coordinate.cjs +6 -11
- package/dist/lib/ir/coordinate.d.ts +18 -10
- package/dist/lib/ir/coordinate.d.ts.map +1 -1
- package/dist/lib/ir/node.cjs +15 -46
- package/dist/lib/ir/node.d.ts +46 -65
- package/dist/lib/ir/node.d.ts.map +1 -1
- package/dist/lib/ir/path/arrow.cjs +43 -11
- package/dist/lib/ir/path/arrow.d.ts +210 -12
- package/dist/lib/ir/path/arrow.d.ts.map +1 -1
- package/dist/lib/ir/path/path.cjs +1 -1
- package/dist/lib/ir/path/path.d.ts +477 -153
- package/dist/lib/ir/path/path.d.ts.map +1 -1
- package/dist/lib/ir/path/step.cjs +13 -14
- package/dist/lib/ir/path/step.d.ts +395 -223
- package/dist/lib/ir/path/step.d.ts.map +1 -1
- package/dist/lib/ir/path/target.cjs +9 -7
- package/dist/lib/ir/path/target.d.ts +25 -16
- package/dist/lib/ir/path/target.d.ts.map +1 -1
- package/dist/lib/ir/position/at-position.cjs +2 -9
- package/dist/lib/ir/position/at-position.d.ts +4 -11
- package/dist/lib/ir/position/at-position.d.ts.map +1 -1
- package/dist/lib/ir/position/index.d.ts +1 -0
- package/dist/lib/ir/position/index.d.ts.map +1 -1
- package/dist/lib/ir/position/offset-position.cjs +14 -0
- package/dist/lib/ir/position/offset-position.d.ts +14 -0
- package/dist/lib/ir/position/offset-position.d.ts.map +1 -0
- package/dist/lib/ir/position/polar-position.cjs +1 -4
- package/dist/lib/ir/position/polar-position.d.ts +1 -4
- package/dist/lib/ir/position/polar-position.d.ts.map +1 -1
- package/dist/lib/ir/scene.d.ts +1200 -386
- package/dist/lib/ir/scene.d.ts.map +1 -1
- package/dist/lib/parsers/parseTargetSugar.cjs +6 -19
- package/dist/lib/parsers/parseTargetSugar.d.ts.map +1 -1
- package/dist/lib/parsers/parseWay.cjs +19 -61
- package/dist/lib/parsers/parseWay.d.ts +26 -118
- package/dist/lib/parsers/parseWay.d.ts.map +1 -1
- package/dist/lib/primitive/ellipse.d.ts +4 -14
- package/dist/lib/primitive/ellipse.d.ts.map +1 -1
- package/dist/lib/primitive/group.d.ts +21 -3
- package/dist/lib/primitive/group.d.ts.map +1 -1
- package/dist/lib/primitive/path.d.ts +67 -7
- package/dist/lib/primitive/path.d.ts.map +1 -1
- package/dist/lib/primitive/scene.d.ts +2 -4
- package/dist/lib/primitive/scene.d.ts.map +1 -1
- package/dist/lib/primitive/text.d.ts +9 -32
- package/dist/lib/primitive/text.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,110 +1,139 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* 标记,标签语义不清。
|
|
3
|
+
* 边标注:画线 step 上的 label
|
|
4
|
+
* @description 按段几何 + side 偏移翻译为 TextPrim;move/cycle 不挂 label
|
|
6
5
|
*/
|
|
7
6
|
export declare const StepLabelSchema: z.ZodObject<{
|
|
8
7
|
text: z.ZodString;
|
|
9
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
8
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
10
9
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
11
10
|
}, "strip", z.ZodTypeAny, {
|
|
12
11
|
text: string;
|
|
13
|
-
position?: "
|
|
12
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
14
13
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
15
14
|
}, {
|
|
16
15
|
text: string;
|
|
17
|
-
position?: "
|
|
16
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
18
17
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
19
18
|
}>;
|
|
20
|
-
/**
|
|
19
|
+
/** 边标注 IR 类型 */
|
|
21
20
|
export type IRStepLabel = z.infer<typeof StepLabelSchema>;
|
|
22
21
|
export declare const MoveStepSchema: z.ZodObject<{
|
|
23
22
|
type: z.ZodLiteral<"step">;
|
|
24
23
|
kind: z.ZodLiteral<"move">;
|
|
25
24
|
to: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodString, z.ZodObject<{
|
|
26
|
-
|
|
25
|
+
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
27
26
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
|
|
27
|
+
relative: [number, number];
|
|
29
28
|
}, {
|
|
30
|
-
|
|
29
|
+
relative: [number, number];
|
|
31
30
|
}>, z.ZodObject<{
|
|
32
|
-
|
|
31
|
+
relativeAccumulate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
33
32
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
|
|
33
|
+
relativeAccumulate: [number, number];
|
|
35
34
|
}, {
|
|
36
|
-
|
|
35
|
+
relativeAccumulate: [number, number];
|
|
36
|
+
}>, z.ZodObject<{
|
|
37
|
+
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>]>;
|
|
38
|
+
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
41
|
+
offset: [number, number];
|
|
42
|
+
}, {
|
|
43
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
44
|
+
offset: [number, number];
|
|
37
45
|
}>]>;
|
|
38
46
|
}, "strip", z.ZodTypeAny, {
|
|
39
47
|
type: "step";
|
|
40
48
|
kind: "move";
|
|
41
49
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
42
|
-
|
|
50
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
51
|
+
offset: [number, number];
|
|
52
|
+
} | {
|
|
53
|
+
relative: [number, number];
|
|
43
54
|
} | {
|
|
44
|
-
|
|
55
|
+
relativeAccumulate: [number, number];
|
|
45
56
|
};
|
|
46
57
|
}, {
|
|
47
58
|
type: "step";
|
|
48
59
|
kind: "move";
|
|
49
60
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
50
|
-
|
|
61
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
62
|
+
offset: [number, number];
|
|
51
63
|
} | {
|
|
52
|
-
|
|
64
|
+
relative: [number, number];
|
|
65
|
+
} | {
|
|
66
|
+
relativeAccumulate: [number, number];
|
|
53
67
|
};
|
|
54
68
|
}>;
|
|
55
69
|
export declare const LineStepSchema: z.ZodObject<{
|
|
56
70
|
type: z.ZodLiteral<"step">;
|
|
57
71
|
kind: z.ZodLiteral<"line">;
|
|
58
72
|
to: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodString, z.ZodObject<{
|
|
59
|
-
|
|
73
|
+
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
relative: [number, number];
|
|
76
|
+
}, {
|
|
77
|
+
relative: [number, number];
|
|
78
|
+
}>, z.ZodObject<{
|
|
79
|
+
relativeAccumulate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
60
80
|
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
|
|
81
|
+
relativeAccumulate: [number, number];
|
|
62
82
|
}, {
|
|
63
|
-
|
|
83
|
+
relativeAccumulate: [number, number];
|
|
64
84
|
}>, z.ZodObject<{
|
|
65
|
-
|
|
85
|
+
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>]>;
|
|
86
|
+
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
66
87
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
|
|
88
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
89
|
+
offset: [number, number];
|
|
68
90
|
}, {
|
|
69
|
-
|
|
91
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
92
|
+
offset: [number, number];
|
|
70
93
|
}>]>;
|
|
71
94
|
label: z.ZodOptional<z.ZodObject<{
|
|
72
95
|
text: z.ZodString;
|
|
73
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
96
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
74
97
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
75
98
|
}, "strip", z.ZodTypeAny, {
|
|
76
99
|
text: string;
|
|
77
|
-
position?: "
|
|
100
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
78
101
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
79
102
|
}, {
|
|
80
103
|
text: string;
|
|
81
|
-
position?: "
|
|
104
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
82
105
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
83
106
|
}>>;
|
|
84
107
|
}, "strip", z.ZodTypeAny, {
|
|
85
108
|
type: "step";
|
|
86
109
|
kind: "line";
|
|
87
110
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
88
|
-
|
|
111
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
112
|
+
offset: [number, number];
|
|
89
113
|
} | {
|
|
90
|
-
|
|
114
|
+
relative: [number, number];
|
|
115
|
+
} | {
|
|
116
|
+
relativeAccumulate: [number, number];
|
|
91
117
|
};
|
|
92
118
|
label?: {
|
|
93
119
|
text: string;
|
|
94
|
-
position?: "
|
|
120
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
95
121
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
96
122
|
} | undefined;
|
|
97
123
|
}, {
|
|
98
124
|
type: "step";
|
|
99
125
|
kind: "line";
|
|
100
126
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
101
|
-
|
|
127
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
128
|
+
offset: [number, number];
|
|
129
|
+
} | {
|
|
130
|
+
relative: [number, number];
|
|
102
131
|
} | {
|
|
103
|
-
|
|
132
|
+
relativeAccumulate: [number, number];
|
|
104
133
|
};
|
|
105
134
|
label?: {
|
|
106
135
|
text: string;
|
|
107
|
-
position?: "
|
|
136
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
108
137
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
109
138
|
} | undefined;
|
|
110
139
|
}>;
|
|
@@ -113,57 +142,72 @@ export declare const FoldStepSchema: z.ZodObject<{
|
|
|
113
142
|
kind: z.ZodLiteral<"step">;
|
|
114
143
|
via: z.ZodEnum<["-|", "|-"]>;
|
|
115
144
|
to: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodString, z.ZodObject<{
|
|
116
|
-
|
|
145
|
+
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
117
146
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
|
|
147
|
+
relative: [number, number];
|
|
119
148
|
}, {
|
|
120
|
-
|
|
149
|
+
relative: [number, number];
|
|
121
150
|
}>, z.ZodObject<{
|
|
122
|
-
|
|
151
|
+
relativeAccumulate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
123
152
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
|
|
153
|
+
relativeAccumulate: [number, number];
|
|
125
154
|
}, {
|
|
126
|
-
|
|
155
|
+
relativeAccumulate: [number, number];
|
|
156
|
+
}>, z.ZodObject<{
|
|
157
|
+
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>]>;
|
|
158
|
+
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
161
|
+
offset: [number, number];
|
|
162
|
+
}, {
|
|
163
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
164
|
+
offset: [number, number];
|
|
127
165
|
}>]>;
|
|
128
166
|
label: z.ZodOptional<z.ZodObject<{
|
|
129
167
|
text: z.ZodString;
|
|
130
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
168
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
131
169
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
132
170
|
}, "strip", z.ZodTypeAny, {
|
|
133
171
|
text: string;
|
|
134
|
-
position?: "
|
|
172
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
135
173
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
136
174
|
}, {
|
|
137
175
|
text: string;
|
|
138
|
-
position?: "
|
|
176
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
139
177
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
140
178
|
}>>;
|
|
141
179
|
}, "strip", z.ZodTypeAny, {
|
|
142
180
|
type: "step";
|
|
143
181
|
kind: "step";
|
|
144
182
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
145
|
-
|
|
183
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
184
|
+
offset: [number, number];
|
|
185
|
+
} | {
|
|
186
|
+
relative: [number, number];
|
|
146
187
|
} | {
|
|
147
|
-
|
|
188
|
+
relativeAccumulate: [number, number];
|
|
148
189
|
};
|
|
149
190
|
via: "-|" | "|-";
|
|
150
191
|
label?: {
|
|
151
192
|
text: string;
|
|
152
|
-
position?: "
|
|
193
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
153
194
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
154
195
|
} | undefined;
|
|
155
196
|
}, {
|
|
156
197
|
type: "step";
|
|
157
198
|
kind: "step";
|
|
158
199
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
159
|
-
|
|
200
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
201
|
+
offset: [number, number];
|
|
202
|
+
} | {
|
|
203
|
+
relative: [number, number];
|
|
160
204
|
} | {
|
|
161
|
-
|
|
205
|
+
relativeAccumulate: [number, number];
|
|
162
206
|
};
|
|
163
207
|
via: "-|" | "|-";
|
|
164
208
|
label?: {
|
|
165
209
|
text: string;
|
|
166
|
-
position?: "
|
|
210
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
167
211
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
168
212
|
} | undefined;
|
|
169
213
|
}>;
|
|
@@ -178,72 +222,83 @@ export declare const CycleStepSchema: z.ZodObject<{
|
|
|
178
222
|
kind: "cycle";
|
|
179
223
|
}>;
|
|
180
224
|
/**
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* alpha.3:仅支持笛卡尔 `[x, y]`(与 ADR-0001 字面一致)。
|
|
184
|
-
* 未来扩展点:要支持节点 ref / 极坐标作为控制点(如 TikZ `controls (B)`)时,
|
|
185
|
-
* 只把这里改成 `z.union([PositionSchema, PolarPositionSchema, z.string().min(1)])`,
|
|
186
|
-
* curve / cubic schema 与下游消费侧不变。
|
|
225
|
+
* 控制点 schema 别名
|
|
226
|
+
* @description 当前仅支持笛卡尔 `[x,y]`;未来扩展节点 ref/极坐标时只改本处 union,curve/cubic schema 与下游不变
|
|
187
227
|
*/
|
|
188
228
|
export declare const ControlPointSchema: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
189
|
-
/** 控制点类型(曲线 step
|
|
229
|
+
/** 控制点类型(曲线 step 用) */
|
|
190
230
|
export type IRControlPoint = z.infer<typeof ControlPointSchema>;
|
|
191
231
|
export declare const CurveStepSchema: z.ZodObject<{
|
|
192
232
|
type: z.ZodLiteral<"step">;
|
|
193
233
|
kind: z.ZodLiteral<"curve">;
|
|
194
234
|
to: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodString, z.ZodObject<{
|
|
195
|
-
|
|
235
|
+
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
196
236
|
}, "strip", z.ZodTypeAny, {
|
|
197
|
-
|
|
237
|
+
relative: [number, number];
|
|
198
238
|
}, {
|
|
199
|
-
|
|
239
|
+
relative: [number, number];
|
|
200
240
|
}>, z.ZodObject<{
|
|
201
|
-
|
|
241
|
+
relativeAccumulate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
202
242
|
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
|
|
243
|
+
relativeAccumulate: [number, number];
|
|
204
244
|
}, {
|
|
205
|
-
|
|
245
|
+
relativeAccumulate: [number, number];
|
|
246
|
+
}>, z.ZodObject<{
|
|
247
|
+
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>]>;
|
|
248
|
+
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
249
|
+
}, "strip", z.ZodTypeAny, {
|
|
250
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
251
|
+
offset: [number, number];
|
|
252
|
+
}, {
|
|
253
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
254
|
+
offset: [number, number];
|
|
206
255
|
}>]>;
|
|
207
256
|
control: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
208
257
|
label: z.ZodOptional<z.ZodObject<{
|
|
209
258
|
text: z.ZodString;
|
|
210
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
259
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
211
260
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
212
261
|
}, "strip", z.ZodTypeAny, {
|
|
213
262
|
text: string;
|
|
214
|
-
position?: "
|
|
263
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
215
264
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
216
265
|
}, {
|
|
217
266
|
text: string;
|
|
218
|
-
position?: "
|
|
267
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
219
268
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
220
269
|
}>>;
|
|
221
270
|
}, "strip", z.ZodTypeAny, {
|
|
222
271
|
type: "step";
|
|
223
272
|
kind: "curve";
|
|
224
273
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
225
|
-
|
|
274
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
275
|
+
offset: [number, number];
|
|
276
|
+
} | {
|
|
277
|
+
relative: [number, number];
|
|
226
278
|
} | {
|
|
227
|
-
|
|
279
|
+
relativeAccumulate: [number, number];
|
|
228
280
|
};
|
|
229
281
|
control: [number, number];
|
|
230
282
|
label?: {
|
|
231
283
|
text: string;
|
|
232
|
-
position?: "
|
|
284
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
233
285
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
234
286
|
} | undefined;
|
|
235
287
|
}, {
|
|
236
288
|
type: "step";
|
|
237
289
|
kind: "curve";
|
|
238
290
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
239
|
-
|
|
291
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
292
|
+
offset: [number, number];
|
|
240
293
|
} | {
|
|
241
|
-
|
|
294
|
+
relative: [number, number];
|
|
295
|
+
} | {
|
|
296
|
+
relativeAccumulate: [number, number];
|
|
242
297
|
};
|
|
243
298
|
control: [number, number];
|
|
244
299
|
label?: {
|
|
245
300
|
text: string;
|
|
246
|
-
position?: "
|
|
301
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
247
302
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
248
303
|
} | undefined;
|
|
249
304
|
}>;
|
|
@@ -251,61 +306,76 @@ export declare const CubicStepSchema: z.ZodObject<{
|
|
|
251
306
|
type: z.ZodLiteral<"step">;
|
|
252
307
|
kind: z.ZodLiteral<"cubic">;
|
|
253
308
|
to: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodString, z.ZodObject<{
|
|
254
|
-
|
|
309
|
+
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
310
|
+
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
relative: [number, number];
|
|
312
|
+
}, {
|
|
313
|
+
relative: [number, number];
|
|
314
|
+
}>, z.ZodObject<{
|
|
315
|
+
relativeAccumulate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
255
316
|
}, "strip", z.ZodTypeAny, {
|
|
256
|
-
|
|
317
|
+
relativeAccumulate: [number, number];
|
|
257
318
|
}, {
|
|
258
|
-
|
|
319
|
+
relativeAccumulate: [number, number];
|
|
259
320
|
}>, z.ZodObject<{
|
|
260
|
-
|
|
321
|
+
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>]>;
|
|
322
|
+
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
261
323
|
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
|
|
324
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
325
|
+
offset: [number, number];
|
|
263
326
|
}, {
|
|
264
|
-
|
|
327
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
328
|
+
offset: [number, number];
|
|
265
329
|
}>]>;
|
|
266
330
|
control1: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
267
331
|
control2: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
268
332
|
label: z.ZodOptional<z.ZodObject<{
|
|
269
333
|
text: z.ZodString;
|
|
270
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
334
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
271
335
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
272
336
|
}, "strip", z.ZodTypeAny, {
|
|
273
337
|
text: string;
|
|
274
|
-
position?: "
|
|
338
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
275
339
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
276
340
|
}, {
|
|
277
341
|
text: string;
|
|
278
|
-
position?: "
|
|
342
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
279
343
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
280
344
|
}>>;
|
|
281
345
|
}, "strip", z.ZodTypeAny, {
|
|
282
346
|
type: "step";
|
|
283
347
|
kind: "cubic";
|
|
284
348
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
285
|
-
|
|
349
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
350
|
+
offset: [number, number];
|
|
286
351
|
} | {
|
|
287
|
-
|
|
352
|
+
relative: [number, number];
|
|
353
|
+
} | {
|
|
354
|
+
relativeAccumulate: [number, number];
|
|
288
355
|
};
|
|
289
356
|
control1: [number, number];
|
|
290
357
|
control2: [number, number];
|
|
291
358
|
label?: {
|
|
292
359
|
text: string;
|
|
293
|
-
position?: "
|
|
360
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
294
361
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
295
362
|
} | undefined;
|
|
296
363
|
}, {
|
|
297
364
|
type: "step";
|
|
298
365
|
kind: "cubic";
|
|
299
366
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
300
|
-
|
|
367
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
368
|
+
offset: [number, number];
|
|
369
|
+
} | {
|
|
370
|
+
relative: [number, number];
|
|
301
371
|
} | {
|
|
302
|
-
|
|
372
|
+
relativeAccumulate: [number, number];
|
|
303
373
|
};
|
|
304
374
|
control1: [number, number];
|
|
305
375
|
control2: [number, number];
|
|
306
376
|
label?: {
|
|
307
377
|
text: string;
|
|
308
|
-
position?: "
|
|
378
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
309
379
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
310
380
|
} | undefined;
|
|
311
381
|
}>;
|
|
@@ -313,45 +383,57 @@ export declare const BendStepSchema: z.ZodObject<{
|
|
|
313
383
|
type: z.ZodLiteral<"step">;
|
|
314
384
|
kind: z.ZodLiteral<"bend">;
|
|
315
385
|
to: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodString, z.ZodObject<{
|
|
316
|
-
|
|
386
|
+
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
317
387
|
}, "strip", z.ZodTypeAny, {
|
|
318
|
-
|
|
388
|
+
relative: [number, number];
|
|
319
389
|
}, {
|
|
320
|
-
|
|
390
|
+
relative: [number, number];
|
|
321
391
|
}>, z.ZodObject<{
|
|
322
|
-
|
|
392
|
+
relativeAccumulate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
323
393
|
}, "strip", z.ZodTypeAny, {
|
|
324
|
-
|
|
394
|
+
relativeAccumulate: [number, number];
|
|
325
395
|
}, {
|
|
326
|
-
|
|
396
|
+
relativeAccumulate: [number, number];
|
|
397
|
+
}>, z.ZodObject<{
|
|
398
|
+
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>]>;
|
|
399
|
+
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
400
|
+
}, "strip", z.ZodTypeAny, {
|
|
401
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
402
|
+
offset: [number, number];
|
|
403
|
+
}, {
|
|
404
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
405
|
+
offset: [number, number];
|
|
327
406
|
}>]>;
|
|
328
407
|
bendDirection: z.ZodEnum<["left", "right"]>;
|
|
329
408
|
bendAngle: z.ZodOptional<z.ZodNumber>;
|
|
330
409
|
label: z.ZodOptional<z.ZodObject<{
|
|
331
410
|
text: z.ZodString;
|
|
332
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
411
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
333
412
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
334
413
|
}, "strip", z.ZodTypeAny, {
|
|
335
414
|
text: string;
|
|
336
|
-
position?: "
|
|
415
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
337
416
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
338
417
|
}, {
|
|
339
418
|
text: string;
|
|
340
|
-
position?: "
|
|
419
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
341
420
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
342
421
|
}>>;
|
|
343
422
|
}, "strip", z.ZodTypeAny, {
|
|
344
423
|
type: "step";
|
|
345
424
|
kind: "bend";
|
|
346
425
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
347
|
-
|
|
426
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
427
|
+
offset: [number, number];
|
|
428
|
+
} | {
|
|
429
|
+
relative: [number, number];
|
|
348
430
|
} | {
|
|
349
|
-
|
|
431
|
+
relativeAccumulate: [number, number];
|
|
350
432
|
};
|
|
351
433
|
bendDirection: "left" | "right";
|
|
352
434
|
label?: {
|
|
353
435
|
text: string;
|
|
354
|
-
position?: "
|
|
436
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
355
437
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
356
438
|
} | undefined;
|
|
357
439
|
bendAngle?: number | undefined;
|
|
@@ -359,14 +441,17 @@ export declare const BendStepSchema: z.ZodObject<{
|
|
|
359
441
|
type: "step";
|
|
360
442
|
kind: "bend";
|
|
361
443
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
362
|
-
|
|
444
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
445
|
+
offset: [number, number];
|
|
446
|
+
} | {
|
|
447
|
+
relative: [number, number];
|
|
363
448
|
} | {
|
|
364
|
-
|
|
449
|
+
relativeAccumulate: [number, number];
|
|
365
450
|
};
|
|
366
451
|
bendDirection: "left" | "right";
|
|
367
452
|
label?: {
|
|
368
453
|
text: string;
|
|
369
|
-
position?: "
|
|
454
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
370
455
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
371
456
|
} | undefined;
|
|
372
457
|
bendAngle?: number | undefined;
|
|
@@ -379,15 +464,15 @@ export declare const ArcStepSchema: z.ZodObject<{
|
|
|
379
464
|
radius: z.ZodNumber;
|
|
380
465
|
label: z.ZodOptional<z.ZodObject<{
|
|
381
466
|
text: z.ZodString;
|
|
382
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
467
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
383
468
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
384
469
|
}, "strip", z.ZodTypeAny, {
|
|
385
470
|
text: string;
|
|
386
|
-
position?: "
|
|
471
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
387
472
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
388
473
|
}, {
|
|
389
474
|
text: string;
|
|
390
|
-
position?: "
|
|
475
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
391
476
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
392
477
|
}>>;
|
|
393
478
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -398,7 +483,7 @@ export declare const ArcStepSchema: z.ZodObject<{
|
|
|
398
483
|
endAngle: number;
|
|
399
484
|
label?: {
|
|
400
485
|
text: string;
|
|
401
|
-
position?: "
|
|
486
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
402
487
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
403
488
|
} | undefined;
|
|
404
489
|
}, {
|
|
@@ -409,7 +494,7 @@ export declare const ArcStepSchema: z.ZodObject<{
|
|
|
409
494
|
endAngle: number;
|
|
410
495
|
label?: {
|
|
411
496
|
text: string;
|
|
412
|
-
position?: "
|
|
497
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
413
498
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
414
499
|
} | undefined;
|
|
415
500
|
}>;
|
|
@@ -419,15 +504,15 @@ export declare const CirclePathStepSchema: z.ZodObject<{
|
|
|
419
504
|
radius: z.ZodNumber;
|
|
420
505
|
label: z.ZodOptional<z.ZodObject<{
|
|
421
506
|
text: z.ZodString;
|
|
422
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
507
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
423
508
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
424
509
|
}, "strip", z.ZodTypeAny, {
|
|
425
510
|
text: string;
|
|
426
|
-
position?: "
|
|
511
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
427
512
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
428
513
|
}, {
|
|
429
514
|
text: string;
|
|
430
|
-
position?: "
|
|
515
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
431
516
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
432
517
|
}>>;
|
|
433
518
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -436,7 +521,7 @@ export declare const CirclePathStepSchema: z.ZodObject<{
|
|
|
436
521
|
kind: "circlePath";
|
|
437
522
|
label?: {
|
|
438
523
|
text: string;
|
|
439
|
-
position?: "
|
|
524
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
440
525
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
441
526
|
} | undefined;
|
|
442
527
|
}, {
|
|
@@ -445,7 +530,7 @@ export declare const CirclePathStepSchema: z.ZodObject<{
|
|
|
445
530
|
kind: "circlePath";
|
|
446
531
|
label?: {
|
|
447
532
|
text: string;
|
|
448
|
-
position?: "
|
|
533
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
449
534
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
450
535
|
} | undefined;
|
|
451
536
|
}>;
|
|
@@ -456,15 +541,15 @@ export declare const EllipsePathStepSchema: z.ZodObject<{
|
|
|
456
541
|
radiusY: z.ZodNumber;
|
|
457
542
|
label: z.ZodOptional<z.ZodObject<{
|
|
458
543
|
text: z.ZodString;
|
|
459
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
544
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
460
545
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
461
546
|
}, "strip", z.ZodTypeAny, {
|
|
462
547
|
text: string;
|
|
463
|
-
position?: "
|
|
548
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
464
549
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
465
550
|
}, {
|
|
466
551
|
text: string;
|
|
467
|
-
position?: "
|
|
552
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
468
553
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
469
554
|
}>>;
|
|
470
555
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -474,7 +559,7 @@ export declare const EllipsePathStepSchema: z.ZodObject<{
|
|
|
474
559
|
radiusY: number;
|
|
475
560
|
label?: {
|
|
476
561
|
text: string;
|
|
477
|
-
position?: "
|
|
562
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
478
563
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
479
564
|
} | undefined;
|
|
480
565
|
}, {
|
|
@@ -484,7 +569,7 @@ export declare const EllipsePathStepSchema: z.ZodObject<{
|
|
|
484
569
|
radiusY: number;
|
|
485
570
|
label?: {
|
|
486
571
|
text: string;
|
|
487
|
-
position?: "
|
|
572
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
488
573
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
489
574
|
} | undefined;
|
|
490
575
|
}>;
|
|
@@ -492,87 +577,117 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
492
577
|
type: z.ZodLiteral<"step">;
|
|
493
578
|
kind: z.ZodLiteral<"move">;
|
|
494
579
|
to: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodString, z.ZodObject<{
|
|
495
|
-
|
|
580
|
+
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
496
581
|
}, "strip", z.ZodTypeAny, {
|
|
497
|
-
|
|
582
|
+
relative: [number, number];
|
|
498
583
|
}, {
|
|
499
|
-
|
|
584
|
+
relative: [number, number];
|
|
500
585
|
}>, z.ZodObject<{
|
|
501
|
-
|
|
586
|
+
relativeAccumulate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
502
587
|
}, "strip", z.ZodTypeAny, {
|
|
503
|
-
|
|
588
|
+
relativeAccumulate: [number, number];
|
|
504
589
|
}, {
|
|
505
|
-
|
|
590
|
+
relativeAccumulate: [number, number];
|
|
591
|
+
}>, z.ZodObject<{
|
|
592
|
+
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>]>;
|
|
593
|
+
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
594
|
+
}, "strip", z.ZodTypeAny, {
|
|
595
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
596
|
+
offset: [number, number];
|
|
597
|
+
}, {
|
|
598
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
599
|
+
offset: [number, number];
|
|
506
600
|
}>]>;
|
|
507
601
|
}, "strip", z.ZodTypeAny, {
|
|
508
602
|
type: "step";
|
|
509
603
|
kind: "move";
|
|
510
604
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
511
|
-
|
|
605
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
606
|
+
offset: [number, number];
|
|
607
|
+
} | {
|
|
608
|
+
relative: [number, number];
|
|
512
609
|
} | {
|
|
513
|
-
|
|
610
|
+
relativeAccumulate: [number, number];
|
|
514
611
|
};
|
|
515
612
|
}, {
|
|
516
613
|
type: "step";
|
|
517
614
|
kind: "move";
|
|
518
615
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
519
|
-
|
|
616
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
617
|
+
offset: [number, number];
|
|
520
618
|
} | {
|
|
521
|
-
|
|
619
|
+
relative: [number, number];
|
|
620
|
+
} | {
|
|
621
|
+
relativeAccumulate: [number, number];
|
|
522
622
|
};
|
|
523
623
|
}>, z.ZodObject<{
|
|
524
624
|
type: z.ZodLiteral<"step">;
|
|
525
625
|
kind: z.ZodLiteral<"line">;
|
|
526
626
|
to: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodString, z.ZodObject<{
|
|
527
|
-
|
|
627
|
+
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
628
|
+
}, "strip", z.ZodTypeAny, {
|
|
629
|
+
relative: [number, number];
|
|
630
|
+
}, {
|
|
631
|
+
relative: [number, number];
|
|
632
|
+
}>, z.ZodObject<{
|
|
633
|
+
relativeAccumulate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
528
634
|
}, "strip", z.ZodTypeAny, {
|
|
529
|
-
|
|
635
|
+
relativeAccumulate: [number, number];
|
|
530
636
|
}, {
|
|
531
|
-
|
|
637
|
+
relativeAccumulate: [number, number];
|
|
532
638
|
}>, z.ZodObject<{
|
|
533
|
-
|
|
639
|
+
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>]>;
|
|
640
|
+
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
534
641
|
}, "strip", z.ZodTypeAny, {
|
|
535
|
-
|
|
642
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
643
|
+
offset: [number, number];
|
|
536
644
|
}, {
|
|
537
|
-
|
|
645
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
646
|
+
offset: [number, number];
|
|
538
647
|
}>]>;
|
|
539
648
|
label: z.ZodOptional<z.ZodObject<{
|
|
540
649
|
text: z.ZodString;
|
|
541
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
650
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
542
651
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
543
652
|
}, "strip", z.ZodTypeAny, {
|
|
544
653
|
text: string;
|
|
545
|
-
position?: "
|
|
654
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
546
655
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
547
656
|
}, {
|
|
548
657
|
text: string;
|
|
549
|
-
position?: "
|
|
658
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
550
659
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
551
660
|
}>>;
|
|
552
661
|
}, "strip", z.ZodTypeAny, {
|
|
553
662
|
type: "step";
|
|
554
663
|
kind: "line";
|
|
555
664
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
556
|
-
|
|
665
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
666
|
+
offset: [number, number];
|
|
557
667
|
} | {
|
|
558
|
-
|
|
668
|
+
relative: [number, number];
|
|
669
|
+
} | {
|
|
670
|
+
relativeAccumulate: [number, number];
|
|
559
671
|
};
|
|
560
672
|
label?: {
|
|
561
673
|
text: string;
|
|
562
|
-
position?: "
|
|
674
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
563
675
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
564
676
|
} | undefined;
|
|
565
677
|
}, {
|
|
566
678
|
type: "step";
|
|
567
679
|
kind: "line";
|
|
568
680
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
569
|
-
|
|
681
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
682
|
+
offset: [number, number];
|
|
683
|
+
} | {
|
|
684
|
+
relative: [number, number];
|
|
570
685
|
} | {
|
|
571
|
-
|
|
686
|
+
relativeAccumulate: [number, number];
|
|
572
687
|
};
|
|
573
688
|
label?: {
|
|
574
689
|
text: string;
|
|
575
|
-
position?: "
|
|
690
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
576
691
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
577
692
|
} | undefined;
|
|
578
693
|
}>, z.ZodObject<{
|
|
@@ -580,57 +695,72 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
580
695
|
kind: z.ZodLiteral<"step">;
|
|
581
696
|
via: z.ZodEnum<["-|", "|-"]>;
|
|
582
697
|
to: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodString, z.ZodObject<{
|
|
583
|
-
|
|
698
|
+
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
584
699
|
}, "strip", z.ZodTypeAny, {
|
|
585
|
-
|
|
700
|
+
relative: [number, number];
|
|
586
701
|
}, {
|
|
587
|
-
|
|
702
|
+
relative: [number, number];
|
|
588
703
|
}>, z.ZodObject<{
|
|
589
|
-
|
|
704
|
+
relativeAccumulate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
590
705
|
}, "strip", z.ZodTypeAny, {
|
|
591
|
-
|
|
706
|
+
relativeAccumulate: [number, number];
|
|
592
707
|
}, {
|
|
593
|
-
|
|
708
|
+
relativeAccumulate: [number, number];
|
|
709
|
+
}>, z.ZodObject<{
|
|
710
|
+
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>]>;
|
|
711
|
+
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
712
|
+
}, "strip", z.ZodTypeAny, {
|
|
713
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
714
|
+
offset: [number, number];
|
|
715
|
+
}, {
|
|
716
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
717
|
+
offset: [number, number];
|
|
594
718
|
}>]>;
|
|
595
719
|
label: z.ZodOptional<z.ZodObject<{
|
|
596
720
|
text: z.ZodString;
|
|
597
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
721
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
598
722
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
599
723
|
}, "strip", z.ZodTypeAny, {
|
|
600
724
|
text: string;
|
|
601
|
-
position?: "
|
|
725
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
602
726
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
603
727
|
}, {
|
|
604
728
|
text: string;
|
|
605
|
-
position?: "
|
|
729
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
606
730
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
607
731
|
}>>;
|
|
608
732
|
}, "strip", z.ZodTypeAny, {
|
|
609
733
|
type: "step";
|
|
610
734
|
kind: "step";
|
|
611
735
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
612
|
-
|
|
736
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
737
|
+
offset: [number, number];
|
|
738
|
+
} | {
|
|
739
|
+
relative: [number, number];
|
|
613
740
|
} | {
|
|
614
|
-
|
|
741
|
+
relativeAccumulate: [number, number];
|
|
615
742
|
};
|
|
616
743
|
via: "-|" | "|-";
|
|
617
744
|
label?: {
|
|
618
745
|
text: string;
|
|
619
|
-
position?: "
|
|
746
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
620
747
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
621
748
|
} | undefined;
|
|
622
749
|
}, {
|
|
623
750
|
type: "step";
|
|
624
751
|
kind: "step";
|
|
625
752
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
626
|
-
|
|
753
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
754
|
+
offset: [number, number];
|
|
755
|
+
} | {
|
|
756
|
+
relative: [number, number];
|
|
627
757
|
} | {
|
|
628
|
-
|
|
758
|
+
relativeAccumulate: [number, number];
|
|
629
759
|
};
|
|
630
760
|
via: "-|" | "|-";
|
|
631
761
|
label?: {
|
|
632
762
|
text: string;
|
|
633
|
-
position?: "
|
|
763
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
634
764
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
635
765
|
} | undefined;
|
|
636
766
|
}>, z.ZodObject<{
|
|
@@ -646,164 +776,206 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
646
776
|
type: z.ZodLiteral<"step">;
|
|
647
777
|
kind: z.ZodLiteral<"curve">;
|
|
648
778
|
to: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodString, z.ZodObject<{
|
|
649
|
-
|
|
779
|
+
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
650
780
|
}, "strip", z.ZodTypeAny, {
|
|
651
|
-
|
|
781
|
+
relative: [number, number];
|
|
652
782
|
}, {
|
|
653
|
-
|
|
783
|
+
relative: [number, number];
|
|
654
784
|
}>, z.ZodObject<{
|
|
655
|
-
|
|
785
|
+
relativeAccumulate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
656
786
|
}, "strip", z.ZodTypeAny, {
|
|
657
|
-
|
|
787
|
+
relativeAccumulate: [number, number];
|
|
658
788
|
}, {
|
|
659
|
-
|
|
789
|
+
relativeAccumulate: [number, number];
|
|
790
|
+
}>, z.ZodObject<{
|
|
791
|
+
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>]>;
|
|
792
|
+
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
793
|
+
}, "strip", z.ZodTypeAny, {
|
|
794
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
795
|
+
offset: [number, number];
|
|
796
|
+
}, {
|
|
797
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
798
|
+
offset: [number, number];
|
|
660
799
|
}>]>;
|
|
661
800
|
control: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
662
801
|
label: z.ZodOptional<z.ZodObject<{
|
|
663
802
|
text: z.ZodString;
|
|
664
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
803
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
665
804
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
666
805
|
}, "strip", z.ZodTypeAny, {
|
|
667
806
|
text: string;
|
|
668
|
-
position?: "
|
|
807
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
669
808
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
670
809
|
}, {
|
|
671
810
|
text: string;
|
|
672
|
-
position?: "
|
|
811
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
673
812
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
674
813
|
}>>;
|
|
675
814
|
}, "strip", z.ZodTypeAny, {
|
|
676
815
|
type: "step";
|
|
677
816
|
kind: "curve";
|
|
678
817
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
679
|
-
|
|
818
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
819
|
+
offset: [number, number];
|
|
820
|
+
} | {
|
|
821
|
+
relative: [number, number];
|
|
680
822
|
} | {
|
|
681
|
-
|
|
823
|
+
relativeAccumulate: [number, number];
|
|
682
824
|
};
|
|
683
825
|
control: [number, number];
|
|
684
826
|
label?: {
|
|
685
827
|
text: string;
|
|
686
|
-
position?: "
|
|
828
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
687
829
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
688
830
|
} | undefined;
|
|
689
831
|
}, {
|
|
690
832
|
type: "step";
|
|
691
833
|
kind: "curve";
|
|
692
834
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
693
|
-
|
|
835
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
836
|
+
offset: [number, number];
|
|
694
837
|
} | {
|
|
695
|
-
|
|
838
|
+
relative: [number, number];
|
|
839
|
+
} | {
|
|
840
|
+
relativeAccumulate: [number, number];
|
|
696
841
|
};
|
|
697
842
|
control: [number, number];
|
|
698
843
|
label?: {
|
|
699
844
|
text: string;
|
|
700
|
-
position?: "
|
|
845
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
701
846
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
702
847
|
} | undefined;
|
|
703
848
|
}>, z.ZodObject<{
|
|
704
849
|
type: z.ZodLiteral<"step">;
|
|
705
850
|
kind: z.ZodLiteral<"cubic">;
|
|
706
851
|
to: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodString, z.ZodObject<{
|
|
707
|
-
|
|
852
|
+
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
853
|
+
}, "strip", z.ZodTypeAny, {
|
|
854
|
+
relative: [number, number];
|
|
855
|
+
}, {
|
|
856
|
+
relative: [number, number];
|
|
857
|
+
}>, z.ZodObject<{
|
|
858
|
+
relativeAccumulate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
708
859
|
}, "strip", z.ZodTypeAny, {
|
|
709
|
-
|
|
860
|
+
relativeAccumulate: [number, number];
|
|
710
861
|
}, {
|
|
711
|
-
|
|
862
|
+
relativeAccumulate: [number, number];
|
|
712
863
|
}>, z.ZodObject<{
|
|
713
|
-
|
|
864
|
+
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>]>;
|
|
865
|
+
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
714
866
|
}, "strip", z.ZodTypeAny, {
|
|
715
|
-
|
|
867
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
868
|
+
offset: [number, number];
|
|
716
869
|
}, {
|
|
717
|
-
|
|
870
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
871
|
+
offset: [number, number];
|
|
718
872
|
}>]>;
|
|
719
873
|
control1: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
720
874
|
control2: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
721
875
|
label: z.ZodOptional<z.ZodObject<{
|
|
722
876
|
text: z.ZodString;
|
|
723
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
877
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
724
878
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
725
879
|
}, "strip", z.ZodTypeAny, {
|
|
726
880
|
text: string;
|
|
727
|
-
position?: "
|
|
881
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
728
882
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
729
883
|
}, {
|
|
730
884
|
text: string;
|
|
731
|
-
position?: "
|
|
885
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
732
886
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
733
887
|
}>>;
|
|
734
888
|
}, "strip", z.ZodTypeAny, {
|
|
735
889
|
type: "step";
|
|
736
890
|
kind: "cubic";
|
|
737
891
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
738
|
-
|
|
892
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
893
|
+
offset: [number, number];
|
|
739
894
|
} | {
|
|
740
|
-
|
|
895
|
+
relative: [number, number];
|
|
896
|
+
} | {
|
|
897
|
+
relativeAccumulate: [number, number];
|
|
741
898
|
};
|
|
742
899
|
control1: [number, number];
|
|
743
900
|
control2: [number, number];
|
|
744
901
|
label?: {
|
|
745
902
|
text: string;
|
|
746
|
-
position?: "
|
|
903
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
747
904
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
748
905
|
} | undefined;
|
|
749
906
|
}, {
|
|
750
907
|
type: "step";
|
|
751
908
|
kind: "cubic";
|
|
752
909
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
753
|
-
|
|
910
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
911
|
+
offset: [number, number];
|
|
912
|
+
} | {
|
|
913
|
+
relative: [number, number];
|
|
754
914
|
} | {
|
|
755
|
-
|
|
915
|
+
relativeAccumulate: [number, number];
|
|
756
916
|
};
|
|
757
917
|
control1: [number, number];
|
|
758
918
|
control2: [number, number];
|
|
759
919
|
label?: {
|
|
760
920
|
text: string;
|
|
761
|
-
position?: "
|
|
921
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
762
922
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
763
923
|
} | undefined;
|
|
764
924
|
}>, z.ZodObject<{
|
|
765
925
|
type: z.ZodLiteral<"step">;
|
|
766
926
|
kind: z.ZodLiteral<"bend">;
|
|
767
927
|
to: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>, z.ZodString, z.ZodObject<{
|
|
768
|
-
|
|
928
|
+
relative: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
769
929
|
}, "strip", z.ZodTypeAny, {
|
|
770
|
-
|
|
930
|
+
relative: [number, number];
|
|
771
931
|
}, {
|
|
772
|
-
|
|
932
|
+
relative: [number, number];
|
|
773
933
|
}>, z.ZodObject<{
|
|
774
|
-
|
|
934
|
+
relativeAccumulate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
775
935
|
}, "strip", z.ZodTypeAny, {
|
|
776
|
-
|
|
936
|
+
relativeAccumulate: [number, number];
|
|
777
937
|
}, {
|
|
778
|
-
|
|
938
|
+
relativeAccumulate: [number, number];
|
|
939
|
+
}>, z.ZodObject<{
|
|
940
|
+
of: z.ZodUnion<[z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('..').PolarPosition, z.ZodTypeDef, import('..').PolarPosition>]>;
|
|
941
|
+
offset: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
942
|
+
}, "strip", z.ZodTypeAny, {
|
|
943
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
944
|
+
offset: [number, number];
|
|
945
|
+
}, {
|
|
946
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
947
|
+
offset: [number, number];
|
|
779
948
|
}>]>;
|
|
780
949
|
bendDirection: z.ZodEnum<["left", "right"]>;
|
|
781
950
|
bendAngle: z.ZodOptional<z.ZodNumber>;
|
|
782
951
|
label: z.ZodOptional<z.ZodObject<{
|
|
783
952
|
text: z.ZodString;
|
|
784
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
953
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
785
954
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
786
955
|
}, "strip", z.ZodTypeAny, {
|
|
787
956
|
text: string;
|
|
788
|
-
position?: "
|
|
957
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
789
958
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
790
959
|
}, {
|
|
791
960
|
text: string;
|
|
792
|
-
position?: "
|
|
961
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
793
962
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
794
963
|
}>>;
|
|
795
964
|
}, "strip", z.ZodTypeAny, {
|
|
796
965
|
type: "step";
|
|
797
966
|
kind: "bend";
|
|
798
967
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
799
|
-
|
|
968
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
969
|
+
offset: [number, number];
|
|
970
|
+
} | {
|
|
971
|
+
relative: [number, number];
|
|
800
972
|
} | {
|
|
801
|
-
|
|
973
|
+
relativeAccumulate: [number, number];
|
|
802
974
|
};
|
|
803
975
|
bendDirection: "left" | "right";
|
|
804
976
|
label?: {
|
|
805
977
|
text: string;
|
|
806
|
-
position?: "
|
|
978
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
807
979
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
808
980
|
} | undefined;
|
|
809
981
|
bendAngle?: number | undefined;
|
|
@@ -811,14 +983,17 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
811
983
|
type: "step";
|
|
812
984
|
kind: "bend";
|
|
813
985
|
to: string | [number, number] | import('..').PolarPosition | {
|
|
814
|
-
|
|
986
|
+
of: string | [number, number] | import('..').PolarPosition;
|
|
987
|
+
offset: [number, number];
|
|
988
|
+
} | {
|
|
989
|
+
relative: [number, number];
|
|
815
990
|
} | {
|
|
816
|
-
|
|
991
|
+
relativeAccumulate: [number, number];
|
|
817
992
|
};
|
|
818
993
|
bendDirection: "left" | "right";
|
|
819
994
|
label?: {
|
|
820
995
|
text: string;
|
|
821
|
-
position?: "
|
|
996
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
822
997
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
823
998
|
} | undefined;
|
|
824
999
|
bendAngle?: number | undefined;
|
|
@@ -830,15 +1005,15 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
830
1005
|
radius: z.ZodNumber;
|
|
831
1006
|
label: z.ZodOptional<z.ZodObject<{
|
|
832
1007
|
text: z.ZodString;
|
|
833
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
1008
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
834
1009
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
835
1010
|
}, "strip", z.ZodTypeAny, {
|
|
836
1011
|
text: string;
|
|
837
|
-
position?: "
|
|
1012
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
838
1013
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
839
1014
|
}, {
|
|
840
1015
|
text: string;
|
|
841
|
-
position?: "
|
|
1016
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
842
1017
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
843
1018
|
}>>;
|
|
844
1019
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -849,7 +1024,7 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
849
1024
|
endAngle: number;
|
|
850
1025
|
label?: {
|
|
851
1026
|
text: string;
|
|
852
|
-
position?: "
|
|
1027
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
853
1028
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
854
1029
|
} | undefined;
|
|
855
1030
|
}, {
|
|
@@ -860,7 +1035,7 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
860
1035
|
endAngle: number;
|
|
861
1036
|
label?: {
|
|
862
1037
|
text: string;
|
|
863
|
-
position?: "
|
|
1038
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
864
1039
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
865
1040
|
} | undefined;
|
|
866
1041
|
}>, z.ZodObject<{
|
|
@@ -869,15 +1044,15 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
869
1044
|
radius: z.ZodNumber;
|
|
870
1045
|
label: z.ZodOptional<z.ZodObject<{
|
|
871
1046
|
text: z.ZodString;
|
|
872
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
1047
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
873
1048
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
874
1049
|
}, "strip", z.ZodTypeAny, {
|
|
875
1050
|
text: string;
|
|
876
|
-
position?: "
|
|
1051
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
877
1052
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
878
1053
|
}, {
|
|
879
1054
|
text: string;
|
|
880
|
-
position?: "
|
|
1055
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
881
1056
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
882
1057
|
}>>;
|
|
883
1058
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -886,7 +1061,7 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
886
1061
|
kind: "circlePath";
|
|
887
1062
|
label?: {
|
|
888
1063
|
text: string;
|
|
889
|
-
position?: "
|
|
1064
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
890
1065
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
891
1066
|
} | undefined;
|
|
892
1067
|
}, {
|
|
@@ -895,7 +1070,7 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
895
1070
|
kind: "circlePath";
|
|
896
1071
|
label?: {
|
|
897
1072
|
text: string;
|
|
898
|
-
position?: "
|
|
1073
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
899
1074
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
900
1075
|
} | undefined;
|
|
901
1076
|
}>, z.ZodObject<{
|
|
@@ -905,15 +1080,15 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
905
1080
|
radiusY: z.ZodNumber;
|
|
906
1081
|
label: z.ZodOptional<z.ZodObject<{
|
|
907
1082
|
text: z.ZodString;
|
|
908
|
-
position: z.ZodOptional<z.ZodEnum<["
|
|
1083
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["at-start", "very-near-start", "near-start", "midway", "near-end", "very-near-end", "at-end"]>, z.ZodNumber]>>;
|
|
909
1084
|
side: z.ZodOptional<z.ZodEnum<["above", "below", "left", "right", "sloped"]>>;
|
|
910
1085
|
}, "strip", z.ZodTypeAny, {
|
|
911
1086
|
text: string;
|
|
912
|
-
position?: "
|
|
1087
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
913
1088
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
914
1089
|
}, {
|
|
915
1090
|
text: string;
|
|
916
|
-
position?: "
|
|
1091
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
917
1092
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
918
1093
|
}>>;
|
|
919
1094
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -923,7 +1098,7 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
923
1098
|
radiusY: number;
|
|
924
1099
|
label?: {
|
|
925
1100
|
text: string;
|
|
926
|
-
position?: "
|
|
1101
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
927
1102
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
928
1103
|
} | undefined;
|
|
929
1104
|
}, {
|
|
@@ -933,7 +1108,7 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
933
1108
|
radiusY: number;
|
|
934
1109
|
label?: {
|
|
935
1110
|
text: string;
|
|
936
|
-
position?: "
|
|
1111
|
+
position?: number | "at-start" | "very-near-start" | "near-start" | "midway" | "near-end" | "very-near-end" | "at-end" | undefined;
|
|
937
1112
|
side?: "above" | "below" | "left" | "right" | "sloped" | undefined;
|
|
938
1113
|
} | undefined;
|
|
939
1114
|
}>]>;
|
|
@@ -941,28 +1116,25 @@ export declare const StepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
941
1116
|
export type IRMoveStep = z.infer<typeof MoveStepSchema>;
|
|
942
1117
|
/** Line step:从游标到目标画直线 */
|
|
943
1118
|
export type IRLineStep = z.infer<typeof LineStepSchema>;
|
|
944
|
-
/** Fold step
|
|
1119
|
+
/** Fold step:折角段,经一个直角中间点(TikZ `-|`/`|-`) */
|
|
945
1120
|
export type IRFoldStep = z.infer<typeof FoldStepSchema>;
|
|
946
|
-
/** Cycle step
|
|
1121
|
+
/** Cycle step:闭合回起点(TikZ `cycle` / SVG `Z`) */
|
|
947
1122
|
export type IRCycleStep = z.infer<typeof CycleStepSchema>;
|
|
948
1123
|
/** Curve step:二次贝塞尔,一个控制点 */
|
|
949
1124
|
export type IRCurveStep = z.infer<typeof CurveStepSchema>;
|
|
950
1125
|
/** Cubic step:三次贝塞尔,两控制点 */
|
|
951
1126
|
export type IRCubicStep = z.infer<typeof CubicStepSchema>;
|
|
952
|
-
/** Bend step
|
|
1127
|
+
/** Bend step:弧形简记,按方向+角度生成 */
|
|
953
1128
|
export type IRBendStep = z.infer<typeof BendStepSchema>;
|
|
954
|
-
/** Arc step
|
|
1129
|
+
/** Arc step:以游标为圆心的圆弧段,按起末角度+半径定 */
|
|
955
1130
|
export type IRArcStep = z.infer<typeof ArcStepSchema>;
|
|
956
1131
|
/** CirclePath step:以游标为圆心的整圆 */
|
|
957
1132
|
export type IRCirclePathStep = z.infer<typeof CirclePathStepSchema>;
|
|
958
1133
|
/** EllipsePath step:以游标为圆心的整椭圆 */
|
|
959
1134
|
export type IREllipsePathStep = z.infer<typeof EllipsePathStepSchema>;
|
|
960
1135
|
/**
|
|
961
|
-
*
|
|
962
|
-
*
|
|
963
|
-
* 'arc' / 'circlePath' / 'ellipsePath'(path-level 形状,ADR-0002)。
|
|
964
|
-
* ADR-0003 引入 `to` 字段的 rel / relAccumulate 变体。
|
|
965
|
-
* ADR-0004 给除 move/cycle 外八种 kind 加 `label?` 字段(边标注)。
|
|
1136
|
+
* 路径上的一个动作(十种 kind)
|
|
1137
|
+
* @description 十种 kind:move / line / step(折角)/ cycle / curve / cubic / bend / arc / circlePath / ellipsePath;`to` 字段支持 relative / relativeAccumulate 变体;除 move/cycle 外可挂 `label?` 边标注
|
|
966
1138
|
*/
|
|
967
1139
|
export type IRStep = z.infer<typeof StepSchema>;
|
|
968
1140
|
//# sourceMappingURL=step.d.ts.map
|