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