@arkitektio/bsx 6.8.0 → 7.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.
- package/dist/bsx/declared.d.ts +25 -0
- package/dist/bsx/declared.d.ts.map +1 -1
- package/dist/bsx/declared.js +59 -0
- package/dist/bsx/declared.js.map +1 -1
- package/dist/bsx/infer.d.ts.map +1 -1
- package/dist/bsx/infer.js +4 -2
- package/dist/bsx/infer.js.map +1 -1
- package/dist/bsx/language.d.ts.map +1 -1
- package/dist/bsx/language.js +17 -12
- package/dist/bsx/language.js.map +1 -1
- package/dist/bsx/references.d.ts.map +1 -1
- package/dist/bsx/references.js +139 -37
- package/dist/bsx/references.js.map +1 -1
- package/dist/catalogs/index.d.ts +191 -98
- package/dist/catalogs/index.d.ts.map +1 -1
- package/dist/catalogs/parts/data.d.ts +2 -2
- package/dist/catalogs/parts/data.d.ts.map +1 -1
- package/dist/catalogs/parts/data.js +2 -3
- package/dist/catalogs/parts/data.js.map +1 -1
- package/dist/catalogs/parts/feedback.d.ts +6 -6
- package/dist/catalogs/parts/forms.d.ts +8 -8
- package/dist/catalogs/parts/icons.d.ts +4 -4
- package/dist/catalogs/parts/index.d.ts +48 -48
- package/dist/catalogs/parts/navigation.d.ts +8 -8
- package/dist/catalogs/parts/overlays.d.ts +22 -22
- package/dist/catalogs/parts/run.d.ts.map +1 -1
- package/dist/catalogs/parts/run.js +4 -5
- package/dist/catalogs/parts/run.js.map +1 -1
- package/dist/catalogs/parts/scene.d.ts.map +1 -1
- package/dist/catalogs/parts/scene.js +7 -14
- package/dist/catalogs/parts/scene.js.map +1 -1
- package/dist/catalogs/parts/structure.d.ts.map +1 -1
- package/dist/catalogs/parts/structure.js +2 -3
- package/dist/catalogs/parts/structure.js.map +1 -1
- package/dist/catalogs/parts/toast.d.ts.map +1 -1
- package/dist/catalogs/parts/toast.js +2 -1
- package/dist/catalogs/parts/toast.js.map +1 -1
- package/dist/catalogs/props.d.ts +23 -0
- package/dist/catalogs/props.d.ts.map +1 -1
- package/dist/catalogs/props.js +56 -4
- package/dist/catalogs/props.js.map +1 -1
- package/dist/catalogs/scene.d.ts +134 -127
- package/dist/catalogs/scene.d.ts.map +1 -1
- package/dist/catalogs/scene.js +5 -3
- package/dist/catalogs/scene.js.map +1 -1
- package/dist/catalogs/shadcn.d.ts +79 -41
- package/dist/catalogs/shadcn.d.ts.map +1 -1
- package/dist/catalogs/shadcn.js +13 -13
- package/dist/catalogs/shadcn.js.map +1 -1
- package/dist/catalogs/structure.d.ts +9 -2
- package/dist/catalogs/structure.d.ts.map +1 -1
- package/dist/catalogs/structure.js +1 -1
- package/dist/catalogs/structure.js.map +1 -1
- package/dist/catalogs/ui.d.ts +935 -892
- package/dist/catalogs/ui.d.ts.map +1 -1
- package/dist/catalogs/ui.js +16 -14
- package/dist/catalogs/ui.js.map +1 -1
- package/dist/catalogs/zodToPort.d.ts +9 -0
- package/dist/catalogs/zodToPort.d.ts.map +1 -0
- package/dist/catalogs/zodToPort.js +156 -0
- package/dist/catalogs/zodToPort.js.map +1 -0
- package/dist/catalogs.d.ts +4 -1
- package/dist/catalogs.d.ts.map +1 -1
- package/dist/catalogs.js +3 -0
- package/dist/catalogs.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/ports/rekuest.d.ts +6 -0
- package/dist/ports/rekuest.d.ts.map +1 -1
- package/dist/ports/rekuest.js +6 -0
- package/dist/ports/rekuest.js.map +1 -1
- package/dist/renderer/bloks/control.d.ts +7 -1
- package/dist/renderer/bloks/control.d.ts.map +1 -1
- package/dist/renderer/bloks/control.js +20 -2
- package/dist/renderer/bloks/control.js.map +1 -1
- package/dist/renderer/bloks/data.d.ts +2 -2
- package/dist/renderer/bloks/feedback.d.ts +6 -6
- package/dist/renderer/bloks/forms.d.ts +8 -8
- package/dist/renderer/bloks/icons.d.ts +2 -2
- package/dist/renderer/bloks/index.d.ts +48 -48
- package/dist/renderer/bloks/navigation.d.ts +8 -8
- package/dist/renderer/bloks/overlays.d.ts +22 -22
- package/dist/renderer/runtime/components.d.ts +6 -8
- package/dist/renderer/runtime/components.d.ts.map +1 -1
- package/dist/renderer/runtime/components.js.map +1 -1
- package/dist/renderer/runtime/describe.d.ts +5 -12
- package/dist/renderer/runtime/describe.d.ts.map +1 -1
- package/dist/renderer/runtime/describe.js +25 -89
- package/dist/renderer/runtime/describe.js.map +1 -1
- package/dist/renderer/runtime/hooks.d.ts.map +1 -1
- package/dist/renderer/runtime/hooks.js +3 -1
- package/dist/renderer/runtime/hooks.js.map +1 -1
- package/dist/renderer/runtime/schemas.d.ts +8 -6
- package/dist/renderer/runtime/schemas.d.ts.map +1 -1
- package/dist/renderer/runtime/schemas.js +40 -16
- package/dist/renderer/runtime/schemas.js.map +1 -1
- package/dist/shadcn.d.ts +48 -48
- package/dist/spec/bsx_v2.json +1421 -19
- package/dist/spec/catalogs/base@4.json +18738 -5273
- package/dist/spec/catalogs/base@4.json.js +18738 -5273
- package/dist/spec/catalogs/orkestrator@1.json +532 -126
- package/dist/spec/catalogs/orkestrator@1.json.js +532 -126
- package/dist/spec/catalogs.d.ts +3 -11
- package/dist/spec/catalogs.d.ts.map +1 -1
- package/dist/spec/catalogs.js +13 -11
- package/dist/spec/catalogs.js.map +1 -1
- package/dist/spec/fit.d.ts +21 -0
- package/dist/spec/fit.d.ts.map +1 -0
- package/dist/spec/fit.js +114 -0
- package/dist/spec/fit.js.map +1 -0
- package/dist/spec/ports.d.ts +56 -0
- package/dist/spec/ports.d.ts.map +1 -0
- package/dist/spec/ports.js +174 -0
- package/dist/spec/ports.js.map +1 -0
- package/dist/spec/vocabulary.json +12 -5
- package/dist/spec/vocabulary.json.js +12 -5
- package/package.json +1 -1
- package/src/bsx/declared.ts +60 -0
- package/src/bsx/infer.test.ts +1 -1
- package/src/bsx/infer.ts +4 -2
- package/src/bsx/language.ts +16 -11
- package/src/bsx/logo.test.ts +47 -0
- package/src/bsx/references.ts +170 -39
- package/src/catalogs/parts/data.ts +3 -2
- package/src/catalogs/parts/run.ts +9 -7
- package/src/catalogs/parts/scene.ts +7 -14
- package/src/catalogs/parts/structure.ts +2 -3
- package/src/catalogs/parts/toast.ts +5 -1
- package/src/catalogs/props.ts +64 -4
- package/src/catalogs/scene.ts +5 -3
- package/src/catalogs/shadcn.ts +13 -13
- package/src/catalogs/structure.ts +1 -1
- package/src/catalogs/ui.ts +16 -14
- package/src/catalogs/zodToPort.test.ts +96 -0
- package/src/catalogs/zodToPort.ts +177 -0
- package/src/catalogs.ts +4 -1
- package/src/index.ts +2 -0
- package/src/ports/rekuest.ts +6 -0
- package/src/renderer/bloks/control.tsx +26 -2
- package/src/renderer/runtime/catalog.test.ts +12 -8
- package/src/renderer/runtime/components.tsx +5 -8
- package/src/renderer/runtime/describe.ts +25 -100
- package/src/renderer/runtime/hooks.ts +3 -1
- package/src/renderer/runtime/schemas.ts +51 -17
- package/src/spec/bsx_v2.json +1421 -19
- package/src/spec/catalogs/base@4.json +18738 -5273
- package/src/spec/catalogs/orkestrator@1.json +532 -126
- package/src/spec/catalogs.ts +14 -19
- package/src/spec/fit.test.ts +65 -0
- package/src/spec/fit.ts +114 -0
- package/src/spec/ports.ts +172 -0
- package/src/spec/spec.test.ts +5 -2
- package/src/spec/vocabulary.json +12 -5
|
@@ -19,43 +19,69 @@
|
|
|
19
19
|
"props": [
|
|
20
20
|
{
|
|
21
21
|
"key": "bind",
|
|
22
|
-
"
|
|
22
|
+
"port": {
|
|
23
|
+
"kind": "BINDING",
|
|
24
|
+
"children": [
|
|
25
|
+
{
|
|
26
|
+
"key": "...",
|
|
27
|
+
"kind": "STRING"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
23
31
|
"required": false,
|
|
24
32
|
"description": "Where the record is written: {\"status\", \"loading\", \"ready\", \"failed\", \"empty\", \"stale\", \"error\", \"data\"}. `data` is {\"domain\": {\"min\", \"max\"}, \"bins\": [counts]}, or null for a column with no numbers. Seed it in demo_state for the preview, which reads nothing."
|
|
25
33
|
},
|
|
26
34
|
{
|
|
27
35
|
"key": "bins",
|
|
28
|
-
"
|
|
36
|
+
"port": {
|
|
37
|
+
"kind": "FLOAT"
|
|
38
|
+
},
|
|
29
39
|
"required": false,
|
|
30
40
|
"description": "How many bars. Defaults to 32."
|
|
31
41
|
},
|
|
32
42
|
{
|
|
33
43
|
"key": "className",
|
|
34
|
-
"
|
|
44
|
+
"port": {
|
|
45
|
+
"kind": "STRING"
|
|
46
|
+
},
|
|
35
47
|
"required": false,
|
|
36
48
|
"description": "Extra Tailwind classes appended to the element."
|
|
37
49
|
},
|
|
38
50
|
{
|
|
39
51
|
"key": "clearOnUnmount",
|
|
40
|
-
"
|
|
52
|
+
"port": {
|
|
53
|
+
"kind": "BOOL"
|
|
54
|
+
},
|
|
41
55
|
"required": false,
|
|
42
56
|
"description": "Remove the record when this leaves the screen, instead of keeping it marked stale."
|
|
43
57
|
},
|
|
44
58
|
{
|
|
45
59
|
"key": "column",
|
|
46
|
-
"
|
|
60
|
+
"port": {
|
|
61
|
+
"kind": "STRING"
|
|
62
|
+
},
|
|
47
63
|
"required": false,
|
|
48
64
|
"description": "The column, by its name. Nothing is read while it is unset."
|
|
49
65
|
},
|
|
50
66
|
{
|
|
51
67
|
"key": "height",
|
|
52
|
-
"
|
|
68
|
+
"port": {
|
|
69
|
+
"kind": "STRING"
|
|
70
|
+
},
|
|
53
71
|
"required": false,
|
|
54
72
|
"description": "CSS height of the bars. Defaults to \"6rem\"."
|
|
55
73
|
},
|
|
56
74
|
{
|
|
57
75
|
"key": "value",
|
|
58
|
-
"
|
|
76
|
+
"port": {
|
|
77
|
+
"kind": "DICT",
|
|
78
|
+
"children": [
|
|
79
|
+
{
|
|
80
|
+
"key": "...",
|
|
81
|
+
"kind": null
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
59
85
|
"required": false,
|
|
60
86
|
"description": "The table, a structure reference ({\"object\", \"__identifier\": \"@mikro/tabledataset\"}): typically `{args.table}`."
|
|
61
87
|
}
|
|
@@ -75,37 +101,168 @@
|
|
|
75
101
|
"props": [
|
|
76
102
|
{
|
|
77
103
|
"key": "bind",
|
|
78
|
-
"
|
|
104
|
+
"port": {
|
|
105
|
+
"kind": "BINDING",
|
|
106
|
+
"children": [
|
|
107
|
+
{
|
|
108
|
+
"key": "...",
|
|
109
|
+
"kind": "STRING"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
79
113
|
"required": false,
|
|
80
114
|
"description": "Where the record is written: {\"status\", \"loading\", \"ready\", \"failed\", \"empty\", \"stale\", \"error\", \"data\"}. `data` is {\"rows\", \"nonNull\", \"min\", \"max\", \"mean\", \"distinct\"}; min/max/mean are null for a column with no numbers, distinct is null unless asked for. Seed it in demo_state for the preview, which reads nothing."
|
|
81
115
|
},
|
|
82
116
|
{
|
|
83
117
|
"key": "clearOnUnmount",
|
|
84
|
-
"
|
|
118
|
+
"port": {
|
|
119
|
+
"kind": "BOOL"
|
|
120
|
+
},
|
|
85
121
|
"required": false,
|
|
86
122
|
"description": "Remove the record when this leaves the screen, instead of keeping it marked stale."
|
|
87
123
|
},
|
|
88
124
|
{
|
|
89
125
|
"key": "column",
|
|
90
|
-
"
|
|
126
|
+
"port": {
|
|
127
|
+
"kind": "STRING"
|
|
128
|
+
},
|
|
91
129
|
"required": false,
|
|
92
130
|
"description": "The column, by its name. Nothing is read while it is unset."
|
|
93
131
|
},
|
|
94
132
|
{
|
|
95
133
|
"key": "distinct",
|
|
96
|
-
"
|
|
134
|
+
"port": {
|
|
135
|
+
"kind": "BOOL"
|
|
136
|
+
},
|
|
97
137
|
"required": false,
|
|
98
138
|
"description": "Also count the distinct values. A full scan of the column: leave it off unless shown."
|
|
99
139
|
},
|
|
100
140
|
{
|
|
101
141
|
"key": "value",
|
|
102
|
-
"
|
|
142
|
+
"port": {
|
|
143
|
+
"kind": "DICT",
|
|
144
|
+
"children": [
|
|
145
|
+
{
|
|
146
|
+
"key": "...",
|
|
147
|
+
"kind": null
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
103
151
|
"required": false,
|
|
104
152
|
"description": "The table, a structure reference ({\"object\", \"__identifier\": \"@mikro/tabledataset\"}): typically `{args.table}`."
|
|
105
153
|
}
|
|
106
154
|
],
|
|
107
155
|
"service": "mikro"
|
|
108
156
|
},
|
|
157
|
+
{
|
|
158
|
+
"name": "LovekitTrace",
|
|
159
|
+
"description": "A live data stream (a spectrum, a profile) drawn as a line in a Plot: x from the stream's calibration converted to the plot's unit, y scaled to what has arrived.",
|
|
160
|
+
"context": "PANEL",
|
|
161
|
+
"children_context": null,
|
|
162
|
+
"inherits_context": false,
|
|
163
|
+
"accepts_children": false,
|
|
164
|
+
"downstream_of": [
|
|
165
|
+
"Plot"
|
|
166
|
+
],
|
|
167
|
+
"not_downstream_of": [],
|
|
168
|
+
"text_prop": null,
|
|
169
|
+
"props": [
|
|
170
|
+
{
|
|
171
|
+
"key": "className",
|
|
172
|
+
"port": {
|
|
173
|
+
"kind": "STRING"
|
|
174
|
+
},
|
|
175
|
+
"required": false,
|
|
176
|
+
"description": "Extra Tailwind classes appended to the element."
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"key": "color",
|
|
180
|
+
"port": {
|
|
181
|
+
"kind": "STRING"
|
|
182
|
+
},
|
|
183
|
+
"required": false,
|
|
184
|
+
"description": "The line colour, any CSS colour. Defaults to \"#7dd3fc\"."
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"key": "output",
|
|
188
|
+
"port": null,
|
|
189
|
+
"required": false,
|
|
190
|
+
"description": "The axes the transform lands on: a list of {\"name\", \"type\", \"unit\"} (or bare names). Left out, the steps' own outputs in the units of the input axes of their names."
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"key": "transform",
|
|
194
|
+
"port": null,
|
|
195
|
+
"required": false,
|
|
196
|
+
"description": "How it is placed, as mikro writes a transformation: one step or a list of them, from the stream's calibrated axis onto the output axes. Kinds: IDENTITY; SCALE / TRANSLATION (one number per axis, in order); AFFINE / ROTATION (rows of N+1); MAP_AXIS (inputAxes onto outputAxes); BY_DIMENSION (parts, each a kind on its own inputAxes/outputAxes); SEQUENCE (steps). E.g. [{\"kind\": \"TRANSLATION\", \"translation\": [120, 40]}]. The identity when absent."
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"key": "value",
|
|
200
|
+
"port": {
|
|
201
|
+
"kind": "DICT",
|
|
202
|
+
"children": [
|
|
203
|
+
{
|
|
204
|
+
"key": "...",
|
|
205
|
+
"kind": null
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
"required": false,
|
|
210
|
+
"description": "The data stream, a structure reference: typically `{self.state.spectrum}`."
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"service": "lovekit"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "LovekitVideo",
|
|
217
|
+
"description": "A live video stream's frames on a quad in a Scene, sized and placed by the stream's declared axes and calibration. Streams of one reference line up with each other.",
|
|
218
|
+
"context": "SCENE",
|
|
219
|
+
"children_context": null,
|
|
220
|
+
"inherits_context": false,
|
|
221
|
+
"accepts_children": false,
|
|
222
|
+
"downstream_of": [
|
|
223
|
+
"Scene",
|
|
224
|
+
"Space"
|
|
225
|
+
],
|
|
226
|
+
"not_downstream_of": [],
|
|
227
|
+
"text_prop": null,
|
|
228
|
+
"props": [
|
|
229
|
+
{
|
|
230
|
+
"key": "opacity",
|
|
231
|
+
"port": {
|
|
232
|
+
"kind": "FLOAT"
|
|
233
|
+
},
|
|
234
|
+
"required": false,
|
|
235
|
+
"description": "How opaque the frames are drawn, 0 to 1. Defaults to 1."
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"key": "output",
|
|
239
|
+
"port": null,
|
|
240
|
+
"required": false,
|
|
241
|
+
"description": "The axes the transform lands on: a list of {\"name\", \"type\", \"unit\"} (or bare names). Left out, the steps' own outputs in the units of the input axes of their names."
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"key": "transform",
|
|
245
|
+
"port": null,
|
|
246
|
+
"required": false,
|
|
247
|
+
"description": "How it is placed, as mikro writes a transformation: one step or a list of them, from the stream's pixel axes (calibrated, e.g. y and x in µm) onto the output axes. Kinds: IDENTITY; SCALE / TRANSLATION (one number per axis, in order); AFFINE / ROTATION (rows of N+1); MAP_AXIS (inputAxes onto outputAxes); BY_DIMENSION (parts, each a kind on its own inputAxes/outputAxes); SEQUENCE (steps). E.g. [{\"kind\": \"TRANSLATION\", \"translation\": [120, 40]}]. The identity when absent."
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"key": "value",
|
|
251
|
+
"port": {
|
|
252
|
+
"kind": "DICT",
|
|
253
|
+
"children": [
|
|
254
|
+
{
|
|
255
|
+
"key": "...",
|
|
256
|
+
"kind": null
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
"required": false,
|
|
261
|
+
"description": "The video stream, a structure reference: typically `{self.state.camera}`."
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"service": "lovekit"
|
|
265
|
+
},
|
|
109
266
|
{
|
|
110
267
|
"name": "MikroScene",
|
|
111
268
|
"description": "One mikro scene and its stores, shared by the MikroScene parts inside it. One per blok is the supported case: a second scene's viewport also hears the window's keyboard.",
|
|
@@ -121,128 +278,218 @@
|
|
|
121
278
|
"props": [
|
|
122
279
|
{
|
|
123
280
|
"key": "bind",
|
|
124
|
-
"
|
|
281
|
+
"port": {
|
|
282
|
+
"kind": "BINDING",
|
|
283
|
+
"children": [
|
|
284
|
+
{
|
|
285
|
+
"key": "...",
|
|
286
|
+
"kind": null
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
},
|
|
125
290
|
"required": false,
|
|
126
291
|
"description": "Where the selection is written: {\"annotation\", \"lens\"} (structure references), or null when nothing is selected."
|
|
127
292
|
},
|
|
128
293
|
{
|
|
129
294
|
"key": "bindWorld",
|
|
130
|
-
"
|
|
295
|
+
"port": {
|
|
296
|
+
"kind": "STRING"
|
|
297
|
+
},
|
|
131
298
|
"required": false,
|
|
132
299
|
"description": "Where the scene's world coordinate system is written, a structure reference ({\"object\", \"__identifier\": \"@mikro/coordinatesystem\"}), once the scene has loaded. What a picker of what this scene can show asks the server with: `lenses(filters: {placeableIn: {space: $world}})`, `$world` read from this path. It writes a STRING: the local is a STRING, ENUM or DATE port."
|
|
133
300
|
},
|
|
134
301
|
{
|
|
135
302
|
"key": "className",
|
|
136
|
-
"
|
|
303
|
+
"port": {
|
|
304
|
+
"kind": "STRING"
|
|
305
|
+
},
|
|
137
306
|
"required": false,
|
|
138
307
|
"description": "Extra Tailwind classes appended to the element."
|
|
139
308
|
},
|
|
140
309
|
{
|
|
141
310
|
"key": "live",
|
|
142
|
-
"
|
|
311
|
+
"port": {
|
|
312
|
+
"kind": "BOOL"
|
|
313
|
+
},
|
|
143
314
|
"required": false,
|
|
144
315
|
"description": "Follow the scene as others change it, an action writing a layer included. Defaults to true."
|
|
145
316
|
},
|
|
146
317
|
{
|
|
147
318
|
"key": "onAnnotation",
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
319
|
+
"port": {
|
|
320
|
+
"kind": "CALLBACK",
|
|
321
|
+
"children": [
|
|
322
|
+
{
|
|
323
|
+
"key": "annotation",
|
|
324
|
+
"kind": "DICT",
|
|
325
|
+
"children": [
|
|
326
|
+
{
|
|
327
|
+
"key": "...",
|
|
328
|
+
"kind": null
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"description": "The drawn shape, as a structure reference."
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"key": "kind",
|
|
335
|
+
"kind": "STRING",
|
|
336
|
+
"description": "The kind of shape."
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"key": "lens",
|
|
340
|
+
"kind": "DICT",
|
|
341
|
+
"children": [
|
|
342
|
+
{
|
|
343
|
+
"key": "...",
|
|
344
|
+
"kind": null
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
"description": "The lens under the probe, or null."
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"key": "descriptors",
|
|
351
|
+
"kind": null,
|
|
352
|
+
"description": "The shape's descriptors, or null."
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
},
|
|
356
|
+
"required": false,
|
|
357
|
+
"description": "Runs when a shape is drawn. event.annotation, event.kind, event.lens and event.descriptors: the shape and the lens under the probe as structure references (lens null when none was under it)."
|
|
173
358
|
},
|
|
174
359
|
{
|
|
175
360
|
"key": "onLayersChange",
|
|
176
|
-
"
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
361
|
+
"port": {
|
|
362
|
+
"kind": "CALLBACK",
|
|
363
|
+
"children": [
|
|
364
|
+
{
|
|
365
|
+
"key": "layers",
|
|
366
|
+
"kind": "LIST",
|
|
367
|
+
"children": [
|
|
368
|
+
{
|
|
369
|
+
"key": "...",
|
|
370
|
+
"kind": null
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"description": "The layers now drawn."
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"key": "added",
|
|
377
|
+
"kind": "LIST",
|
|
378
|
+
"children": [
|
|
379
|
+
{
|
|
380
|
+
"key": "...",
|
|
381
|
+
"kind": null
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"description": "The layers that are new."
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
"required": false,
|
|
389
|
+
"description": "Runs when a layer comes, goes or draws another lens. event.layers and event.added; an action here that writes layers is told again, `added` names the new ones."
|
|
191
390
|
},
|
|
192
391
|
{
|
|
193
392
|
"key": "onPick",
|
|
194
|
-
"
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
393
|
+
"port": {
|
|
394
|
+
"kind": "CALLBACK",
|
|
395
|
+
"children": [
|
|
396
|
+
{
|
|
397
|
+
"key": "layer",
|
|
398
|
+
"kind": "STRING",
|
|
399
|
+
"description": "The layer read."
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"key": "world",
|
|
403
|
+
"kind": "LIST",
|
|
404
|
+
"children": [
|
|
405
|
+
{
|
|
406
|
+
"key": "...",
|
|
407
|
+
"kind": null
|
|
408
|
+
}
|
|
409
|
+
],
|
|
410
|
+
"description": "The world point, or null."
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"key": "voxel",
|
|
414
|
+
"kind": "LIST",
|
|
415
|
+
"children": [
|
|
416
|
+
{
|
|
417
|
+
"key": "...",
|
|
418
|
+
"kind": null
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
"description": "The voxel read."
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"key": "lens",
|
|
425
|
+
"kind": "DICT",
|
|
426
|
+
"children": [
|
|
427
|
+
{
|
|
428
|
+
"key": "...",
|
|
429
|
+
"kind": null
|
|
430
|
+
}
|
|
431
|
+
],
|
|
432
|
+
"description": "The lens, or null."
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
"required": false,
|
|
437
|
+
"description": "Runs on a deliberate click that reads a voxel (probe mode, not a vertex being placed). event.layer, event.world, event.voxel and event.lens."
|
|
219
438
|
},
|
|
220
439
|
{
|
|
221
440
|
"key": "onSelect",
|
|
222
|
-
"
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
441
|
+
"port": {
|
|
442
|
+
"kind": "CALLBACK",
|
|
443
|
+
"children": [
|
|
444
|
+
{
|
|
445
|
+
"key": "annotation",
|
|
446
|
+
"kind": "DICT",
|
|
447
|
+
"children": [
|
|
448
|
+
{
|
|
449
|
+
"key": "...",
|
|
450
|
+
"kind": null
|
|
451
|
+
}
|
|
452
|
+
],
|
|
453
|
+
"description": "The selected annotation."
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"key": "annotations",
|
|
457
|
+
"kind": "LIST",
|
|
458
|
+
"children": [
|
|
459
|
+
{
|
|
460
|
+
"key": "...",
|
|
461
|
+
"kind": null
|
|
462
|
+
}
|
|
463
|
+
],
|
|
464
|
+
"description": "Every selected annotation."
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"key": "lens",
|
|
468
|
+
"kind": "DICT",
|
|
469
|
+
"children": [
|
|
470
|
+
{
|
|
471
|
+
"key": "...",
|
|
472
|
+
"kind": null
|
|
473
|
+
}
|
|
474
|
+
],
|
|
475
|
+
"description": "The lens under the probe, or null."
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
},
|
|
479
|
+
"required": false,
|
|
480
|
+
"description": "Runs when the user changes the selection (the selection a draw makes is reported as onAnnotation, not here). event.annotation, event.annotations and event.lens."
|
|
242
481
|
},
|
|
243
482
|
{
|
|
244
483
|
"key": "value",
|
|
245
|
-
"
|
|
484
|
+
"port": {
|
|
485
|
+
"kind": "DICT",
|
|
486
|
+
"children": [
|
|
487
|
+
{
|
|
488
|
+
"key": "...",
|
|
489
|
+
"kind": null
|
|
490
|
+
}
|
|
491
|
+
]
|
|
492
|
+
},
|
|
246
493
|
"required": false,
|
|
247
494
|
"description": "The scene, a structure reference: typically `{args.scene}`."
|
|
248
495
|
}
|
|
@@ -264,13 +511,17 @@
|
|
|
264
511
|
"props": [
|
|
265
512
|
{
|
|
266
513
|
"key": "className",
|
|
267
|
-
"
|
|
514
|
+
"port": {
|
|
515
|
+
"kind": "STRING"
|
|
516
|
+
},
|
|
268
517
|
"required": false,
|
|
269
518
|
"description": "Extra Tailwind classes appended to the element."
|
|
270
519
|
},
|
|
271
520
|
{
|
|
272
521
|
"key": "height",
|
|
273
|
-
"
|
|
522
|
+
"port": {
|
|
523
|
+
"kind": "STRING"
|
|
524
|
+
},
|
|
274
525
|
"required": false,
|
|
275
526
|
"description": "CSS height of the panel."
|
|
276
527
|
}
|
|
@@ -292,13 +543,17 @@
|
|
|
292
543
|
"props": [
|
|
293
544
|
{
|
|
294
545
|
"key": "className",
|
|
295
|
-
"
|
|
546
|
+
"port": {
|
|
547
|
+
"kind": "STRING"
|
|
548
|
+
},
|
|
296
549
|
"required": false,
|
|
297
550
|
"description": "Extra Tailwind classes appended to the element."
|
|
298
551
|
},
|
|
299
552
|
{
|
|
300
553
|
"key": "height",
|
|
301
|
-
"
|
|
554
|
+
"port": {
|
|
555
|
+
"kind": "STRING"
|
|
556
|
+
},
|
|
302
557
|
"required": false,
|
|
303
558
|
"description": "CSS height of the panel."
|
|
304
559
|
}
|
|
@@ -320,13 +575,17 @@
|
|
|
320
575
|
"props": [
|
|
321
576
|
{
|
|
322
577
|
"key": "className",
|
|
323
|
-
"
|
|
578
|
+
"port": {
|
|
579
|
+
"kind": "STRING"
|
|
580
|
+
},
|
|
324
581
|
"required": false,
|
|
325
582
|
"description": "Extra Tailwind classes appended to the element."
|
|
326
583
|
},
|
|
327
584
|
{
|
|
328
585
|
"key": "height",
|
|
329
|
-
"
|
|
586
|
+
"port": {
|
|
587
|
+
"kind": "STRING"
|
|
588
|
+
},
|
|
330
589
|
"required": false,
|
|
331
590
|
"description": "CSS height of the panel."
|
|
332
591
|
}
|
|
@@ -348,37 +607,124 @@
|
|
|
348
607
|
"props": [
|
|
349
608
|
{
|
|
350
609
|
"key": "cards",
|
|
351
|
-
"
|
|
610
|
+
"port": {
|
|
611
|
+
"kind": "BOOL"
|
|
612
|
+
},
|
|
352
613
|
"required": false,
|
|
353
614
|
"description": "Open a shape's action card on a click or a draw. Defaults to false here: the blok decides what a shape does."
|
|
354
615
|
},
|
|
355
616
|
{
|
|
356
617
|
"key": "className",
|
|
357
|
-
"
|
|
618
|
+
"port": {
|
|
619
|
+
"kind": "STRING"
|
|
620
|
+
},
|
|
358
621
|
"required": false,
|
|
359
622
|
"description": "Extra Tailwind classes appended to the element."
|
|
360
623
|
},
|
|
361
624
|
{
|
|
362
625
|
"key": "height",
|
|
363
|
-
"
|
|
626
|
+
"port": {
|
|
627
|
+
"kind": "STRING"
|
|
628
|
+
},
|
|
364
629
|
"required": false,
|
|
365
630
|
"description": "CSS height of the viewport. Defaults to \"32rem\"."
|
|
366
631
|
},
|
|
367
632
|
{
|
|
368
633
|
"key": "minHeight",
|
|
369
|
-
"
|
|
634
|
+
"port": {
|
|
635
|
+
"kind": "STRING"
|
|
636
|
+
},
|
|
370
637
|
"required": false,
|
|
371
638
|
"description": "CSS minimum height of the viewport."
|
|
372
639
|
},
|
|
373
640
|
{
|
|
374
641
|
"key": "sliders",
|
|
375
|
-
"
|
|
642
|
+
"port": {
|
|
643
|
+
"kind": "BOOL"
|
|
644
|
+
},
|
|
376
645
|
"required": false,
|
|
377
646
|
"description": "Show the Z and dimension sliders. Defaults to true."
|
|
378
647
|
}
|
|
379
648
|
],
|
|
380
649
|
"service": "mikro"
|
|
381
650
|
},
|
|
651
|
+
{
|
|
652
|
+
"name": "Plot",
|
|
653
|
+
"description": "A plot along one measured axis. The mounts inside it (LovekitTrace) are drawn along that axis, each in a row of its own.",
|
|
654
|
+
"context": "PANEL",
|
|
655
|
+
"children_context": null,
|
|
656
|
+
"inherits_context": false,
|
|
657
|
+
"accepts_children": true,
|
|
658
|
+
"downstream_of": [],
|
|
659
|
+
"not_downstream_of": [
|
|
660
|
+
"Plot"
|
|
661
|
+
],
|
|
662
|
+
"text_prop": null,
|
|
663
|
+
"props": [
|
|
664
|
+
{
|
|
665
|
+
"key": "axis",
|
|
666
|
+
"port": {
|
|
667
|
+
"kind": "STRING"
|
|
668
|
+
},
|
|
669
|
+
"required": true,
|
|
670
|
+
"description": "The name of the measured axis, e.g. \"wavelength\"."
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"key": "className",
|
|
674
|
+
"port": {
|
|
675
|
+
"kind": "STRING"
|
|
676
|
+
},
|
|
677
|
+
"required": false,
|
|
678
|
+
"description": "Extra Tailwind classes appended to the element."
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"key": "height",
|
|
682
|
+
"port": {
|
|
683
|
+
"kind": "STRING"
|
|
684
|
+
},
|
|
685
|
+
"required": false,
|
|
686
|
+
"description": "CSS height of the plot. Defaults to \"20rem\"."
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"key": "reference",
|
|
690
|
+
"port": {
|
|
691
|
+
"kind": "STRING"
|
|
692
|
+
},
|
|
693
|
+
"required": false,
|
|
694
|
+
"description": "The space the axis is in, as mikro and lovekit name a reference; mounts of another space are flagged."
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"key": "type",
|
|
698
|
+
"port": {
|
|
699
|
+
"kind": "STRING",
|
|
700
|
+
"choices": [
|
|
701
|
+
{
|
|
702
|
+
"value": "SPACE"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"value": "TIME"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"value": "MICROTIME"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"value": "SPECTRUM"
|
|
712
|
+
}
|
|
713
|
+
]
|
|
714
|
+
},
|
|
715
|
+
"required": false,
|
|
716
|
+
"description": "What the axis measures, as mikro names it. Defaults to SPECTRUM."
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"key": "unit",
|
|
720
|
+
"port": {
|
|
721
|
+
"kind": "STRING"
|
|
722
|
+
},
|
|
723
|
+
"required": true,
|
|
724
|
+
"description": "The unit positions along the axis are shown in, e.g. \"nm\". Every mount is converted into it."
|
|
725
|
+
}
|
|
726
|
+
]
|
|
727
|
+
},
|
|
382
728
|
{
|
|
383
729
|
"name": "TableColumns",
|
|
384
730
|
"description": "Reads what a TableDataset's columns are. Draws nothing: a picker or a foreach reads the record.",
|
|
@@ -392,25 +738,43 @@
|
|
|
392
738
|
"props": [
|
|
393
739
|
{
|
|
394
740
|
"key": "bind",
|
|
395
|
-
"
|
|
741
|
+
"port": {
|
|
742
|
+
"kind": "BINDING",
|
|
743
|
+
"children": [
|
|
744
|
+
{
|
|
745
|
+
"key": "...",
|
|
746
|
+
"kind": "STRING"
|
|
747
|
+
}
|
|
748
|
+
]
|
|
749
|
+
},
|
|
396
750
|
"required": false,
|
|
397
751
|
"description": "Where the record is written: {\"status\", \"loading\", \"ready\", \"failed\", \"empty\", \"stale\", \"error\", \"data\"}. `data` is the list of columns, in order: {\"name\", \"longName\", \"description\", \"dtype\", \"role\", \"unit\", \"axisType\"}. Seed it in demo_state for the preview, which reads nothing."
|
|
398
752
|
},
|
|
399
753
|
{
|
|
400
754
|
"key": "clearOnUnmount",
|
|
401
|
-
"
|
|
755
|
+
"port": {
|
|
756
|
+
"kind": "BOOL"
|
|
757
|
+
},
|
|
402
758
|
"required": false,
|
|
403
759
|
"description": "Remove the record when this leaves the screen, instead of keeping it marked stale."
|
|
404
760
|
},
|
|
405
761
|
{
|
|
406
762
|
"key": "role",
|
|
407
|
-
"
|
|
763
|
+
"port": null,
|
|
408
764
|
"required": false,
|
|
409
765
|
"description": "Only the columns of this role (or of any of these roles)."
|
|
410
766
|
},
|
|
411
767
|
{
|
|
412
768
|
"key": "value",
|
|
413
|
-
"
|
|
769
|
+
"port": {
|
|
770
|
+
"kind": "DICT",
|
|
771
|
+
"children": [
|
|
772
|
+
{
|
|
773
|
+
"key": "...",
|
|
774
|
+
"kind": null
|
|
775
|
+
}
|
|
776
|
+
]
|
|
777
|
+
},
|
|
414
778
|
"required": false,
|
|
415
779
|
"description": "The table, a structure reference ({\"object\", \"__identifier\": \"@mikro/tabledataset\"}): typically `{args.table}`."
|
|
416
780
|
}
|
|
@@ -430,55 +794,97 @@
|
|
|
430
794
|
"props": [
|
|
431
795
|
{
|
|
432
796
|
"key": "bind",
|
|
433
|
-
"
|
|
797
|
+
"port": {
|
|
798
|
+
"kind": "BINDING",
|
|
799
|
+
"children": [
|
|
800
|
+
{
|
|
801
|
+
"key": "...",
|
|
802
|
+
"kind": "STRING"
|
|
803
|
+
}
|
|
804
|
+
]
|
|
805
|
+
},
|
|
434
806
|
"required": false,
|
|
435
807
|
"description": "Where the record is written: {\"status\", \"loading\", \"ready\", \"failed\", \"empty\", \"stale\", \"error\", \"data\"}. `data` is {\"rows\": [{column: value}], \"total\"}: total counts every row the conditions keep. Seed it in demo_state for the preview, which reads nothing."
|
|
436
808
|
},
|
|
437
809
|
{
|
|
438
810
|
"key": "clearOnUnmount",
|
|
439
|
-
"
|
|
811
|
+
"port": {
|
|
812
|
+
"kind": "BOOL"
|
|
813
|
+
},
|
|
440
814
|
"required": false,
|
|
441
815
|
"description": "Remove the record when this leaves the screen, instead of keeping it marked stale."
|
|
442
816
|
},
|
|
443
817
|
{
|
|
444
818
|
"key": "columns",
|
|
445
|
-
"
|
|
819
|
+
"port": {
|
|
820
|
+
"kind": "LIST",
|
|
821
|
+
"children": [
|
|
822
|
+
{
|
|
823
|
+
"key": "...",
|
|
824
|
+
"kind": null
|
|
825
|
+
}
|
|
826
|
+
]
|
|
827
|
+
},
|
|
446
828
|
"required": false,
|
|
447
829
|
"description": "The columns to read, by name. Defaults to every column."
|
|
448
830
|
},
|
|
449
831
|
{
|
|
450
832
|
"key": "descending",
|
|
451
|
-
"
|
|
833
|
+
"port": {
|
|
834
|
+
"kind": "BOOL"
|
|
835
|
+
},
|
|
452
836
|
"required": false,
|
|
453
837
|
"description": "Sort from the largest."
|
|
454
838
|
},
|
|
455
839
|
{
|
|
456
840
|
"key": "limit",
|
|
457
|
-
"
|
|
841
|
+
"port": {
|
|
842
|
+
"kind": "FLOAT"
|
|
843
|
+
},
|
|
458
844
|
"required": false,
|
|
459
845
|
"description": "Rows per page. Defaults to 50, at most 1000."
|
|
460
846
|
},
|
|
461
847
|
{
|
|
462
848
|
"key": "offset",
|
|
463
|
-
"
|
|
849
|
+
"port": {
|
|
850
|
+
"kind": "FLOAT"
|
|
851
|
+
},
|
|
464
852
|
"required": false,
|
|
465
853
|
"description": "Rows to skip: the page is offset / limit."
|
|
466
854
|
},
|
|
467
855
|
{
|
|
468
856
|
"key": "orderBy",
|
|
469
|
-
"
|
|
857
|
+
"port": {
|
|
858
|
+
"kind": "STRING"
|
|
859
|
+
},
|
|
470
860
|
"required": false,
|
|
471
861
|
"description": "The column to sort by."
|
|
472
862
|
},
|
|
473
863
|
{
|
|
474
864
|
"key": "value",
|
|
475
|
-
"
|
|
865
|
+
"port": {
|
|
866
|
+
"kind": "DICT",
|
|
867
|
+
"children": [
|
|
868
|
+
{
|
|
869
|
+
"key": "...",
|
|
870
|
+
"kind": null
|
|
871
|
+
}
|
|
872
|
+
]
|
|
873
|
+
},
|
|
476
874
|
"required": false,
|
|
477
875
|
"description": "The table, a structure reference ({\"object\", \"__identifier\": \"@mikro/tabledataset\"}): typically `{args.table}`."
|
|
478
876
|
},
|
|
479
877
|
{
|
|
480
878
|
"key": "where",
|
|
481
|
-
"
|
|
879
|
+
"port": {
|
|
880
|
+
"kind": "LIST",
|
|
881
|
+
"children": [
|
|
882
|
+
{
|
|
883
|
+
"key": "...",
|
|
884
|
+
"kind": null
|
|
885
|
+
}
|
|
886
|
+
]
|
|
887
|
+
},
|
|
482
888
|
"required": false,
|
|
483
889
|
"description": "Conditions every row must meet: [{\"column\", \"op\", \"value\"}], op one of eq, ne, gt, gte, lt, lte, in, contains, isNull, notNull (default eq). \"in\" takes a list; \"contains\" matches text, ignoring case."
|
|
484
890
|
}
|