@retikz/core 0.1.0-alpha.3 → 0.1.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/dist/es/compile/compile.d.ts +6 -0
- package/dist/es/compile/compile.d.ts.map +1 -1
- package/dist/es/compile/compile.js +30 -1
- package/dist/es/compile/node.d.ts +23 -2
- package/dist/es/compile/node.d.ts.map +1 -1
- package/dist/es/compile/node.js +94 -4
- package/dist/es/compile/position.d.ts +8 -5
- package/dist/es/compile/position.d.ts.map +1 -1
- package/dist/es/compile/position.js +32 -5
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.d.ts.map +1 -1
- package/dist/es/index.js +4 -2
- package/dist/es/ir/coordinate.d.ts +57 -0
- package/dist/es/ir/coordinate.d.ts.map +1 -0
- package/dist/es/ir/coordinate.js +27 -0
- package/dist/es/ir/index.d.ts +1 -0
- package/dist/es/ir/index.d.ts.map +1 -1
- package/dist/es/ir/node.d.ts +264 -5
- package/dist/es/ir/node.d.ts.map +1 -1
- package/dist/es/ir/node.js +28 -3
- package/dist/es/ir/position/at-position.d.ts +50 -0
- package/dist/es/ir/position/at-position.d.ts.map +1 -0
- package/dist/es/ir/position/at-position.js +30 -0
- 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/scene.d.ts +551 -15
- package/dist/es/ir/scene.d.ts.map +1 -1
- package/dist/es/ir/scene.js +6 -1
- package/dist/lib/compile/compile.cjs +30 -1
- package/dist/lib/compile/compile.d.ts +6 -0
- package/dist/lib/compile/compile.d.ts.map +1 -1
- package/dist/lib/compile/node.cjs +94 -4
- package/dist/lib/compile/node.d.ts +23 -2
- package/dist/lib/compile/node.d.ts.map +1 -1
- package/dist/lib/compile/position.cjs +32 -5
- package/dist/lib/compile/position.d.ts +8 -5
- package/dist/lib/compile/position.d.ts.map +1 -1
- package/dist/lib/index.cjs +6 -0
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/ir/coordinate.cjs +27 -0
- package/dist/lib/ir/coordinate.d.ts +57 -0
- package/dist/lib/ir/coordinate.d.ts.map +1 -0
- package/dist/lib/ir/index.d.ts +1 -0
- package/dist/lib/ir/index.d.ts.map +1 -1
- package/dist/lib/ir/node.cjs +28 -2
- package/dist/lib/ir/node.d.ts +264 -5
- package/dist/lib/ir/node.d.ts.map +1 -1
- package/dist/lib/ir/position/at-position.cjs +31 -0
- package/dist/lib/ir/position/at-position.d.ts +50 -0
- package/dist/lib/ir/position/at-position.d.ts.map +1 -0
- 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/scene.cjs +6 -1
- package/dist/lib/ir/scene.d.ts +551 -15
- package/dist/lib/ir/scene.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/lib/ir/scene.d.ts
CHANGED
|
@@ -8,7 +8,28 @@ export declare const ChildSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
8
8
|
readonly ellipse: "ellipse";
|
|
9
9
|
readonly diamond: "diamond";
|
|
10
10
|
}>>;
|
|
11
|
-
position: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('./position').PolarPosition, z.ZodTypeDef, import('./position').PolarPosition
|
|
11
|
+
position: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('./position').PolarPosition, z.ZodTypeDef, import('./position').PolarPosition>, z.ZodObject<{
|
|
12
|
+
direction: z.ZodNativeEnum<{
|
|
13
|
+
readonly above: "above";
|
|
14
|
+
readonly below: "below";
|
|
15
|
+
readonly left: "left";
|
|
16
|
+
readonly right: "right";
|
|
17
|
+
readonly 'above-left': "above-left";
|
|
18
|
+
readonly 'above-right': "above-right";
|
|
19
|
+
readonly 'below-left': "below-left";
|
|
20
|
+
readonly 'below-right': "below-right";
|
|
21
|
+
}>;
|
|
22
|
+
of: z.ZodString;
|
|
23
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
26
|
+
of: string;
|
|
27
|
+
distance?: number | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
30
|
+
of: string;
|
|
31
|
+
distance?: number | undefined;
|
|
32
|
+
}>]>;
|
|
12
33
|
rotate: z.ZodOptional<z.ZodNumber>;
|
|
13
34
|
text: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
14
35
|
text: z.ZodString;
|
|
@@ -95,9 +116,124 @@ export declare const ChildSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
95
116
|
weight?: number | "normal" | "bold" | undefined;
|
|
96
117
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
97
118
|
}>>;
|
|
119
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
120
|
+
text: z.ZodString;
|
|
121
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
|
|
122
|
+
readonly above: "above";
|
|
123
|
+
readonly below: "below";
|
|
124
|
+
readonly left: "left";
|
|
125
|
+
readonly right: "right";
|
|
126
|
+
readonly 'above-left': "above-left";
|
|
127
|
+
readonly 'above-right': "above-right";
|
|
128
|
+
readonly 'below-left': "below-left";
|
|
129
|
+
readonly 'below-right': "below-right";
|
|
130
|
+
}>, z.ZodNumber]>>;
|
|
131
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
133
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
font: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
family: z.ZodOptional<z.ZodString>;
|
|
136
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
weight: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["normal", "bold"]>, z.ZodNumber]>>;
|
|
138
|
+
style: z.ZodOptional<z.ZodEnum<["normal", "italic", "oblique"]>>;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
family?: string | undefined;
|
|
141
|
+
size?: number | undefined;
|
|
142
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
143
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
family?: string | undefined;
|
|
146
|
+
size?: number | undefined;
|
|
147
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
148
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
149
|
+
}>>;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
text: string;
|
|
152
|
+
distance?: number | undefined;
|
|
153
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
154
|
+
opacity?: number | undefined;
|
|
155
|
+
font?: {
|
|
156
|
+
family?: string | undefined;
|
|
157
|
+
size?: number | undefined;
|
|
158
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
159
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
160
|
+
} | undefined;
|
|
161
|
+
textColor?: string | undefined;
|
|
162
|
+
}, {
|
|
163
|
+
text: string;
|
|
164
|
+
distance?: number | undefined;
|
|
165
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
166
|
+
opacity?: number | undefined;
|
|
167
|
+
font?: {
|
|
168
|
+
family?: string | undefined;
|
|
169
|
+
size?: number | undefined;
|
|
170
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
171
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
172
|
+
} | undefined;
|
|
173
|
+
textColor?: string | undefined;
|
|
174
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
175
|
+
text: z.ZodString;
|
|
176
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
|
|
177
|
+
readonly above: "above";
|
|
178
|
+
readonly below: "below";
|
|
179
|
+
readonly left: "left";
|
|
180
|
+
readonly right: "right";
|
|
181
|
+
readonly 'above-left': "above-left";
|
|
182
|
+
readonly 'above-right': "above-right";
|
|
183
|
+
readonly 'below-left': "below-left";
|
|
184
|
+
readonly 'below-right': "below-right";
|
|
185
|
+
}>, z.ZodNumber]>>;
|
|
186
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
188
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
font: z.ZodOptional<z.ZodObject<{
|
|
190
|
+
family: z.ZodOptional<z.ZodString>;
|
|
191
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
192
|
+
weight: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["normal", "bold"]>, z.ZodNumber]>>;
|
|
193
|
+
style: z.ZodOptional<z.ZodEnum<["normal", "italic", "oblique"]>>;
|
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
|
195
|
+
family?: string | undefined;
|
|
196
|
+
size?: number | undefined;
|
|
197
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
198
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
199
|
+
}, {
|
|
200
|
+
family?: string | undefined;
|
|
201
|
+
size?: number | undefined;
|
|
202
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
203
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
204
|
+
}>>;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
text: string;
|
|
207
|
+
distance?: number | undefined;
|
|
208
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
209
|
+
opacity?: number | undefined;
|
|
210
|
+
font?: {
|
|
211
|
+
family?: string | undefined;
|
|
212
|
+
size?: number | undefined;
|
|
213
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
214
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
textColor?: string | undefined;
|
|
217
|
+
}, {
|
|
218
|
+
text: string;
|
|
219
|
+
distance?: number | undefined;
|
|
220
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
221
|
+
opacity?: number | undefined;
|
|
222
|
+
font?: {
|
|
223
|
+
family?: string | undefined;
|
|
224
|
+
size?: number | undefined;
|
|
225
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
226
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
227
|
+
} | undefined;
|
|
228
|
+
textColor?: string | undefined;
|
|
229
|
+
}>, "many">]>>;
|
|
98
230
|
}, "strip", z.ZodTypeAny, {
|
|
99
231
|
type: "node";
|
|
100
|
-
position: [number, number] | import('./position').PolarPosition
|
|
232
|
+
position: [number, number] | import('./position').PolarPosition | {
|
|
233
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
234
|
+
of: string;
|
|
235
|
+
distance?: number | undefined;
|
|
236
|
+
};
|
|
101
237
|
fill?: string | undefined;
|
|
102
238
|
text?: string | (string | {
|
|
103
239
|
text: string;
|
|
@@ -110,6 +246,31 @@ export declare const ChildSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
110
246
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
111
247
|
} | undefined;
|
|
112
248
|
})[] | undefined;
|
|
249
|
+
label?: {
|
|
250
|
+
text: string;
|
|
251
|
+
distance?: number | undefined;
|
|
252
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
253
|
+
opacity?: number | undefined;
|
|
254
|
+
font?: {
|
|
255
|
+
family?: string | undefined;
|
|
256
|
+
size?: number | undefined;
|
|
257
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
258
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
259
|
+
} | undefined;
|
|
260
|
+
textColor?: string | undefined;
|
|
261
|
+
} | {
|
|
262
|
+
text: string;
|
|
263
|
+
distance?: number | undefined;
|
|
264
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
265
|
+
opacity?: number | undefined;
|
|
266
|
+
font?: {
|
|
267
|
+
family?: string | undefined;
|
|
268
|
+
size?: number | undefined;
|
|
269
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
270
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
271
|
+
} | undefined;
|
|
272
|
+
textColor?: string | undefined;
|
|
273
|
+
}[] | undefined;
|
|
113
274
|
shape?: "diamond" | "circle" | "rectangle" | "ellipse" | undefined;
|
|
114
275
|
stroke?: string | undefined;
|
|
115
276
|
strokeWidth?: number | undefined;
|
|
@@ -122,6 +283,7 @@ export declare const ChildSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
122
283
|
weight?: number | "normal" | "bold" | undefined;
|
|
123
284
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
124
285
|
} | undefined;
|
|
286
|
+
textColor?: string | undefined;
|
|
125
287
|
id?: string | undefined;
|
|
126
288
|
rotate?: number | undefined;
|
|
127
289
|
align?: "left" | "right" | "center" | undefined;
|
|
@@ -136,7 +298,6 @@ export declare const ChildSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
136
298
|
scale?: number | undefined;
|
|
137
299
|
xScale?: number | undefined;
|
|
138
300
|
yScale?: number | undefined;
|
|
139
|
-
textColor?: string | undefined;
|
|
140
301
|
innerXSep?: number | undefined;
|
|
141
302
|
innerYSep?: number | undefined;
|
|
142
303
|
outerSep?: number | undefined;
|
|
@@ -144,7 +305,11 @@ export declare const ChildSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
144
305
|
margin?: number | undefined;
|
|
145
306
|
}, {
|
|
146
307
|
type: "node";
|
|
147
|
-
position: [number, number] | import('./position').PolarPosition
|
|
308
|
+
position: [number, number] | import('./position').PolarPosition | {
|
|
309
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
310
|
+
of: string;
|
|
311
|
+
distance?: number | undefined;
|
|
312
|
+
};
|
|
148
313
|
fill?: string | undefined;
|
|
149
314
|
text?: string | (string | {
|
|
150
315
|
text: string;
|
|
@@ -157,6 +322,31 @@ export declare const ChildSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
157
322
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
158
323
|
} | undefined;
|
|
159
324
|
})[] | undefined;
|
|
325
|
+
label?: {
|
|
326
|
+
text: string;
|
|
327
|
+
distance?: number | undefined;
|
|
328
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
329
|
+
opacity?: number | undefined;
|
|
330
|
+
font?: {
|
|
331
|
+
family?: string | undefined;
|
|
332
|
+
size?: number | undefined;
|
|
333
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
334
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
335
|
+
} | undefined;
|
|
336
|
+
textColor?: string | undefined;
|
|
337
|
+
} | {
|
|
338
|
+
text: string;
|
|
339
|
+
distance?: number | undefined;
|
|
340
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
341
|
+
opacity?: number | undefined;
|
|
342
|
+
font?: {
|
|
343
|
+
family?: string | undefined;
|
|
344
|
+
size?: number | undefined;
|
|
345
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
346
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
347
|
+
} | undefined;
|
|
348
|
+
textColor?: string | undefined;
|
|
349
|
+
}[] | undefined;
|
|
160
350
|
shape?: "diamond" | "circle" | "rectangle" | "ellipse" | undefined;
|
|
161
351
|
stroke?: string | undefined;
|
|
162
352
|
strokeWidth?: number | undefined;
|
|
@@ -169,6 +359,7 @@ export declare const ChildSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
169
359
|
weight?: number | "normal" | "bold" | undefined;
|
|
170
360
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
171
361
|
} | undefined;
|
|
362
|
+
textColor?: string | undefined;
|
|
172
363
|
id?: string | undefined;
|
|
173
364
|
rotate?: number | undefined;
|
|
174
365
|
align?: "left" | "right" | "center" | undefined;
|
|
@@ -183,7 +374,6 @@ export declare const ChildSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
183
374
|
scale?: number | undefined;
|
|
184
375
|
xScale?: number | undefined;
|
|
185
376
|
yScale?: number | undefined;
|
|
186
|
-
textColor?: string | undefined;
|
|
187
377
|
innerXSep?: number | undefined;
|
|
188
378
|
innerYSep?: number | undefined;
|
|
189
379
|
outerSep?: number | undefined;
|
|
@@ -917,8 +1107,49 @@ export declare const ChildSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
917
1107
|
opacity?: number | undefined;
|
|
918
1108
|
fillOpacity?: number | undefined;
|
|
919
1109
|
drawOpacity?: number | undefined;
|
|
1110
|
+
}>, z.ZodObject<{
|
|
1111
|
+
type: z.ZodLiteral<"coordinate">;
|
|
1112
|
+
id: z.ZodString;
|
|
1113
|
+
position: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('./position').PolarPosition, z.ZodTypeDef, import('./position').PolarPosition>, z.ZodObject<{
|
|
1114
|
+
direction: z.ZodNativeEnum<{
|
|
1115
|
+
readonly above: "above";
|
|
1116
|
+
readonly below: "below";
|
|
1117
|
+
readonly left: "left";
|
|
1118
|
+
readonly right: "right";
|
|
1119
|
+
readonly 'above-left': "above-left";
|
|
1120
|
+
readonly 'above-right': "above-right";
|
|
1121
|
+
readonly 'below-left': "below-left";
|
|
1122
|
+
readonly 'below-right': "below-right";
|
|
1123
|
+
}>;
|
|
1124
|
+
of: z.ZodString;
|
|
1125
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
1126
|
+
}, "strip", z.ZodTypeAny, {
|
|
1127
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
1128
|
+
of: string;
|
|
1129
|
+
distance?: number | undefined;
|
|
1130
|
+
}, {
|
|
1131
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
1132
|
+
of: string;
|
|
1133
|
+
distance?: number | undefined;
|
|
1134
|
+
}>]>;
|
|
1135
|
+
}, "strip", z.ZodTypeAny, {
|
|
1136
|
+
type: "coordinate";
|
|
1137
|
+
position: [number, number] | import('./position').PolarPosition | {
|
|
1138
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
1139
|
+
of: string;
|
|
1140
|
+
distance?: number | undefined;
|
|
1141
|
+
};
|
|
1142
|
+
id: string;
|
|
1143
|
+
}, {
|
|
1144
|
+
type: "coordinate";
|
|
1145
|
+
position: [number, number] | import('./position').PolarPosition | {
|
|
1146
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
1147
|
+
of: string;
|
|
1148
|
+
distance?: number | undefined;
|
|
1149
|
+
};
|
|
1150
|
+
id: string;
|
|
920
1151
|
}>]>;
|
|
921
|
-
/** 顶层 Scene 的子节点:node
|
|
1152
|
+
/** 顶层 Scene 的子节点:node / path / coordinate */
|
|
922
1153
|
export type IRChild = z.infer<typeof ChildSchema>;
|
|
923
1154
|
export declare const SceneSchema: z.ZodObject<{
|
|
924
1155
|
version: z.ZodLiteral<1>;
|
|
@@ -932,7 +1163,28 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
932
1163
|
readonly ellipse: "ellipse";
|
|
933
1164
|
readonly diamond: "diamond";
|
|
934
1165
|
}>>;
|
|
935
|
-
position: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('./position').PolarPosition, z.ZodTypeDef, import('./position').PolarPosition
|
|
1166
|
+
position: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('./position').PolarPosition, z.ZodTypeDef, import('./position').PolarPosition>, z.ZodObject<{
|
|
1167
|
+
direction: z.ZodNativeEnum<{
|
|
1168
|
+
readonly above: "above";
|
|
1169
|
+
readonly below: "below";
|
|
1170
|
+
readonly left: "left";
|
|
1171
|
+
readonly right: "right";
|
|
1172
|
+
readonly 'above-left': "above-left";
|
|
1173
|
+
readonly 'above-right': "above-right";
|
|
1174
|
+
readonly 'below-left': "below-left";
|
|
1175
|
+
readonly 'below-right': "below-right";
|
|
1176
|
+
}>;
|
|
1177
|
+
of: z.ZodString;
|
|
1178
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
1179
|
+
}, "strip", z.ZodTypeAny, {
|
|
1180
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
1181
|
+
of: string;
|
|
1182
|
+
distance?: number | undefined;
|
|
1183
|
+
}, {
|
|
1184
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
1185
|
+
of: string;
|
|
1186
|
+
distance?: number | undefined;
|
|
1187
|
+
}>]>;
|
|
936
1188
|
rotate: z.ZodOptional<z.ZodNumber>;
|
|
937
1189
|
text: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
938
1190
|
text: z.ZodString;
|
|
@@ -1019,9 +1271,124 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
1019
1271
|
weight?: number | "normal" | "bold" | undefined;
|
|
1020
1272
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1021
1273
|
}>>;
|
|
1274
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1275
|
+
text: z.ZodString;
|
|
1276
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
|
|
1277
|
+
readonly above: "above";
|
|
1278
|
+
readonly below: "below";
|
|
1279
|
+
readonly left: "left";
|
|
1280
|
+
readonly right: "right";
|
|
1281
|
+
readonly 'above-left': "above-left";
|
|
1282
|
+
readonly 'above-right': "above-right";
|
|
1283
|
+
readonly 'below-left': "below-left";
|
|
1284
|
+
readonly 'below-right': "below-right";
|
|
1285
|
+
}>, z.ZodNumber]>>;
|
|
1286
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
1287
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
1288
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
1289
|
+
font: z.ZodOptional<z.ZodObject<{
|
|
1290
|
+
family: z.ZodOptional<z.ZodString>;
|
|
1291
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
1292
|
+
weight: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["normal", "bold"]>, z.ZodNumber]>>;
|
|
1293
|
+
style: z.ZodOptional<z.ZodEnum<["normal", "italic", "oblique"]>>;
|
|
1294
|
+
}, "strip", z.ZodTypeAny, {
|
|
1295
|
+
family?: string | undefined;
|
|
1296
|
+
size?: number | undefined;
|
|
1297
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
1298
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1299
|
+
}, {
|
|
1300
|
+
family?: string | undefined;
|
|
1301
|
+
size?: number | undefined;
|
|
1302
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
1303
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1304
|
+
}>>;
|
|
1305
|
+
}, "strip", z.ZodTypeAny, {
|
|
1306
|
+
text: string;
|
|
1307
|
+
distance?: number | undefined;
|
|
1308
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
1309
|
+
opacity?: number | undefined;
|
|
1310
|
+
font?: {
|
|
1311
|
+
family?: string | undefined;
|
|
1312
|
+
size?: number | undefined;
|
|
1313
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
1314
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1315
|
+
} | undefined;
|
|
1316
|
+
textColor?: string | undefined;
|
|
1317
|
+
}, {
|
|
1318
|
+
text: string;
|
|
1319
|
+
distance?: number | undefined;
|
|
1320
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
1321
|
+
opacity?: number | undefined;
|
|
1322
|
+
font?: {
|
|
1323
|
+
family?: string | undefined;
|
|
1324
|
+
size?: number | undefined;
|
|
1325
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
1326
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1327
|
+
} | undefined;
|
|
1328
|
+
textColor?: string | undefined;
|
|
1329
|
+
}>, z.ZodArray<z.ZodObject<{
|
|
1330
|
+
text: z.ZodString;
|
|
1331
|
+
position: z.ZodOptional<z.ZodUnion<[z.ZodNativeEnum<{
|
|
1332
|
+
readonly above: "above";
|
|
1333
|
+
readonly below: "below";
|
|
1334
|
+
readonly left: "left";
|
|
1335
|
+
readonly right: "right";
|
|
1336
|
+
readonly 'above-left': "above-left";
|
|
1337
|
+
readonly 'above-right': "above-right";
|
|
1338
|
+
readonly 'below-left': "below-left";
|
|
1339
|
+
readonly 'below-right': "below-right";
|
|
1340
|
+
}>, z.ZodNumber]>>;
|
|
1341
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
1342
|
+
textColor: z.ZodOptional<z.ZodString>;
|
|
1343
|
+
opacity: z.ZodOptional<z.ZodNumber>;
|
|
1344
|
+
font: z.ZodOptional<z.ZodObject<{
|
|
1345
|
+
family: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
1347
|
+
weight: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["normal", "bold"]>, z.ZodNumber]>>;
|
|
1348
|
+
style: z.ZodOptional<z.ZodEnum<["normal", "italic", "oblique"]>>;
|
|
1349
|
+
}, "strip", z.ZodTypeAny, {
|
|
1350
|
+
family?: string | undefined;
|
|
1351
|
+
size?: number | undefined;
|
|
1352
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
1353
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1354
|
+
}, {
|
|
1355
|
+
family?: string | undefined;
|
|
1356
|
+
size?: number | undefined;
|
|
1357
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
1358
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1359
|
+
}>>;
|
|
1360
|
+
}, "strip", z.ZodTypeAny, {
|
|
1361
|
+
text: string;
|
|
1362
|
+
distance?: number | undefined;
|
|
1363
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
1364
|
+
opacity?: number | undefined;
|
|
1365
|
+
font?: {
|
|
1366
|
+
family?: string | undefined;
|
|
1367
|
+
size?: number | undefined;
|
|
1368
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
1369
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1370
|
+
} | undefined;
|
|
1371
|
+
textColor?: string | undefined;
|
|
1372
|
+
}, {
|
|
1373
|
+
text: string;
|
|
1374
|
+
distance?: number | undefined;
|
|
1375
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
1376
|
+
opacity?: number | undefined;
|
|
1377
|
+
font?: {
|
|
1378
|
+
family?: string | undefined;
|
|
1379
|
+
size?: number | undefined;
|
|
1380
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
1381
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1382
|
+
} | undefined;
|
|
1383
|
+
textColor?: string | undefined;
|
|
1384
|
+
}>, "many">]>>;
|
|
1022
1385
|
}, "strip", z.ZodTypeAny, {
|
|
1023
1386
|
type: "node";
|
|
1024
|
-
position: [number, number] | import('./position').PolarPosition
|
|
1387
|
+
position: [number, number] | import('./position').PolarPosition | {
|
|
1388
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
1389
|
+
of: string;
|
|
1390
|
+
distance?: number | undefined;
|
|
1391
|
+
};
|
|
1025
1392
|
fill?: string | undefined;
|
|
1026
1393
|
text?: string | (string | {
|
|
1027
1394
|
text: string;
|
|
@@ -1034,6 +1401,31 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
1034
1401
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1035
1402
|
} | undefined;
|
|
1036
1403
|
})[] | undefined;
|
|
1404
|
+
label?: {
|
|
1405
|
+
text: string;
|
|
1406
|
+
distance?: number | undefined;
|
|
1407
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
1408
|
+
opacity?: number | undefined;
|
|
1409
|
+
font?: {
|
|
1410
|
+
family?: string | undefined;
|
|
1411
|
+
size?: number | undefined;
|
|
1412
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
1413
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1414
|
+
} | undefined;
|
|
1415
|
+
textColor?: string | undefined;
|
|
1416
|
+
} | {
|
|
1417
|
+
text: string;
|
|
1418
|
+
distance?: number | undefined;
|
|
1419
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
1420
|
+
opacity?: number | undefined;
|
|
1421
|
+
font?: {
|
|
1422
|
+
family?: string | undefined;
|
|
1423
|
+
size?: number | undefined;
|
|
1424
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
1425
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1426
|
+
} | undefined;
|
|
1427
|
+
textColor?: string | undefined;
|
|
1428
|
+
}[] | undefined;
|
|
1037
1429
|
shape?: "diamond" | "circle" | "rectangle" | "ellipse" | undefined;
|
|
1038
1430
|
stroke?: string | undefined;
|
|
1039
1431
|
strokeWidth?: number | undefined;
|
|
@@ -1046,6 +1438,7 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
1046
1438
|
weight?: number | "normal" | "bold" | undefined;
|
|
1047
1439
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1048
1440
|
} | undefined;
|
|
1441
|
+
textColor?: string | undefined;
|
|
1049
1442
|
id?: string | undefined;
|
|
1050
1443
|
rotate?: number | undefined;
|
|
1051
1444
|
align?: "left" | "right" | "center" | undefined;
|
|
@@ -1060,7 +1453,6 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
1060
1453
|
scale?: number | undefined;
|
|
1061
1454
|
xScale?: number | undefined;
|
|
1062
1455
|
yScale?: number | undefined;
|
|
1063
|
-
textColor?: string | undefined;
|
|
1064
1456
|
innerXSep?: number | undefined;
|
|
1065
1457
|
innerYSep?: number | undefined;
|
|
1066
1458
|
outerSep?: number | undefined;
|
|
@@ -1068,7 +1460,11 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
1068
1460
|
margin?: number | undefined;
|
|
1069
1461
|
}, {
|
|
1070
1462
|
type: "node";
|
|
1071
|
-
position: [number, number] | import('./position').PolarPosition
|
|
1463
|
+
position: [number, number] | import('./position').PolarPosition | {
|
|
1464
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
1465
|
+
of: string;
|
|
1466
|
+
distance?: number | undefined;
|
|
1467
|
+
};
|
|
1072
1468
|
fill?: string | undefined;
|
|
1073
1469
|
text?: string | (string | {
|
|
1074
1470
|
text: string;
|
|
@@ -1081,6 +1477,31 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
1081
1477
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1082
1478
|
} | undefined;
|
|
1083
1479
|
})[] | undefined;
|
|
1480
|
+
label?: {
|
|
1481
|
+
text: string;
|
|
1482
|
+
distance?: number | undefined;
|
|
1483
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
1484
|
+
opacity?: number | undefined;
|
|
1485
|
+
font?: {
|
|
1486
|
+
family?: string | undefined;
|
|
1487
|
+
size?: number | undefined;
|
|
1488
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
1489
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1490
|
+
} | undefined;
|
|
1491
|
+
textColor?: string | undefined;
|
|
1492
|
+
} | {
|
|
1493
|
+
text: string;
|
|
1494
|
+
distance?: number | undefined;
|
|
1495
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
1496
|
+
opacity?: number | undefined;
|
|
1497
|
+
font?: {
|
|
1498
|
+
family?: string | undefined;
|
|
1499
|
+
size?: number | undefined;
|
|
1500
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
1501
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1502
|
+
} | undefined;
|
|
1503
|
+
textColor?: string | undefined;
|
|
1504
|
+
}[] | undefined;
|
|
1084
1505
|
shape?: "diamond" | "circle" | "rectangle" | "ellipse" | undefined;
|
|
1085
1506
|
stroke?: string | undefined;
|
|
1086
1507
|
strokeWidth?: number | undefined;
|
|
@@ -1093,6 +1514,7 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
1093
1514
|
weight?: number | "normal" | "bold" | undefined;
|
|
1094
1515
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1095
1516
|
} | undefined;
|
|
1517
|
+
textColor?: string | undefined;
|
|
1096
1518
|
id?: string | undefined;
|
|
1097
1519
|
rotate?: number | undefined;
|
|
1098
1520
|
align?: "left" | "right" | "center" | undefined;
|
|
@@ -1107,7 +1529,6 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
1107
1529
|
scale?: number | undefined;
|
|
1108
1530
|
xScale?: number | undefined;
|
|
1109
1531
|
yScale?: number | undefined;
|
|
1110
|
-
textColor?: string | undefined;
|
|
1111
1532
|
innerXSep?: number | undefined;
|
|
1112
1533
|
innerYSep?: number | undefined;
|
|
1113
1534
|
outerSep?: number | undefined;
|
|
@@ -1841,6 +2262,47 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
1841
2262
|
opacity?: number | undefined;
|
|
1842
2263
|
fillOpacity?: number | undefined;
|
|
1843
2264
|
drawOpacity?: number | undefined;
|
|
2265
|
+
}>, z.ZodObject<{
|
|
2266
|
+
type: z.ZodLiteral<"coordinate">;
|
|
2267
|
+
id: z.ZodString;
|
|
2268
|
+
position: z.ZodUnion<[z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, z.ZodType<import('./position').PolarPosition, z.ZodTypeDef, import('./position').PolarPosition>, z.ZodObject<{
|
|
2269
|
+
direction: z.ZodNativeEnum<{
|
|
2270
|
+
readonly above: "above";
|
|
2271
|
+
readonly below: "below";
|
|
2272
|
+
readonly left: "left";
|
|
2273
|
+
readonly right: "right";
|
|
2274
|
+
readonly 'above-left': "above-left";
|
|
2275
|
+
readonly 'above-right': "above-right";
|
|
2276
|
+
readonly 'below-left': "below-left";
|
|
2277
|
+
readonly 'below-right': "below-right";
|
|
2278
|
+
}>;
|
|
2279
|
+
of: z.ZodString;
|
|
2280
|
+
distance: z.ZodOptional<z.ZodNumber>;
|
|
2281
|
+
}, "strip", z.ZodTypeAny, {
|
|
2282
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
2283
|
+
of: string;
|
|
2284
|
+
distance?: number | undefined;
|
|
2285
|
+
}, {
|
|
2286
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
2287
|
+
of: string;
|
|
2288
|
+
distance?: number | undefined;
|
|
2289
|
+
}>]>;
|
|
2290
|
+
}, "strip", z.ZodTypeAny, {
|
|
2291
|
+
type: "coordinate";
|
|
2292
|
+
position: [number, number] | import('./position').PolarPosition | {
|
|
2293
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
2294
|
+
of: string;
|
|
2295
|
+
distance?: number | undefined;
|
|
2296
|
+
};
|
|
2297
|
+
id: string;
|
|
2298
|
+
}, {
|
|
2299
|
+
type: "coordinate";
|
|
2300
|
+
position: [number, number] | import('./position').PolarPosition | {
|
|
2301
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
2302
|
+
of: string;
|
|
2303
|
+
distance?: number | undefined;
|
|
2304
|
+
};
|
|
2305
|
+
id: string;
|
|
1844
2306
|
}>]>, "many">;
|
|
1845
2307
|
}, "strip", z.ZodTypeAny, {
|
|
1846
2308
|
type: "scene";
|
|
@@ -1974,7 +2436,11 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
1974
2436
|
drawOpacity?: number | undefined;
|
|
1975
2437
|
} | {
|
|
1976
2438
|
type: "node";
|
|
1977
|
-
position: [number, number] | import('./position').PolarPosition
|
|
2439
|
+
position: [number, number] | import('./position').PolarPosition | {
|
|
2440
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
2441
|
+
of: string;
|
|
2442
|
+
distance?: number | undefined;
|
|
2443
|
+
};
|
|
1978
2444
|
fill?: string | undefined;
|
|
1979
2445
|
text?: string | (string | {
|
|
1980
2446
|
text: string;
|
|
@@ -1987,6 +2453,31 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
1987
2453
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
1988
2454
|
} | undefined;
|
|
1989
2455
|
})[] | undefined;
|
|
2456
|
+
label?: {
|
|
2457
|
+
text: string;
|
|
2458
|
+
distance?: number | undefined;
|
|
2459
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
2460
|
+
opacity?: number | undefined;
|
|
2461
|
+
font?: {
|
|
2462
|
+
family?: string | undefined;
|
|
2463
|
+
size?: number | undefined;
|
|
2464
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
2465
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
2466
|
+
} | undefined;
|
|
2467
|
+
textColor?: string | undefined;
|
|
2468
|
+
} | {
|
|
2469
|
+
text: string;
|
|
2470
|
+
distance?: number | undefined;
|
|
2471
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
2472
|
+
opacity?: number | undefined;
|
|
2473
|
+
font?: {
|
|
2474
|
+
family?: string | undefined;
|
|
2475
|
+
size?: number | undefined;
|
|
2476
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
2477
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
2478
|
+
} | undefined;
|
|
2479
|
+
textColor?: string | undefined;
|
|
2480
|
+
}[] | undefined;
|
|
1990
2481
|
shape?: "diamond" | "circle" | "rectangle" | "ellipse" | undefined;
|
|
1991
2482
|
stroke?: string | undefined;
|
|
1992
2483
|
strokeWidth?: number | undefined;
|
|
@@ -1999,6 +2490,7 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
1999
2490
|
weight?: number | "normal" | "bold" | undefined;
|
|
2000
2491
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
2001
2492
|
} | undefined;
|
|
2493
|
+
textColor?: string | undefined;
|
|
2002
2494
|
id?: string | undefined;
|
|
2003
2495
|
rotate?: number | undefined;
|
|
2004
2496
|
align?: "left" | "right" | "center" | undefined;
|
|
@@ -2013,12 +2505,19 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
2013
2505
|
scale?: number | undefined;
|
|
2014
2506
|
xScale?: number | undefined;
|
|
2015
2507
|
yScale?: number | undefined;
|
|
2016
|
-
textColor?: string | undefined;
|
|
2017
2508
|
innerXSep?: number | undefined;
|
|
2018
2509
|
innerYSep?: number | undefined;
|
|
2019
2510
|
outerSep?: number | undefined;
|
|
2020
2511
|
padding?: number | undefined;
|
|
2021
2512
|
margin?: number | undefined;
|
|
2513
|
+
} | {
|
|
2514
|
+
type: "coordinate";
|
|
2515
|
+
position: [number, number] | import('./position').PolarPosition | {
|
|
2516
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
2517
|
+
of: string;
|
|
2518
|
+
distance?: number | undefined;
|
|
2519
|
+
};
|
|
2520
|
+
id: string;
|
|
2022
2521
|
})[];
|
|
2023
2522
|
version: 1;
|
|
2024
2523
|
}, {
|
|
@@ -2153,7 +2652,11 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
2153
2652
|
drawOpacity?: number | undefined;
|
|
2154
2653
|
} | {
|
|
2155
2654
|
type: "node";
|
|
2156
|
-
position: [number, number] | import('./position').PolarPosition
|
|
2655
|
+
position: [number, number] | import('./position').PolarPosition | {
|
|
2656
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
2657
|
+
of: string;
|
|
2658
|
+
distance?: number | undefined;
|
|
2659
|
+
};
|
|
2157
2660
|
fill?: string | undefined;
|
|
2158
2661
|
text?: string | (string | {
|
|
2159
2662
|
text: string;
|
|
@@ -2166,6 +2669,31 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
2166
2669
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
2167
2670
|
} | undefined;
|
|
2168
2671
|
})[] | undefined;
|
|
2672
|
+
label?: {
|
|
2673
|
+
text: string;
|
|
2674
|
+
distance?: number | undefined;
|
|
2675
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
2676
|
+
opacity?: number | undefined;
|
|
2677
|
+
font?: {
|
|
2678
|
+
family?: string | undefined;
|
|
2679
|
+
size?: number | undefined;
|
|
2680
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
2681
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
2682
|
+
} | undefined;
|
|
2683
|
+
textColor?: string | undefined;
|
|
2684
|
+
} | {
|
|
2685
|
+
text: string;
|
|
2686
|
+
distance?: number | undefined;
|
|
2687
|
+
position?: number | "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right" | undefined;
|
|
2688
|
+
opacity?: number | undefined;
|
|
2689
|
+
font?: {
|
|
2690
|
+
family?: string | undefined;
|
|
2691
|
+
size?: number | undefined;
|
|
2692
|
+
weight?: number | "normal" | "bold" | undefined;
|
|
2693
|
+
style?: "normal" | "italic" | "oblique" | undefined;
|
|
2694
|
+
} | undefined;
|
|
2695
|
+
textColor?: string | undefined;
|
|
2696
|
+
}[] | undefined;
|
|
2169
2697
|
shape?: "diamond" | "circle" | "rectangle" | "ellipse" | undefined;
|
|
2170
2698
|
stroke?: string | undefined;
|
|
2171
2699
|
strokeWidth?: number | undefined;
|
|
@@ -2178,6 +2706,7 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
2178
2706
|
weight?: number | "normal" | "bold" | undefined;
|
|
2179
2707
|
style?: "normal" | "italic" | "oblique" | undefined;
|
|
2180
2708
|
} | undefined;
|
|
2709
|
+
textColor?: string | undefined;
|
|
2181
2710
|
id?: string | undefined;
|
|
2182
2711
|
rotate?: number | undefined;
|
|
2183
2712
|
align?: "left" | "right" | "center" | undefined;
|
|
@@ -2192,12 +2721,19 @@ export declare const SceneSchema: z.ZodObject<{
|
|
|
2192
2721
|
scale?: number | undefined;
|
|
2193
2722
|
xScale?: number | undefined;
|
|
2194
2723
|
yScale?: number | undefined;
|
|
2195
|
-
textColor?: string | undefined;
|
|
2196
2724
|
innerXSep?: number | undefined;
|
|
2197
2725
|
innerYSep?: number | undefined;
|
|
2198
2726
|
outerSep?: number | undefined;
|
|
2199
2727
|
padding?: number | undefined;
|
|
2200
2728
|
margin?: number | undefined;
|
|
2729
|
+
} | {
|
|
2730
|
+
type: "coordinate";
|
|
2731
|
+
position: [number, number] | import('./position').PolarPosition | {
|
|
2732
|
+
direction: "above" | "below" | "left" | "right" | "above-left" | "above-right" | "below-left" | "below-right";
|
|
2733
|
+
of: string;
|
|
2734
|
+
distance?: number | undefined;
|
|
2735
|
+
};
|
|
2736
|
+
id: string;
|
|
2201
2737
|
})[];
|
|
2202
2738
|
version: 1;
|
|
2203
2739
|
}>;
|