@nakafa/aksara-contracts 8.2.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/card.d.ts +79 -1
- package/dist/visual/card.js +18 -2
- package/dist/visual/catalog.d.ts +14164 -2
- package/dist/visual/catalog.js +4 -0
- package/dist/visual/chemistry/atom.d.ts +201 -0
- 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 +201 -0
- 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 +268 -0
- package/dist/visual/physics/circular.d.ts +134 -0
- package/dist/visual/physics/dynamics.d.ts +469 -0
- package/dist/visual/physics/efficiency.d.ts +402 -0
- package/dist/visual/physics/electronics.d.ts +201 -0
- package/dist/visual/physics/falling.d.ts +268 -0
- package/dist/visual/physics/field.d.ts +201 -0
- package/dist/visual/physics/fluid.d.ts +268 -0
- package/dist/visual/physics/force.d.ts +335 -0
- package/dist/visual/physics/gravity.d.ts +134 -0
- package/dist/visual/physics/heat.d.ts +201 -0
- package/dist/visual/physics/instrument.d.ts +469 -0
- package/dist/visual/physics/light.d.ts +268 -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 +201 -0
- package/dist/visual/physics/parabolic.d.ts +67 -0
- 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 +201 -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 +268 -0
- package/dist/visual/politics.d.ts +402 -0
- package/package.json +1 -1
|
@@ -7,6 +7,73 @@ import { type RichSlot } from "#contracts/visual/card";
|
|
|
7
7
|
export declare function efficiencyVisuals<E>(rich: RichSlot<E>): {
|
|
8
8
|
HoistWorkLab: 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 chooseMotor: Schema.Trimmed;
|
|
@@ -21,6 +88,73 @@ export declare function efficiencyVisuals<E>(rich: RichSlot<E>): {
|
|
|
21
88
|
}>, "figure">;
|
|
22
89
|
KettleHeatingLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
23
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>>;
|
|
24
158
|
readonly title: RichSlot<E>;
|
|
25
159
|
readonly fill: Schema.optionalKey<Schema.Literals<readonly ["half", "full", "brim"]>>;
|
|
26
160
|
readonly labels: Schema.Struct<{
|
|
@@ -34,6 +168,73 @@ export declare function efficiencyVisuals<E>(rich: RichSlot<E>): {
|
|
|
34
168
|
}>, "figure">;
|
|
35
169
|
FlashlightEfficiencyLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
36
170
|
readonly description: RichSlot<E>;
|
|
171
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
172
|
+
readonly attrs: {
|
|
173
|
+
readonly latex: string;
|
|
174
|
+
};
|
|
175
|
+
readonly type: "mathInline";
|
|
176
|
+
} | {
|
|
177
|
+
readonly marks?: readonly [{
|
|
178
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
179
|
+
} | {
|
|
180
|
+
readonly attrs: {
|
|
181
|
+
readonly href: string;
|
|
182
|
+
};
|
|
183
|
+
readonly type: "link";
|
|
184
|
+
} | {
|
|
185
|
+
readonly attrs: {
|
|
186
|
+
readonly variant: "success" | "warning" | null;
|
|
187
|
+
};
|
|
188
|
+
readonly type: "highlight";
|
|
189
|
+
}, ...({
|
|
190
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
191
|
+
} | {
|
|
192
|
+
readonly attrs: {
|
|
193
|
+
readonly href: string;
|
|
194
|
+
};
|
|
195
|
+
readonly type: "link";
|
|
196
|
+
} | {
|
|
197
|
+
readonly attrs: {
|
|
198
|
+
readonly variant: "success" | "warning" | null;
|
|
199
|
+
};
|
|
200
|
+
readonly type: "highlight";
|
|
201
|
+
})[]];
|
|
202
|
+
readonly text: string;
|
|
203
|
+
readonly type: "text";
|
|
204
|
+
}, ...({
|
|
205
|
+
readonly attrs: {
|
|
206
|
+
readonly latex: string;
|
|
207
|
+
};
|
|
208
|
+
readonly type: "mathInline";
|
|
209
|
+
} | {
|
|
210
|
+
readonly marks?: readonly [{
|
|
211
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
212
|
+
} | {
|
|
213
|
+
readonly attrs: {
|
|
214
|
+
readonly href: string;
|
|
215
|
+
};
|
|
216
|
+
readonly type: "link";
|
|
217
|
+
} | {
|
|
218
|
+
readonly attrs: {
|
|
219
|
+
readonly variant: "success" | "warning" | null;
|
|
220
|
+
};
|
|
221
|
+
readonly type: "highlight";
|
|
222
|
+
}, ...({
|
|
223
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
224
|
+
} | {
|
|
225
|
+
readonly attrs: {
|
|
226
|
+
readonly href: string;
|
|
227
|
+
};
|
|
228
|
+
readonly type: "link";
|
|
229
|
+
} | {
|
|
230
|
+
readonly attrs: {
|
|
231
|
+
readonly variant: "success" | "warning" | null;
|
|
232
|
+
};
|
|
233
|
+
readonly type: "highlight";
|
|
234
|
+
})[]];
|
|
235
|
+
readonly text: string;
|
|
236
|
+
readonly type: "text";
|
|
237
|
+
})[]], E, never, never>>;
|
|
37
238
|
readonly title: RichSlot<E>;
|
|
38
239
|
readonly bulb: Schema.optionalKey<Schema.Literals<readonly ["filament", "led"]>>;
|
|
39
240
|
readonly labels: Schema.Struct<{
|
|
@@ -50,6 +251,73 @@ export declare function efficiencyVisuals<E>(rich: RichSlot<E>): {
|
|
|
50
251
|
}>, "figure">;
|
|
51
252
|
PendulumEnergyLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
52
253
|
readonly description: RichSlot<E>;
|
|
254
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
255
|
+
readonly attrs: {
|
|
256
|
+
readonly latex: string;
|
|
257
|
+
};
|
|
258
|
+
readonly type: "mathInline";
|
|
259
|
+
} | {
|
|
260
|
+
readonly marks?: readonly [{
|
|
261
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
262
|
+
} | {
|
|
263
|
+
readonly attrs: {
|
|
264
|
+
readonly href: string;
|
|
265
|
+
};
|
|
266
|
+
readonly type: "link";
|
|
267
|
+
} | {
|
|
268
|
+
readonly attrs: {
|
|
269
|
+
readonly variant: "success" | "warning" | null;
|
|
270
|
+
};
|
|
271
|
+
readonly type: "highlight";
|
|
272
|
+
}, ...({
|
|
273
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
274
|
+
} | {
|
|
275
|
+
readonly attrs: {
|
|
276
|
+
readonly href: string;
|
|
277
|
+
};
|
|
278
|
+
readonly type: "link";
|
|
279
|
+
} | {
|
|
280
|
+
readonly attrs: {
|
|
281
|
+
readonly variant: "success" | "warning" | null;
|
|
282
|
+
};
|
|
283
|
+
readonly type: "highlight";
|
|
284
|
+
})[]];
|
|
285
|
+
readonly text: string;
|
|
286
|
+
readonly type: "text";
|
|
287
|
+
}, ...({
|
|
288
|
+
readonly attrs: {
|
|
289
|
+
readonly latex: string;
|
|
290
|
+
};
|
|
291
|
+
readonly type: "mathInline";
|
|
292
|
+
} | {
|
|
293
|
+
readonly marks?: readonly [{
|
|
294
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
295
|
+
} | {
|
|
296
|
+
readonly attrs: {
|
|
297
|
+
readonly href: string;
|
|
298
|
+
};
|
|
299
|
+
readonly type: "link";
|
|
300
|
+
} | {
|
|
301
|
+
readonly attrs: {
|
|
302
|
+
readonly variant: "success" | "warning" | null;
|
|
303
|
+
};
|
|
304
|
+
readonly type: "highlight";
|
|
305
|
+
}, ...({
|
|
306
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
307
|
+
} | {
|
|
308
|
+
readonly attrs: {
|
|
309
|
+
readonly href: string;
|
|
310
|
+
};
|
|
311
|
+
readonly type: "link";
|
|
312
|
+
} | {
|
|
313
|
+
readonly attrs: {
|
|
314
|
+
readonly variant: "success" | "warning" | null;
|
|
315
|
+
};
|
|
316
|
+
readonly type: "highlight";
|
|
317
|
+
})[]];
|
|
318
|
+
readonly text: string;
|
|
319
|
+
readonly type: "text";
|
|
320
|
+
})[]], E, never, never>>;
|
|
53
321
|
readonly title: RichSlot<E>;
|
|
54
322
|
readonly drag: Schema.optionalKey<Schema.Literals<readonly ["none", "light", "strong"]>>;
|
|
55
323
|
readonly labels: Schema.Struct<{
|
|
@@ -64,6 +332,73 @@ export declare function efficiencyVisuals<E>(rich: RichSlot<E>): {
|
|
|
64
332
|
}>, "figure">;
|
|
65
333
|
WeightLampEnergyLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
66
334
|
readonly description: RichSlot<E>;
|
|
335
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
336
|
+
readonly attrs: {
|
|
337
|
+
readonly latex: string;
|
|
338
|
+
};
|
|
339
|
+
readonly type: "mathInline";
|
|
340
|
+
} | {
|
|
341
|
+
readonly marks?: readonly [{
|
|
342
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
343
|
+
} | {
|
|
344
|
+
readonly attrs: {
|
|
345
|
+
readonly href: string;
|
|
346
|
+
};
|
|
347
|
+
readonly type: "link";
|
|
348
|
+
} | {
|
|
349
|
+
readonly attrs: {
|
|
350
|
+
readonly variant: "success" | "warning" | null;
|
|
351
|
+
};
|
|
352
|
+
readonly type: "highlight";
|
|
353
|
+
}, ...({
|
|
354
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
355
|
+
} | {
|
|
356
|
+
readonly attrs: {
|
|
357
|
+
readonly href: string;
|
|
358
|
+
};
|
|
359
|
+
readonly type: "link";
|
|
360
|
+
} | {
|
|
361
|
+
readonly attrs: {
|
|
362
|
+
readonly variant: "success" | "warning" | null;
|
|
363
|
+
};
|
|
364
|
+
readonly type: "highlight";
|
|
365
|
+
})[]];
|
|
366
|
+
readonly text: string;
|
|
367
|
+
readonly type: "text";
|
|
368
|
+
}, ...({
|
|
369
|
+
readonly attrs: {
|
|
370
|
+
readonly latex: string;
|
|
371
|
+
};
|
|
372
|
+
readonly type: "mathInline";
|
|
373
|
+
} | {
|
|
374
|
+
readonly marks?: readonly [{
|
|
375
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
376
|
+
} | {
|
|
377
|
+
readonly attrs: {
|
|
378
|
+
readonly href: string;
|
|
379
|
+
};
|
|
380
|
+
readonly type: "link";
|
|
381
|
+
} | {
|
|
382
|
+
readonly attrs: {
|
|
383
|
+
readonly variant: "success" | "warning" | null;
|
|
384
|
+
};
|
|
385
|
+
readonly type: "highlight";
|
|
386
|
+
}, ...({
|
|
387
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
388
|
+
} | {
|
|
389
|
+
readonly attrs: {
|
|
390
|
+
readonly href: string;
|
|
391
|
+
};
|
|
392
|
+
readonly type: "link";
|
|
393
|
+
} | {
|
|
394
|
+
readonly attrs: {
|
|
395
|
+
readonly variant: "success" | "warning" | null;
|
|
396
|
+
};
|
|
397
|
+
readonly type: "highlight";
|
|
398
|
+
})[]];
|
|
399
|
+
readonly text: string;
|
|
400
|
+
readonly type: "text";
|
|
401
|
+
})[]], E, never, never>>;
|
|
67
402
|
readonly title: RichSlot<E>;
|
|
68
403
|
readonly descent: Schema.optionalKey<Schema.Literals<readonly ["fast", "steady", "slow"]>>;
|
|
69
404
|
readonly labels: Schema.Struct<{
|
|
@@ -78,6 +413,73 @@ export declare function efficiencyVisuals<E>(rich: RichSlot<E>): {
|
|
|
78
413
|
}>, "figure">;
|
|
79
414
|
EnergyFlowLossLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
80
415
|
readonly description: RichSlot<E>;
|
|
416
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
417
|
+
readonly attrs: {
|
|
418
|
+
readonly latex: string;
|
|
419
|
+
};
|
|
420
|
+
readonly type: "mathInline";
|
|
421
|
+
} | {
|
|
422
|
+
readonly marks?: readonly [{
|
|
423
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
424
|
+
} | {
|
|
425
|
+
readonly attrs: {
|
|
426
|
+
readonly href: string;
|
|
427
|
+
};
|
|
428
|
+
readonly type: "link";
|
|
429
|
+
} | {
|
|
430
|
+
readonly attrs: {
|
|
431
|
+
readonly variant: "success" | "warning" | null;
|
|
432
|
+
};
|
|
433
|
+
readonly type: "highlight";
|
|
434
|
+
}, ...({
|
|
435
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
436
|
+
} | {
|
|
437
|
+
readonly attrs: {
|
|
438
|
+
readonly href: string;
|
|
439
|
+
};
|
|
440
|
+
readonly type: "link";
|
|
441
|
+
} | {
|
|
442
|
+
readonly attrs: {
|
|
443
|
+
readonly variant: "success" | "warning" | null;
|
|
444
|
+
};
|
|
445
|
+
readonly type: "highlight";
|
|
446
|
+
})[]];
|
|
447
|
+
readonly text: string;
|
|
448
|
+
readonly type: "text";
|
|
449
|
+
}, ...({
|
|
450
|
+
readonly attrs: {
|
|
451
|
+
readonly latex: string;
|
|
452
|
+
};
|
|
453
|
+
readonly type: "mathInline";
|
|
454
|
+
} | {
|
|
455
|
+
readonly marks?: readonly [{
|
|
456
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
457
|
+
} | {
|
|
458
|
+
readonly attrs: {
|
|
459
|
+
readonly href: string;
|
|
460
|
+
};
|
|
461
|
+
readonly type: "link";
|
|
462
|
+
} | {
|
|
463
|
+
readonly attrs: {
|
|
464
|
+
readonly variant: "success" | "warning" | null;
|
|
465
|
+
};
|
|
466
|
+
readonly type: "highlight";
|
|
467
|
+
}, ...({
|
|
468
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
469
|
+
} | {
|
|
470
|
+
readonly attrs: {
|
|
471
|
+
readonly href: string;
|
|
472
|
+
};
|
|
473
|
+
readonly type: "link";
|
|
474
|
+
} | {
|
|
475
|
+
readonly attrs: {
|
|
476
|
+
readonly variant: "success" | "warning" | null;
|
|
477
|
+
};
|
|
478
|
+
readonly type: "highlight";
|
|
479
|
+
})[]];
|
|
480
|
+
readonly text: string;
|
|
481
|
+
readonly type: "text";
|
|
482
|
+
})[]], E, never, never>>;
|
|
81
483
|
readonly title: RichSlot<E>;
|
|
82
484
|
readonly labels: Schema.Struct<{
|
|
83
485
|
readonly choosePlant: Schema.Trimmed;
|
|
@@ -7,6 +7,73 @@ import { type RichSlot } from "#contracts/visual/card";
|
|
|
7
7
|
export declare function electronicsVisuals<E>(rich: RichSlot<E>): {
|
|
8
8
|
TransistorBiasLab: 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 base: Schema.Finite;
|
|
12
79
|
readonly baseSupply: Schema.Finite;
|
|
@@ -25,6 +92,73 @@ export declare function electronicsVisuals<E>(rich: RichSlot<E>): {
|
|
|
25
92
|
}>, "figure">;
|
|
26
93
|
LogicGateLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
27
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>>;
|
|
28
162
|
readonly title: RichSlot<E>;
|
|
29
163
|
readonly gate: Schema.Literals<readonly ["AND", "OR", "NAND", "NOR", "XOR"]>;
|
|
30
164
|
readonly labels: Schema.Struct<{
|
|
@@ -41,6 +175,73 @@ export declare function electronicsVisuals<E>(rich: RichSlot<E>): {
|
|
|
41
175
|
}>, "figure">;
|
|
42
176
|
TransistorSwitchLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
43
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>>;
|
|
44
245
|
readonly title: RichSlot<E>;
|
|
45
246
|
readonly labels: Schema.Struct<{
|
|
46
247
|
readonly base: RichSlot<E>;
|