@nakafa/aksara-contracts 8.1.0 → 8.4.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/math/boundary.d.ts +9 -0
- package/dist/math/boundary.js +81 -0
- package/dist/math/curve.d.ts +1 -0
- package/dist/math/curve.js +4 -2
- package/dist/math/formula/affine.d.ts +22 -0
- package/dist/math/formula/affine.js +79 -0
- package/dist/math/formula/contour.js +27 -12
- package/dist/math/object.d.ts +12 -0
- package/dist/math/object.js +11 -0
- package/dist/math/plane.d.ts +10 -0
- package/dist/math/plane.js +7 -1
- package/dist/math/space.d.ts +8 -0
- package/dist/math/space.js +5 -1
- package/dist/math/visual.d.ts +239 -212
- package/dist/visual/base/math.d.ts +78 -0
- package/dist/visual/base/math.js +31 -3
- package/dist/visual/base/media.d.ts +67 -0
- package/dist/visual/biology/bacteria.d.ts +268 -0
- package/dist/visual/biology/cell.d.ts +201 -0
- package/dist/visual/biology/climate.d.ts +201 -0
- package/dist/visual/biology/ecology.d.ts +268 -0
- package/dist/visual/biology/physiology.d.ts +201 -0
- package/dist/visual/biology/plant.d.ts +335 -0
- package/dist/visual/biology.d.ts +16 -16
- package/dist/visual/biology.js +2 -2
- package/dist/visual/card.d.ts +79 -1
- package/dist/visual/card.js +18 -2
- package/dist/visual/catalog.d.ts +14808 -28
- package/dist/visual/catalog.js +26 -0
- package/dist/visual/chemistry/atom.d.ts +203 -2
- package/dist/visual/chemistry/atom.js +2 -2
- package/dist/visual/chemistry/balance.d.ts +335 -0
- package/dist/visual/chemistry/bonding.d.ts +335 -0
- package/dist/visual/chemistry/discovery.d.ts +469 -0
- package/dist/visual/chemistry/electrochemistry.d.ts +134 -0
- package/dist/visual/chemistry/electron.d.ts +134 -0
- package/dist/visual/chemistry/laws.d.ts +268 -0
- package/dist/visual/chemistry/particles.d.ts +335 -0
- package/dist/visual/chemistry/periodic.d.ts +134 -0
- package/dist/visual/chemistry/rate.d.ts +67 -0
- package/dist/visual/chemistry/reaction.d.ts +201 -0
- package/dist/visual/chemistry/titration.d.ts +67 -0
- package/dist/visual/length.d.ts +79 -0
- package/dist/visual/length.js +37 -0
- package/dist/visual/mathematics/chance.d.ts +258 -0
- package/dist/visual/mathematics/chance.js +117 -0
- package/dist/visual/mathematics/chart.d.ts +67 -0
- package/dist/visual/mathematics/charts.d.ts +335 -0
- package/dist/visual/mathematics/function.d.ts +205 -4
- package/dist/visual/mathematics/function.js +4 -4
- package/dist/visual/mathematics/geometry.d.ts +1 -1
- package/dist/visual/mathematics/geometry.js +1 -1
- package/dist/visual/mathematics/numeral.d.ts +170 -0
- package/dist/visual/mathematics/numeral.js +85 -0
- package/dist/visual/physics/braking.d.ts +268 -0
- package/dist/visual/physics/circuit.d.ts +343 -0
- package/dist/visual/physics/circuit.js +86 -0
- package/dist/visual/physics/circular.d.ts +134 -0
- package/dist/visual/physics/dynamics.d.ts +579 -0
- package/dist/visual/physics/dynamics.js +134 -0
- package/dist/visual/physics/efficiency.d.ts +402 -0
- package/dist/visual/physics/electronics.d.ts +260 -0
- package/dist/visual/physics/electronics.js +71 -0
- package/dist/visual/physics/falling.d.ts +268 -0
- package/dist/visual/physics/field.d.ts +249 -0
- package/dist/visual/physics/field.js +60 -0
- package/dist/visual/physics/fluid.d.ts +336 -0
- package/dist/visual/physics/fluid.js +83 -0
- package/dist/visual/physics/force.d.ts +335 -0
- package/dist/visual/physics/gravity.d.ts +172 -0
- package/dist/visual/physics/gravity.js +47 -0
- package/dist/visual/physics/heat.d.ts +255 -0
- package/dist/visual/physics/heat.js +66 -0
- package/dist/visual/physics/instrument.d.ts +469 -0
- package/dist/visual/physics/light.d.ts +343 -0
- package/dist/visual/physics/light.js +90 -0
- package/dist/visual/physics/measurement.d.ts +268 -0
- package/dist/visual/physics/motion.d.ts +402 -0
- package/dist/visual/physics/nuclear.d.ts +258 -0
- package/dist/visual/physics/nuclear.js +69 -0
- package/dist/visual/physics/parabolic.d.ts +69 -2
- package/dist/visual/physics/parabolic.js +2 -2
- package/dist/visual/physics/position.d.ts +402 -0
- package/dist/visual/physics/power.d.ts +536 -0
- package/dist/visual/physics/precision.d.ts +469 -0
- package/dist/visual/physics/product.d.ts +268 -0
- package/dist/visual/physics/reading.d.ts +253 -0
- package/dist/visual/physics/reading.js +61 -0
- package/dist/visual/physics/record.d.ts +134 -0
- package/dist/visual/physics/relative.d.ts +201 -0
- package/dist/visual/physics/solar.d.ts +402 -0
- package/dist/visual/physics/vector.d.ts +335 -0
- package/dist/visual/physics/velocity.d.ts +469 -0
- package/dist/visual/physics/wave.d.ts +338 -0
- package/dist/visual/physics/wave.js +85 -0
- package/dist/visual/politics.d.ts +403 -1
- package/dist/visual/politics.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { type RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/**
|
|
4
|
+
* The props of the nuclear and quantum physics labs. Each prop is a value from the item the lab
|
|
5
|
+
* draws, never the conclusion it leads to, so none holds answer state.
|
|
6
|
+
*/
|
|
7
|
+
export declare function nuclearVisuals<E>(rich: RichSlot<E>): {
|
|
8
|
+
HalfLifeCounterLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
9
|
+
readonly description: RichSlot<E>;
|
|
10
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
11
|
+
readonly attrs: {
|
|
12
|
+
readonly latex: string;
|
|
13
|
+
};
|
|
14
|
+
readonly type: "mathInline";
|
|
15
|
+
} | {
|
|
16
|
+
readonly marks?: readonly [{
|
|
17
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
18
|
+
} | {
|
|
19
|
+
readonly attrs: {
|
|
20
|
+
readonly href: string;
|
|
21
|
+
};
|
|
22
|
+
readonly type: "link";
|
|
23
|
+
} | {
|
|
24
|
+
readonly attrs: {
|
|
25
|
+
readonly variant: "success" | "warning" | null;
|
|
26
|
+
};
|
|
27
|
+
readonly type: "highlight";
|
|
28
|
+
}, ...({
|
|
29
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
30
|
+
} | {
|
|
31
|
+
readonly attrs: {
|
|
32
|
+
readonly href: string;
|
|
33
|
+
};
|
|
34
|
+
readonly type: "link";
|
|
35
|
+
} | {
|
|
36
|
+
readonly attrs: {
|
|
37
|
+
readonly variant: "success" | "warning" | null;
|
|
38
|
+
};
|
|
39
|
+
readonly type: "highlight";
|
|
40
|
+
})[]];
|
|
41
|
+
readonly text: string;
|
|
42
|
+
readonly type: "text";
|
|
43
|
+
}, ...({
|
|
44
|
+
readonly attrs: {
|
|
45
|
+
readonly latex: string;
|
|
46
|
+
};
|
|
47
|
+
readonly type: "mathInline";
|
|
48
|
+
} | {
|
|
49
|
+
readonly marks?: readonly [{
|
|
50
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
51
|
+
} | {
|
|
52
|
+
readonly attrs: {
|
|
53
|
+
readonly href: string;
|
|
54
|
+
};
|
|
55
|
+
readonly type: "link";
|
|
56
|
+
} | {
|
|
57
|
+
readonly attrs: {
|
|
58
|
+
readonly variant: "success" | "warning" | null;
|
|
59
|
+
};
|
|
60
|
+
readonly type: "highlight";
|
|
61
|
+
}, ...({
|
|
62
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
63
|
+
} | {
|
|
64
|
+
readonly attrs: {
|
|
65
|
+
readonly href: string;
|
|
66
|
+
};
|
|
67
|
+
readonly type: "link";
|
|
68
|
+
} | {
|
|
69
|
+
readonly attrs: {
|
|
70
|
+
readonly variant: "success" | "warning" | null;
|
|
71
|
+
};
|
|
72
|
+
readonly type: "highlight";
|
|
73
|
+
})[]];
|
|
74
|
+
readonly text: string;
|
|
75
|
+
readonly type: "text";
|
|
76
|
+
})[]], E, never, never>>;
|
|
77
|
+
readonly title: RichSlot<E>;
|
|
78
|
+
readonly background: Schema.Finite;
|
|
79
|
+
readonly first: Schema.Finite;
|
|
80
|
+
readonly labels: Schema.Struct<{
|
|
81
|
+
readonly end: RichSlot<E>;
|
|
82
|
+
readonly halfLife: RichSlot<E>;
|
|
83
|
+
readonly start: RichSlot<E>;
|
|
84
|
+
readonly viewLabel: Schema.Trimmed;
|
|
85
|
+
}>;
|
|
86
|
+
readonly later: Schema.Finite;
|
|
87
|
+
readonly time: Schema.Finite;
|
|
88
|
+
}>, "figure">;
|
|
89
|
+
FissionLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
90
|
+
readonly description: RichSlot<E>;
|
|
91
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
92
|
+
readonly attrs: {
|
|
93
|
+
readonly latex: string;
|
|
94
|
+
};
|
|
95
|
+
readonly type: "mathInline";
|
|
96
|
+
} | {
|
|
97
|
+
readonly marks?: readonly [{
|
|
98
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
99
|
+
} | {
|
|
100
|
+
readonly attrs: {
|
|
101
|
+
readonly href: string;
|
|
102
|
+
};
|
|
103
|
+
readonly type: "link";
|
|
104
|
+
} | {
|
|
105
|
+
readonly attrs: {
|
|
106
|
+
readonly variant: "success" | "warning" | null;
|
|
107
|
+
};
|
|
108
|
+
readonly type: "highlight";
|
|
109
|
+
}, ...({
|
|
110
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
111
|
+
} | {
|
|
112
|
+
readonly attrs: {
|
|
113
|
+
readonly href: string;
|
|
114
|
+
};
|
|
115
|
+
readonly type: "link";
|
|
116
|
+
} | {
|
|
117
|
+
readonly attrs: {
|
|
118
|
+
readonly variant: "success" | "warning" | null;
|
|
119
|
+
};
|
|
120
|
+
readonly type: "highlight";
|
|
121
|
+
})[]];
|
|
122
|
+
readonly text: string;
|
|
123
|
+
readonly type: "text";
|
|
124
|
+
}, ...({
|
|
125
|
+
readonly attrs: {
|
|
126
|
+
readonly latex: string;
|
|
127
|
+
};
|
|
128
|
+
readonly type: "mathInline";
|
|
129
|
+
} | {
|
|
130
|
+
readonly marks?: readonly [{
|
|
131
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
132
|
+
} | {
|
|
133
|
+
readonly attrs: {
|
|
134
|
+
readonly href: string;
|
|
135
|
+
};
|
|
136
|
+
readonly type: "link";
|
|
137
|
+
} | {
|
|
138
|
+
readonly attrs: {
|
|
139
|
+
readonly variant: "success" | "warning" | null;
|
|
140
|
+
};
|
|
141
|
+
readonly type: "highlight";
|
|
142
|
+
}, ...({
|
|
143
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
144
|
+
} | {
|
|
145
|
+
readonly attrs: {
|
|
146
|
+
readonly href: string;
|
|
147
|
+
};
|
|
148
|
+
readonly type: "link";
|
|
149
|
+
} | {
|
|
150
|
+
readonly attrs: {
|
|
151
|
+
readonly variant: "success" | "warning" | null;
|
|
152
|
+
};
|
|
153
|
+
readonly type: "highlight";
|
|
154
|
+
})[]];
|
|
155
|
+
readonly text: string;
|
|
156
|
+
readonly type: "text";
|
|
157
|
+
})[]], E, never, never>>;
|
|
158
|
+
readonly title: RichSlot<E>;
|
|
159
|
+
readonly fragments: Schema.Tuple<readonly [Schema.Finite, Schema.Finite]>;
|
|
160
|
+
readonly labels: Schema.Struct<{
|
|
161
|
+
readonly defect: RichSlot<E>;
|
|
162
|
+
readonly energy: RichSlot<E>;
|
|
163
|
+
readonly kilograms: RichSlot<E>;
|
|
164
|
+
readonly viewLabel: Schema.Trimmed;
|
|
165
|
+
}>;
|
|
166
|
+
readonly lightSpeed: Schema.Finite;
|
|
167
|
+
readonly neutron: Schema.Finite;
|
|
168
|
+
readonly parent: Schema.Finite;
|
|
169
|
+
readonly released: Schema.Finite;
|
|
170
|
+
readonly unit: Schema.Finite;
|
|
171
|
+
}>, "figure">;
|
|
172
|
+
PhotoelectricLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
173
|
+
readonly description: RichSlot<E>;
|
|
174
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
175
|
+
readonly attrs: {
|
|
176
|
+
readonly latex: string;
|
|
177
|
+
};
|
|
178
|
+
readonly type: "mathInline";
|
|
179
|
+
} | {
|
|
180
|
+
readonly marks?: readonly [{
|
|
181
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
182
|
+
} | {
|
|
183
|
+
readonly attrs: {
|
|
184
|
+
readonly href: string;
|
|
185
|
+
};
|
|
186
|
+
readonly type: "link";
|
|
187
|
+
} | {
|
|
188
|
+
readonly attrs: {
|
|
189
|
+
readonly variant: "success" | "warning" | null;
|
|
190
|
+
};
|
|
191
|
+
readonly type: "highlight";
|
|
192
|
+
}, ...({
|
|
193
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
194
|
+
} | {
|
|
195
|
+
readonly attrs: {
|
|
196
|
+
readonly href: string;
|
|
197
|
+
};
|
|
198
|
+
readonly type: "link";
|
|
199
|
+
} | {
|
|
200
|
+
readonly attrs: {
|
|
201
|
+
readonly variant: "success" | "warning" | null;
|
|
202
|
+
};
|
|
203
|
+
readonly type: "highlight";
|
|
204
|
+
})[]];
|
|
205
|
+
readonly text: string;
|
|
206
|
+
readonly type: "text";
|
|
207
|
+
}, ...({
|
|
208
|
+
readonly attrs: {
|
|
209
|
+
readonly latex: string;
|
|
210
|
+
};
|
|
211
|
+
readonly type: "mathInline";
|
|
212
|
+
} | {
|
|
213
|
+
readonly marks?: readonly [{
|
|
214
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
215
|
+
} | {
|
|
216
|
+
readonly attrs: {
|
|
217
|
+
readonly href: string;
|
|
218
|
+
};
|
|
219
|
+
readonly type: "link";
|
|
220
|
+
} | {
|
|
221
|
+
readonly attrs: {
|
|
222
|
+
readonly variant: "success" | "warning" | null;
|
|
223
|
+
};
|
|
224
|
+
readonly type: "highlight";
|
|
225
|
+
}, ...({
|
|
226
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
227
|
+
} | {
|
|
228
|
+
readonly attrs: {
|
|
229
|
+
readonly href: string;
|
|
230
|
+
};
|
|
231
|
+
readonly type: "link";
|
|
232
|
+
} | {
|
|
233
|
+
readonly attrs: {
|
|
234
|
+
readonly variant: "success" | "warning" | null;
|
|
235
|
+
};
|
|
236
|
+
readonly type: "highlight";
|
|
237
|
+
})[]];
|
|
238
|
+
readonly text: string;
|
|
239
|
+
readonly type: "text";
|
|
240
|
+
})[]], E, never, never>>;
|
|
241
|
+
readonly title: RichSlot<E>;
|
|
242
|
+
readonly charge: Schema.Finite;
|
|
243
|
+
readonly labels: Schema.Struct<{
|
|
244
|
+
readonly energy: RichSlot<E>;
|
|
245
|
+
readonly intensity: RichSlot<E>;
|
|
246
|
+
readonly intensityName: Schema.Trimmed;
|
|
247
|
+
readonly kinetic: RichSlot<E>;
|
|
248
|
+
readonly none: RichSlot<E>;
|
|
249
|
+
readonly viewLabel: Schema.Trimmed;
|
|
250
|
+
readonly wavelength: RichSlot<E>;
|
|
251
|
+
readonly wavelengthName: Schema.Trimmed;
|
|
252
|
+
}>;
|
|
253
|
+
readonly lightSpeed: Schema.Finite;
|
|
254
|
+
readonly planck: Schema.Finite;
|
|
255
|
+
readonly wavelength: Schema.Finite;
|
|
256
|
+
readonly workFunction: Schema.Finite;
|
|
257
|
+
}>, "figure">;
|
|
258
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { cardFields, TextSchema } from "#contracts/visual/card";
|
|
3
|
+
import { figure } from "#contracts/visual/entry";
|
|
4
|
+
/** Props of `HalfLifeCounterLab`: a Geiger-Muller counter in front of a radioactive sample records its rate over time. */
|
|
5
|
+
function halfLifeCounterLab(rich) {
|
|
6
|
+
return figure(Schema.Struct({
|
|
7
|
+
...cardFields(rich),
|
|
8
|
+
background: Schema.Finite,
|
|
9
|
+
first: Schema.Finite,
|
|
10
|
+
labels: Schema.Struct({
|
|
11
|
+
end: rich,
|
|
12
|
+
halfLife: rich,
|
|
13
|
+
start: rich,
|
|
14
|
+
viewLabel: TextSchema,
|
|
15
|
+
}),
|
|
16
|
+
later: Schema.Finite,
|
|
17
|
+
time: Schema.Finite,
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
/** Props of `FissionLab`: a slow neutron splits a uranium nucleus into two fragments and a few fast neutrons. */
|
|
21
|
+
function fissionLab(rich) {
|
|
22
|
+
return figure(Schema.Struct({
|
|
23
|
+
...cardFields(rich),
|
|
24
|
+
fragments: Schema.Tuple([Schema.Finite, Schema.Finite]),
|
|
25
|
+
labels: Schema.Struct({
|
|
26
|
+
defect: rich,
|
|
27
|
+
energy: rich,
|
|
28
|
+
kilograms: rich,
|
|
29
|
+
viewLabel: TextSchema,
|
|
30
|
+
}),
|
|
31
|
+
lightSpeed: Schema.Finite,
|
|
32
|
+
neutron: Schema.Finite,
|
|
33
|
+
parent: Schema.Finite,
|
|
34
|
+
released: Schema.Finite,
|
|
35
|
+
unit: Schema.Finite,
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
/** Props of `PhotoelectricLab`: light falls on a metal plate in an evacuated tube. */
|
|
39
|
+
function photoelectricLab(rich) {
|
|
40
|
+
return figure(Schema.Struct({
|
|
41
|
+
...cardFields(rich),
|
|
42
|
+
charge: Schema.Finite,
|
|
43
|
+
labels: Schema.Struct({
|
|
44
|
+
energy: rich,
|
|
45
|
+
intensity: rich,
|
|
46
|
+
intensityName: TextSchema,
|
|
47
|
+
kinetic: rich,
|
|
48
|
+
none: rich,
|
|
49
|
+
viewLabel: TextSchema,
|
|
50
|
+
wavelength: rich,
|
|
51
|
+
wavelengthName: TextSchema,
|
|
52
|
+
}),
|
|
53
|
+
lightSpeed: Schema.Finite,
|
|
54
|
+
planck: Schema.Finite,
|
|
55
|
+
wavelength: Schema.Finite,
|
|
56
|
+
workFunction: Schema.Finite,
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The props of the nuclear and quantum physics labs. Each prop is a value from the item the lab
|
|
61
|
+
* draws, never the conclusion it leads to, so none holds answer state.
|
|
62
|
+
*/
|
|
63
|
+
export function nuclearVisuals(rich) {
|
|
64
|
+
return {
|
|
65
|
+
HalfLifeCounterLab: halfLifeCounterLab(rich),
|
|
66
|
+
FissionLab: fissionLab(rich),
|
|
67
|
+
PhotoelectricLab: photoelectricLab(rich),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -7,6 +7,73 @@ import { type RichSlot } from "#contracts/visual/card";
|
|
|
7
7
|
export declare function parabolicVisuals<E>(rich: RichSlot<E>): {
|
|
8
8
|
ParabolicMovementAnalysisLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
9
9
|
readonly description: RichSlot<E>;
|
|
10
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
11
|
+
readonly attrs: {
|
|
12
|
+
readonly latex: string;
|
|
13
|
+
};
|
|
14
|
+
readonly type: "mathInline";
|
|
15
|
+
} | {
|
|
16
|
+
readonly marks?: readonly [{
|
|
17
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
18
|
+
} | {
|
|
19
|
+
readonly attrs: {
|
|
20
|
+
readonly href: string;
|
|
21
|
+
};
|
|
22
|
+
readonly type: "link";
|
|
23
|
+
} | {
|
|
24
|
+
readonly attrs: {
|
|
25
|
+
readonly variant: "success" | "warning" | null;
|
|
26
|
+
};
|
|
27
|
+
readonly type: "highlight";
|
|
28
|
+
}, ...({
|
|
29
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
30
|
+
} | {
|
|
31
|
+
readonly attrs: {
|
|
32
|
+
readonly href: string;
|
|
33
|
+
};
|
|
34
|
+
readonly type: "link";
|
|
35
|
+
} | {
|
|
36
|
+
readonly attrs: {
|
|
37
|
+
readonly variant: "success" | "warning" | null;
|
|
38
|
+
};
|
|
39
|
+
readonly type: "highlight";
|
|
40
|
+
})[]];
|
|
41
|
+
readonly text: string;
|
|
42
|
+
readonly type: "text";
|
|
43
|
+
}, ...({
|
|
44
|
+
readonly attrs: {
|
|
45
|
+
readonly latex: string;
|
|
46
|
+
};
|
|
47
|
+
readonly type: "mathInline";
|
|
48
|
+
} | {
|
|
49
|
+
readonly marks?: readonly [{
|
|
50
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
51
|
+
} | {
|
|
52
|
+
readonly attrs: {
|
|
53
|
+
readonly href: string;
|
|
54
|
+
};
|
|
55
|
+
readonly type: "link";
|
|
56
|
+
} | {
|
|
57
|
+
readonly attrs: {
|
|
58
|
+
readonly variant: "success" | "warning" | null;
|
|
59
|
+
};
|
|
60
|
+
readonly type: "highlight";
|
|
61
|
+
}, ...({
|
|
62
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
63
|
+
} | {
|
|
64
|
+
readonly attrs: {
|
|
65
|
+
readonly href: string;
|
|
66
|
+
};
|
|
67
|
+
readonly type: "link";
|
|
68
|
+
} | {
|
|
69
|
+
readonly attrs: {
|
|
70
|
+
readonly variant: "success" | "warning" | null;
|
|
71
|
+
};
|
|
72
|
+
readonly type: "highlight";
|
|
73
|
+
})[]];
|
|
74
|
+
readonly text: string;
|
|
75
|
+
readonly type: "text";
|
|
76
|
+
})[]], E, never, never>>;
|
|
10
77
|
readonly title: RichSlot<E>;
|
|
11
78
|
readonly decimalSeparator: Schema.optionalKey<Schema.Literals<readonly ["comma", "dot"]>>;
|
|
12
79
|
readonly labels: Schema.Struct<{
|
|
@@ -26,7 +93,7 @@ export declare function parabolicVisuals<E>(rich: RichSlot<E>): {
|
|
|
26
93
|
ParabolicMovementLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
27
94
|
readonly decimalSeparator: Schema.optionalKey<Schema.Literals<readonly ["comma", "dot"]>>;
|
|
28
95
|
readonly defaultLaunchId: Schema.optionalKey<Schema.Literals<readonly ["low-angle", "balanced-angle", "high-angle"]>>;
|
|
29
|
-
readonly description:
|
|
96
|
+
readonly description: RichSlot<E>;
|
|
30
97
|
readonly labels: Schema.Struct<{
|
|
31
98
|
readonly chooseLaunch: Schema.Trimmed;
|
|
32
99
|
readonly factLabels: Schema.Struct<{
|
|
@@ -37,6 +104,6 @@ export declare function parabolicVisuals<E>(rich: RichSlot<E>): {
|
|
|
37
104
|
}>;
|
|
38
105
|
readonly viewLabel: Schema.Trimmed;
|
|
39
106
|
}>;
|
|
40
|
-
readonly title:
|
|
107
|
+
readonly title: RichSlot<E>;
|
|
41
108
|
}>, "figure">;
|
|
42
109
|
};
|
|
@@ -10,7 +10,7 @@ function parabolicLab(rich) {
|
|
|
10
10
|
return figure(Schema.Struct({
|
|
11
11
|
decimalSeparator: Schema.optionalKey(DecimalSeparatorSchema),
|
|
12
12
|
defaultLaunchId: Schema.optionalKey(Schema.Literals(LAUNCHES)),
|
|
13
|
-
description:
|
|
13
|
+
description: rich,
|
|
14
14
|
labels: Schema.Struct({
|
|
15
15
|
chooseLaunch: TextSchema,
|
|
16
16
|
factLabels: Schema.Struct({
|
|
@@ -21,7 +21,7 @@ function parabolicLab(rich) {
|
|
|
21
21
|
}),
|
|
22
22
|
viewLabel: TextSchema,
|
|
23
23
|
}),
|
|
24
|
-
title:
|
|
24
|
+
title: rich,
|
|
25
25
|
}));
|
|
26
26
|
}
|
|
27
27
|
/** Props of `ParabolicMovementAnalysisLab`: the components of a projectile's velocity. */
|