|
4 | 4 | export default {
|
5 | 5 | annotationsCheckbox: {
|
6 | 6 | dimensions: { height: 1455, width: 1200 },
|
7 |
| - figure: require('./annotations-checkbox/figure.json'), |
8 |
| - manifest: require('./annotations-checkbox/manifest.json') |
| 7 | + figure: await import('./annotations-checkbox/figure.json', { assert: { type: 'json' }}), |
| 8 | + manifest: await import('./annotations-checkbox/manifest.json', { assert: { type: 'json' }}) |
9 | 9 | },
|
10 | 10 | annotationsRadio: {
|
11 | 11 | dimensions: { height: 2868, width: 2082 },
|
12 |
| - figure: require('./annotations-radio/figure.json'), |
13 |
| - manifest: require('./annotations-radio/manifest.json') |
| 12 | + figure: await import('./annotations-radio/figure.json', { assert: { type: 'json' }}), |
| 13 | + manifest: await import('./annotations-radio/manifest.json', { assert: { type: 'json' }}) |
14 | 14 | },
|
15 | 15 | sequence: {
|
16 | 16 | dimensions: { height: 2160, width: 1827 },
|
17 |
| - figure: require('./sequence/figure.json'), |
18 |
| - files: require('./sequence/files.json'), |
19 |
| - manifest: require('./sequence/manifest.json') |
| 17 | + figure: await import('./sequence/figure.json', { assert: { type: 'json' }}), |
| 18 | + files: await import('./sequence/files.json', { assert: { type: 'json' }}), |
| 19 | + manifest: await import('./sequence/manifest.json', { assert: { type: 'json' }}) |
20 | 20 | },
|
21 | 21 | sequenceWithAnnotations: {
|
22 | 22 | dimensions: { height: 2048, width: 1536 },
|
23 |
| - figure: require('./sequence-with-annotations/figure.json'), |
24 |
| - files: require('./sequence-with-annotations/files.json'), |
25 |
| - manifest: require('./sequence-with-annotations/manifest.json') |
| 23 | + figure: await import('./sequence-with-annotations/figure.json', { assert: { type: 'json' }}), |
| 24 | + files: await import('./sequence-with-annotations/files.json', { assert: { type: 'json' }}), |
| 25 | + manifest: await import('./sequence-with-annotations/manifest.json', { assert: { type: 'json' }}) |
26 | 26 | },
|
27 | 27 | zoomable: {
|
28 | 28 | dimensions: { height: 3221, width: 4096 },
|
29 |
| - figure: require('./zoomable/figure.json'), |
30 |
| - manifest: require('./zoomable/manifest.json') |
| 29 | + figure: await import('./zoomable/figure.json', { assert: { type: 'json' }}), |
| 30 | + manifest: await import('./zoomable/manifest.json', { assert: { type: 'json' }}) |
31 | 31 | },
|
32 | 32 | zoomableSequence: {
|
33 | 33 | dimensions: { height: 2160, width: 1827 },
|
34 |
| - figure: require('./zoomable-sequence/figure.json'), |
35 |
| - files: require('./zoomable-sequence/files.json'), |
36 |
| - manifest: require('./zoomable-sequence/manifest.json') |
| 34 | + figure: await import('./zoomable-sequence/figure.json', { assert: { type: 'json' }}), |
| 35 | + files: await import('./zoomable-sequence/files.json', { assert: { type: 'json' }}), |
| 36 | + manifest: await import('./zoomable-sequence/manifest.json', { assert: { type: 'json' }}) |
37 | 37 | }
|
38 | 38 | }
|
0 commit comments