carta-frontend 5.0.0-dev → 5.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 (40) hide show
  1. package/CHANGELOG.md +9 -3
  2. package/build/asset-manifest.json +5 -5
  3. package/build/index.html +1 -1
  4. package/build/static/css/main.4f08d1bb.css +1 -0
  5. package/build/static/js/index.f5ea988d.worker.js +2 -0
  6. package/build/static/js/{main.3eb48ba0.js → main.8626e15a.js} +2 -2
  7. package/build/static/js/zfp_wrapper.wasm +0 -0
  8. package/docs_website/docs/code-snippet-tutorial/image-fitting.mdx +7 -5
  9. package/docs_website/docs/code-snippet-tutorial/quick-start.mdx +1 -1
  10. package/docs_website/docs/code-snippet-tutorial/regions.mdx +1 -1
  11. package/docs_website/docs/contributing/github-workflow.md +4 -4
  12. package/docs_website/docs/contributing/release-guidelines.md +9 -9
  13. package/docs_website/versioned_docs/version-4.1.0/code-snippet-tutorial/quick-start.mdx +1 -1
  14. package/docs_website/versioned_docs/version-4.1.0/code-snippet-tutorial/regions.mdx +1 -1
  15. package/docs_website/versioned_docs/version-4.1.0/contributing/github-workflow.md +4 -4
  16. package/docs_website/versioned_docs/version-4.1.0/contributing/release-guidelines.md +9 -9
  17. package/docs_website/versioned_docs/version-5.0.0-beta.1c/code-snippet-tutorial/quick-start.mdx +1 -1
  18. package/docs_website/versioned_docs/version-5.0.0-beta.1c/code-snippet-tutorial/regions.mdx +1 -1
  19. package/docs_website/versioned_docs/version-5.0.0-beta.1c/contributing/github-workflow.md +4 -4
  20. package/docs_website/versioned_docs/version-5.0.0-beta.1c/contributing/release-guidelines.md +9 -9
  21. package/package.json +5 -4
  22. package/schemas/.github/workflows/AddToCartaVisProject.yml +23 -0
  23. package/schemas/.prettierrc.json +18 -0
  24. package/schemas/CMakeLists.txt +15 -0
  25. package/schemas/README.md +1 -0
  26. package/schemas/_config.yml +7 -0
  27. package/schemas/controller_config_schema_1.json +343 -0
  28. package/schemas/controller_config_schema_2.json +685 -0
  29. package/schemas/layout_schema_2.json +440 -0
  30. package/schemas/preference_backend_schema_1.json +81 -0
  31. package/schemas/preference_backend_schema_2.json +118 -0
  32. package/schemas/preference_schema_1.json +410 -0
  33. package/schemas/preferences_schema_2.json +434 -0
  34. package/schemas/schemacompiler.c +200 -0
  35. package/schemas/snippet_schema_1.json +45 -0
  36. package/schemas/workspace_schema_1.json +573 -0
  37. package/build/static/css/main.f89d4550.css +0 -1
  38. package/build/static/js/index.73b34931.worker.js +0 -2
  39. /package/build/static/js/{index.73b34931.worker.js.LICENSE.txt → index.f5ea988d.worker.js.LICENSE.txt} +0 -0
  40. /package/build/static/js/{main.3eb48ba0.js.LICENSE.txt → main.8626e15a.js.LICENSE.txt} +0 -0
@@ -0,0 +1,440 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Layout",
4
+ "description": "Schema for CARTA Layout (Version 2)",
5
+ "$id": "https://cartavis.org/schemas/layout_schema_2.json",
6
+ "type": "object",
7
+ "definitions": {
8
+ "percentage-value": {
9
+ "description": "Describes a percentage value from 0 to 100",
10
+ "type": "number",
11
+ "minimum": 0,
12
+ "maximum": 100
13
+ },
14
+ "plot-type": {
15
+ "description": "Describes a plot type",
16
+ "enum": ["Steps", "Lines", "Points"]
17
+ },
18
+ "line-width": {
19
+ "description": "Describes a plot line width",
20
+ "type": "number",
21
+ "minimum": 0.5,
22
+ "maximum": 10.0
23
+ },
24
+ "point-size": {
25
+ "description": "Describes a plot point size",
26
+ "type": "number",
27
+ "minimum": 0.5,
28
+ "maximum": 10.0
29
+ },
30
+ "opacity": {
31
+ "description": "Describes an opacity value between zero and one",
32
+ "type": "number",
33
+ "minimum": 0,
34
+ "maximum": 1
35
+ },
36
+ "spatial-coord": {
37
+ "description": "Spatial coordinate",
38
+ "type": "string",
39
+ "enum": ["x", "Ix", "Qx", "Ux", "Vx", "y", "Iy", "Qy", "Uy", "Vy"]
40
+ },
41
+ "spectral-coord": {
42
+ "description": "Spectral coordinate",
43
+ "type": "string",
44
+ "enum": ["z", "Iz", "Qz", "Uz", "Vz"]
45
+ },
46
+ "basic-widget": {
47
+ "type": "object",
48
+ "description": "Widgets that have no associated settings",
49
+ "required": ["type", "id"],
50
+ "properties": {
51
+ "type": {
52
+ "const": "component"
53
+ },
54
+ "id": {
55
+ "type": "string",
56
+ "enum": ["floating-settings", "layer-list", "log", "animator", "region-list", "image-view", "stats", "spectral-line-query", "cursor-info", "catalog-overlay", "catalog-plot"]
57
+ },
58
+ "width": {
59
+ "$ref": "#/definitions/percentage-value"
60
+ },
61
+ "height": {
62
+ "$ref": "#/definitions/percentage-value"
63
+ }
64
+ }
65
+ },
66
+ "spectral-profiler": {
67
+ "type": "object",
68
+ "description": "Spectral profiler widgets",
69
+ "required": ["type", "id"],
70
+ "properties": {
71
+ "type": {
72
+ "const": "component"
73
+ },
74
+ "id": {
75
+ "const": "spectral-profiler"
76
+ },
77
+ "widgetSettings": {
78
+ "type": "object",
79
+ "properties": {
80
+ "coordinate": {
81
+ "$ref": "#/definitions/spectral-coord"
82
+ },
83
+ "primaryLineColor": {
84
+ "type": "string"
85
+ },
86
+ "lineWidth": {
87
+ "$ref": "#/definitions/line-width"
88
+ },
89
+ "linePlotPointSize": {
90
+ "$ref": "#/definitions/point-size"
91
+ },
92
+ "meanRmsVisible": {
93
+ "type": "boolean"
94
+ },
95
+ "plotType": {
96
+ "$ref": "#/definitions/plot-type"
97
+ },
98
+ "minXVal": {
99
+ "type": "number"
100
+ },
101
+ "maxXVal": {
102
+ "type": "number"
103
+ },
104
+ "minYVal": {
105
+ "type": "number"
106
+ },
107
+ "maxYVal": {
108
+ "type": "number"
109
+ }
110
+ }
111
+ },
112
+ "width": {
113
+ "$ref": "#/definitions/percentage-value"
114
+ },
115
+ "height": {
116
+ "$ref": "#/definitions/percentage-value"
117
+ }
118
+ }
119
+ },
120
+ "spatial-profiler": {
121
+ "type": "object",
122
+ "description": "Spatial profiler widgets",
123
+ "required": ["type", "id"],
124
+ "properties": {
125
+ "type": {
126
+ "const": "component"
127
+ },
128
+ "id": {
129
+ "const": "spatial-profiler"
130
+ },
131
+ "widgetSettings": {
132
+ "type": "object",
133
+ "properties": {
134
+ "coordinate": {
135
+ "$ref": "#/definitions/spatial-coord"
136
+ },
137
+ "primaryLineColor": {
138
+ "type": "string"
139
+ },
140
+ "lineWidth": {
141
+ "$ref": "#/definitions/line-width"
142
+ },
143
+ "linePlotPointSize": {
144
+ "$ref": "#/definitions/point-size"
145
+ },
146
+ "wcsAxisVisible": {
147
+ "type": "boolean"
148
+ },
149
+ "meanRmsVisible": {
150
+ "type": "boolean"
151
+ },
152
+ "plotType": {
153
+ "$ref": "#/definitions/plot-type"
154
+ },
155
+ "minXVal": {
156
+ "type": "number"
157
+ },
158
+ "maxXVal": {
159
+ "type": "number"
160
+ },
161
+ "minYVal": {
162
+ "type": "number"
163
+ },
164
+ "maxYVal": {
165
+ "type": "number"
166
+ }
167
+ }
168
+ },
169
+ "coord": {
170
+ "description": "Legacy V1 entry (replaced by widgetSettings.coordinate",
171
+ "$ref": "#/definitions/spatial-coord"
172
+ },
173
+ "width": {
174
+ "$ref": "#/definitions/percentage-value"
175
+ },
176
+ "height": {
177
+ "$ref": "#/definitions/percentage-value"
178
+ }
179
+ }
180
+ },
181
+ "render-config": {
182
+ "type": "object",
183
+ "description": "Render config widgets",
184
+ "required": ["type", "id"],
185
+ "properties": {
186
+ "type": {
187
+ "const": "component"
188
+ },
189
+ "id": {
190
+ "const": "render-config"
191
+ },
192
+ "widgetSettings": {
193
+ "type": "object",
194
+ "properties": {
195
+ "primaryLineColor": {
196
+ "type": "string"
197
+ },
198
+ "lineWidth": {
199
+ "$ref": "#/definitions/line-width"
200
+ },
201
+ "linePlotPointSize": {
202
+ "$ref": "#/definitions/point-size"
203
+ },
204
+ "logScaleY": {
205
+ "type": "boolean"
206
+ },
207
+ "markerTextVisible": {
208
+ "type": "boolean"
209
+ },
210
+ "meanRmsVisible": {
211
+ "type": "boolean"
212
+ },
213
+ "plotType": {
214
+ "$ref": "#/definitions/plot-type"
215
+ },
216
+ "minXVal": {
217
+ "type": "number"
218
+ },
219
+ "maxXVal": {
220
+ "type": "number"
221
+ },
222
+ "minYVal": {
223
+ "type": "number"
224
+ },
225
+ "maxYVal": {
226
+ "type": "number"
227
+ }
228
+ }
229
+ },
230
+ "width": {
231
+ "$ref": "#/definitions/percentage-value"
232
+ },
233
+ "height": {
234
+ "$ref": "#/definitions/percentage-value"
235
+ }
236
+ }
237
+ },
238
+ "histogram": {
239
+ "type": "object",
240
+ "description": "Histogram widgets",
241
+ "required": ["type", "id"],
242
+ "properties": {
243
+ "type": {
244
+ "const": "component"
245
+ },
246
+ "id": {
247
+ "const": "histogram"
248
+ },
249
+ "widgetSettings": {
250
+ "type": "object",
251
+ "properties": {
252
+ "primaryLineColor": {
253
+ "type": "string"
254
+ },
255
+ "lineWidth": {
256
+ "$ref": "#/definitions/line-width"
257
+ },
258
+ "linePlotPointSize": {
259
+ "$ref": "#/definitions/point-size"
260
+ },
261
+ "logScaleY": {
262
+ "type": "boolean"
263
+ },
264
+ "plotType": {
265
+ "$ref": "#/definitions/plot-type"
266
+ },
267
+ "minXVal": {
268
+ "type": "number"
269
+ },
270
+ "maxXVal": {
271
+ "type": "number"
272
+ },
273
+ "minYVal": {
274
+ "type": "number"
275
+ },
276
+ "maxYVal": {
277
+ "type": "number"
278
+ }
279
+ }
280
+ },
281
+ "width": {
282
+ "$ref": "#/definitions/percentage-value"
283
+ },
284
+ "height": {
285
+ "$ref": "#/definitions/percentage-value"
286
+ }
287
+ }
288
+ },
289
+ "stokes": {
290
+ "type": "object",
291
+ "description": "Stokes analysis widgets",
292
+ "required": ["type", "id"],
293
+ "properties": {
294
+ "type": {
295
+ "const": "component"
296
+ },
297
+ "id": {
298
+ "const": "stokes"
299
+ },
300
+ "widgetSettings": {
301
+ "type": "object",
302
+ "properties": {
303
+ "primaryLineColor": {
304
+ "type": "string"
305
+ },
306
+ "secondaryLineColor": {
307
+ "type": "string"
308
+ },
309
+ "lineWidth": {
310
+ "$ref": "#/definitions/line-width"
311
+ },
312
+ "linePlotPointSize": {
313
+ "$ref": "#/definitions/point-size"
314
+ },
315
+ "plotType": {
316
+ "$ref": "#/definitions/plot-type"
317
+ },
318
+ "colorMap": {
319
+ "type": "string"
320
+ },
321
+ "scatterPlotPointSize": {
322
+ "$ref": "#/definitions/point-size"
323
+ },
324
+ "pointTransparency": {
325
+ "$ref": "#/definitions/opacity"
326
+ },
327
+ "equalAxes": {
328
+ "type": "boolean"
329
+ }
330
+ }
331
+ },
332
+ "width": {
333
+ "$ref": "#/definitions/percentage-value"
334
+ },
335
+ "height": {
336
+ "$ref": "#/definitions/percentage-value"
337
+ }
338
+ }
339
+ },
340
+ "carta-widget": {
341
+ "description": "A CARTA widget",
342
+ "oneOf": [
343
+ {
344
+ "$ref": "#/definitions/basic-widget"
345
+ },
346
+ {
347
+ "$ref": "#/definitions/spectral-profiler"
348
+ },
349
+ {
350
+ "$ref": "#/definitions/spatial-profiler"
351
+ },
352
+ {
353
+ "$ref": "#/definitions/render-config"
354
+ },
355
+ {
356
+ "$ref": "#/definitions/histogram"
357
+ },
358
+ {
359
+ "$ref": "#/definitions/stokes"
360
+ }
361
+ ]
362
+ },
363
+ "gl-container": {
364
+ "description": "A GoldenLayout container",
365
+ "type": "object",
366
+ "required": ["type", "content"],
367
+ "additionalProperties": false,
368
+ "properties": {
369
+ "type": {
370
+ "enum": ["row", "column", "stack"]
371
+ },
372
+ "content": {
373
+ "type": "array",
374
+ "minItems": 1,
375
+ "items": {
376
+ "oneOf": [
377
+ {
378
+ "$ref": "#/definitions/gl-container"
379
+ },
380
+ {
381
+ "$ref": "#/definitions/carta-widget"
382
+ }
383
+ ]
384
+ }
385
+ },
386
+ "width": {
387
+ "$ref": "#/definitions/percentage-value"
388
+ },
389
+ "height": {
390
+ "$ref": "#/definitions/percentage-value"
391
+ },
392
+ "activeItemIndex": {
393
+ "type": "integer",
394
+ "minimum": 0
395
+ }
396
+ }
397
+ }
398
+ },
399
+ "required": ["layoutVersion", "docked", "floating"],
400
+ "properties": {
401
+ "layoutVersion": {
402
+ "description": "The version of the layout contained",
403
+ "type": "integer",
404
+ "minimum": 1,
405
+ "maximum": 2
406
+ },
407
+ "docked": {
408
+ "description": "GoldenLayout widget hierarchy",
409
+ "$ref": "#/definitions/gl-container"
410
+ },
411
+ "floating": {
412
+ "description": "List of floating widgets",
413
+ "type": "array",
414
+ "items": {
415
+ "allOf": [
416
+ {
417
+ "$ref": "#/definitions/carta-widget"
418
+ },
419
+ {
420
+ "type": "object",
421
+ "properties": {
422
+ "defaultX": {
423
+ "type": "number"
424
+ },
425
+ "defaultY": {
426
+ "type": "number"
427
+ },
428
+ "defaultWidth": {
429
+ "type": "number"
430
+ },
431
+ "defaultHeight": {
432
+ "type": "number"
433
+ }
434
+ }
435
+ }
436
+ ]
437
+ }
438
+ }
439
+ }
440
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Backend preferences",
4
+ "description": "Schema for CARTA backend preferences (Version 1)",
5
+ "$id": "https://cartavis.org/schemas/preference_backend_schema_1.json",
6
+ "required": [],
7
+ "properties": {
8
+ "verbosity": {
9
+ "type": "integer",
10
+ "enum": [0, 1, 2, 3, 4, 5],
11
+ "default": 4
12
+ },
13
+ "no_log": {
14
+ "type": "boolean",
15
+ "default": true
16
+ },
17
+ "log_performance": {
18
+ "type": "boolean",
19
+ "default": false
20
+ },
21
+ "log_protocol_messages": {
22
+ "type": "boolean",
23
+ "default": false
24
+ },
25
+ "no_http": {
26
+ "type": "boolean",
27
+ "default": false
28
+ },
29
+ "no_browser": {
30
+ "type": "boolean",
31
+ "default": false
32
+ },
33
+ "browser": {
34
+ "type": "string",
35
+ "default": ""
36
+ },
37
+ "host": {
38
+ "type": "string",
39
+ "minLength": 1,
40
+ "default": "0.0.0.0"
41
+ },
42
+ "port": {
43
+ "type": ["integer", "array"],
44
+ "default": 3002
45
+ },
46
+ "grpc_port": {
47
+ "type": "integer",
48
+ "default": -1
49
+ },
50
+ "omp_threads": {
51
+ "type": "integer",
52
+ "default": -1
53
+ },
54
+ "top_level_folder": {
55
+ "type": "string",
56
+ "minLength": 1,
57
+ "default": "/"
58
+ },
59
+ "frontend_folder": {
60
+ "type": "string",
61
+ "minLength": 1,
62
+ "default": ""
63
+ },
64
+ "exit_timeout": {
65
+ "type": "integer",
66
+ "default": -1
67
+ },
68
+ "initial_timeout": {
69
+ "type": "integer",
70
+ "default": -1
71
+ },
72
+ "idle_timeout": {
73
+ "type": "integer",
74
+ "default": -1
75
+ },
76
+ "read_only_mode": {
77
+ "type": "boolean",
78
+ "default": false
79
+ }
80
+ }
81
+ }
@@ -0,0 +1,118 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Backend preferences",
4
+ "description": "Schema for CARTA backend preferences (Version 2)",
5
+ "$id": "https://cartavis.org/schemas/preference_backend_schema_2.json",
6
+ "type": "object",
7
+ "properties": {
8
+ "backendConfigVersion": {
9
+ "description": "The version of this backend configuration",
10
+ "type": "string",
11
+ "default": "2.0"
12
+ },
13
+ "verbosity": {
14
+ "type": "integer",
15
+ "enum": [0, 1, 2, 3, 4, 5],
16
+ "default": 4
17
+ },
18
+ "no_log": {
19
+ "type": "boolean",
20
+ "default": true
21
+ },
22
+ "log_performance": {
23
+ "type": "boolean",
24
+ "default": false
25
+ },
26
+ "log_protocol_messages": {
27
+ "type": "boolean",
28
+ "default": false
29
+ },
30
+ "no_frontend": {
31
+ "type": "boolean",
32
+ "default": false
33
+ },
34
+ "no_database": {
35
+ "type": "boolean",
36
+ "default": false
37
+ },
38
+ "no_http": {
39
+ "type": "boolean",
40
+ "default": false
41
+ },
42
+ "no_browser": {
43
+ "type": "boolean",
44
+ "default": false
45
+ },
46
+ "browser": {
47
+ "type": "string",
48
+ "default": ""
49
+ },
50
+ "host": {
51
+ "type": "string",
52
+ "minLength": 1,
53
+ "default": "0.0.0.0"
54
+ },
55
+ "port": {
56
+ "anyOf": [
57
+ {
58
+ "type": "integer"
59
+ },
60
+ {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "integer"
64
+ }
65
+ }
66
+ ],
67
+ "default": 3002
68
+ },
69
+ "omp_threads": {
70
+ "type": "integer",
71
+ "default": -1
72
+ },
73
+ "top_level_folder": {
74
+ "type": "string",
75
+ "minLength": 1,
76
+ "default": "/"
77
+ },
78
+ "frontend_folder": {
79
+ "type": "string",
80
+ "minLength": 1,
81
+ "default": ""
82
+ },
83
+ "exit_timeout": {
84
+ "type": "integer",
85
+ "default": -1
86
+ },
87
+ "initial_timeout": {
88
+ "type": "integer",
89
+ "default": -1
90
+ },
91
+ "idle_timeout": {
92
+ "type": "integer",
93
+ "default": -1
94
+ },
95
+ "read_only_mode": {
96
+ "type": "boolean",
97
+ "default": false
98
+ },
99
+ "starting_folder": {
100
+ "type": "string",
101
+ "minLength": 1,
102
+ "default": ""
103
+ },
104
+ "event_thread_count": {
105
+ "type": "integer",
106
+ "default": -1
107
+ },
108
+ "enable_scripting": {
109
+ "type": "boolean",
110
+ "default": false
111
+ },
112
+ "http_url_prefix": {
113
+ "type": "string",
114
+ "minLength": 1,
115
+ "default": ""
116
+ }
117
+ }
118
+ }