@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,260 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { type RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/**
|
|
4
|
+
* The props of the electronics 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 electronicsVisuals<E>(rich: RichSlot<E>): {
|
|
8
|
+
TransistorBiasLab: 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 base: Schema.Finite;
|
|
79
|
+
readonly baseSupply: Schema.Finite;
|
|
80
|
+
readonly collector: Schema.Finite;
|
|
81
|
+
readonly collectorSupply: Schema.Finite;
|
|
82
|
+
readonly gain: Schema.Finite;
|
|
83
|
+
readonly labels: Schema.Struct<{
|
|
84
|
+
readonly base: RichSlot<E>;
|
|
85
|
+
readonly baseCurrent: RichSlot<E>;
|
|
86
|
+
readonly baseName: Schema.Trimmed;
|
|
87
|
+
readonly collectorCurrent: RichSlot<E>;
|
|
88
|
+
readonly collectorEmitter: RichSlot<E>;
|
|
89
|
+
readonly viewLabel: Schema.Trimmed;
|
|
90
|
+
}>;
|
|
91
|
+
readonly threshold: Schema.Finite;
|
|
92
|
+
}>, "figure">;
|
|
93
|
+
LogicGateLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
94
|
+
readonly description: RichSlot<E>;
|
|
95
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
96
|
+
readonly attrs: {
|
|
97
|
+
readonly latex: string;
|
|
98
|
+
};
|
|
99
|
+
readonly type: "mathInline";
|
|
100
|
+
} | {
|
|
101
|
+
readonly marks?: readonly [{
|
|
102
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
103
|
+
} | {
|
|
104
|
+
readonly attrs: {
|
|
105
|
+
readonly href: string;
|
|
106
|
+
};
|
|
107
|
+
readonly type: "link";
|
|
108
|
+
} | {
|
|
109
|
+
readonly attrs: {
|
|
110
|
+
readonly variant: "success" | "warning" | null;
|
|
111
|
+
};
|
|
112
|
+
readonly type: "highlight";
|
|
113
|
+
}, ...({
|
|
114
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
115
|
+
} | {
|
|
116
|
+
readonly attrs: {
|
|
117
|
+
readonly href: string;
|
|
118
|
+
};
|
|
119
|
+
readonly type: "link";
|
|
120
|
+
} | {
|
|
121
|
+
readonly attrs: {
|
|
122
|
+
readonly variant: "success" | "warning" | null;
|
|
123
|
+
};
|
|
124
|
+
readonly type: "highlight";
|
|
125
|
+
})[]];
|
|
126
|
+
readonly text: string;
|
|
127
|
+
readonly type: "text";
|
|
128
|
+
}, ...({
|
|
129
|
+
readonly attrs: {
|
|
130
|
+
readonly latex: string;
|
|
131
|
+
};
|
|
132
|
+
readonly type: "mathInline";
|
|
133
|
+
} | {
|
|
134
|
+
readonly marks?: readonly [{
|
|
135
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
136
|
+
} | {
|
|
137
|
+
readonly attrs: {
|
|
138
|
+
readonly href: string;
|
|
139
|
+
};
|
|
140
|
+
readonly type: "link";
|
|
141
|
+
} | {
|
|
142
|
+
readonly attrs: {
|
|
143
|
+
readonly variant: "success" | "warning" | null;
|
|
144
|
+
};
|
|
145
|
+
readonly type: "highlight";
|
|
146
|
+
}, ...({
|
|
147
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
148
|
+
} | {
|
|
149
|
+
readonly attrs: {
|
|
150
|
+
readonly href: string;
|
|
151
|
+
};
|
|
152
|
+
readonly type: "link";
|
|
153
|
+
} | {
|
|
154
|
+
readonly attrs: {
|
|
155
|
+
readonly variant: "success" | "warning" | null;
|
|
156
|
+
};
|
|
157
|
+
readonly type: "highlight";
|
|
158
|
+
})[]];
|
|
159
|
+
readonly text: string;
|
|
160
|
+
readonly type: "text";
|
|
161
|
+
})[]], E, never, never>>;
|
|
162
|
+
readonly title: RichSlot<E>;
|
|
163
|
+
readonly gate: Schema.Literals<readonly ["AND", "OR", "NAND", "NOR", "XOR"]>;
|
|
164
|
+
readonly labels: Schema.Struct<{
|
|
165
|
+
readonly gate: Schema.Trimmed;
|
|
166
|
+
readonly matches: RichSlot<E>;
|
|
167
|
+
readonly viewLabel: Schema.Trimmed;
|
|
168
|
+
}>;
|
|
169
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
170
|
+
readonly a: Schema.Finite;
|
|
171
|
+
readonly b: Schema.Finite;
|
|
172
|
+
readonly c: Schema.Finite;
|
|
173
|
+
readonly q: Schema.Finite;
|
|
174
|
+
}>>;
|
|
175
|
+
}>, "figure">;
|
|
176
|
+
TransistorSwitchLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
177
|
+
readonly description: RichSlot<E>;
|
|
178
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
179
|
+
readonly attrs: {
|
|
180
|
+
readonly latex: string;
|
|
181
|
+
};
|
|
182
|
+
readonly type: "mathInline";
|
|
183
|
+
} | {
|
|
184
|
+
readonly marks?: readonly [{
|
|
185
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
186
|
+
} | {
|
|
187
|
+
readonly attrs: {
|
|
188
|
+
readonly href: string;
|
|
189
|
+
};
|
|
190
|
+
readonly type: "link";
|
|
191
|
+
} | {
|
|
192
|
+
readonly attrs: {
|
|
193
|
+
readonly variant: "success" | "warning" | null;
|
|
194
|
+
};
|
|
195
|
+
readonly type: "highlight";
|
|
196
|
+
}, ...({
|
|
197
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
198
|
+
} | {
|
|
199
|
+
readonly attrs: {
|
|
200
|
+
readonly href: string;
|
|
201
|
+
};
|
|
202
|
+
readonly type: "link";
|
|
203
|
+
} | {
|
|
204
|
+
readonly attrs: {
|
|
205
|
+
readonly variant: "success" | "warning" | null;
|
|
206
|
+
};
|
|
207
|
+
readonly type: "highlight";
|
|
208
|
+
})[]];
|
|
209
|
+
readonly text: string;
|
|
210
|
+
readonly type: "text";
|
|
211
|
+
}, ...({
|
|
212
|
+
readonly attrs: {
|
|
213
|
+
readonly latex: string;
|
|
214
|
+
};
|
|
215
|
+
readonly type: "mathInline";
|
|
216
|
+
} | {
|
|
217
|
+
readonly marks?: readonly [{
|
|
218
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
219
|
+
} | {
|
|
220
|
+
readonly attrs: {
|
|
221
|
+
readonly href: string;
|
|
222
|
+
};
|
|
223
|
+
readonly type: "link";
|
|
224
|
+
} | {
|
|
225
|
+
readonly attrs: {
|
|
226
|
+
readonly variant: "success" | "warning" | null;
|
|
227
|
+
};
|
|
228
|
+
readonly type: "highlight";
|
|
229
|
+
}, ...({
|
|
230
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
231
|
+
} | {
|
|
232
|
+
readonly attrs: {
|
|
233
|
+
readonly href: string;
|
|
234
|
+
};
|
|
235
|
+
readonly type: "link";
|
|
236
|
+
} | {
|
|
237
|
+
readonly attrs: {
|
|
238
|
+
readonly variant: "success" | "warning" | null;
|
|
239
|
+
};
|
|
240
|
+
readonly type: "highlight";
|
|
241
|
+
})[]];
|
|
242
|
+
readonly text: string;
|
|
243
|
+
readonly type: "text";
|
|
244
|
+
})[]], E, never, never>>;
|
|
245
|
+
readonly title: RichSlot<E>;
|
|
246
|
+
readonly labels: Schema.Struct<{
|
|
247
|
+
readonly base: RichSlot<E>;
|
|
248
|
+
readonly ldr: RichSlot<E>;
|
|
249
|
+
readonly light: RichSlot<E>;
|
|
250
|
+
readonly lightName: Schema.Trimmed;
|
|
251
|
+
readonly resistor: RichSlot<E>;
|
|
252
|
+
readonly resistorName: Schema.Trimmed;
|
|
253
|
+
readonly switching: RichSlot<E>;
|
|
254
|
+
readonly viewLabel: Schema.Trimmed;
|
|
255
|
+
}>;
|
|
256
|
+
readonly resistor: Schema.Finite;
|
|
257
|
+
readonly supply: Schema.Finite;
|
|
258
|
+
readonly threshold: Schema.Finite;
|
|
259
|
+
}>, "figure">;
|
|
260
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { cardFields, TextSchema } from "#contracts/visual/card";
|
|
3
|
+
import { figure } from "#contracts/visual/entry";
|
|
4
|
+
/** Props of `TransistorBiasLab`: an npn transistor with a base resistor and a collector resistor. */
|
|
5
|
+
function transistorBiasLab(rich) {
|
|
6
|
+
return figure(Schema.Struct({
|
|
7
|
+
...cardFields(rich),
|
|
8
|
+
base: Schema.Finite,
|
|
9
|
+
baseSupply: Schema.Finite,
|
|
10
|
+
collector: Schema.Finite,
|
|
11
|
+
collectorSupply: Schema.Finite,
|
|
12
|
+
gain: Schema.Finite,
|
|
13
|
+
labels: Schema.Struct({
|
|
14
|
+
base: rich,
|
|
15
|
+
baseCurrent: rich,
|
|
16
|
+
baseName: TextSchema,
|
|
17
|
+
collectorCurrent: rich,
|
|
18
|
+
collectorEmitter: rich,
|
|
19
|
+
viewLabel: TextSchema,
|
|
20
|
+
}),
|
|
21
|
+
threshold: Schema.Finite,
|
|
22
|
+
}));
|
|
23
|
+
}
|
|
24
|
+
/** Props of `LogicGateLab`: a logic trainer with an unknown gate P feeding a NAND gate together with input C. */
|
|
25
|
+
function logicGateLab(rich) {
|
|
26
|
+
return figure(Schema.Struct({
|
|
27
|
+
...cardFields(rich),
|
|
28
|
+
gate: Schema.Literals(["AND", "OR", "NAND", "NOR", "XOR"]),
|
|
29
|
+
labels: Schema.Struct({
|
|
30
|
+
gate: TextSchema,
|
|
31
|
+
matches: rich,
|
|
32
|
+
viewLabel: TextSchema,
|
|
33
|
+
}),
|
|
34
|
+
rows: Schema.Array(Schema.Struct({
|
|
35
|
+
a: Schema.Finite,
|
|
36
|
+
b: Schema.Finite,
|
|
37
|
+
c: Schema.Finite,
|
|
38
|
+
q: Schema.Finite,
|
|
39
|
+
})),
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
/** Props of `TransistorSwitchLab`: an automatic lamp: a fixed resistor above a light-dependent resistor shares the supply, and the share across the LDR drives the transistor's base. */
|
|
43
|
+
function transistorSwitchLab(rich) {
|
|
44
|
+
return figure(Schema.Struct({
|
|
45
|
+
...cardFields(rich),
|
|
46
|
+
labels: Schema.Struct({
|
|
47
|
+
base: rich,
|
|
48
|
+
ldr: rich,
|
|
49
|
+
light: rich,
|
|
50
|
+
lightName: TextSchema,
|
|
51
|
+
resistor: rich,
|
|
52
|
+
resistorName: TextSchema,
|
|
53
|
+
switching: rich,
|
|
54
|
+
viewLabel: TextSchema,
|
|
55
|
+
}),
|
|
56
|
+
resistor: Schema.Finite,
|
|
57
|
+
supply: Schema.Finite,
|
|
58
|
+
threshold: Schema.Finite,
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The props of the electronics labs. Each prop is a value from the item the lab
|
|
63
|
+
* draws, never the conclusion it leads to, so none holds answer state.
|
|
64
|
+
*/
|
|
65
|
+
export function electronicsVisuals(rich) {
|
|
66
|
+
return {
|
|
67
|
+
TransistorBiasLab: transistorBiasLab(rich),
|
|
68
|
+
LogicGateLab: logicGateLab(rich),
|
|
69
|
+
TransistorSwitchLab: transistorSwitchLab(rich),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -7,6 +7,73 @@ import { type RichSlot } from "#contracts/visual/card";
|
|
|
7
7
|
export declare function fallingVisuals<E>(rich: RichSlot<E>): {
|
|
8
8
|
GalileoInclineBellsLab: 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 labels: Schema.Struct<{
|
|
12
79
|
readonly acceleration: RichSlot<E>;
|
|
@@ -18,6 +85,73 @@ export declare function fallingVisuals<E>(rich: RichSlot<E>): {
|
|
|
18
85
|
}>, "figure">;
|
|
19
86
|
FeatherCoinVacuumLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
20
87
|
readonly description: RichSlot<E>;
|
|
88
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
89
|
+
readonly attrs: {
|
|
90
|
+
readonly latex: string;
|
|
91
|
+
};
|
|
92
|
+
readonly type: "mathInline";
|
|
93
|
+
} | {
|
|
94
|
+
readonly marks?: readonly [{
|
|
95
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
96
|
+
} | {
|
|
97
|
+
readonly attrs: {
|
|
98
|
+
readonly href: string;
|
|
99
|
+
};
|
|
100
|
+
readonly type: "link";
|
|
101
|
+
} | {
|
|
102
|
+
readonly attrs: {
|
|
103
|
+
readonly variant: "success" | "warning" | null;
|
|
104
|
+
};
|
|
105
|
+
readonly type: "highlight";
|
|
106
|
+
}, ...({
|
|
107
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
108
|
+
} | {
|
|
109
|
+
readonly attrs: {
|
|
110
|
+
readonly href: string;
|
|
111
|
+
};
|
|
112
|
+
readonly type: "link";
|
|
113
|
+
} | {
|
|
114
|
+
readonly attrs: {
|
|
115
|
+
readonly variant: "success" | "warning" | null;
|
|
116
|
+
};
|
|
117
|
+
readonly type: "highlight";
|
|
118
|
+
})[]];
|
|
119
|
+
readonly text: string;
|
|
120
|
+
readonly type: "text";
|
|
121
|
+
}, ...({
|
|
122
|
+
readonly attrs: {
|
|
123
|
+
readonly latex: string;
|
|
124
|
+
};
|
|
125
|
+
readonly type: "mathInline";
|
|
126
|
+
} | {
|
|
127
|
+
readonly marks?: readonly [{
|
|
128
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
129
|
+
} | {
|
|
130
|
+
readonly attrs: {
|
|
131
|
+
readonly href: string;
|
|
132
|
+
};
|
|
133
|
+
readonly type: "link";
|
|
134
|
+
} | {
|
|
135
|
+
readonly attrs: {
|
|
136
|
+
readonly variant: "success" | "warning" | null;
|
|
137
|
+
};
|
|
138
|
+
readonly type: "highlight";
|
|
139
|
+
}, ...({
|
|
140
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
141
|
+
} | {
|
|
142
|
+
readonly attrs: {
|
|
143
|
+
readonly href: string;
|
|
144
|
+
};
|
|
145
|
+
readonly type: "link";
|
|
146
|
+
} | {
|
|
147
|
+
readonly attrs: {
|
|
148
|
+
readonly variant: "success" | "warning" | null;
|
|
149
|
+
};
|
|
150
|
+
readonly type: "highlight";
|
|
151
|
+
})[]];
|
|
152
|
+
readonly text: string;
|
|
153
|
+
readonly type: "text";
|
|
154
|
+
})[]], E, never, never>>;
|
|
21
155
|
readonly title: RichSlot<E>;
|
|
22
156
|
readonly labels: Schema.Struct<{
|
|
23
157
|
readonly airs: Schema.$Record<Schema.Literals<readonly ["air", "vacuum"]>, RichSlot<E>>;
|
|
@@ -30,6 +164,73 @@ export declare function fallingVisuals<E>(rich: RichSlot<E>): {
|
|
|
30
164
|
}>, "figure">;
|
|
31
165
|
FallingTargetAimLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
32
166
|
readonly description: RichSlot<E>;
|
|
167
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
168
|
+
readonly attrs: {
|
|
169
|
+
readonly latex: string;
|
|
170
|
+
};
|
|
171
|
+
readonly type: "mathInline";
|
|
172
|
+
} | {
|
|
173
|
+
readonly marks?: readonly [{
|
|
174
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
175
|
+
} | {
|
|
176
|
+
readonly attrs: {
|
|
177
|
+
readonly href: string;
|
|
178
|
+
};
|
|
179
|
+
readonly type: "link";
|
|
180
|
+
} | {
|
|
181
|
+
readonly attrs: {
|
|
182
|
+
readonly variant: "success" | "warning" | null;
|
|
183
|
+
};
|
|
184
|
+
readonly type: "highlight";
|
|
185
|
+
}, ...({
|
|
186
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
187
|
+
} | {
|
|
188
|
+
readonly attrs: {
|
|
189
|
+
readonly href: string;
|
|
190
|
+
};
|
|
191
|
+
readonly type: "link";
|
|
192
|
+
} | {
|
|
193
|
+
readonly attrs: {
|
|
194
|
+
readonly variant: "success" | "warning" | null;
|
|
195
|
+
};
|
|
196
|
+
readonly type: "highlight";
|
|
197
|
+
})[]];
|
|
198
|
+
readonly text: string;
|
|
199
|
+
readonly type: "text";
|
|
200
|
+
}, ...({
|
|
201
|
+
readonly attrs: {
|
|
202
|
+
readonly latex: string;
|
|
203
|
+
};
|
|
204
|
+
readonly type: "mathInline";
|
|
205
|
+
} | {
|
|
206
|
+
readonly marks?: readonly [{
|
|
207
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
208
|
+
} | {
|
|
209
|
+
readonly attrs: {
|
|
210
|
+
readonly href: string;
|
|
211
|
+
};
|
|
212
|
+
readonly type: "link";
|
|
213
|
+
} | {
|
|
214
|
+
readonly attrs: {
|
|
215
|
+
readonly variant: "success" | "warning" | null;
|
|
216
|
+
};
|
|
217
|
+
readonly type: "highlight";
|
|
218
|
+
}, ...({
|
|
219
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
220
|
+
} | {
|
|
221
|
+
readonly attrs: {
|
|
222
|
+
readonly href: string;
|
|
223
|
+
};
|
|
224
|
+
readonly type: "link";
|
|
225
|
+
} | {
|
|
226
|
+
readonly attrs: {
|
|
227
|
+
readonly variant: "success" | "warning" | null;
|
|
228
|
+
};
|
|
229
|
+
readonly type: "highlight";
|
|
230
|
+
})[]];
|
|
231
|
+
readonly text: string;
|
|
232
|
+
readonly type: "text";
|
|
233
|
+
})[]], E, never, never>>;
|
|
33
234
|
readonly title: RichSlot<E>;
|
|
34
235
|
readonly labels: Schema.Struct<{
|
|
35
236
|
readonly drop: RichSlot<E>;
|
|
@@ -42,6 +243,73 @@ export declare function fallingVisuals<E>(rich: RichSlot<E>): {
|
|
|
42
243
|
}>, "figure">;
|
|
43
244
|
HoseJetProjectileLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
44
245
|
readonly description: RichSlot<E>;
|
|
246
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
247
|
+
readonly attrs: {
|
|
248
|
+
readonly latex: string;
|
|
249
|
+
};
|
|
250
|
+
readonly type: "mathInline";
|
|
251
|
+
} | {
|
|
252
|
+
readonly marks?: readonly [{
|
|
253
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
254
|
+
} | {
|
|
255
|
+
readonly attrs: {
|
|
256
|
+
readonly href: string;
|
|
257
|
+
};
|
|
258
|
+
readonly type: "link";
|
|
259
|
+
} | {
|
|
260
|
+
readonly attrs: {
|
|
261
|
+
readonly variant: "success" | "warning" | null;
|
|
262
|
+
};
|
|
263
|
+
readonly type: "highlight";
|
|
264
|
+
}, ...({
|
|
265
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
266
|
+
} | {
|
|
267
|
+
readonly attrs: {
|
|
268
|
+
readonly href: string;
|
|
269
|
+
};
|
|
270
|
+
readonly type: "link";
|
|
271
|
+
} | {
|
|
272
|
+
readonly attrs: {
|
|
273
|
+
readonly variant: "success" | "warning" | null;
|
|
274
|
+
};
|
|
275
|
+
readonly type: "highlight";
|
|
276
|
+
})[]];
|
|
277
|
+
readonly text: string;
|
|
278
|
+
readonly type: "text";
|
|
279
|
+
}, ...({
|
|
280
|
+
readonly attrs: {
|
|
281
|
+
readonly latex: string;
|
|
282
|
+
};
|
|
283
|
+
readonly type: "mathInline";
|
|
284
|
+
} | {
|
|
285
|
+
readonly marks?: readonly [{
|
|
286
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
287
|
+
} | {
|
|
288
|
+
readonly attrs: {
|
|
289
|
+
readonly href: string;
|
|
290
|
+
};
|
|
291
|
+
readonly type: "link";
|
|
292
|
+
} | {
|
|
293
|
+
readonly attrs: {
|
|
294
|
+
readonly variant: "success" | "warning" | null;
|
|
295
|
+
};
|
|
296
|
+
readonly type: "highlight";
|
|
297
|
+
}, ...({
|
|
298
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
299
|
+
} | {
|
|
300
|
+
readonly attrs: {
|
|
301
|
+
readonly href: string;
|
|
302
|
+
};
|
|
303
|
+
readonly type: "link";
|
|
304
|
+
} | {
|
|
305
|
+
readonly attrs: {
|
|
306
|
+
readonly variant: "success" | "warning" | null;
|
|
307
|
+
};
|
|
308
|
+
readonly type: "highlight";
|
|
309
|
+
})[]];
|
|
310
|
+
readonly text: string;
|
|
311
|
+
readonly type: "text";
|
|
312
|
+
})[]], E, never, never>>;
|
|
45
313
|
readonly title: RichSlot<E>;
|
|
46
314
|
readonly angle: Schema.optionalKey<Schema.Literals<readonly [15, 30, 45, 60, 75, 90]>>;
|
|
47
315
|
readonly labels: Schema.Struct<{
|