@retikz/core 0.2.0-alpha.6 → 0.2.0-alpha.7

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.
Files changed (83) hide show
  1. package/dist/es/compile/compile.d.ts.map +1 -1
  2. package/dist/es/compile/compile.js +10 -4
  3. package/dist/es/compile/node.d.ts +19 -4
  4. package/dist/es/compile/node.d.ts.map +1 -1
  5. package/dist/es/compile/node.js +159 -29
  6. package/dist/es/compile/paint.d.ts +16 -0
  7. package/dist/es/compile/paint.d.ts.map +1 -0
  8. package/dist/es/compile/paint.js +37 -0
  9. package/dist/es/compile/path/index.d.ts +3 -0
  10. package/dist/es/compile/path/index.d.ts.map +1 -1
  11. package/dist/es/compile/path/index.js +2 -1
  12. package/dist/es/index.d.ts +3 -3
  13. package/dist/es/index.d.ts.map +1 -1
  14. package/dist/es/index.js +2 -1
  15. package/dist/es/ir/index.d.ts +1 -0
  16. package/dist/es/ir/index.d.ts.map +1 -1
  17. package/dist/es/ir/node.d.ts +262 -9
  18. package/dist/es/ir/node.d.ts.map +1 -1
  19. package/dist/es/ir/node.js +9 -2
  20. package/dist/es/ir/paint.d.ts +132 -0
  21. package/dist/es/ir/paint.d.ts.map +1 -0
  22. package/dist/es/ir/paint.js +53 -0
  23. package/dist/es/ir/path/arrow.d.ts +24 -24
  24. package/dist/es/ir/path/path.d.ts +198 -37
  25. package/dist/es/ir/path/path.d.ts.map +1 -1
  26. package/dist/es/ir/path/path.js +2 -1
  27. package/dist/es/ir/scope.d.ts +1187 -165
  28. package/dist/es/ir/scope.d.ts.map +1 -1
  29. package/dist/es/ir/scope.js +2 -1
  30. package/dist/es/primitive/ellipse.d.ts +3 -5
  31. package/dist/es/primitive/ellipse.d.ts.map +1 -1
  32. package/dist/es/primitive/paint.d.ts +24 -0
  33. package/dist/es/primitive/paint.d.ts.map +1 -0
  34. package/dist/es/primitive/path.d.ts +3 -2
  35. package/dist/es/primitive/path.d.ts.map +1 -1
  36. package/dist/es/primitive/rect.d.ts +3 -2
  37. package/dist/es/primitive/rect.d.ts.map +1 -1
  38. package/dist/es/primitive/scene.d.ts +4 -0
  39. package/dist/es/primitive/scene.d.ts.map +1 -1
  40. package/dist/es/shapes/types.d.ts +2 -2
  41. package/dist/es/shapes/types.d.ts.map +1 -1
  42. package/dist/lib/compile/compile.cjs +9 -3
  43. package/dist/lib/compile/compile.d.ts.map +1 -1
  44. package/dist/lib/compile/node.cjs +159 -28
  45. package/dist/lib/compile/node.d.ts +19 -4
  46. package/dist/lib/compile/node.d.ts.map +1 -1
  47. package/dist/lib/compile/paint.cjs +37 -0
  48. package/dist/lib/compile/paint.d.ts +16 -0
  49. package/dist/lib/compile/paint.d.ts.map +1 -0
  50. package/dist/lib/compile/path/index.cjs +2 -1
  51. package/dist/lib/compile/path/index.d.ts +3 -0
  52. package/dist/lib/compile/path/index.d.ts.map +1 -1
  53. package/dist/lib/index.cjs +3 -0
  54. package/dist/lib/index.d.ts +3 -3
  55. package/dist/lib/index.d.ts.map +1 -1
  56. package/dist/lib/ir/index.d.ts +1 -0
  57. package/dist/lib/ir/index.d.ts.map +1 -1
  58. package/dist/lib/ir/node.cjs +9 -2
  59. package/dist/lib/ir/node.d.ts +262 -9
  60. package/dist/lib/ir/node.d.ts.map +1 -1
  61. package/dist/lib/ir/paint.cjs +54 -0
  62. package/dist/lib/ir/paint.d.ts +132 -0
  63. package/dist/lib/ir/paint.d.ts.map +1 -0
  64. package/dist/lib/ir/path/arrow.d.ts +24 -24
  65. package/dist/lib/ir/path/path.cjs +2 -1
  66. package/dist/lib/ir/path/path.d.ts +198 -37
  67. package/dist/lib/ir/path/path.d.ts.map +1 -1
  68. package/dist/lib/ir/scope.cjs +2 -1
  69. package/dist/lib/ir/scope.d.ts +1187 -165
  70. package/dist/lib/ir/scope.d.ts.map +1 -1
  71. package/dist/lib/primitive/ellipse.d.ts +3 -5
  72. package/dist/lib/primitive/ellipse.d.ts.map +1 -1
  73. package/dist/lib/primitive/paint.d.ts +24 -0
  74. package/dist/lib/primitive/paint.d.ts.map +1 -0
  75. package/dist/lib/primitive/path.d.ts +3 -2
  76. package/dist/lib/primitive/path.d.ts.map +1 -1
  77. package/dist/lib/primitive/rect.d.ts +3 -2
  78. package/dist/lib/primitive/rect.d.ts.map +1 -1
  79. package/dist/lib/primitive/scene.d.ts +4 -0
  80. package/dist/lib/primitive/scene.d.ts.map +1 -1
  81. package/dist/lib/shapes/types.d.ts +2 -2
  82. package/dist/lib/shapes/types.d.ts.map +1 -1
  83. package/package.json +1 -1
@@ -44,21 +44,21 @@ export declare const PathSchema: z.ZodObject<{
44
44
  }, "strip", z.ZodTypeAny, {
45
45
  length?: number | undefined;
46
46
  fill?: string | undefined;
47
+ color?: string | undefined;
47
48
  opacity?: number | undefined;
48
49
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
50
+ lineWidth?: number | undefined;
49
51
  scale?: number | undefined;
50
52
  width?: number | undefined;
51
- color?: string | undefined;
52
- lineWidth?: number | undefined;
53
53
  }, {
54
54
  length?: number | undefined;
55
55
  fill?: string | undefined;
56
+ color?: string | undefined;
56
57
  opacity?: number | undefined;
57
58
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
59
+ lineWidth?: number | undefined;
58
60
  scale?: number | undefined;
59
61
  width?: number | undefined;
60
- color?: string | undefined;
61
- lineWidth?: number | undefined;
62
62
  }>>;
63
63
  end: z.ZodOptional<z.ZodObject<{
64
64
  shape: z.ZodOptional<z.ZodNativeEnum<{
@@ -80,82 +80,185 @@ export declare const PathSchema: z.ZodObject<{
80
80
  }, "strip", z.ZodTypeAny, {
81
81
  length?: number | undefined;
82
82
  fill?: string | undefined;
83
+ color?: string | undefined;
83
84
  opacity?: number | undefined;
84
85
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
86
+ lineWidth?: number | undefined;
85
87
  scale?: number | undefined;
86
88
  width?: number | undefined;
87
- color?: string | undefined;
88
- lineWidth?: number | undefined;
89
89
  }, {
90
90
  length?: number | undefined;
91
91
  fill?: string | undefined;
92
+ color?: string | undefined;
92
93
  opacity?: number | undefined;
93
94
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
95
+ lineWidth?: number | undefined;
94
96
  scale?: number | undefined;
95
97
  width?: number | undefined;
96
- color?: string | undefined;
97
- lineWidth?: number | undefined;
98
98
  }>>;
99
99
  }, "strip", z.ZodTypeAny, {
100
100
  length?: number | undefined;
101
101
  fill?: string | undefined;
102
+ color?: string | undefined;
102
103
  opacity?: number | undefined;
103
104
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
105
+ lineWidth?: number | undefined;
104
106
  scale?: number | undefined;
105
107
  width?: number | undefined;
106
- color?: string | undefined;
107
- lineWidth?: number | undefined;
108
108
  start?: {
109
109
  length?: number | undefined;
110
110
  fill?: string | undefined;
111
+ color?: string | undefined;
111
112
  opacity?: number | undefined;
112
113
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
114
+ lineWidth?: number | undefined;
113
115
  scale?: number | undefined;
114
116
  width?: number | undefined;
115
- color?: string | undefined;
116
- lineWidth?: number | undefined;
117
117
  } | undefined;
118
118
  end?: {
119
119
  length?: number | undefined;
120
120
  fill?: string | undefined;
121
+ color?: string | undefined;
121
122
  opacity?: number | undefined;
122
123
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
124
+ lineWidth?: number | undefined;
123
125
  scale?: number | undefined;
124
126
  width?: number | undefined;
125
- color?: string | undefined;
126
- lineWidth?: number | undefined;
127
127
  } | undefined;
128
128
  }, {
129
129
  length?: number | undefined;
130
130
  fill?: string | undefined;
131
+ color?: string | undefined;
131
132
  opacity?: number | undefined;
132
133
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
134
+ lineWidth?: number | undefined;
133
135
  scale?: number | undefined;
134
136
  width?: number | undefined;
135
- color?: string | undefined;
136
- lineWidth?: number | undefined;
137
137
  start?: {
138
138
  length?: number | undefined;
139
139
  fill?: string | undefined;
140
+ color?: string | undefined;
140
141
  opacity?: number | undefined;
141
142
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
143
+ lineWidth?: number | undefined;
142
144
  scale?: number | undefined;
143
145
  width?: number | undefined;
144
- color?: string | undefined;
145
- lineWidth?: number | undefined;
146
146
  } | undefined;
147
147
  end?: {
148
148
  length?: number | undefined;
149
149
  fill?: string | undefined;
150
+ color?: string | undefined;
150
151
  opacity?: number | undefined;
151
152
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
153
+ lineWidth?: number | undefined;
152
154
  scale?: number | undefined;
153
155
  width?: number | undefined;
154
- color?: string | undefined;
155
- lineWidth?: number | undefined;
156
156
  } | undefined;
157
157
  }>>;
158
- fill: z.ZodOptional<z.ZodString>;
158
+ fill: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
159
+ type: z.ZodLiteral<"linearGradient">;
160
+ stops: z.ZodArray<z.ZodObject<{
161
+ offset: z.ZodNumber;
162
+ color: z.ZodString;
163
+ opacity: z.ZodOptional<z.ZodNumber>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ offset: number;
166
+ color: string;
167
+ opacity?: number | undefined;
168
+ }, {
169
+ offset: number;
170
+ color: string;
171
+ opacity?: number | undefined;
172
+ }>, "many">;
173
+ angle: z.ZodOptional<z.ZodNumber>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ type: "linearGradient";
176
+ stops: {
177
+ offset: number;
178
+ color: string;
179
+ opacity?: number | undefined;
180
+ }[];
181
+ angle?: number | undefined;
182
+ }, {
183
+ type: "linearGradient";
184
+ stops: {
185
+ offset: number;
186
+ color: string;
187
+ opacity?: number | undefined;
188
+ }[];
189
+ angle?: number | undefined;
190
+ }>, z.ZodObject<{
191
+ type: z.ZodLiteral<"radialGradient">;
192
+ stops: z.ZodArray<z.ZodObject<{
193
+ offset: z.ZodNumber;
194
+ color: z.ZodString;
195
+ opacity: z.ZodOptional<z.ZodNumber>;
196
+ }, "strip", z.ZodTypeAny, {
197
+ offset: number;
198
+ color: string;
199
+ opacity?: number | undefined;
200
+ }, {
201
+ offset: number;
202
+ color: string;
203
+ opacity?: number | undefined;
204
+ }>, "many">;
205
+ center: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
206
+ radius: z.ZodOptional<z.ZodNumber>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ type: "radialGradient";
209
+ stops: {
210
+ offset: number;
211
+ color: string;
212
+ opacity?: number | undefined;
213
+ }[];
214
+ radius?: number | undefined;
215
+ center?: [number, number] | undefined;
216
+ }, {
217
+ type: "radialGradient";
218
+ stops: {
219
+ offset: number;
220
+ color: string;
221
+ opacity?: number | undefined;
222
+ }[];
223
+ radius?: number | undefined;
224
+ center?: [number, number] | undefined;
225
+ }>, z.ZodObject<{
226
+ type: z.ZodLiteral<"pattern">;
227
+ shape: z.ZodEnum<["lines", "dots", "grid"]>;
228
+ color: z.ZodOptional<z.ZodString>;
229
+ background: z.ZodOptional<z.ZodString>;
230
+ size: z.ZodOptional<z.ZodNumber>;
231
+ lineWidth: z.ZodOptional<z.ZodNumber>;
232
+ rotation: z.ZodOptional<z.ZodNumber>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ type: "pattern";
235
+ shape: "lines" | "dots" | "grid";
236
+ size?: number | undefined;
237
+ color?: string | undefined;
238
+ background?: string | undefined;
239
+ lineWidth?: number | undefined;
240
+ rotation?: number | undefined;
241
+ }, {
242
+ type: "pattern";
243
+ shape: "lines" | "dots" | "grid";
244
+ size?: number | undefined;
245
+ color?: string | undefined;
246
+ background?: string | undefined;
247
+ lineWidth?: number | undefined;
248
+ rotation?: number | undefined;
249
+ }>, z.ZodObject<{
250
+ type: z.ZodLiteral<"image">;
251
+ href: z.ZodString;
252
+ fit: z.ZodOptional<z.ZodEnum<["fill", "contain", "cover"]>>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ type: "image";
255
+ href: string;
256
+ fit?: "fill" | "contain" | "cover" | undefined;
257
+ }, {
258
+ type: "image";
259
+ href: string;
260
+ fit?: "fill" | "contain" | "cover" | undefined;
261
+ }>]>]>>;
159
262
  fillRule: z.ZodOptional<z.ZodEnum<["nonzero", "evenodd"]>>;
160
263
  lineCap: z.ZodOptional<z.ZodEnum<["butt", "round", "square"]>>;
161
264
  lineJoin: z.ZodOptional<z.ZodEnum<["miter", "round", "bevel"]>>;
@@ -1918,9 +2021,38 @@ export declare const PathSchema: z.ZodObject<{
1918
2021
  };
1919
2022
  roundedCorners?: number | undefined;
1920
2023
  })[];
1921
- fill?: string | undefined;
1922
- opacity?: number | undefined;
2024
+ fill?: string | {
2025
+ type: "linearGradient";
2026
+ stops: {
2027
+ offset: number;
2028
+ color: string;
2029
+ opacity?: number | undefined;
2030
+ }[];
2031
+ angle?: number | undefined;
2032
+ } | {
2033
+ type: "radialGradient";
2034
+ stops: {
2035
+ offset: number;
2036
+ color: string;
2037
+ opacity?: number | undefined;
2038
+ }[];
2039
+ radius?: number | undefined;
2040
+ center?: [number, number] | undefined;
2041
+ } | {
2042
+ type: "pattern";
2043
+ shape: "lines" | "dots" | "grid";
2044
+ size?: number | undefined;
2045
+ color?: string | undefined;
2046
+ background?: string | undefined;
2047
+ lineWidth?: number | undefined;
2048
+ rotation?: number | undefined;
2049
+ } | {
2050
+ type: "image";
2051
+ href: string;
2052
+ fit?: "fill" | "contain" | "cover" | undefined;
2053
+ } | undefined;
1923
2054
  color?: string | undefined;
2055
+ opacity?: number | undefined;
1924
2056
  stroke?: string | undefined;
1925
2057
  strokeWidth?: number | undefined;
1926
2058
  dashPattern?: number[] | undefined;
@@ -1928,31 +2060,31 @@ export declare const PathSchema: z.ZodObject<{
1928
2060
  arrowDetail?: {
1929
2061
  length?: number | undefined;
1930
2062
  fill?: string | undefined;
2063
+ color?: string | undefined;
1931
2064
  opacity?: number | undefined;
1932
2065
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
2066
+ lineWidth?: number | undefined;
1933
2067
  scale?: number | undefined;
1934
2068
  width?: number | undefined;
1935
- color?: string | undefined;
1936
- lineWidth?: number | undefined;
1937
2069
  start?: {
1938
2070
  length?: number | undefined;
1939
2071
  fill?: string | undefined;
2072
+ color?: string | undefined;
1940
2073
  opacity?: number | undefined;
1941
2074
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
2075
+ lineWidth?: number | undefined;
1942
2076
  scale?: number | undefined;
1943
2077
  width?: number | undefined;
1944
- color?: string | undefined;
1945
- lineWidth?: number | undefined;
1946
2078
  } | undefined;
1947
2079
  end?: {
1948
2080
  length?: number | undefined;
1949
2081
  fill?: string | undefined;
2082
+ color?: string | undefined;
1950
2083
  opacity?: number | undefined;
1951
2084
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
2085
+ lineWidth?: number | undefined;
1952
2086
  scale?: number | undefined;
1953
2087
  width?: number | undefined;
1954
- color?: string | undefined;
1955
- lineWidth?: number | undefined;
1956
2088
  } | undefined;
1957
2089
  } | undefined;
1958
2090
  fillRule?: "nonzero" | "evenodd" | undefined;
@@ -2258,9 +2390,38 @@ export declare const PathSchema: z.ZodObject<{
2258
2390
  };
2259
2391
  roundedCorners?: number | undefined;
2260
2392
  })[];
2261
- fill?: string | undefined;
2262
- opacity?: number | undefined;
2393
+ fill?: string | {
2394
+ type: "linearGradient";
2395
+ stops: {
2396
+ offset: number;
2397
+ color: string;
2398
+ opacity?: number | undefined;
2399
+ }[];
2400
+ angle?: number | undefined;
2401
+ } | {
2402
+ type: "radialGradient";
2403
+ stops: {
2404
+ offset: number;
2405
+ color: string;
2406
+ opacity?: number | undefined;
2407
+ }[];
2408
+ radius?: number | undefined;
2409
+ center?: [number, number] | undefined;
2410
+ } | {
2411
+ type: "pattern";
2412
+ shape: "lines" | "dots" | "grid";
2413
+ size?: number | undefined;
2414
+ color?: string | undefined;
2415
+ background?: string | undefined;
2416
+ lineWidth?: number | undefined;
2417
+ rotation?: number | undefined;
2418
+ } | {
2419
+ type: "image";
2420
+ href: string;
2421
+ fit?: "fill" | "contain" | "cover" | undefined;
2422
+ } | undefined;
2263
2423
  color?: string | undefined;
2424
+ opacity?: number | undefined;
2264
2425
  stroke?: string | undefined;
2265
2426
  strokeWidth?: number | undefined;
2266
2427
  dashPattern?: number[] | undefined;
@@ -2268,31 +2429,31 @@ export declare const PathSchema: z.ZodObject<{
2268
2429
  arrowDetail?: {
2269
2430
  length?: number | undefined;
2270
2431
  fill?: string | undefined;
2432
+ color?: string | undefined;
2271
2433
  opacity?: number | undefined;
2272
2434
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
2435
+ lineWidth?: number | undefined;
2273
2436
  scale?: number | undefined;
2274
2437
  width?: number | undefined;
2275
- color?: string | undefined;
2276
- lineWidth?: number | undefined;
2277
2438
  start?: {
2278
2439
  length?: number | undefined;
2279
2440
  fill?: string | undefined;
2441
+ color?: string | undefined;
2280
2442
  opacity?: number | undefined;
2281
2443
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
2444
+ lineWidth?: number | undefined;
2282
2445
  scale?: number | undefined;
2283
2446
  width?: number | undefined;
2284
- color?: string | undefined;
2285
- lineWidth?: number | undefined;
2286
2447
  } | undefined;
2287
2448
  end?: {
2288
2449
  length?: number | undefined;
2289
2450
  fill?: string | undefined;
2451
+ color?: string | undefined;
2290
2452
  opacity?: number | undefined;
2291
2453
  shape?: "normal" | "open" | "stealth" | "diamond" | "openDiamond" | "circle" | "openCircle" | undefined;
2454
+ lineWidth?: number | undefined;
2292
2455
  scale?: number | undefined;
2293
2456
  width?: number | undefined;
2294
- color?: string | undefined;
2295
- lineWidth?: number | undefined;
2296
2457
  } | undefined;
2297
2458
  } | undefined;
2298
2459
  fillRule?: "nonzero" | "evenodd" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/ir/path/path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgHpB,CAAC;AAEJ,sCAAsC;AACtC,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  const require_font = require("./font.cjs");
2
+ const require_paint = require("./paint.cjs");
2
3
  const require_arrow = require("./path/arrow.cjs");
3
4
  const require_path = require("./path/path.cjs");
4
5
  const require_node = require("./node.cjs");
@@ -67,7 +68,7 @@ var ScopeSchema = zod.z.object({
67
68
  transforms: zod.z.array(require_transform.TransformSchema).optional().describe("Local transforms applied to all scope children; array order = application order (first element applied innermost, matching Scene `GroupPrim.transforms` / SVG transform list). Supports 6 variants; the 4 translate variants are lowered to Cartesian translate at compile time."),
68
69
  color: zod.z.string().optional().describe("Cascading master color for all elements in this scope (TikZ scope `color=`). Stroke / fill / text of inner elements default to it unless individually overridden; cascades into edge labels and arrows."),
69
70
  stroke: zod.z.string().optional().describe("Cascading default stroke color for inner nodes and paths; overrides the cascading master color for the stroke channel."),
70
- fill: zod.z.string().optional().describe("Cascading default fill color for inner nodes and paths."),
71
+ fill: zod.z.union([zod.z.string(), require_paint.PaintSpecSchema]).optional().describe("Cascading default fill (CSS color or PaintSpec: gradient / pattern / image) for inner nodes and paths."),
71
72
  strokeWidth: zod.z.number().optional().describe("Cascading default stroke width (user units) for inner nodes and paths."),
72
73
  opacity: zod.z.number().min(0).max(1).optional().describe("Cascading default whole-element opacity 0..1. Replaces (does NOT compound across nested scopes — TikZ default)."),
73
74
  fillOpacity: zod.z.number().min(0).max(1).optional().describe("Cascading default fill opacity 0..1 for inner nodes and paths."),