@vitessce/schemas 3.0.0

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 (57) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +19 -0
  3. package/dist/index.js +16360 -0
  4. package/dist-tsc/file-def-options-legacy.d.ts +72 -0
  5. package/dist-tsc/file-def-options-legacy.d.ts.map +1 -0
  6. package/dist-tsc/file-def-options-legacy.js +28 -0
  7. package/dist-tsc/file-def-options.d.ts +417 -0
  8. package/dist-tsc/file-def-options.d.ts.map +1 -0
  9. package/dist-tsc/file-def-options.js +139 -0
  10. package/dist-tsc/index.d.ts +11 -0
  11. package/dist-tsc/index.d.ts.map +1 -0
  12. package/dist-tsc/index.js +10 -0
  13. package/dist-tsc/previous-config-meta.d.ts +251 -0
  14. package/dist-tsc/previous-config-meta.d.ts.map +1 -0
  15. package/dist-tsc/previous-config-meta.js +22 -0
  16. package/dist-tsc/previous-config-schemas.d.ts +4053 -0
  17. package/dist-tsc/previous-config-schemas.d.ts.map +1 -0
  18. package/dist-tsc/previous-config-schemas.js +204 -0
  19. package/dist-tsc/previous-config-upgraders.d.ts +25 -0
  20. package/dist-tsc/previous-config-upgraders.d.ts.map +1 -0
  21. package/dist-tsc/previous-config-upgraders.js +589 -0
  22. package/dist-tsc/raster-json.d.ts +274 -0
  23. package/dist-tsc/raster-json.d.ts.map +1 -0
  24. package/dist-tsc/raster-json.js +36 -0
  25. package/dist-tsc/schema-builders.d.ts +465 -0
  26. package/dist-tsc/schema-builders.d.ts.map +1 -0
  27. package/dist-tsc/schema-builders.js +127 -0
  28. package/dist-tsc/shared.d.ts +145 -0
  29. package/dist-tsc/shared.d.ts.map +1 -0
  30. package/dist-tsc/shared.js +100 -0
  31. package/dist-tsc/spatial-layers.d.ts +112 -0
  32. package/dist-tsc/spatial-layers.d.ts.map +1 -0
  33. package/dist-tsc/spatial-layers.js +81 -0
  34. package/dist-tsc/view-config-utils.test.d.ts +2 -0
  35. package/dist-tsc/view-config-utils.test.d.ts.map +1 -0
  36. package/dist-tsc/view-config-utils.test.fixtures.d.ts +495 -0
  37. package/dist-tsc/view-config-utils.test.fixtures.d.ts.map +1 -0
  38. package/dist-tsc/view-config-utils.test.fixtures.js +881 -0
  39. package/dist-tsc/view-config-utils.test.js +23 -0
  40. package/dist-tsc/view-config-versions.d.ts +6 -0
  41. package/dist-tsc/view-config-versions.d.ts.map +1 -0
  42. package/dist-tsc/view-config-versions.js +78 -0
  43. package/package.json +49 -0
  44. package/src/file-def-options-legacy.js +34 -0
  45. package/src/file-def-options.ts +158 -0
  46. package/src/index.ts +41 -0
  47. package/src/missing-types.d.ts +1 -0
  48. package/src/previous-config-meta.ts +85 -0
  49. package/src/previous-config-schemas.ts +259 -0
  50. package/src/previous-config-upgraders.ts +739 -0
  51. package/src/raster-json.ts +38 -0
  52. package/src/schema-builders.ts +179 -0
  53. package/src/shared.ts +158 -0
  54. package/src/spatial-layers.ts +103 -0
  55. package/src/view-config-utils.test.fixtures.ts +901 -0
  56. package/src/view-config-utils.test.ts +39 -0
  57. package/src/view-config-versions.ts +87 -0
@@ -0,0 +1,901 @@
1
+ /* eslint-disable camelcase */
2
+ import { z } from 'zod';
3
+ import {
4
+ configSchema0_1_0,
5
+ configSchema1_0_0,
6
+ configSchema1_0_1,
7
+ configSchema1_0_15,
8
+ configSchema1_0_16,
9
+ } from './previous-config-schemas.js';
10
+
11
+ /* eslint-disable camelcase */
12
+ export const legacyViewConfig0_1_0: z.infer<typeof configSchema0_1_0> = {
13
+ version: '0.1.0',
14
+ public: true,
15
+ name: 'My config name',
16
+ description: 'My config description',
17
+ layers: [{
18
+ name: 'cells',
19
+ type: 'CELLS',
20
+ fileType: 'cells.json',
21
+ url: 'https://example.com/cells.json',
22
+ }, {
23
+ name: 'cell-sets',
24
+ type: 'CELL-SETS',
25
+ fileType: 'cell-sets.json',
26
+ url: 'https://example.com/cell-sets.json',
27
+ }],
28
+ staticLayout: [{
29
+ component: 'description',
30
+ props: {
31
+ description: 'My component description',
32
+ },
33
+ x: 9,
34
+ y: 0,
35
+ w: 3,
36
+ h: 2,
37
+ }, {
38
+ component: 'scatterplot',
39
+ props: {
40
+ mapping: 't-SNE',
41
+ view: {
42
+ zoom: 3,
43
+ target: [0, 0, 0],
44
+ },
45
+ },
46
+ x: 0,
47
+ y: 2,
48
+ w: 5,
49
+ h: 4,
50
+ }, {
51
+ component: 'spatial',
52
+ props: {
53
+ cellRadius: 50,
54
+ view: {
55
+ zoom: -4.4,
56
+ target: [3800, -900, 0],
57
+ },
58
+ },
59
+ x: 5,
60
+ y: 0,
61
+ w: 4,
62
+ h: 4,
63
+ }],
64
+ };
65
+
66
+ export const upgradedLegacyViewConfig0_1_0: z.infer<typeof configSchema1_0_0> = {
67
+ version: '1.0.0',
68
+ public: true,
69
+ name: 'My config name',
70
+ description: 'My config description',
71
+ initStrategy: 'auto',
72
+ coordinationSpace: {
73
+ embeddingTargetX: {
74
+ A: 0,
75
+ },
76
+ embeddingTargetY: {
77
+ A: 0,
78
+ },
79
+ embeddingType: {
80
+ 't-SNE': 't-SNE',
81
+ },
82
+ embeddingZoom: {
83
+ A: 3,
84
+ },
85
+ spatialTargetX: {
86
+ A: 3800,
87
+ },
88
+ spatialTargetY: {
89
+ A: -900,
90
+ },
91
+ spatialZoom: {
92
+ A: -4.4,
93
+ },
94
+ },
95
+ datasets: [
96
+ {
97
+ files: [
98
+ {
99
+ fileType: 'cells.json',
100
+ url: 'https://example.com/cells.json',
101
+ },
102
+ {
103
+ fileType: 'cell-sets.json',
104
+ url: 'https://example.com/cell-sets.json',
105
+ },
106
+ ],
107
+ name: 'A',
108
+ uid: 'A',
109
+ },
110
+ ],
111
+ layout: [
112
+ {
113
+ component: 'description',
114
+ coordinationScopes: {},
115
+ h: 2,
116
+ props: {
117
+ description: 'My component description',
118
+ },
119
+ w: 3,
120
+ x: 9,
121
+ y: 0,
122
+ },
123
+ {
124
+ component: 'scatterplot',
125
+ coordinationScopes: {
126
+ embeddingTargetX: 'A',
127
+ embeddingTargetY: 'A',
128
+ embeddingType: 't-SNE',
129
+ embeddingZoom: 'A',
130
+ },
131
+ h: 4,
132
+ props: {
133
+ mapping: 't-SNE',
134
+ view: {
135
+ target: [
136
+ 0,
137
+ 0,
138
+ 0,
139
+ ],
140
+ zoom: 3,
141
+ },
142
+ },
143
+ w: 5,
144
+ x: 0,
145
+ y: 2,
146
+ },
147
+ {
148
+ component: 'spatial',
149
+ coordinationScopes: {
150
+ spatialTargetX: 'A',
151
+ spatialTargetY: 'A',
152
+ spatialZoom: 'A',
153
+ },
154
+ h: 4,
155
+ props: {
156
+ cellRadius: 50,
157
+ view: {
158
+ target: [
159
+ 3800,
160
+ -900,
161
+ 0,
162
+ ],
163
+ zoom: -4.4,
164
+ },
165
+ },
166
+ w: 4,
167
+ x: 5,
168
+ y: 0,
169
+ },
170
+ ],
171
+ };
172
+
173
+ export const legacyViewConfig1_0_0: z.infer<typeof configSchema1_0_0> = {
174
+ version: '1.0.0',
175
+ public: true,
176
+ name: 'My config name',
177
+ description: 'My config description',
178
+ initStrategy: 'auto',
179
+ coordinationSpace: {
180
+ dataset: {
181
+ A: 'A',
182
+ },
183
+ spatialLayers: {
184
+ A: [
185
+ { type: 'cells', radius: 10, visible: true },
186
+ { type: 'molecules', visible: false },
187
+ { type: 'raster', index: 2 },
188
+ { type: 'raster', index: 3 },
189
+ ],
190
+ },
191
+ },
192
+ datasets: [
193
+ {
194
+ files: [],
195
+ name: 'A',
196
+ uid: 'A',
197
+ },
198
+ ],
199
+ layout: [
200
+ {
201
+ component: 'description',
202
+ coordinationScopes: {
203
+ dataset: 'A',
204
+ spatialLayers: 'A',
205
+ },
206
+ h: 2,
207
+ props: {
208
+ description: 'My component description',
209
+ },
210
+ w: 3,
211
+ x: 9,
212
+ y: 0,
213
+ },
214
+ {
215
+ component: 'spatial',
216
+ coordinationScopes: {
217
+ dataset: 'A',
218
+ spatialLayers: 'A',
219
+ },
220
+ h: 4,
221
+ props: {
222
+ cellRadius: 50,
223
+ view: {
224
+ target: [
225
+ 3800,
226
+ -900,
227
+ 0,
228
+ ],
229
+ zoom: -4.4,
230
+ },
231
+ },
232
+ w: 4,
233
+ x: 5,
234
+ y: 0,
235
+ },
236
+ ],
237
+ };
238
+
239
+ export const upgradedLegacyViewConfig1_0_0: z.infer<typeof configSchema1_0_1> = {
240
+ version: '1.0.1',
241
+ public: true,
242
+ name: 'My config name',
243
+ description: 'My config description',
244
+ initStrategy: 'auto',
245
+ coordinationSpace: {
246
+ dataset: {
247
+ A: 'A',
248
+ },
249
+ spatialRasterLayers: {
250
+ A: [
251
+ { index: 2 },
252
+ { index: 3 },
253
+ ],
254
+ },
255
+ spatialCellsLayer: {
256
+ A: { radius: 10, visible: true },
257
+ },
258
+ spatialMoleculesLayer: {
259
+ A: { visible: false },
260
+ },
261
+ spatialNeighborhoodsLayer: {
262
+ A: null,
263
+ },
264
+ },
265
+ datasets: [
266
+ {
267
+ files: [],
268
+ name: 'A',
269
+ uid: 'A',
270
+ },
271
+ ],
272
+ layout: [
273
+ {
274
+ component: 'description',
275
+ coordinationScopes: {
276
+ dataset: 'A',
277
+ spatialRasterLayers: 'A',
278
+ },
279
+ h: 2,
280
+ props: {
281
+ description: 'My component description',
282
+ },
283
+ w: 3,
284
+ x: 9,
285
+ y: 0,
286
+ },
287
+ {
288
+ component: 'spatial',
289
+ coordinationScopes: {
290
+ dataset: 'A',
291
+ spatialRasterLayers: 'A',
292
+ spatialCellsLayer: 'A',
293
+ spatialMoleculesLayer: 'A',
294
+ spatialNeighborhoodsLayer: 'A',
295
+ },
296
+ h: 4,
297
+ props: {
298
+ cellRadius: 50,
299
+ view: {
300
+ target: [
301
+ 3800,
302
+ -900,
303
+ 0,
304
+ ],
305
+ zoom: -4.4,
306
+ },
307
+ },
308
+ w: 4,
309
+ x: 5,
310
+ y: 0,
311
+ },
312
+ ],
313
+ };
314
+
315
+
316
+ export const missingViewUids = {
317
+ version: '1.0.9',
318
+ name: 'My config name',
319
+ description: 'My config description',
320
+ initStrategy: 'auto',
321
+ coordinationSpace: {
322
+ dataset: {
323
+ A: 'A',
324
+ },
325
+ },
326
+ datasets: [
327
+ {
328
+ files: [],
329
+ name: 'A',
330
+ uid: 'A',
331
+ },
332
+ ],
333
+ layout: [
334
+ {
335
+ component: 'description',
336
+ coordinationScopes: {
337
+ dataset: 'A',
338
+ },
339
+ h: 2,
340
+ w: 3,
341
+ x: 9,
342
+ y: 0,
343
+ },
344
+ {
345
+ component: 'scatterplot',
346
+ uid: 'some-umap',
347
+ coordinationScopes: {
348
+ dataset: 'A',
349
+ },
350
+ h: 4,
351
+ w: 5,
352
+ x: 0,
353
+ y: 2,
354
+ },
355
+ {
356
+ component: 'scatterplot',
357
+ coordinationScopes: {
358
+ dataset: 'A',
359
+ },
360
+ h: 4,
361
+ w: 5,
362
+ x: 0,
363
+ y: 2,
364
+ },
365
+ {
366
+ component: 'spatial',
367
+ coordinationScopes: {
368
+ dataset: 'A',
369
+ },
370
+ h: 4,
371
+ w: 4,
372
+ x: 5,
373
+ y: 0,
374
+ },
375
+ ],
376
+ };
377
+
378
+
379
+ export const viewConfig1_0_10 = {
380
+ version: '1.0.10',
381
+ name: 'My config name',
382
+ description: 'My config description',
383
+ initStrategy: 'auto',
384
+ coordinationSpace: {
385
+ embeddingTargetX: {
386
+ A: 0,
387
+ },
388
+ embeddingTargetY: {
389
+ A: 0,
390
+ },
391
+ embeddingType: {
392
+ 't-SNE': 't-SNE',
393
+ },
394
+ embeddingZoom: {
395
+ A: 3,
396
+ },
397
+ spatialTargetX: {
398
+ A: 3800,
399
+ },
400
+ spatialTargetY: {
401
+ A: -900,
402
+ },
403
+ spatialZoom: {
404
+ A: -4.4,
405
+ },
406
+ },
407
+ datasets: [
408
+ {
409
+ files: [
410
+ {
411
+ fileType: 'cells.json',
412
+ type: 'cells',
413
+ url: 'https://example.com/cells.json',
414
+ },
415
+ {
416
+ fileType: 'cell-sets.json',
417
+ type: 'cell-sets',
418
+ url: 'https://example.com/cell-sets.json',
419
+ },
420
+ ],
421
+ name: 'A',
422
+ uid: 'A',
423
+ },
424
+ ],
425
+ layout: [
426
+ {
427
+ component: 'description',
428
+ coordinationScopes: {},
429
+ h: 2,
430
+ props: {
431
+ description: 'My component description',
432
+ },
433
+ w: 3,
434
+ x: 9,
435
+ y: 0,
436
+ },
437
+ {
438
+ component: 'scatterplot',
439
+ coordinationScopes: {
440
+ embeddingTargetX: 'A',
441
+ embeddingTargetY: 'A',
442
+ embeddingType: 't-SNE',
443
+ embeddingZoom: 'A',
444
+ },
445
+ h: 4,
446
+ props: {
447
+ mapping: 't-SNE',
448
+ view: {
449
+ target: [
450
+ 0,
451
+ 0,
452
+ 0,
453
+ ],
454
+ zoom: 3,
455
+ },
456
+ },
457
+ w: 5,
458
+ x: 0,
459
+ y: 2,
460
+ },
461
+ {
462
+ component: 'spatial',
463
+ coordinationScopes: {
464
+ spatialTargetX: 'A',
465
+ spatialTargetY: 'A',
466
+ spatialZoom: 'A',
467
+ },
468
+ h: 4,
469
+ props: {
470
+ cellRadius: 50,
471
+ view: {
472
+ target: [
473
+ 3800,
474
+ -900,
475
+ 0,
476
+ ],
477
+ zoom: -4.4,
478
+ },
479
+ },
480
+ w: 4,
481
+ x: 5,
482
+ y: 0,
483
+ },
484
+ ],
485
+ };
486
+
487
+ export const initializedViewConfig = {
488
+ version: '1.0.10',
489
+ name: 'My config name',
490
+ description: 'My config description',
491
+ initStrategy: 'auto',
492
+ coordinationSpace: {
493
+ obsType: {
494
+ A: 'cell',
495
+ },
496
+ featureType: {
497
+ A: 'gene',
498
+ },
499
+ featureValueType: {
500
+ A: 'expression',
501
+ },
502
+ obsColorEncoding: {
503
+ A: 'cellSetSelection',
504
+ },
505
+ obsFilter: {
506
+ A: null,
507
+ },
508
+ obsHighlight: {
509
+ A: null,
510
+ },
511
+ obsSetHighlight: {
512
+ A: null,
513
+ },
514
+ obsSetSelection: {
515
+ A: null,
516
+ },
517
+ dataset: {
518
+ A: 'A',
519
+ },
520
+ embeddingObsOpacity: {
521
+ A: 1,
522
+ },
523
+ embeddingObsOpacityMode: {
524
+ A: 'auto',
525
+ },
526
+ embeddingObsRadius: {
527
+ A: 1,
528
+ },
529
+ embeddingObsRadiusMode: {
530
+ A: 'auto',
531
+ },
532
+ embeddingRotation: {
533
+ A: 0,
534
+ },
535
+ embeddingTargetX: {
536
+ A: 0,
537
+ },
538
+ embeddingTargetY: {
539
+ A: 0,
540
+ },
541
+ embeddingTargetZ: {
542
+ A: 0,
543
+ },
544
+ embeddingType: {
545
+ 't-SNE': 't-SNE',
546
+ },
547
+ embeddingZoom: {
548
+ A: 3,
549
+ },
550
+ embeddingObsSetLabelSize: {
551
+ A: 14,
552
+ },
553
+ embeddingObsSetLabelsVisible: {
554
+ A: false,
555
+ },
556
+ embeddingObsSetPolygonsVisible: {
557
+ A: false,
558
+ },
559
+ featureValueColormap: {
560
+ A: 'plasma',
561
+ },
562
+ featureValueColormapRange: {
563
+ A: [
564
+ 0,
565
+ 1,
566
+ ],
567
+ },
568
+ featureHighlight: {
569
+ A: null,
570
+ },
571
+ featureSelection: {
572
+ A: null,
573
+ },
574
+ spatialImageLayer: {
575
+ A: null,
576
+ },
577
+ spatialSegmentationLayer: {
578
+ A: null,
579
+ },
580
+ spatialPointLayer: {
581
+ A: null,
582
+ },
583
+ spatialNeighborhoodLayer: {
584
+ A: null,
585
+ },
586
+ spatialRotation: {
587
+ A: 0,
588
+ },
589
+ spatialRotationOrbit: {
590
+ A: 0,
591
+ },
592
+ spatialOrbitAxis: {
593
+ A: 'Y',
594
+ },
595
+ spatialRotationX: {
596
+ A: null,
597
+ },
598
+ spatialRotationY: {
599
+ A: null,
600
+ },
601
+ spatialRotationZ: {
602
+ A: null,
603
+ },
604
+ spatialTargetX: {
605
+ A: 3800,
606
+ },
607
+ spatialTargetY: {
608
+ A: -900,
609
+ },
610
+ spatialTargetZ: {
611
+ A: null,
612
+ },
613
+ spatialZoom: {
614
+ A: -4.4,
615
+ },
616
+ spatialAxisFixed: {
617
+ A: false,
618
+ },
619
+ additionalObsSets: {
620
+ A: null,
621
+ },
622
+ obsSetColor: {
623
+ A: null,
624
+ },
625
+ obsLabelsType: {
626
+ A: null,
627
+ },
628
+ moleculeHighlight: {
629
+ A: null,
630
+ },
631
+ },
632
+ datasets: [
633
+ {
634
+ files: [
635
+ {
636
+ fileType: 'obsSegmentations.cells.json',
637
+ url: 'https://example.com/cells.json',
638
+ coordinationValues: {
639
+ obsType: 'cell',
640
+ },
641
+ },
642
+ {
643
+ fileType: 'obsLocations.cells.json',
644
+ url: 'https://example.com/cells.json',
645
+ coordinationValues: {
646
+ obsType: 'cell',
647
+ },
648
+ },
649
+ {
650
+ fileType: 'obsSets.cell-sets.json',
651
+ url: 'https://example.com/cell-sets.json',
652
+ coordinationValues: {
653
+ obsType: 'cell',
654
+ },
655
+ },
656
+ ],
657
+ name: 'A',
658
+ uid: 'A',
659
+ },
660
+ ],
661
+ layout: [
662
+ {
663
+ component: 'description',
664
+ coordinationScopes: {
665
+ dataset: 'A',
666
+ spatialImageLayer: 'A',
667
+ },
668
+ h: 2,
669
+ props: {
670
+ description: 'My component description',
671
+ },
672
+ uid: 'A',
673
+ w: 3,
674
+ x: 9,
675
+ y: 0,
676
+ },
677
+ {
678
+ component: 'scatterplot',
679
+ coordinationScopes: {
680
+ obsType: 'A',
681
+ obsLabelsType: 'A',
682
+ featureType: 'A',
683
+ featureValueType: 'A',
684
+ obsColorEncoding: 'A',
685
+ obsFilter: 'A',
686
+ obsHighlight: 'A',
687
+ obsSetHighlight: 'A',
688
+ obsSetSelection: 'A',
689
+ obsSetColor: 'A',
690
+ dataset: 'A',
691
+ embeddingObsOpacity: 'A',
692
+ embeddingObsOpacityMode: 'A',
693
+ embeddingObsRadius: 'A',
694
+ embeddingObsRadiusMode: 'A',
695
+ embeddingRotation: 'A',
696
+ embeddingTargetX: 'A',
697
+ embeddingTargetY: 'A',
698
+ embeddingTargetZ: 'A',
699
+ embeddingType: 't-SNE',
700
+ embeddingZoom: 'A',
701
+ embeddingObsSetLabelSize: 'A',
702
+ embeddingObsSetLabelsVisible: 'A',
703
+ embeddingObsSetPolygonsVisible: 'A',
704
+ featureValueColormap: 'A',
705
+ featureValueColormapRange: 'A',
706
+ featureHighlight: 'A',
707
+ featureSelection: 'A',
708
+ additionalObsSets: 'A',
709
+ },
710
+ h: 4,
711
+ props: {
712
+ mapping: 't-SNE',
713
+ view: {
714
+ target: [
715
+ 0,
716
+ 0,
717
+ 0,
718
+ ],
719
+ zoom: 3,
720
+ },
721
+ },
722
+ uid: 'B',
723
+ w: 5,
724
+ x: 0,
725
+ y: 2,
726
+ },
727
+ {
728
+ component: 'spatial',
729
+ coordinationScopes: {
730
+ obsType: 'A',
731
+ obsLabelsType: 'A',
732
+ obsColorEncoding: 'A',
733
+ obsFilter: 'A',
734
+ obsHighlight: 'A',
735
+ obsSetHighlight: 'A',
736
+ obsSetSelection: 'A',
737
+ obsSetColor: 'A',
738
+ dataset: 'A',
739
+ featureValueColormap: 'A',
740
+ featureValueColormapRange: 'A',
741
+ featureValueType: 'A',
742
+ featureHighlight: 'A',
743
+ featureSelection: 'A',
744
+ featureType: 'A',
745
+ spatialImageLayer: 'A',
746
+ spatialSegmentationLayer: 'A',
747
+ spatialPointLayer: 'A',
748
+ spatialNeighborhoodLayer: 'A',
749
+ spatialRotation: 'A',
750
+ spatialRotationOrbit: 'A',
751
+ spatialOrbitAxis: 'A',
752
+ spatialRotationX: 'A',
753
+ spatialRotationY: 'A',
754
+ spatialRotationZ: 'A',
755
+ spatialTargetX: 'A',
756
+ spatialTargetY: 'A',
757
+ spatialTargetZ: 'A',
758
+ spatialAxisFixed: 'A',
759
+ spatialZoom: 'A',
760
+ additionalObsSets: 'A',
761
+ moleculeHighlight: 'A',
762
+ },
763
+ h: 4,
764
+ props: {
765
+ cellRadius: 50,
766
+ view: {
767
+ target: [
768
+ 3800,
769
+ -900,
770
+ 0,
771
+ ],
772
+ zoom: -4.4,
773
+ },
774
+ },
775
+ uid: 'C',
776
+ w: 4,
777
+ x: 5,
778
+ y: 0,
779
+ },
780
+ ],
781
+ };
782
+
783
+ export const implicitPerDatasetCoordinations: z.infer<typeof configSchema1_0_15> = {
784
+ version: '1.0.15',
785
+ name: 'Per-dataset coordinations',
786
+ description: 'My config description',
787
+ initStrategy: 'auto',
788
+ coordinationSpace: {
789
+ dataset: {
790
+ A: 'first',
791
+ B: 'second',
792
+ },
793
+ embeddingCellRadius: {
794
+ small: 2,
795
+ big: 20,
796
+ },
797
+ embeddingCellRadiusMode: {
798
+ all: 'manual',
799
+ },
800
+ },
801
+ datasets: [
802
+ {
803
+ files: [],
804
+ name: 'First dataset',
805
+ uid: 'first',
806
+ },
807
+ {
808
+ files: [],
809
+ name: 'Second dataset',
810
+ uid: 'second',
811
+ },
812
+ ],
813
+ layout: [
814
+ {
815
+ component: 'somePluginView',
816
+ coordinationScopes: {
817
+ dataset: ['A', 'B'],
818
+ embeddingCellRadius: { A: 'small', B: 'big' },
819
+ embeddingCellRadiusMode: 'all',
820
+ },
821
+ h: 4,
822
+ w: 5,
823
+ x: 0,
824
+ y: 2,
825
+ },
826
+ {
827
+ component: 'scatterplot',
828
+ coordinationScopes: {
829
+ dataset: 'A',
830
+ embeddingCellRadius: 'small',
831
+ embeddingCellRadiusMode: 'all',
832
+ },
833
+ h: 4,
834
+ w: 5,
835
+ x: 0,
836
+ y: 2,
837
+ },
838
+ ],
839
+ };
840
+
841
+ export const explicitPerDatasetCoordinations: z.infer<typeof configSchema1_0_16> = {
842
+ version: '1.0.16',
843
+ name: 'Per-dataset coordinations',
844
+ description: 'My config description',
845
+ initStrategy: 'auto',
846
+ coordinationSpace: {
847
+ dataset: {
848
+ A: 'first',
849
+ B: 'second',
850
+ },
851
+ embeddingCellRadius: {
852
+ small: 2,
853
+ big: 20,
854
+ },
855
+ embeddingCellRadiusMode: {
856
+ all: 'manual',
857
+ },
858
+ },
859
+ datasets: [
860
+ {
861
+ files: [],
862
+ name: 'First dataset',
863
+ uid: 'first',
864
+ },
865
+ {
866
+ files: [],
867
+ name: 'Second dataset',
868
+ uid: 'second',
869
+ },
870
+ ],
871
+ layout: [
872
+ {
873
+ component: 'somePluginView',
874
+ coordinationScopes: {
875
+ dataset: ['A', 'B'],
876
+ embeddingCellRadiusMode: 'all',
877
+ },
878
+ coordinationScopesBy: {
879
+ dataset: {
880
+ embeddingCellRadius: { A: 'small', B: 'big' },
881
+ },
882
+ },
883
+ h: 4,
884
+ w: 5,
885
+ x: 0,
886
+ y: 2,
887
+ },
888
+ {
889
+ component: 'scatterplot',
890
+ coordinationScopes: {
891
+ dataset: 'A',
892
+ embeddingCellRadius: 'small',
893
+ embeddingCellRadiusMode: 'all',
894
+ },
895
+ h: 4,
896
+ w: 5,
897
+ x: 0,
898
+ y: 2,
899
+ },
900
+ ],
901
+ };