@almadar/std 16.174.0 → 16.175.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/behaviors/lolo/ui/core/molecules/ui-table-view.lolo +4 -9
- package/behaviors/lolo/ui/learning/atoms/std-learn-classify.lolo +132 -22
- package/behaviors/lolo/ui/learning/atoms/std-learn-derivation.lolo +428 -0
- package/behaviors/lolo/ui/learning/atoms/std-learn-doser.lolo +520 -0
- package/behaviors/lolo/ui/learning/atoms/std-learn-scatter-fit.lolo +805 -0
- package/behaviors/lolo/ui/learning/atoms/std-learn-tour-3d.lolo +31 -2
- package/behaviors/lolo/ui/learning/atoms/std-learn-transport.lolo +186 -0
- package/behaviors/lolo/ui/learning/atoms/std-learn-tree.lolo +522 -0
- package/behaviors/lolo/ui/learning/atoms/ui-algo-graph-canvas.lolo +192 -0
- package/behaviors/lolo/ui/learning/atoms/ui-algorithm-canvas.lolo +111 -2
- package/behaviors/lolo/ui/learning/atoms/ui-biology-canvas.lolo +150 -1
- package/behaviors/lolo/ui/learning/atoms/ui-chemistry-canvas.lolo +132 -1
- package/behaviors/lolo/ui/learning/atoms/ui-learning-canvas.lolo +48 -1
- package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +141 -1
- package/behaviors/lolo/ui/learning/atoms/ui-physics-canvas.lolo +199 -1
- package/behaviors/registry/ui/core/molecules/ui-table-view.orb +4 -39
- package/behaviors/registry/ui/learning/atoms/std-learn-classify.orb +1288 -197
- package/behaviors/registry/ui/learning/atoms/std-learn-derivation.orb +2512 -0
- package/behaviors/registry/ui/learning/atoms/std-learn-doser.orb +3678 -0
- package/behaviors/registry/ui/learning/atoms/std-learn-scatter-fit.orb +6539 -0
- package/behaviors/registry/ui/learning/atoms/std-learn-tour-3d.orb +173 -2
- package/behaviors/registry/ui/learning/atoms/std-learn-transport.orb +986 -0
- package/behaviors/registry/ui/learning/atoms/std-learn-tree.orb +3333 -0
- package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +716 -0
- package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +506 -1
- package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +684 -0
- package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +634 -0
- package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +256 -0
- package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +736 -12
- package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +1061 -33
- package/dist/behaviors/exports-reader.js +2448 -2184
- package/dist/behaviors/functions/index.d.ts +800 -13
- package/dist/behaviors/functions/index.js +2431 -2185
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +2449 -2185
- package/dist/behaviors/query.js +2448 -2184
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +261 -237
- package/dist/behaviors-registry.json +4385 -1298
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2449 -2185
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +1 -1
- package/dist/registry/factory-signatures.json +1 -1
- package/package.json +2 -2
|
@@ -9,12 +9,15 @@ orbital ChemistryCanvasOrbital {
|
|
|
9
9
|
element : string
|
|
10
10
|
radius : number
|
|
11
11
|
color : string
|
|
12
|
+
charge : string
|
|
13
|
+
lonePairs : number
|
|
12
14
|
}
|
|
13
15
|
type ChemistryCanvasBondsItem = {
|
|
14
16
|
from : string!
|
|
15
17
|
to : string!
|
|
16
18
|
type : "single" | "double" | "triple"
|
|
17
19
|
color : string
|
|
20
|
+
state : "default" | "forming" | "breaking" | "highlight"
|
|
18
21
|
}
|
|
19
22
|
type ChemistryCanvasArrowsItem = {
|
|
20
23
|
x : number!
|
|
@@ -24,8 +27,58 @@ orbital ChemistryCanvasOrbital {
|
|
|
24
27
|
color : string
|
|
25
28
|
label : string
|
|
26
29
|
}
|
|
30
|
+
type ChemistryCanvasContainersItem = {
|
|
31
|
+
x : number!
|
|
32
|
+
y : number!
|
|
33
|
+
width : number!
|
|
34
|
+
height : number!
|
|
35
|
+
color : string
|
|
36
|
+
fill : string
|
|
37
|
+
lineWidth : number
|
|
38
|
+
divider : "none" | "solid" | "dashed" | "dotted"
|
|
39
|
+
dividerColor : string
|
|
40
|
+
leftLabel : string
|
|
41
|
+
rightLabel : string
|
|
42
|
+
label : string
|
|
43
|
+
level : number
|
|
44
|
+
levelColor : string
|
|
45
|
+
}
|
|
46
|
+
type ChemistryCanvasLattice3d = {
|
|
47
|
+
basis : [ChemistryCanvasLattice3dBasisItem]!
|
|
48
|
+
nx : number
|
|
49
|
+
ny : number
|
|
50
|
+
nz : number
|
|
51
|
+
latticeConstant : number
|
|
52
|
+
bonds : [ChemistryCanvasLattice3dBondsItem]
|
|
53
|
+
bondRadius : number
|
|
54
|
+
highlightCell : boolean
|
|
55
|
+
dimColor : string
|
|
56
|
+
showLabels : boolean
|
|
57
|
+
selectedId : string
|
|
58
|
+
selectedColor : string
|
|
59
|
+
}
|
|
60
|
+
type ChemistryCanvasLattice3dBasisItem = {
|
|
61
|
+
key : string!
|
|
62
|
+
dx : number!
|
|
63
|
+
dy : number!
|
|
64
|
+
dz : number!
|
|
65
|
+
element : string
|
|
66
|
+
color : string
|
|
67
|
+
radius : number
|
|
68
|
+
xEdge : boolean
|
|
69
|
+
yEdge : boolean
|
|
70
|
+
zEdge : boolean
|
|
71
|
+
}
|
|
72
|
+
type ChemistryCanvasLattice3dBondsItem = {
|
|
73
|
+
from : string!
|
|
74
|
+
to : string!
|
|
75
|
+
dx : number
|
|
76
|
+
dy : number
|
|
77
|
+
dz : number
|
|
78
|
+
color : string
|
|
79
|
+
}
|
|
27
80
|
type ChemistryCanvasShapesItem = {
|
|
28
|
-
type : "line" | "arrow" | "circle" | "rect" | "polygon" | "path" | "text" | "axis" | "grid"!
|
|
81
|
+
type : "line" | "arrow" | "circle" | "ellipse" | "rect" | "polygon" | "path" | "text" | "axis" | "grid" | "venn-region"!
|
|
29
82
|
id : string
|
|
30
83
|
x : number
|
|
31
84
|
y : number
|
|
@@ -50,11 +103,42 @@ orbital ChemistryCanvasOrbital {
|
|
|
50
103
|
fill : string
|
|
51
104
|
lineWidth : number
|
|
52
105
|
opacity : number
|
|
106
|
+
startAngle : number
|
|
107
|
+
endAngle : number
|
|
108
|
+
dash : "dashed" | "dotted"
|
|
109
|
+
inside : [string]
|
|
110
|
+
outside : [string]
|
|
53
111
|
}
|
|
54
112
|
type ChemistryCanvasShapesItemPointsItem = {
|
|
55
113
|
x : number!
|
|
56
114
|
y : number!
|
|
57
115
|
}
|
|
116
|
+
type ChemistryCanvasReadoutsItem = {
|
|
117
|
+
label : string!
|
|
118
|
+
value : string!
|
|
119
|
+
color : string
|
|
120
|
+
}
|
|
121
|
+
type ChemistryCanvasTracesItem = {
|
|
122
|
+
x : number
|
|
123
|
+
y : number
|
|
124
|
+
width : number
|
|
125
|
+
height : number
|
|
126
|
+
series : [ChemistryCanvasTracesItemSeriesItem]!
|
|
127
|
+
xLabel : string
|
|
128
|
+
yLabel : string
|
|
129
|
+
frameColor : string
|
|
130
|
+
backgroundColor : string
|
|
131
|
+
backgroundOpacity : number
|
|
132
|
+
}
|
|
133
|
+
type ChemistryCanvasTracesItemSeriesItem = {
|
|
134
|
+
samples : [ChemistryCanvasTracesItemSeriesItemSamplesItem]!
|
|
135
|
+
color : string
|
|
136
|
+
label : string
|
|
137
|
+
}
|
|
138
|
+
type ChemistryCanvasTracesItemSeriesItemSamplesItem = {
|
|
139
|
+
x : number!
|
|
140
|
+
y : number!
|
|
141
|
+
}
|
|
58
142
|
type ChemistryCanvasError = {
|
|
59
143
|
message : string!
|
|
60
144
|
name : string
|
|
@@ -89,7 +173,14 @@ orbital ChemistryCanvasOrbital {
|
|
|
89
173
|
atoms: @config.atoms
|
|
90
174
|
bonds: @config.bonds
|
|
91
175
|
arrows: @config.arrows
|
|
176
|
+
bondStyle: @config.bondStyle
|
|
177
|
+
containers: @config.containers
|
|
178
|
+
equation: @config.equation
|
|
179
|
+
equationColor: @config.equationColor
|
|
180
|
+
lattice3d: @config.lattice3d
|
|
92
181
|
shapes: @config.shapes
|
|
182
|
+
readouts: @config.readouts
|
|
183
|
+
traces: @config.traces
|
|
93
184
|
showGrid: @config.showGrid
|
|
94
185
|
shadows: @config.shadows
|
|
95
186
|
interactive: @config.interactive
|
|
@@ -113,7 +204,14 @@ orbital ChemistryCanvasOrbital {
|
|
|
113
204
|
atoms: @payload.atoms
|
|
114
205
|
bonds: @payload.bonds
|
|
115
206
|
arrows: @payload.arrows
|
|
207
|
+
bondStyle: @config.bondStyle
|
|
208
|
+
containers: @payload.containers
|
|
209
|
+
equation: @config.equation
|
|
210
|
+
equationColor: @config.equationColor
|
|
211
|
+
lattice3d: @config.lattice3d
|
|
116
212
|
shapes: @payload.shapes
|
|
213
|
+
readouts: @payload.readouts
|
|
214
|
+
traces: @payload.traces
|
|
117
215
|
showGrid: @config.showGrid
|
|
118
216
|
shadows: @config.shadows
|
|
119
217
|
interactive: @config.interactive
|
|
@@ -138,7 +236,10 @@ orbital ChemistryCanvasOrbital {
|
|
|
138
236
|
atoms : [ChemistryCanvasAtomsItem]
|
|
139
237
|
bonds : [ChemistryCanvasBondsItem]
|
|
140
238
|
arrows : [ChemistryCanvasArrowsItem]
|
|
239
|
+
containers : [ChemistryCanvasContainersItem]
|
|
141
240
|
shapes : [ChemistryCanvasShapesItem]
|
|
241
|
+
readouts : [ChemistryCanvasReadoutsItem]
|
|
242
|
+
traces : [ChemistryCanvasTracesItem]
|
|
142
243
|
}
|
|
143
244
|
@description "Live scene update; payload carries the current drawable state."
|
|
144
245
|
@synonyms "tick, redraw, animate, frame"
|
|
@@ -194,10 +295,40 @@ orbital ChemistryCanvasOrbital {
|
|
|
194
295
|
@label "Arrows"
|
|
195
296
|
@description "arrows prop"
|
|
196
297
|
@tier "presentation"
|
|
298
|
+
bondStyle : "thick" | "parallel" = thick
|
|
299
|
+
@label "Bond Style"
|
|
300
|
+
@description "Bond line rendering: 'thick' varies stroke width by order (default), 'parallel' draws offset parallel strokes. 2D only."
|
|
301
|
+
@tier "presentation"
|
|
302
|
+
containers : [ChemistryCanvasContainersItem] = []
|
|
303
|
+
@label "Containers"
|
|
304
|
+
@description "Beaker/flask/container outlines (2D only)."
|
|
305
|
+
@synonyms "beaker, flask, box, membrane, burette"
|
|
306
|
+
@tier "presentation"
|
|
307
|
+
equation : string
|
|
308
|
+
@label "Equation"
|
|
309
|
+
@description "Reaction equation text centered at the top of the canvas. 2D only."
|
|
310
|
+
@synonyms "reaction equation, formula"
|
|
311
|
+
@tier "presentation"
|
|
312
|
+
equationColor : string
|
|
313
|
+
@label "Equation Color"
|
|
314
|
+
@description "Equation text color (default '#111827')."
|
|
315
|
+
@tier "presentation"
|
|
316
|
+
lattice3d : ChemistryCanvasLattice3d
|
|
317
|
+
@label "Lattice3d"
|
|
318
|
+
@description "A 3D crystal lattice block (simple cubic, BCC, FCC, rock salt, diamond, ...). 3D only."
|
|
319
|
+
@tier "presentation"
|
|
197
320
|
shapes : [ChemistryCanvasShapesItem] = []
|
|
198
321
|
@label "Shapes"
|
|
199
322
|
@description "Extra declarative shapes in canvas pixel coordinates (2D mode only — ignored in 3D)."
|
|
200
323
|
@tier "presentation"
|
|
324
|
+
readouts : [ChemistryCanvasReadoutsItem] = []
|
|
325
|
+
@label "Readouts"
|
|
326
|
+
@description "Top-right status chip row, forwarded to LearningCanvas verbatim."
|
|
327
|
+
@tier "presentation"
|
|
328
|
+
traces : [ChemistryCanvasTracesItem] = []
|
|
329
|
+
@label "Traces"
|
|
330
|
+
@description "Inset sparkline panels, forwarded to LearningCanvas verbatim."
|
|
331
|
+
@tier "presentation"
|
|
201
332
|
showGrid : boolean
|
|
202
333
|
@label "Show Grid"
|
|
203
334
|
@description "3D only: show the ground grid (default off)."
|
|
@@ -2,7 +2,7 @@ app ui-learning-canvas "1.0.0"
|
|
|
2
2
|
"LearningCanvas — UI factory (1:1 with the @almadar/ui learning-canvas pattern)."
|
|
3
3
|
orbital LearningCanvasOrbital {
|
|
4
4
|
type LearningCanvasShapesItem = {
|
|
5
|
-
type : "line" | "arrow" | "circle" | "rect" | "polygon" | "path" | "text" | "axis" | "grid"!
|
|
5
|
+
type : "line" | "arrow" | "circle" | "ellipse" | "rect" | "polygon" | "path" | "text" | "axis" | "grid" | "venn-region"!
|
|
6
6
|
id : string
|
|
7
7
|
x : number
|
|
8
8
|
y : number
|
|
@@ -27,11 +27,42 @@ orbital LearningCanvasOrbital {
|
|
|
27
27
|
fill : string
|
|
28
28
|
lineWidth : number
|
|
29
29
|
opacity : number
|
|
30
|
+
startAngle : number
|
|
31
|
+
endAngle : number
|
|
32
|
+
dash : "dashed" | "dotted"
|
|
33
|
+
inside : [string]
|
|
34
|
+
outside : [string]
|
|
30
35
|
}
|
|
31
36
|
type LearningCanvasShapesItemPointsItem = {
|
|
32
37
|
x : number!
|
|
33
38
|
y : number!
|
|
34
39
|
}
|
|
40
|
+
type LearningCanvasReadoutsItem = {
|
|
41
|
+
label : string!
|
|
42
|
+
value : string!
|
|
43
|
+
color : string
|
|
44
|
+
}
|
|
45
|
+
type LearningCanvasTracesItem = {
|
|
46
|
+
x : number
|
|
47
|
+
y : number
|
|
48
|
+
width : number
|
|
49
|
+
height : number
|
|
50
|
+
series : [LearningCanvasTracesItemSeriesItem]!
|
|
51
|
+
xLabel : string
|
|
52
|
+
yLabel : string
|
|
53
|
+
frameColor : string
|
|
54
|
+
backgroundColor : string
|
|
55
|
+
backgroundOpacity : number
|
|
56
|
+
}
|
|
57
|
+
type LearningCanvasTracesItemSeriesItem = {
|
|
58
|
+
samples : [LearningCanvasTracesItemSeriesItemSamplesItem]!
|
|
59
|
+
color : string
|
|
60
|
+
label : string
|
|
61
|
+
}
|
|
62
|
+
type LearningCanvasTracesItemSeriesItemSamplesItem = {
|
|
63
|
+
x : number!
|
|
64
|
+
y : number!
|
|
65
|
+
}
|
|
35
66
|
type LearningCanvasError = {
|
|
36
67
|
message : string!
|
|
37
68
|
name : string
|
|
@@ -64,6 +95,8 @@ orbital LearningCanvasOrbital {
|
|
|
64
95
|
height: @config.height
|
|
65
96
|
backgroundColor: @config.backgroundColor
|
|
66
97
|
shapes: @config.shapes
|
|
98
|
+
readouts: @config.readouts
|
|
99
|
+
traces: @config.traces
|
|
67
100
|
interactive: @config.interactive
|
|
68
101
|
animate: @config.animate
|
|
69
102
|
onShapeClick: @config.onShapeClick
|
|
@@ -79,6 +112,8 @@ orbital LearningCanvasOrbital {
|
|
|
79
112
|
height: @config.height
|
|
80
113
|
backgroundColor: @config.backgroundColor
|
|
81
114
|
shapes: @payload.shapes
|
|
115
|
+
readouts: @payload.readouts
|
|
116
|
+
traces: @payload.traces
|
|
82
117
|
interactive: @config.interactive
|
|
83
118
|
animate: @config.animate
|
|
84
119
|
onShapeClick: @config.onShapeClick
|
|
@@ -105,6 +140,8 @@ orbital LearningCanvasOrbital {
|
|
|
105
140
|
listens {
|
|
106
141
|
UPDATE {
|
|
107
142
|
shapes : [LearningCanvasShapesItem]
|
|
143
|
+
readouts : [LearningCanvasReadoutsItem]
|
|
144
|
+
traces : [LearningCanvasTracesItem]
|
|
108
145
|
}
|
|
109
146
|
@description "Live scene update; payload carries the current drawable state."
|
|
110
147
|
@synonyms "tick, redraw, animate, frame"
|
|
@@ -132,6 +169,16 @@ orbital LearningCanvasOrbital {
|
|
|
132
169
|
@label "Shapes"
|
|
133
170
|
@description "Declarative shapes to draw."
|
|
134
171
|
@tier "presentation"
|
|
172
|
+
readouts : [LearningCanvasReadoutsItem] = []
|
|
173
|
+
@label "Readouts"
|
|
174
|
+
@description "Top-right status chip row (live measurements, scores, counters)."
|
|
175
|
+
@synonyms "chips, stats, measurements"
|
|
176
|
+
@tier "presentation"
|
|
177
|
+
traces : [LearningCanvasTracesItem] = []
|
|
178
|
+
@label "Traces"
|
|
179
|
+
@description "Inset sparkline panels stacked from the bottom-right corner."
|
|
180
|
+
@synonyms "sparkline, time series, history plot"
|
|
181
|
+
@tier "presentation"
|
|
135
182
|
interactive : boolean = false
|
|
136
183
|
@label "Interactive"
|
|
137
184
|
@description "Enable pointer interaction (click/hover)."
|
|
@@ -5,6 +5,7 @@ orbital MathCanvasOrbital {
|
|
|
5
5
|
label : string
|
|
6
6
|
color : string
|
|
7
7
|
samples : [MathCanvasCurvesItemSamplesItem]!
|
|
8
|
+
dash : "dashed" | "dotted"
|
|
8
9
|
}
|
|
9
10
|
type MathCanvasCurvesItemSamplesItem = {
|
|
10
11
|
x : number!
|
|
@@ -16,6 +17,7 @@ orbital MathCanvasOrbital {
|
|
|
16
17
|
label : string
|
|
17
18
|
color : string
|
|
18
19
|
radius : number
|
|
20
|
+
style : "closed" | "open"
|
|
19
21
|
}
|
|
20
22
|
type MathCanvasVectorsItem = {
|
|
21
23
|
x : number!
|
|
@@ -25,8 +27,54 @@ orbital MathCanvasOrbital {
|
|
|
25
27
|
color : string
|
|
26
28
|
label : string
|
|
27
29
|
}
|
|
30
|
+
type MathCanvasRegionsItem = {
|
|
31
|
+
samples : [MathCanvasRegionsItemSamplesItem]!
|
|
32
|
+
samples2 : [MathCanvasRegionsItemSamples2Item]
|
|
33
|
+
baseline : number
|
|
34
|
+
color : string
|
|
35
|
+
opacity : number
|
|
36
|
+
label : string
|
|
37
|
+
}
|
|
38
|
+
type MathCanvasRegionsItemSamplesItem = {
|
|
39
|
+
x : number!
|
|
40
|
+
y : number!
|
|
41
|
+
}
|
|
42
|
+
type MathCanvasRegionsItemSamples2Item = {
|
|
43
|
+
x : number!
|
|
44
|
+
y : number!
|
|
45
|
+
}
|
|
46
|
+
type MathCanvasBarsItem = {
|
|
47
|
+
x : number!
|
|
48
|
+
width : number!
|
|
49
|
+
y0 : number
|
|
50
|
+
y1 : number!
|
|
51
|
+
color : string
|
|
52
|
+
opacity : number
|
|
53
|
+
}
|
|
54
|
+
type MathCanvasGuidesItem = {
|
|
55
|
+
kind : "vline" | "hline"!
|
|
56
|
+
at : number!
|
|
57
|
+
color : string
|
|
58
|
+
dash : "dashed" | "dotted"
|
|
59
|
+
label : string
|
|
60
|
+
}
|
|
61
|
+
type MathCanvasAnglesItem = {
|
|
62
|
+
x : number!
|
|
63
|
+
y : number!
|
|
64
|
+
from : number!
|
|
65
|
+
to : number!
|
|
66
|
+
radius : number
|
|
67
|
+
color : string
|
|
68
|
+
label : string
|
|
69
|
+
}
|
|
70
|
+
type MathCanvasHopsItem = {
|
|
71
|
+
from : number!
|
|
72
|
+
to : number!
|
|
73
|
+
color : string
|
|
74
|
+
label : string
|
|
75
|
+
}
|
|
28
76
|
type MathCanvasShapesItem = {
|
|
29
|
-
type : "line" | "arrow" | "circle" | "rect" | "polygon" | "path" | "text" | "axis" | "grid"!
|
|
77
|
+
type : "line" | "arrow" | "circle" | "ellipse" | "rect" | "polygon" | "path" | "text" | "axis" | "grid" | "venn-region"!
|
|
30
78
|
id : string
|
|
31
79
|
x : number
|
|
32
80
|
y : number
|
|
@@ -51,11 +99,42 @@ orbital MathCanvasOrbital {
|
|
|
51
99
|
fill : string
|
|
52
100
|
lineWidth : number
|
|
53
101
|
opacity : number
|
|
102
|
+
startAngle : number
|
|
103
|
+
endAngle : number
|
|
104
|
+
dash : "dashed" | "dotted"
|
|
105
|
+
inside : [string]
|
|
106
|
+
outside : [string]
|
|
54
107
|
}
|
|
55
108
|
type MathCanvasShapesItemPointsItem = {
|
|
56
109
|
x : number!
|
|
57
110
|
y : number!
|
|
58
111
|
}
|
|
112
|
+
type MathCanvasReadoutsItem = {
|
|
113
|
+
label : string!
|
|
114
|
+
value : string!
|
|
115
|
+
color : string
|
|
116
|
+
}
|
|
117
|
+
type MathCanvasTracesItem = {
|
|
118
|
+
x : number
|
|
119
|
+
y : number
|
|
120
|
+
width : number
|
|
121
|
+
height : number
|
|
122
|
+
series : [MathCanvasTracesItemSeriesItem]!
|
|
123
|
+
xLabel : string
|
|
124
|
+
yLabel : string
|
|
125
|
+
frameColor : string
|
|
126
|
+
backgroundColor : string
|
|
127
|
+
backgroundOpacity : number
|
|
128
|
+
}
|
|
129
|
+
type MathCanvasTracesItemSeriesItem = {
|
|
130
|
+
samples : [MathCanvasTracesItemSeriesItemSamplesItem]!
|
|
131
|
+
color : string
|
|
132
|
+
label : string
|
|
133
|
+
}
|
|
134
|
+
type MathCanvasTracesItemSeriesItemSamplesItem = {
|
|
135
|
+
x : number!
|
|
136
|
+
y : number!
|
|
137
|
+
}
|
|
59
138
|
type MathCanvasError = {
|
|
60
139
|
message : string!
|
|
61
140
|
name : string
|
|
@@ -89,10 +168,19 @@ orbital MathCanvasOrbital {
|
|
|
89
168
|
showAxes: @config.showAxes
|
|
90
169
|
showGrid: @config.showGrid
|
|
91
170
|
gridStep: @config.gridStep
|
|
171
|
+
showTickLabels: @config.showTickLabels
|
|
172
|
+
showCurveLabels: @config.showCurveLabels
|
|
92
173
|
curves: @config.curves
|
|
93
174
|
points: @config.points
|
|
94
175
|
vectors: @config.vectors
|
|
176
|
+
regions: @config.regions
|
|
177
|
+
bars: @config.bars
|
|
178
|
+
guides: @config.guides
|
|
179
|
+
angles: @config.angles
|
|
180
|
+
hops: @config.hops
|
|
95
181
|
shapes: @config.shapes
|
|
182
|
+
readouts: @config.readouts
|
|
183
|
+
traces: @config.traces
|
|
96
184
|
interactive: @config.interactive
|
|
97
185
|
animate: @config.animate
|
|
98
186
|
onShapeClick: @config.onShapeClick
|
|
@@ -113,10 +201,19 @@ orbital MathCanvasOrbital {
|
|
|
113
201
|
showAxes: @config.showAxes
|
|
114
202
|
showGrid: @config.showGrid
|
|
115
203
|
gridStep: @config.gridStep
|
|
204
|
+
showTickLabels: @config.showTickLabels
|
|
205
|
+
showCurveLabels: @config.showCurveLabels
|
|
116
206
|
curves: @payload.curves
|
|
117
207
|
points: @payload.points
|
|
118
208
|
vectors: @payload.vectors
|
|
209
|
+
regions: @payload.regions
|
|
210
|
+
bars: @payload.bars
|
|
211
|
+
guides: @payload.guides
|
|
212
|
+
angles: @payload.angles
|
|
213
|
+
hops: @payload.hops
|
|
119
214
|
shapes: @payload.shapes
|
|
215
|
+
readouts: @payload.readouts
|
|
216
|
+
traces: @payload.traces
|
|
120
217
|
interactive: @config.interactive
|
|
121
218
|
animate: @config.animate
|
|
122
219
|
onShapeClick: @config.onShapeClick
|
|
@@ -139,7 +236,14 @@ orbital MathCanvasOrbital {
|
|
|
139
236
|
curves : [MathCanvasCurvesItem]
|
|
140
237
|
points : [MathCanvasPointsItem]
|
|
141
238
|
vectors : [MathCanvasVectorsItem]
|
|
239
|
+
regions : [MathCanvasRegionsItem]
|
|
240
|
+
bars : [MathCanvasBarsItem]
|
|
241
|
+
guides : [MathCanvasGuidesItem]
|
|
242
|
+
angles : [MathCanvasAnglesItem]
|
|
243
|
+
hops : [MathCanvasHopsItem]
|
|
142
244
|
shapes : [MathCanvasShapesItem]
|
|
245
|
+
readouts : [MathCanvasReadoutsItem]
|
|
246
|
+
traces : [MathCanvasTracesItem]
|
|
143
247
|
}
|
|
144
248
|
@description "Live scene update; payload carries the current drawable state."
|
|
145
249
|
@synonyms "tick, redraw, animate, frame"
|
|
@@ -191,6 +295,14 @@ orbital MathCanvasOrbital {
|
|
|
191
295
|
@label "Grid Step"
|
|
192
296
|
@description "gridStep prop"
|
|
193
297
|
@tier "presentation"
|
|
298
|
+
showTickLabels : boolean = false
|
|
299
|
+
@label "Show Tick Labels"
|
|
300
|
+
@description "Draw numeric labels on grid lines (default false)."
|
|
301
|
+
@tier "presentation"
|
|
302
|
+
showCurveLabels : boolean = false
|
|
303
|
+
@label "Show Curve Labels"
|
|
304
|
+
@description "Draw each curve's `label` at its last in-range sample (default false)."
|
|
305
|
+
@tier "presentation"
|
|
194
306
|
curves : [MathCanvasCurvesItem] = []
|
|
195
307
|
@label "Curves"
|
|
196
308
|
@description "curves prop"
|
|
@@ -203,10 +315,38 @@ orbital MathCanvasOrbital {
|
|
|
203
315
|
@label "Vectors"
|
|
204
316
|
@description "vectors prop"
|
|
205
317
|
@tier "presentation"
|
|
318
|
+
regions : [MathCanvasRegionsItem] = []
|
|
319
|
+
@label "Regions"
|
|
320
|
+
@description "Filled areas under curves or between curve pairs."
|
|
321
|
+
@tier "presentation"
|
|
322
|
+
bars : [MathCanvasBarsItem] = []
|
|
323
|
+
@label "Bars"
|
|
324
|
+
@description "Riemann/histogram bar strips."
|
|
325
|
+
@tier "presentation"
|
|
326
|
+
guides : [MathCanvasGuidesItem] = []
|
|
327
|
+
@label "Guides"
|
|
328
|
+
@description "Fixed reference lines (vline/hline)."
|
|
329
|
+
@tier "presentation"
|
|
330
|
+
angles : [MathCanvasAnglesItem] = []
|
|
331
|
+
@label "Angles"
|
|
332
|
+
@description "Angle-sweep arcs at a vertex."
|
|
333
|
+
@tier "presentation"
|
|
334
|
+
hops : [MathCanvasHopsItem] = []
|
|
335
|
+
@label "Hops"
|
|
336
|
+
@description "Number-line jump arcs."
|
|
337
|
+
@tier "presentation"
|
|
206
338
|
shapes : [MathCanvasShapesItem] = []
|
|
207
339
|
@label "Shapes"
|
|
208
340
|
@description "Extra declarative shapes in canvas pixel coordinates."
|
|
209
341
|
@tier "presentation"
|
|
342
|
+
readouts : [MathCanvasReadoutsItem] = []
|
|
343
|
+
@label "Readouts"
|
|
344
|
+
@description "Top-right status chips, forwarded verbatim to LearningCanvas."
|
|
345
|
+
@tier "presentation"
|
|
346
|
+
traces : [MathCanvasTracesItem] = []
|
|
347
|
+
@label "Traces"
|
|
348
|
+
@description "Inset sparkline panels, forwarded verbatim to LearningCanvas."
|
|
349
|
+
@tier "presentation"
|
|
210
350
|
interactive : boolean = false
|
|
211
351
|
@label "Interactive"
|
|
212
352
|
@description "interactive prop"
|