@vitessce/schemas 4.0.7 → 4.0.9
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/index.js +204 -11
- package/dist-tsc/annotation-frames.d.ts +508 -0
- package/dist-tsc/annotation-frames.d.ts.map +1 -0
- package/dist-tsc/annotation-frames.js +120 -0
- package/dist-tsc/annotation-frames.js.map +1 -0
- package/dist-tsc/index.d.ts +1 -0
- package/dist-tsc/index.d.ts.map +1 -1
- package/dist-tsc/index.js +1 -0
- package/dist-tsc/index.js.map +1 -1
- package/dist-tsc/previous-config-meta.d.ts +59 -54
- package/dist-tsc/previous-config-meta.d.ts.map +1 -1
- package/dist-tsc/previous-config-schemas.d.ts +695 -680
- package/dist-tsc/previous-config-schemas.d.ts.map +1 -1
- package/dist-tsc/previous-config-schemas.js +3 -1
- package/dist-tsc/previous-config-schemas.js.map +1 -1
- package/dist-tsc/schema-builders.d.ts +41 -22
- package/dist-tsc/schema-builders.d.ts.map +1 -1
- package/dist-tsc/schema-builders.js +10 -0
- package/dist-tsc/schema-builders.js.map +1 -1
- package/package.json +6 -6
- package/src/annotation-frames.ts +136 -0
- package/src/index.ts +6 -0
- package/src/previous-config-schemas.ts +3 -1
- package/src/schema-builders.ts +15 -0
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Attribution: Originally written by @RPSeaman
|
|
3
|
+
* Reference: https://github.com/vitessce/vitessce/pull/2528
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
export declare const annotationShapeObj: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
7
|
+
uid: z.ZodString;
|
|
8
|
+
text: z.ZodOptional<z.ZodString>;
|
|
9
|
+
strokeColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
10
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
strokeDashArray: z.ZodOptional<z.ZodString>;
|
|
12
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
type: z.ZodLiteral<"rectangle">;
|
|
14
|
+
x: z.ZodNumber;
|
|
15
|
+
y: z.ZodNumber;
|
|
16
|
+
width: z.ZodNumber;
|
|
17
|
+
height: z.ZodNumber;
|
|
18
|
+
fillColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
19
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
uid: string;
|
|
22
|
+
type: "rectangle";
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
text?: string | undefined;
|
|
28
|
+
strokeColor?: number[] | undefined;
|
|
29
|
+
strokeWidth?: number | undefined;
|
|
30
|
+
strokeDashArray?: string | undefined;
|
|
31
|
+
visible?: boolean | undefined;
|
|
32
|
+
fillColor?: number[] | undefined;
|
|
33
|
+
fillOpacity?: number | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
uid: string;
|
|
36
|
+
type: "rectangle";
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
41
|
+
text?: string | undefined;
|
|
42
|
+
strokeColor?: number[] | undefined;
|
|
43
|
+
strokeWidth?: number | undefined;
|
|
44
|
+
strokeDashArray?: string | undefined;
|
|
45
|
+
visible?: boolean | undefined;
|
|
46
|
+
fillColor?: number[] | undefined;
|
|
47
|
+
fillOpacity?: number | undefined;
|
|
48
|
+
}>, z.ZodObject<{
|
|
49
|
+
uid: z.ZodString;
|
|
50
|
+
text: z.ZodOptional<z.ZodString>;
|
|
51
|
+
strokeColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
52
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
strokeDashArray: z.ZodOptional<z.ZodString>;
|
|
54
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
type: z.ZodLiteral<"line">;
|
|
56
|
+
x1: z.ZodNumber;
|
|
57
|
+
y1: z.ZodNumber;
|
|
58
|
+
x2: z.ZodNumber;
|
|
59
|
+
y2: z.ZodNumber;
|
|
60
|
+
markerStart: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Arrow", "Tick"]>>>;
|
|
61
|
+
markerEnd: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Arrow", "Tick"]>>>;
|
|
62
|
+
textPosition: z.ZodOptional<z.ZodEnum<["start", "middle", "end"]>>;
|
|
63
|
+
textBufferPx: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
uid: string;
|
|
66
|
+
type: "line";
|
|
67
|
+
x1: number;
|
|
68
|
+
y1: number;
|
|
69
|
+
x2: number;
|
|
70
|
+
y2: number;
|
|
71
|
+
text?: string | undefined;
|
|
72
|
+
strokeColor?: number[] | undefined;
|
|
73
|
+
strokeWidth?: number | undefined;
|
|
74
|
+
strokeDashArray?: string | undefined;
|
|
75
|
+
visible?: boolean | undefined;
|
|
76
|
+
markerStart?: "Arrow" | "Tick" | null | undefined;
|
|
77
|
+
markerEnd?: "Arrow" | "Tick" | null | undefined;
|
|
78
|
+
textPosition?: "start" | "middle" | "end" | undefined;
|
|
79
|
+
textBufferPx?: number | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
uid: string;
|
|
82
|
+
type: "line";
|
|
83
|
+
x1: number;
|
|
84
|
+
y1: number;
|
|
85
|
+
x2: number;
|
|
86
|
+
y2: number;
|
|
87
|
+
text?: string | undefined;
|
|
88
|
+
strokeColor?: number[] | undefined;
|
|
89
|
+
strokeWidth?: number | undefined;
|
|
90
|
+
strokeDashArray?: string | undefined;
|
|
91
|
+
visible?: boolean | undefined;
|
|
92
|
+
markerStart?: "Arrow" | "Tick" | null | undefined;
|
|
93
|
+
markerEnd?: "Arrow" | "Tick" | null | undefined;
|
|
94
|
+
textPosition?: "start" | "middle" | "end" | undefined;
|
|
95
|
+
textBufferPx?: number | undefined;
|
|
96
|
+
}>, z.ZodObject<{
|
|
97
|
+
uid: z.ZodString;
|
|
98
|
+
text: z.ZodOptional<z.ZodString>;
|
|
99
|
+
strokeColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
100
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
strokeDashArray: z.ZodOptional<z.ZodString>;
|
|
102
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
type: z.ZodLiteral<"ellipse">;
|
|
104
|
+
x1: z.ZodNumber;
|
|
105
|
+
y1: z.ZodNumber;
|
|
106
|
+
radiusX: z.ZodNumber;
|
|
107
|
+
radiusY: z.ZodNumber;
|
|
108
|
+
fillColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
109
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
uid: string;
|
|
112
|
+
type: "ellipse";
|
|
113
|
+
x1: number;
|
|
114
|
+
y1: number;
|
|
115
|
+
radiusX: number;
|
|
116
|
+
radiusY: number;
|
|
117
|
+
text?: string | undefined;
|
|
118
|
+
strokeColor?: number[] | undefined;
|
|
119
|
+
strokeWidth?: number | undefined;
|
|
120
|
+
strokeDashArray?: string | undefined;
|
|
121
|
+
visible?: boolean | undefined;
|
|
122
|
+
fillColor?: number[] | undefined;
|
|
123
|
+
fillOpacity?: number | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
uid: string;
|
|
126
|
+
type: "ellipse";
|
|
127
|
+
x1: number;
|
|
128
|
+
y1: number;
|
|
129
|
+
radiusX: number;
|
|
130
|
+
radiusY: number;
|
|
131
|
+
text?: string | undefined;
|
|
132
|
+
strokeColor?: number[] | undefined;
|
|
133
|
+
strokeWidth?: number | undefined;
|
|
134
|
+
strokeDashArray?: string | undefined;
|
|
135
|
+
visible?: boolean | undefined;
|
|
136
|
+
fillColor?: number[] | undefined;
|
|
137
|
+
fillOpacity?: number | undefined;
|
|
138
|
+
}>, z.ZodObject<{
|
|
139
|
+
uid: z.ZodString;
|
|
140
|
+
text: z.ZodOptional<z.ZodString>;
|
|
141
|
+
strokeColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
142
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
strokeDashArray: z.ZodOptional<z.ZodString>;
|
|
144
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
type: z.ZodLiteral<"polygon">;
|
|
146
|
+
points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
147
|
+
fillColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
148
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
|
150
|
+
uid: string;
|
|
151
|
+
type: "polygon";
|
|
152
|
+
points: [number, number][];
|
|
153
|
+
text?: string | undefined;
|
|
154
|
+
strokeColor?: number[] | undefined;
|
|
155
|
+
strokeWidth?: number | undefined;
|
|
156
|
+
strokeDashArray?: string | undefined;
|
|
157
|
+
visible?: boolean | undefined;
|
|
158
|
+
fillColor?: number[] | undefined;
|
|
159
|
+
fillOpacity?: number | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
uid: string;
|
|
162
|
+
type: "polygon";
|
|
163
|
+
points: [number, number][];
|
|
164
|
+
text?: string | undefined;
|
|
165
|
+
strokeColor?: number[] | undefined;
|
|
166
|
+
strokeWidth?: number | undefined;
|
|
167
|
+
strokeDashArray?: string | undefined;
|
|
168
|
+
visible?: boolean | undefined;
|
|
169
|
+
fillColor?: number[] | undefined;
|
|
170
|
+
fillOpacity?: number | undefined;
|
|
171
|
+
}>, z.ZodObject<{
|
|
172
|
+
uid: z.ZodString;
|
|
173
|
+
text: z.ZodOptional<z.ZodString>;
|
|
174
|
+
strokeColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
175
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
176
|
+
strokeDashArray: z.ZodOptional<z.ZodString>;
|
|
177
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
type: z.ZodLiteral<"polyline">;
|
|
179
|
+
points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
180
|
+
markerStart: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Arrow", "Tick"]>>>;
|
|
181
|
+
markerEnd: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Arrow", "Tick"]>>>;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
uid: string;
|
|
184
|
+
type: "polyline";
|
|
185
|
+
points: [number, number][];
|
|
186
|
+
text?: string | undefined;
|
|
187
|
+
strokeColor?: number[] | undefined;
|
|
188
|
+
strokeWidth?: number | undefined;
|
|
189
|
+
strokeDashArray?: string | undefined;
|
|
190
|
+
visible?: boolean | undefined;
|
|
191
|
+
markerStart?: "Arrow" | "Tick" | null | undefined;
|
|
192
|
+
markerEnd?: "Arrow" | "Tick" | null | undefined;
|
|
193
|
+
}, {
|
|
194
|
+
uid: string;
|
|
195
|
+
type: "polyline";
|
|
196
|
+
points: [number, number][];
|
|
197
|
+
text?: string | undefined;
|
|
198
|
+
strokeColor?: number[] | undefined;
|
|
199
|
+
strokeWidth?: number | undefined;
|
|
200
|
+
strokeDashArray?: string | undefined;
|
|
201
|
+
visible?: boolean | undefined;
|
|
202
|
+
markerStart?: "Arrow" | "Tick" | null | undefined;
|
|
203
|
+
markerEnd?: "Arrow" | "Tick" | null | undefined;
|
|
204
|
+
}>]>;
|
|
205
|
+
export declare const annotationShapesArray: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
206
|
+
uid: z.ZodString;
|
|
207
|
+
text: z.ZodOptional<z.ZodString>;
|
|
208
|
+
strokeColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
209
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
strokeDashArray: z.ZodOptional<z.ZodString>;
|
|
211
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
type: z.ZodLiteral<"rectangle">;
|
|
213
|
+
x: z.ZodNumber;
|
|
214
|
+
y: z.ZodNumber;
|
|
215
|
+
width: z.ZodNumber;
|
|
216
|
+
height: z.ZodNumber;
|
|
217
|
+
fillColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
218
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
uid: string;
|
|
221
|
+
type: "rectangle";
|
|
222
|
+
x: number;
|
|
223
|
+
y: number;
|
|
224
|
+
width: number;
|
|
225
|
+
height: number;
|
|
226
|
+
text?: string | undefined;
|
|
227
|
+
strokeColor?: number[] | undefined;
|
|
228
|
+
strokeWidth?: number | undefined;
|
|
229
|
+
strokeDashArray?: string | undefined;
|
|
230
|
+
visible?: boolean | undefined;
|
|
231
|
+
fillColor?: number[] | undefined;
|
|
232
|
+
fillOpacity?: number | undefined;
|
|
233
|
+
}, {
|
|
234
|
+
uid: string;
|
|
235
|
+
type: "rectangle";
|
|
236
|
+
x: number;
|
|
237
|
+
y: number;
|
|
238
|
+
width: number;
|
|
239
|
+
height: number;
|
|
240
|
+
text?: string | undefined;
|
|
241
|
+
strokeColor?: number[] | undefined;
|
|
242
|
+
strokeWidth?: number | undefined;
|
|
243
|
+
strokeDashArray?: string | undefined;
|
|
244
|
+
visible?: boolean | undefined;
|
|
245
|
+
fillColor?: number[] | undefined;
|
|
246
|
+
fillOpacity?: number | undefined;
|
|
247
|
+
}>, z.ZodObject<{
|
|
248
|
+
uid: z.ZodString;
|
|
249
|
+
text: z.ZodOptional<z.ZodString>;
|
|
250
|
+
strokeColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
251
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
strokeDashArray: z.ZodOptional<z.ZodString>;
|
|
253
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
+
type: z.ZodLiteral<"line">;
|
|
255
|
+
x1: z.ZodNumber;
|
|
256
|
+
y1: z.ZodNumber;
|
|
257
|
+
x2: z.ZodNumber;
|
|
258
|
+
y2: z.ZodNumber;
|
|
259
|
+
markerStart: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Arrow", "Tick"]>>>;
|
|
260
|
+
markerEnd: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Arrow", "Tick"]>>>;
|
|
261
|
+
textPosition: z.ZodOptional<z.ZodEnum<["start", "middle", "end"]>>;
|
|
262
|
+
textBufferPx: z.ZodOptional<z.ZodNumber>;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
uid: string;
|
|
265
|
+
type: "line";
|
|
266
|
+
x1: number;
|
|
267
|
+
y1: number;
|
|
268
|
+
x2: number;
|
|
269
|
+
y2: number;
|
|
270
|
+
text?: string | undefined;
|
|
271
|
+
strokeColor?: number[] | undefined;
|
|
272
|
+
strokeWidth?: number | undefined;
|
|
273
|
+
strokeDashArray?: string | undefined;
|
|
274
|
+
visible?: boolean | undefined;
|
|
275
|
+
markerStart?: "Arrow" | "Tick" | null | undefined;
|
|
276
|
+
markerEnd?: "Arrow" | "Tick" | null | undefined;
|
|
277
|
+
textPosition?: "start" | "middle" | "end" | undefined;
|
|
278
|
+
textBufferPx?: number | undefined;
|
|
279
|
+
}, {
|
|
280
|
+
uid: string;
|
|
281
|
+
type: "line";
|
|
282
|
+
x1: number;
|
|
283
|
+
y1: number;
|
|
284
|
+
x2: number;
|
|
285
|
+
y2: number;
|
|
286
|
+
text?: string | undefined;
|
|
287
|
+
strokeColor?: number[] | undefined;
|
|
288
|
+
strokeWidth?: number | undefined;
|
|
289
|
+
strokeDashArray?: string | undefined;
|
|
290
|
+
visible?: boolean | undefined;
|
|
291
|
+
markerStart?: "Arrow" | "Tick" | null | undefined;
|
|
292
|
+
markerEnd?: "Arrow" | "Tick" | null | undefined;
|
|
293
|
+
textPosition?: "start" | "middle" | "end" | undefined;
|
|
294
|
+
textBufferPx?: number | undefined;
|
|
295
|
+
}>, z.ZodObject<{
|
|
296
|
+
uid: z.ZodString;
|
|
297
|
+
text: z.ZodOptional<z.ZodString>;
|
|
298
|
+
strokeColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
299
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
strokeDashArray: z.ZodOptional<z.ZodString>;
|
|
301
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
+
type: z.ZodLiteral<"ellipse">;
|
|
303
|
+
x1: z.ZodNumber;
|
|
304
|
+
y1: z.ZodNumber;
|
|
305
|
+
radiusX: z.ZodNumber;
|
|
306
|
+
radiusY: z.ZodNumber;
|
|
307
|
+
fillColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
308
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
uid: string;
|
|
311
|
+
type: "ellipse";
|
|
312
|
+
x1: number;
|
|
313
|
+
y1: number;
|
|
314
|
+
radiusX: number;
|
|
315
|
+
radiusY: number;
|
|
316
|
+
text?: string | undefined;
|
|
317
|
+
strokeColor?: number[] | undefined;
|
|
318
|
+
strokeWidth?: number | undefined;
|
|
319
|
+
strokeDashArray?: string | undefined;
|
|
320
|
+
visible?: boolean | undefined;
|
|
321
|
+
fillColor?: number[] | undefined;
|
|
322
|
+
fillOpacity?: number | undefined;
|
|
323
|
+
}, {
|
|
324
|
+
uid: string;
|
|
325
|
+
type: "ellipse";
|
|
326
|
+
x1: number;
|
|
327
|
+
y1: number;
|
|
328
|
+
radiusX: number;
|
|
329
|
+
radiusY: number;
|
|
330
|
+
text?: string | undefined;
|
|
331
|
+
strokeColor?: number[] | undefined;
|
|
332
|
+
strokeWidth?: number | undefined;
|
|
333
|
+
strokeDashArray?: string | undefined;
|
|
334
|
+
visible?: boolean | undefined;
|
|
335
|
+
fillColor?: number[] | undefined;
|
|
336
|
+
fillOpacity?: number | undefined;
|
|
337
|
+
}>, z.ZodObject<{
|
|
338
|
+
uid: z.ZodString;
|
|
339
|
+
text: z.ZodOptional<z.ZodString>;
|
|
340
|
+
strokeColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
341
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
342
|
+
strokeDashArray: z.ZodOptional<z.ZodString>;
|
|
343
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
344
|
+
type: z.ZodLiteral<"polygon">;
|
|
345
|
+
points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
346
|
+
fillColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
347
|
+
fillOpacity: z.ZodOptional<z.ZodNumber>;
|
|
348
|
+
}, "strip", z.ZodTypeAny, {
|
|
349
|
+
uid: string;
|
|
350
|
+
type: "polygon";
|
|
351
|
+
points: [number, number][];
|
|
352
|
+
text?: string | undefined;
|
|
353
|
+
strokeColor?: number[] | undefined;
|
|
354
|
+
strokeWidth?: number | undefined;
|
|
355
|
+
strokeDashArray?: string | undefined;
|
|
356
|
+
visible?: boolean | undefined;
|
|
357
|
+
fillColor?: number[] | undefined;
|
|
358
|
+
fillOpacity?: number | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
uid: string;
|
|
361
|
+
type: "polygon";
|
|
362
|
+
points: [number, number][];
|
|
363
|
+
text?: string | undefined;
|
|
364
|
+
strokeColor?: number[] | undefined;
|
|
365
|
+
strokeWidth?: number | undefined;
|
|
366
|
+
strokeDashArray?: string | undefined;
|
|
367
|
+
visible?: boolean | undefined;
|
|
368
|
+
fillColor?: number[] | undefined;
|
|
369
|
+
fillOpacity?: number | undefined;
|
|
370
|
+
}>, z.ZodObject<{
|
|
371
|
+
uid: z.ZodString;
|
|
372
|
+
text: z.ZodOptional<z.ZodString>;
|
|
373
|
+
strokeColor: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
374
|
+
strokeWidth: z.ZodOptional<z.ZodNumber>;
|
|
375
|
+
strokeDashArray: z.ZodOptional<z.ZodString>;
|
|
376
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
377
|
+
type: z.ZodLiteral<"polyline">;
|
|
378
|
+
points: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
|
|
379
|
+
markerStart: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Arrow", "Tick"]>>>;
|
|
380
|
+
markerEnd: z.ZodOptional<z.ZodNullable<z.ZodEnum<["Arrow", "Tick"]>>>;
|
|
381
|
+
}, "strip", z.ZodTypeAny, {
|
|
382
|
+
uid: string;
|
|
383
|
+
type: "polyline";
|
|
384
|
+
points: [number, number][];
|
|
385
|
+
text?: string | undefined;
|
|
386
|
+
strokeColor?: number[] | undefined;
|
|
387
|
+
strokeWidth?: number | undefined;
|
|
388
|
+
strokeDashArray?: string | undefined;
|
|
389
|
+
visible?: boolean | undefined;
|
|
390
|
+
markerStart?: "Arrow" | "Tick" | null | undefined;
|
|
391
|
+
markerEnd?: "Arrow" | "Tick" | null | undefined;
|
|
392
|
+
}, {
|
|
393
|
+
uid: string;
|
|
394
|
+
type: "polyline";
|
|
395
|
+
points: [number, number][];
|
|
396
|
+
text?: string | undefined;
|
|
397
|
+
strokeColor?: number[] | undefined;
|
|
398
|
+
strokeWidth?: number | undefined;
|
|
399
|
+
strokeDashArray?: string | undefined;
|
|
400
|
+
visible?: boolean | undefined;
|
|
401
|
+
markerStart?: "Arrow" | "Tick" | null | undefined;
|
|
402
|
+
markerEnd?: "Arrow" | "Tick" | null | undefined;
|
|
403
|
+
}>]>, "many">;
|
|
404
|
+
export declare const annotationFrameObj: z.ZodObject<{
|
|
405
|
+
uid: z.ZodString;
|
|
406
|
+
title: z.ZodOptional<z.ZodString>;
|
|
407
|
+
description: z.ZodOptional<z.ZodString>;
|
|
408
|
+
descriptionType: z.ZodOptional<z.ZodEnum<["text", "markdown"]>>;
|
|
409
|
+
layout: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
410
|
+
uid: z.ZodString;
|
|
411
|
+
coordinationValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
412
|
+
}, "strip", z.ZodTypeAny, {
|
|
413
|
+
uid: string;
|
|
414
|
+
coordinationValues?: Record<string, any> | undefined;
|
|
415
|
+
}, {
|
|
416
|
+
uid: string;
|
|
417
|
+
coordinationValues?: Record<string, any> | undefined;
|
|
418
|
+
}>, "many">>;
|
|
419
|
+
}, "strip", z.ZodTypeAny, {
|
|
420
|
+
uid: string;
|
|
421
|
+
title?: string | undefined;
|
|
422
|
+
description?: string | undefined;
|
|
423
|
+
descriptionType?: "text" | "markdown" | undefined;
|
|
424
|
+
layout?: {
|
|
425
|
+
uid: string;
|
|
426
|
+
coordinationValues?: Record<string, any> | undefined;
|
|
427
|
+
}[] | undefined;
|
|
428
|
+
}, {
|
|
429
|
+
uid: string;
|
|
430
|
+
title?: string | undefined;
|
|
431
|
+
description?: string | undefined;
|
|
432
|
+
descriptionType?: "text" | "markdown" | undefined;
|
|
433
|
+
layout?: {
|
|
434
|
+
uid: string;
|
|
435
|
+
coordinationValues?: Record<string, any> | undefined;
|
|
436
|
+
}[] | undefined;
|
|
437
|
+
}>;
|
|
438
|
+
export declare const annotationStoryObj: z.ZodObject<{
|
|
439
|
+
uid: z.ZodString;
|
|
440
|
+
title: z.ZodOptional<z.ZodString>;
|
|
441
|
+
description: z.ZodOptional<z.ZodString>;
|
|
442
|
+
descriptionType: z.ZodOptional<z.ZodEnum<["text", "markdown"]>>;
|
|
443
|
+
frames: z.ZodArray<z.ZodObject<{
|
|
444
|
+
uid: z.ZodString;
|
|
445
|
+
title: z.ZodOptional<z.ZodString>;
|
|
446
|
+
description: z.ZodOptional<z.ZodString>;
|
|
447
|
+
descriptionType: z.ZodOptional<z.ZodEnum<["text", "markdown"]>>;
|
|
448
|
+
layout: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
449
|
+
uid: z.ZodString;
|
|
450
|
+
coordinationValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
451
|
+
}, "strip", z.ZodTypeAny, {
|
|
452
|
+
uid: string;
|
|
453
|
+
coordinationValues?: Record<string, any> | undefined;
|
|
454
|
+
}, {
|
|
455
|
+
uid: string;
|
|
456
|
+
coordinationValues?: Record<string, any> | undefined;
|
|
457
|
+
}>, "many">>;
|
|
458
|
+
}, "strip", z.ZodTypeAny, {
|
|
459
|
+
uid: string;
|
|
460
|
+
title?: string | undefined;
|
|
461
|
+
description?: string | undefined;
|
|
462
|
+
descriptionType?: "text" | "markdown" | undefined;
|
|
463
|
+
layout?: {
|
|
464
|
+
uid: string;
|
|
465
|
+
coordinationValues?: Record<string, any> | undefined;
|
|
466
|
+
}[] | undefined;
|
|
467
|
+
}, {
|
|
468
|
+
uid: string;
|
|
469
|
+
title?: string | undefined;
|
|
470
|
+
description?: string | undefined;
|
|
471
|
+
descriptionType?: "text" | "markdown" | undefined;
|
|
472
|
+
layout?: {
|
|
473
|
+
uid: string;
|
|
474
|
+
coordinationValues?: Record<string, any> | undefined;
|
|
475
|
+
}[] | undefined;
|
|
476
|
+
}>, "many">;
|
|
477
|
+
}, "strip", z.ZodTypeAny, {
|
|
478
|
+
uid: string;
|
|
479
|
+
frames: {
|
|
480
|
+
uid: string;
|
|
481
|
+
title?: string | undefined;
|
|
482
|
+
description?: string | undefined;
|
|
483
|
+
descriptionType?: "text" | "markdown" | undefined;
|
|
484
|
+
layout?: {
|
|
485
|
+
uid: string;
|
|
486
|
+
coordinationValues?: Record<string, any> | undefined;
|
|
487
|
+
}[] | undefined;
|
|
488
|
+
}[];
|
|
489
|
+
title?: string | undefined;
|
|
490
|
+
description?: string | undefined;
|
|
491
|
+
descriptionType?: "text" | "markdown" | undefined;
|
|
492
|
+
}, {
|
|
493
|
+
uid: string;
|
|
494
|
+
frames: {
|
|
495
|
+
uid: string;
|
|
496
|
+
title?: string | undefined;
|
|
497
|
+
description?: string | undefined;
|
|
498
|
+
descriptionType?: "text" | "markdown" | undefined;
|
|
499
|
+
layout?: {
|
|
500
|
+
uid: string;
|
|
501
|
+
coordinationValues?: Record<string, any> | undefined;
|
|
502
|
+
}[] | undefined;
|
|
503
|
+
}[];
|
|
504
|
+
title?: string | undefined;
|
|
505
|
+
description?: string | undefined;
|
|
506
|
+
descriptionType?: "text" | "markdown" | undefined;
|
|
507
|
+
}>;
|
|
508
|
+
//# sourceMappingURL=annotation-frames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotation-frames.d.ts","sourceRoot":"","sources":["../src/annotation-frames.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAA8B,CAAC;AAEjE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4C7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Attribution: Originally written by @RPSeaman
|
|
3
|
+
* Reference: https://github.com/vitessce/vitessce/pull/2528
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
const shapeBaseObj = z.object({
|
|
7
|
+
uid: z.string(),
|
|
8
|
+
text: z.string().optional(),
|
|
9
|
+
strokeColor: z.array(z.number()).length(3).optional(),
|
|
10
|
+
strokeWidth: z.number().optional(),
|
|
11
|
+
// SVG-style dash pattern, e.g. "10 5" or "10 20 30 10". "none" or omitted = solid.
|
|
12
|
+
strokeDashArray: z.string().optional(),
|
|
13
|
+
visible: z.boolean().optional(),
|
|
14
|
+
// TODO: define unit modes for x and y axes
|
|
15
|
+
// ("pixels" vs "normalized" vs "physical" etc.)
|
|
16
|
+
// TODO: a coordinate system identifier (e.g., "DeckGL" for now,
|
|
17
|
+
// but a coordinate system from OME-NGFF/SpatialData eventually?)
|
|
18
|
+
});
|
|
19
|
+
const rectangleShapeObj = shapeBaseObj.extend({
|
|
20
|
+
type: z.literal('rectangle'),
|
|
21
|
+
// OME-XML field names verbatim (upper-left origin)
|
|
22
|
+
x: z.number(),
|
|
23
|
+
y: z.number(),
|
|
24
|
+
width: z.number(),
|
|
25
|
+
height: z.number(),
|
|
26
|
+
fillColor: z.array(z.number()).length(3).optional(),
|
|
27
|
+
fillOpacity: z.number().optional(),
|
|
28
|
+
});
|
|
29
|
+
const lineShapeObj = shapeBaseObj.extend({
|
|
30
|
+
type: z.literal('line'),
|
|
31
|
+
// OME-XML field names verbatim
|
|
32
|
+
x1: z.number(),
|
|
33
|
+
y1: z.number(),
|
|
34
|
+
x2: z.number(),
|
|
35
|
+
y2: z.number(),
|
|
36
|
+
markerStart: z.enum(['Arrow', 'Tick']).nullable().optional(),
|
|
37
|
+
markerEnd: z.enum(['Arrow', 'Tick']).nullable().optional(),
|
|
38
|
+
textPosition: z.enum(['start', 'middle', 'end']).optional(),
|
|
39
|
+
textBufferPx: z.number().optional(),
|
|
40
|
+
});
|
|
41
|
+
const ellipseShapeObj = shapeBaseObj.extend({
|
|
42
|
+
type: z.literal('ellipse'),
|
|
43
|
+
// OME-XML field names verbatim (centre point + radii)
|
|
44
|
+
x1: z.number(),
|
|
45
|
+
y1: z.number(),
|
|
46
|
+
radiusX: z.number(),
|
|
47
|
+
radiusY: z.number(),
|
|
48
|
+
fillColor: z.array(z.number()).length(3).optional(),
|
|
49
|
+
fillOpacity: z.number().optional(),
|
|
50
|
+
});
|
|
51
|
+
const polygonShapeObj = shapeBaseObj.extend({
|
|
52
|
+
type: z.literal('polygon'),
|
|
53
|
+
// OME-XML: array of [x, y] coordinate pairs, closed automatically
|
|
54
|
+
points: z.array(z.tuple([z.number(), z.number()])),
|
|
55
|
+
fillColor: z.array(z.number()).length(3).optional(),
|
|
56
|
+
fillOpacity: z.number().optional(),
|
|
57
|
+
});
|
|
58
|
+
const polylineShapeObj = shapeBaseObj.extend({
|
|
59
|
+
type: z.literal('polyline'),
|
|
60
|
+
// OME-XML: array of [x, y] coordinate pairs, open (not closed)
|
|
61
|
+
points: z.array(z.tuple([z.number(), z.number()])),
|
|
62
|
+
markerStart: z.enum(['Arrow', 'Tick']).nullable().optional(),
|
|
63
|
+
markerEnd: z.enum(['Arrow', 'Tick']).nullable().optional(),
|
|
64
|
+
});
|
|
65
|
+
export const annotationShapeObj = z.discriminatedUnion('type', [
|
|
66
|
+
rectangleShapeObj,
|
|
67
|
+
lineShapeObj,
|
|
68
|
+
ellipseShapeObj,
|
|
69
|
+
polygonShapeObj,
|
|
70
|
+
polylineShapeObj,
|
|
71
|
+
]);
|
|
72
|
+
export const annotationShapesArray = z.array(annotationShapeObj);
|
|
73
|
+
export const annotationFrameObj = z.object({
|
|
74
|
+
uid: z.string(),
|
|
75
|
+
title: z.string().optional(),
|
|
76
|
+
description: z.string().optional(),
|
|
77
|
+
descriptionType: z.enum(['text', 'markdown']).optional(),
|
|
78
|
+
// A frame can define per-view: coordinationValues
|
|
79
|
+
// (if the view's state should not be coordinated with other views)
|
|
80
|
+
// or per-view coordinationScopes/coordinationScopesBy
|
|
81
|
+
// (if at this frame, the view should be coordinated with other views).
|
|
82
|
+
// We can also define a frame-level coordination space,
|
|
83
|
+
// which will be merged with the global coordination space.
|
|
84
|
+
// TODO: datasets
|
|
85
|
+
// TODO: coordinationSpace
|
|
86
|
+
layout: z.array(
|
|
87
|
+
// Note: for now, we will infer view objects which have a uid
|
|
88
|
+
// that is present in the global layout, and do NOT have x/y/w/h defined,
|
|
89
|
+
// to mean that in this frame, the layout and set of views is unchanged
|
|
90
|
+
// from the global layout.
|
|
91
|
+
// This will allow each frame to omit the full list of views from the layout,
|
|
92
|
+
// and only specify the views whose coordination state is changing in this frame.
|
|
93
|
+
// If a frame includes a view with a uid that is not present
|
|
94
|
+
// in the global layout, then that view will be added to the layout at this frame.
|
|
95
|
+
// This frame should also define x/y/w/h for all views,
|
|
96
|
+
// since it will otherwise be ambiguous how to layout the updated set of views
|
|
97
|
+
// for this frame.
|
|
98
|
+
z.object({
|
|
99
|
+
// The view UID. If this view uid is not present in the global layout,
|
|
100
|
+
// it will be added to the layout at this frame,
|
|
101
|
+
// and will need to have its coordination values initialized to their defaults
|
|
102
|
+
// for any that were not fully specified.
|
|
103
|
+
uid: z.string(),
|
|
104
|
+
coordinationValues: z.record(z.string(), // The coordination type name, e.g. "embeddingType"
|
|
105
|
+
z.any()).optional(),
|
|
106
|
+
// TODO: support coordinationScopes/coordinationScopesBy for per-view coordination
|
|
107
|
+
// at this frame.
|
|
108
|
+
// TODO: view x/y/w/h once we support view layout changes per-frame.
|
|
109
|
+
})).optional(),
|
|
110
|
+
});
|
|
111
|
+
export const annotationStoryObj = z.object({
|
|
112
|
+
// TODO: schema version for the story schema?
|
|
113
|
+
// Same as current Vitessce schema version?
|
|
114
|
+
uid: z.string(),
|
|
115
|
+
title: z.string().optional(),
|
|
116
|
+
description: z.string().optional(),
|
|
117
|
+
descriptionType: z.enum(['text', 'markdown']).optional(),
|
|
118
|
+
frames: z.array(annotationFrameObj),
|
|
119
|
+
});
|
|
120
|
+
//# sourceMappingURL=annotation-frames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotation-frames.js","sourceRoot":"","sources":["../src/annotation-frames.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,mFAAmF;IACnF,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,2CAA2C;IAC3C,gDAAgD;IAChD,gEAAgE;IAChE,iEAAiE;CAClE,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,YAAY,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IAC5B,mDAAmD;IACnD,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IACb,CAAC,EAAE,CAAC,CAA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AAC,QAAQ,EAAE;CACb,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,6CAA6C;IAC7C,2CAA2C;IAC3C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;CACpC,CAAC,CAAC"}
|
package/dist-tsc/index.d.ts
CHANGED
|
@@ -7,5 +7,6 @@ export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCs
|
|
|
7
7
|
export { anndataCellsZarrSchema, anndataCellSetsZarrSchema, anndataExpressionMatrixZarrSchema, cellsJsonSchema, } from './file-def-options-legacy.js';
|
|
8
8
|
export { obsSetPath, rgbArray, obsSetsSchema, obsSetsTabularSchema, } from './shared.js';
|
|
9
9
|
export { imageLayerObj, cellsLayerObj, neighborhoodsLayerObj, moleculesLayerObj, } from './spatial-layers.js';
|
|
10
|
+
export { annotationFrameObj, annotationShapesArray, annotationShapeObj, annotationStoryObj, } from './annotation-frames.js';
|
|
10
11
|
export { z } from 'zod';
|
|
11
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist-tsc/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,EAC7B,0BAA0B,EAC1B,wBAAwB,EACxB,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,6BAA6B,EAC7B,6BAA6B,EAC7B,iCAAiC,EACjC,iCAAiC,EACjC,yBAAyB,EACzB,0BAA0B,EAC1B,6BAA6B,EAC7B,wBAAwB,EACxB,6BAA6B,EAC7B,aAAa,EACb,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,iCAAiC,EACjC,eAAe,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,UAAU,EACV,QAAQ,EACR,aAAa,EACb,oBAAoB,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,aAAa,EACb,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB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B,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC"}
|
package/dist-tsc/index.js
CHANGED
|
@@ -7,5 +7,6 @@ export { obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCs
|
|
|
7
7
|
export { anndataCellsZarrSchema, anndataCellSetsZarrSchema, anndataExpressionMatrixZarrSchema, cellsJsonSchema, } from './file-def-options-legacy.js';
|
|
8
8
|
export { obsSetPath, rgbArray, obsSetsSchema, obsSetsTabularSchema, } from './shared.js';
|
|
9
9
|
export { imageLayerObj, cellsLayerObj, neighborhoodsLayerObj, moleculesLayerObj, } from './spatial-layers.js';
|
|
10
|
+
export { annotationFrameObj, annotationShapesArray, annotationShapeObj, annotationStoryObj, } from './annotation-frames.js';
|
|
10
11
|
export { z } from 'zod';
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
package/dist-tsc/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,E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