@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.
Files changed (98) hide show
  1. package/dist/math/boundary.d.ts +9 -0
  2. package/dist/math/boundary.js +81 -0
  3. package/dist/math/curve.d.ts +1 -0
  4. package/dist/math/curve.js +4 -2
  5. package/dist/math/formula/affine.d.ts +22 -0
  6. package/dist/math/formula/affine.js +79 -0
  7. package/dist/math/formula/contour.js +27 -12
  8. package/dist/math/object.d.ts +12 -0
  9. package/dist/math/object.js +11 -0
  10. package/dist/math/plane.d.ts +10 -0
  11. package/dist/math/plane.js +7 -1
  12. package/dist/math/space.d.ts +8 -0
  13. package/dist/math/space.js +5 -1
  14. package/dist/math/visual.d.ts +239 -212
  15. package/dist/visual/base/math.d.ts +78 -0
  16. package/dist/visual/base/math.js +31 -3
  17. package/dist/visual/base/media.d.ts +67 -0
  18. package/dist/visual/biology/bacteria.d.ts +268 -0
  19. package/dist/visual/biology/cell.d.ts +201 -0
  20. package/dist/visual/biology/climate.d.ts +201 -0
  21. package/dist/visual/biology/ecology.d.ts +268 -0
  22. package/dist/visual/biology/physiology.d.ts +201 -0
  23. package/dist/visual/biology/plant.d.ts +335 -0
  24. package/dist/visual/biology.d.ts +16 -16
  25. package/dist/visual/biology.js +2 -2
  26. package/dist/visual/card.d.ts +79 -1
  27. package/dist/visual/card.js +18 -2
  28. package/dist/visual/catalog.d.ts +14808 -28
  29. package/dist/visual/catalog.js +26 -0
  30. package/dist/visual/chemistry/atom.d.ts +203 -2
  31. package/dist/visual/chemistry/atom.js +2 -2
  32. package/dist/visual/chemistry/balance.d.ts +335 -0
  33. package/dist/visual/chemistry/bonding.d.ts +335 -0
  34. package/dist/visual/chemistry/discovery.d.ts +469 -0
  35. package/dist/visual/chemistry/electrochemistry.d.ts +134 -0
  36. package/dist/visual/chemistry/electron.d.ts +134 -0
  37. package/dist/visual/chemistry/laws.d.ts +268 -0
  38. package/dist/visual/chemistry/particles.d.ts +335 -0
  39. package/dist/visual/chemistry/periodic.d.ts +134 -0
  40. package/dist/visual/chemistry/rate.d.ts +67 -0
  41. package/dist/visual/chemistry/reaction.d.ts +201 -0
  42. package/dist/visual/chemistry/titration.d.ts +67 -0
  43. package/dist/visual/length.d.ts +79 -0
  44. package/dist/visual/length.js +37 -0
  45. package/dist/visual/mathematics/chance.d.ts +258 -0
  46. package/dist/visual/mathematics/chance.js +117 -0
  47. package/dist/visual/mathematics/chart.d.ts +67 -0
  48. package/dist/visual/mathematics/charts.d.ts +335 -0
  49. package/dist/visual/mathematics/function.d.ts +205 -4
  50. package/dist/visual/mathematics/function.js +4 -4
  51. package/dist/visual/mathematics/geometry.d.ts +1 -1
  52. package/dist/visual/mathematics/geometry.js +1 -1
  53. package/dist/visual/mathematics/numeral.d.ts +170 -0
  54. package/dist/visual/mathematics/numeral.js +85 -0
  55. package/dist/visual/physics/braking.d.ts +268 -0
  56. package/dist/visual/physics/circuit.d.ts +343 -0
  57. package/dist/visual/physics/circuit.js +86 -0
  58. package/dist/visual/physics/circular.d.ts +134 -0
  59. package/dist/visual/physics/dynamics.d.ts +579 -0
  60. package/dist/visual/physics/dynamics.js +134 -0
  61. package/dist/visual/physics/efficiency.d.ts +402 -0
  62. package/dist/visual/physics/electronics.d.ts +260 -0
  63. package/dist/visual/physics/electronics.js +71 -0
  64. package/dist/visual/physics/falling.d.ts +268 -0
  65. package/dist/visual/physics/field.d.ts +249 -0
  66. package/dist/visual/physics/field.js +60 -0
  67. package/dist/visual/physics/fluid.d.ts +336 -0
  68. package/dist/visual/physics/fluid.js +83 -0
  69. package/dist/visual/physics/force.d.ts +335 -0
  70. package/dist/visual/physics/gravity.d.ts +172 -0
  71. package/dist/visual/physics/gravity.js +47 -0
  72. package/dist/visual/physics/heat.d.ts +255 -0
  73. package/dist/visual/physics/heat.js +66 -0
  74. package/dist/visual/physics/instrument.d.ts +469 -0
  75. package/dist/visual/physics/light.d.ts +343 -0
  76. package/dist/visual/physics/light.js +90 -0
  77. package/dist/visual/physics/measurement.d.ts +268 -0
  78. package/dist/visual/physics/motion.d.ts +402 -0
  79. package/dist/visual/physics/nuclear.d.ts +258 -0
  80. package/dist/visual/physics/nuclear.js +69 -0
  81. package/dist/visual/physics/parabolic.d.ts +69 -2
  82. package/dist/visual/physics/parabolic.js +2 -2
  83. package/dist/visual/physics/position.d.ts +402 -0
  84. package/dist/visual/physics/power.d.ts +536 -0
  85. package/dist/visual/physics/precision.d.ts +469 -0
  86. package/dist/visual/physics/product.d.ts +268 -0
  87. package/dist/visual/physics/reading.d.ts +253 -0
  88. package/dist/visual/physics/reading.js +61 -0
  89. package/dist/visual/physics/record.d.ts +134 -0
  90. package/dist/visual/physics/relative.d.ts +201 -0
  91. package/dist/visual/physics/solar.d.ts +402 -0
  92. package/dist/visual/physics/vector.d.ts +335 -0
  93. package/dist/visual/physics/velocity.d.ts +469 -0
  94. package/dist/visual/physics/wave.d.ts +338 -0
  95. package/dist/visual/physics/wave.js +85 -0
  96. package/dist/visual/politics.d.ts +403 -1
  97. package/dist/visual/politics.js +1 -1
  98. package/package.json +1 -1
@@ -0,0 +1,249 @@
1
+ import { Schema } from "effect";
2
+ import { type RichSlot } from "#contracts/visual/card";
3
+ /**
4
+ * The props of the electromagnetism 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 fieldVisuals<E>(rich: RichSlot<E>): {
8
+ CurrentBalanceLab: 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 field: Schema.Finite;
79
+ readonly labels: Schema.Struct<{
80
+ readonly current: RichSlot<E>;
81
+ readonly currentName: Schema.Trimmed;
82
+ readonly force: RichSlot<E>;
83
+ readonly needed: RichSlot<E>;
84
+ readonly viewLabel: Schema.Trimmed;
85
+ readonly weight: RichSlot<E>;
86
+ }>;
87
+ readonly length: Schema.Finite;
88
+ readonly mass: Schema.Finite;
89
+ }>, "figure">;
90
+ MagnetPipeLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
91
+ readonly description: RichSlot<E>;
92
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
93
+ readonly attrs: {
94
+ readonly latex: string;
95
+ };
96
+ readonly type: "mathInline";
97
+ } | {
98
+ readonly marks?: readonly [{
99
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
100
+ } | {
101
+ readonly attrs: {
102
+ readonly href: string;
103
+ };
104
+ readonly type: "link";
105
+ } | {
106
+ readonly attrs: {
107
+ readonly variant: "success" | "warning" | null;
108
+ };
109
+ readonly type: "highlight";
110
+ }, ...({
111
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
112
+ } | {
113
+ readonly attrs: {
114
+ readonly href: string;
115
+ };
116
+ readonly type: "link";
117
+ } | {
118
+ readonly attrs: {
119
+ readonly variant: "success" | "warning" | null;
120
+ };
121
+ readonly type: "highlight";
122
+ })[]];
123
+ readonly text: string;
124
+ readonly type: "text";
125
+ }, ...({
126
+ readonly attrs: {
127
+ readonly latex: string;
128
+ };
129
+ readonly type: "mathInline";
130
+ } | {
131
+ readonly marks?: readonly [{
132
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
133
+ } | {
134
+ readonly attrs: {
135
+ readonly href: string;
136
+ };
137
+ readonly type: "link";
138
+ } | {
139
+ readonly attrs: {
140
+ readonly variant: "success" | "warning" | null;
141
+ };
142
+ readonly type: "highlight";
143
+ }, ...({
144
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
145
+ } | {
146
+ readonly attrs: {
147
+ readonly href: string;
148
+ };
149
+ readonly type: "link";
150
+ } | {
151
+ readonly attrs: {
152
+ readonly variant: "success" | "warning" | null;
153
+ };
154
+ readonly type: "highlight";
155
+ })[]];
156
+ readonly text: string;
157
+ readonly type: "text";
158
+ })[]], E, never, never>>;
159
+ readonly title: RichSlot<E>;
160
+ readonly labels: Schema.Struct<{
161
+ readonly copper: RichSlot<E>;
162
+ readonly plastic: RichSlot<E>;
163
+ readonly slit: RichSlot<E>;
164
+ readonly viewLabel: Schema.Trimmed;
165
+ }>;
166
+ }>, "figure">;
167
+ TransformerLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
168
+ readonly description: RichSlot<E>;
169
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
170
+ readonly attrs: {
171
+ readonly latex: string;
172
+ };
173
+ readonly type: "mathInline";
174
+ } | {
175
+ readonly marks?: readonly [{
176
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
177
+ } | {
178
+ readonly attrs: {
179
+ readonly href: string;
180
+ };
181
+ readonly type: "link";
182
+ } | {
183
+ readonly attrs: {
184
+ readonly variant: "success" | "warning" | null;
185
+ };
186
+ readonly type: "highlight";
187
+ }, ...({
188
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
189
+ } | {
190
+ readonly attrs: {
191
+ readonly href: string;
192
+ };
193
+ readonly type: "link";
194
+ } | {
195
+ readonly attrs: {
196
+ readonly variant: "success" | "warning" | null;
197
+ };
198
+ readonly type: "highlight";
199
+ })[]];
200
+ readonly text: string;
201
+ readonly type: "text";
202
+ }, ...({
203
+ readonly attrs: {
204
+ readonly latex: string;
205
+ };
206
+ readonly type: "mathInline";
207
+ } | {
208
+ readonly marks?: readonly [{
209
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
210
+ } | {
211
+ readonly attrs: {
212
+ readonly href: string;
213
+ };
214
+ readonly type: "link";
215
+ } | {
216
+ readonly attrs: {
217
+ readonly variant: "success" | "warning" | null;
218
+ };
219
+ readonly type: "highlight";
220
+ }, ...({
221
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
222
+ } | {
223
+ readonly attrs: {
224
+ readonly href: string;
225
+ };
226
+ readonly type: "link";
227
+ } | {
228
+ readonly attrs: {
229
+ readonly variant: "success" | "warning" | null;
230
+ };
231
+ readonly type: "highlight";
232
+ })[]];
233
+ readonly text: string;
234
+ readonly type: "text";
235
+ })[]], E, never, never>>;
236
+ readonly title: RichSlot<E>;
237
+ readonly efficiency: Schema.Finite;
238
+ readonly labels: Schema.Struct<{
239
+ readonly input: RichSlot<E>;
240
+ readonly lost: RichSlot<E>;
241
+ readonly primaryCurrent: RichSlot<E>;
242
+ readonly ratio: RichSlot<E>;
243
+ readonly viewLabel: Schema.Trimmed;
244
+ }>;
245
+ readonly outputPower: Schema.Finite;
246
+ readonly primaryVoltage: Schema.Finite;
247
+ readonly secondaryVoltage: Schema.Finite;
248
+ }>, "figure">;
249
+ };
@@ -0,0 +1,60 @@
1
+ import { Schema } from "effect";
2
+ import { cardFields, TextSchema } from "#contracts/visual/card";
3
+ import { figure } from "#contracts/visual/entry";
4
+ /** Props of `CurrentBalanceLab`: a straight wire lies east to west across the gap of a magnet whose field points north. */
5
+ function currentBalanceLab(rich) {
6
+ return figure(Schema.Struct({
7
+ ...cardFields(rich),
8
+ field: Schema.Finite,
9
+ labels: Schema.Struct({
10
+ current: rich,
11
+ currentName: TextSchema,
12
+ force: rich,
13
+ needed: rich,
14
+ viewLabel: TextSchema,
15
+ weight: rich,
16
+ }),
17
+ length: Schema.Finite,
18
+ mass: Schema.Finite,
19
+ }));
20
+ }
21
+ /** Props of `MagnetPipeLab`: the same strong magnet dropped at the same moment through three pipes of the same size: plastic, copper, and copper with a slit along its length. */
22
+ function magnetPipeLab(rich) {
23
+ return figure(Schema.Struct({
24
+ ...cardFields(rich),
25
+ labels: Schema.Struct({
26
+ copper: rich,
27
+ plastic: rich,
28
+ slit: rich,
29
+ viewLabel: TextSchema,
30
+ }),
31
+ }));
32
+ }
33
+ /** Props of `TransformerLab`: a transformer on a laminated iron core lights a bulb from its secondary coil. */
34
+ function transformerLab(rich) {
35
+ return figure(Schema.Struct({
36
+ ...cardFields(rich),
37
+ efficiency: Schema.Finite,
38
+ labels: Schema.Struct({
39
+ input: rich,
40
+ lost: rich,
41
+ primaryCurrent: rich,
42
+ ratio: rich,
43
+ viewLabel: TextSchema,
44
+ }),
45
+ outputPower: Schema.Finite,
46
+ primaryVoltage: Schema.Finite,
47
+ secondaryVoltage: Schema.Finite,
48
+ }));
49
+ }
50
+ /**
51
+ * The props of the electromagnetism labs. Each prop is a value from the item the lab
52
+ * draws, never the conclusion it leads to, so none holds answer state.
53
+ */
54
+ export function fieldVisuals(rich) {
55
+ return {
56
+ CurrentBalanceLab: currentBalanceLab(rich),
57
+ MagnetPipeLab: magnetPipeLab(rich),
58
+ TransformerLab: transformerLab(rich),
59
+ };
60
+ }
@@ -0,0 +1,336 @@
1
+ import { Schema } from "effect";
2
+ import { type RichSlot } from "#contracts/visual/card";
3
+ /**
4
+ * The props of the fluid pressure 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 fluidVisuals<E>(rich: RichSlot<E>): {
8
+ FloatingBlockLab: 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 density: Schema.Finite;
79
+ readonly labels: Schema.Struct<{
80
+ readonly above: RichSlot<E>;
81
+ readonly liquid: Schema.Trimmed;
82
+ readonly liquids: Schema.$Record<Schema.Literals<readonly ["water", "other"]>, RichSlot<E>>;
83
+ readonly under: RichSlot<E>;
84
+ readonly viewLabel: Schema.Trimmed;
85
+ }>;
86
+ readonly underWater: Schema.Finite;
87
+ readonly volume: Schema.Finite;
88
+ }>, "figure">;
89
+ HydraulicJackLab: 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 force: Schema.Finite;
160
+ readonly labels: Schema.Struct<{
161
+ readonly force: RichSlot<E>;
162
+ readonly forceName: Schema.Trimmed;
163
+ readonly lifted: RichSlot<E>;
164
+ readonly mass: RichSlot<E>;
165
+ readonly pressure: RichSlot<E>;
166
+ readonly rise: RichSlot<E>;
167
+ readonly viewLabel: Schema.Trimmed;
168
+ }>;
169
+ readonly largeArea: Schema.Finite;
170
+ readonly smallArea: Schema.Finite;
171
+ readonly stroke: Schema.Finite;
172
+ }>, "figure">;
173
+ ManometerLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
174
+ readonly description: RichSlot<E>;
175
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
176
+ readonly attrs: {
177
+ readonly latex: string;
178
+ };
179
+ readonly type: "mathInline";
180
+ } | {
181
+ readonly marks?: readonly [{
182
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
183
+ } | {
184
+ readonly attrs: {
185
+ readonly href: string;
186
+ };
187
+ readonly type: "link";
188
+ } | {
189
+ readonly attrs: {
190
+ readonly variant: "success" | "warning" | null;
191
+ };
192
+ readonly type: "highlight";
193
+ }, ...({
194
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
195
+ } | {
196
+ readonly attrs: {
197
+ readonly href: string;
198
+ };
199
+ readonly type: "link";
200
+ } | {
201
+ readonly attrs: {
202
+ readonly variant: "success" | "warning" | null;
203
+ };
204
+ readonly type: "highlight";
205
+ })[]];
206
+ readonly text: string;
207
+ readonly type: "text";
208
+ }, ...({
209
+ readonly attrs: {
210
+ readonly latex: string;
211
+ };
212
+ readonly type: "mathInline";
213
+ } | {
214
+ readonly marks?: readonly [{
215
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
216
+ } | {
217
+ readonly attrs: {
218
+ readonly href: string;
219
+ };
220
+ readonly type: "link";
221
+ } | {
222
+ readonly attrs: {
223
+ readonly variant: "success" | "warning" | null;
224
+ };
225
+ readonly type: "highlight";
226
+ }, ...({
227
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
228
+ } | {
229
+ readonly attrs: {
230
+ readonly href: string;
231
+ };
232
+ readonly type: "link";
233
+ } | {
234
+ readonly attrs: {
235
+ readonly variant: "success" | "warning" | null;
236
+ };
237
+ readonly type: "highlight";
238
+ })[]];
239
+ readonly text: string;
240
+ readonly type: "text";
241
+ })[]], E, never, never>>;
242
+ readonly title: RichSlot<E>;
243
+ readonly atmosphere: Schema.Finite;
244
+ readonly difference: Schema.Finite;
245
+ readonly labels: Schema.Struct<{
246
+ readonly difference: RichSlot<E>;
247
+ readonly differenceName: Schema.Trimmed;
248
+ readonly excess: RichSlot<E>;
249
+ readonly gas: RichSlot<E>;
250
+ readonly viewLabel: Schema.Trimmed;
251
+ }>;
252
+ readonly liquidDensity: Schema.Finite;
253
+ readonly referenceDensity: Schema.Finite;
254
+ }>, "figure">;
255
+ VenturiTubeLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
256
+ readonly description: RichSlot<E>;
257
+ readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
258
+ readonly attrs: {
259
+ readonly latex: string;
260
+ };
261
+ readonly type: "mathInline";
262
+ } | {
263
+ readonly marks?: readonly [{
264
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
265
+ } | {
266
+ readonly attrs: {
267
+ readonly href: string;
268
+ };
269
+ readonly type: "link";
270
+ } | {
271
+ readonly attrs: {
272
+ readonly variant: "success" | "warning" | null;
273
+ };
274
+ readonly type: "highlight";
275
+ }, ...({
276
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
277
+ } | {
278
+ readonly attrs: {
279
+ readonly href: string;
280
+ };
281
+ readonly type: "link";
282
+ } | {
283
+ readonly attrs: {
284
+ readonly variant: "success" | "warning" | null;
285
+ };
286
+ readonly type: "highlight";
287
+ })[]];
288
+ readonly text: string;
289
+ readonly type: "text";
290
+ }, ...({
291
+ readonly attrs: {
292
+ readonly latex: string;
293
+ };
294
+ readonly type: "mathInline";
295
+ } | {
296
+ readonly marks?: readonly [{
297
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
298
+ } | {
299
+ readonly attrs: {
300
+ readonly href: string;
301
+ };
302
+ readonly type: "link";
303
+ } | {
304
+ readonly attrs: {
305
+ readonly variant: "success" | "warning" | null;
306
+ };
307
+ readonly type: "highlight";
308
+ }, ...({
309
+ readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
310
+ } | {
311
+ readonly attrs: {
312
+ readonly href: string;
313
+ };
314
+ readonly type: "link";
315
+ } | {
316
+ readonly attrs: {
317
+ readonly variant: "success" | "warning" | null;
318
+ };
319
+ readonly type: "highlight";
320
+ })[]];
321
+ readonly text: string;
322
+ readonly type: "text";
323
+ })[]], E, never, never>>;
324
+ readonly title: RichSlot<E>;
325
+ readonly labels: Schema.Struct<{
326
+ readonly drop: RichSlot<E>;
327
+ readonly faster: RichSlot<E>;
328
+ readonly speed: RichSlot<E>;
329
+ readonly speedName: Schema.Trimmed;
330
+ readonly viewLabel: Schema.Trimmed;
331
+ }>;
332
+ readonly narrow: Schema.Finite;
333
+ readonly speed: Schema.Finite;
334
+ readonly wide: Schema.Finite;
335
+ }>, "figure">;
336
+ };