@nakafa/aksara-contracts 8.0.4 → 8.1.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/bounds.js +6 -3
- package/dist/math/formula/contour.d.ts +5 -11
- package/dist/math/formula/contour.js +48 -57
- package/dist/math/formula/plane.d.ts +7 -0
- package/dist/math/formula/plane.js +23 -8
- package/dist/math/formula/region.js +3 -2
- package/dist/math/formula/scan.d.ts +13 -0
- package/dist/math/formula/scan.js +45 -0
- package/dist/visual/biology/physiology.d.ts +85 -0
- package/dist/visual/biology/physiology.js +105 -0
- package/dist/visual/biology/plant.d.ts +121 -0
- package/dist/visual/biology/plant.js +160 -0
- package/dist/visual/catalog.d.ts +190 -2
- package/dist/visual/catalog.js +4 -0
- package/package.json +1 -1
package/dist/math/bounds.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Array as Arr, Option, Result } from "effect";
|
|
2
2
|
import { arcContained, axisContains, circleContained, cuboidContained, quadraticContained, } from "#contracts/math/extent";
|
|
3
3
|
import { isPlaneFormulaPoint } from "#contracts/math/formula/field";
|
|
4
|
-
import { planeFormulaGeometry, planeFormulaPoint, } from "#contracts/math/formula/plane";
|
|
4
|
+
import { implicitVisible, planeFormulaGeometry, planeFormulaPoint, } from "#contracts/math/formula/plane";
|
|
5
5
|
import { regionFilled } from "#contracts/math/formula/region";
|
|
6
6
|
import { geometryVisible } from "#contracts/math/formula/scope";
|
|
7
7
|
import { spaceFormulaGeometry } from "#contracts/math/formula/space";
|
|
@@ -50,8 +50,11 @@ function planeObjectContained(frame, object, scope, labels) {
|
|
|
50
50
|
const named = Arr.flatMap(labels, ({ at, objectId }) => objectId === object.id && !isPlaneFormulaPoint(at) ? [at[axis]] : []);
|
|
51
51
|
return sampledVisible(planeFormulaGeometry(object, frame, scope, named), frame);
|
|
52
52
|
}
|
|
53
|
-
if (object.kind === "implicit"
|
|
54
|
-
object.
|
|
53
|
+
if (object.kind === "implicit") {
|
|
54
|
+
const visible = implicitVisible(object.equation, frame, scope);
|
|
55
|
+
return Result.isFailure(visible) || visible.success;
|
|
56
|
+
}
|
|
57
|
+
if (object.kind === "loop" ||
|
|
55
58
|
object.kind === "marker" ||
|
|
56
59
|
object.kind === "parametric" ||
|
|
57
60
|
object.kind === "path" ||
|
|
@@ -10,16 +10,10 @@ export declare const CONTOUR_CELLS = 240;
|
|
|
10
10
|
*/
|
|
11
11
|
export declare function contourLines(field: SampleField, box: SampleBox, cells?: number): readonly SampleBranch[];
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
|
-
export declare function contourFilled(field: SampleField, box: SampleBox, cells?: number): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Shades the part of the frame where a field is at least zero, one shape per
|
|
22
|
-
* cell: the corners inside and the crossings between them, so a cell wholly
|
|
23
|
-
* inside is its square and a cell the outline cuts keeps only its inner part.
|
|
13
|
+
* Shades the part of the frame where a field is at least zero. A cell the
|
|
14
|
+
* outline cuts keeps only its inner part, and every run of whole cells
|
|
15
|
+
* stacked in one column shades as one rectangle, so a region costs a shape
|
|
16
|
+
* per column run and cut cell rather than one per cell: a 240-cell frame
|
|
17
|
+
* would otherwise write tens of thousands of squares into the page.
|
|
24
18
|
*/
|
|
25
19
|
export declare function contourFill(field: SampleField, box: SampleBox, cells?: number): readonly SampleBranch[];
|
|
@@ -141,65 +141,56 @@ export function contourLines(field, box, cells = CONTOUR_CELLS) {
|
|
|
141
141
|
const found = Arr.flatMap(squares, (cell) => cellSegments(field, cell));
|
|
142
142
|
return join(Arr.map(found, ([from, to], index) => ({ from, index, to })));
|
|
143
143
|
}
|
|
144
|
-
/**
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
return Option.getOrElse(MutableHashMap.get(read, key), () => {
|
|
161
|
-
const sample = field(box.x.min + column * dx, box.y.min + row * dy);
|
|
162
|
-
MutableHashMap.set(read, key, sample);
|
|
163
|
-
return sample;
|
|
164
|
-
});
|
|
165
|
-
};
|
|
166
|
-
/** Whether the cell lies on the grid and all four of its corners are finite. */
|
|
167
|
-
const finiteCell = (column, row) => column >= 0 &&
|
|
168
|
-
row >= 0 &&
|
|
169
|
-
column < cells &&
|
|
170
|
-
row < cells &&
|
|
171
|
-
Arr.every([
|
|
172
|
-
[column, row],
|
|
173
|
-
[column + 1, row],
|
|
174
|
-
[column + 1, row + 1],
|
|
175
|
-
[column, row + 1],
|
|
176
|
-
], ([c, r]) => Number.isFinite(value(c, r)));
|
|
177
|
-
/** Whether this corner is inside and one finite cell touching it would fill. */
|
|
178
|
-
const fills = (column, row) => value(column, row) >= 0 &&
|
|
179
|
-
Arr.some([
|
|
180
|
-
[column, row],
|
|
181
|
-
[column - 1, row],
|
|
182
|
-
[column - 1, row - 1],
|
|
183
|
-
[column, row - 1],
|
|
184
|
-
], ([c, r]) => finiteCell(c, r));
|
|
185
|
-
return Arr.some(FILL_STRIDES, (stride) => Arr.some(Arr.range(0, Math.floor(cells / stride)), (i) => Arr.some(Arr.range(0, Math.floor(cells / stride)), (j) => fills(i * stride, j * stride))));
|
|
144
|
+
/** The inner part of a cell the outline cuts: its inside corners and the crossings between them. */
|
|
145
|
+
function cutShape([a, b, c, d]) {
|
|
146
|
+
const outline = Arr.flatMap([
|
|
147
|
+
[a, b],
|
|
148
|
+
[b, c],
|
|
149
|
+
[c, d],
|
|
150
|
+
[d, a],
|
|
151
|
+
], ([from, to]) => [
|
|
152
|
+
...(inside(from) ? [from.point] : []),
|
|
153
|
+
...Option.toArray(Option.map(crossing(from, to), ({ point }) => point)),
|
|
154
|
+
]);
|
|
155
|
+
return outline.length >= 3 ? Option.some(outline) : Option.none();
|
|
156
|
+
}
|
|
157
|
+
/** The rectangle a run of whole cells stacked in one column covers, from its lowest cell to its highest. */
|
|
158
|
+
function stack([a, b], [, , c, d]) {
|
|
159
|
+
return [a.point, b.point, c.point, d.point];
|
|
186
160
|
}
|
|
187
161
|
/**
|
|
188
|
-
* Shades the part of the frame where a field is at least zero
|
|
189
|
-
*
|
|
190
|
-
*
|
|
162
|
+
* Shades the part of the frame where a field is at least zero. A cell the
|
|
163
|
+
* outline cuts keeps only its inner part, and every run of whole cells
|
|
164
|
+
* stacked in one column shades as one rectangle, so a region costs a shape
|
|
165
|
+
* per column run and cut cell rather than one per cell: a 240-cell frame
|
|
166
|
+
* would otherwise write tens of thousands of squares into the page.
|
|
191
167
|
*/
|
|
192
168
|
export function contourFill(field, box, cells = CONTOUR_CELLS) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
169
|
+
const shapes = MutableList.make();
|
|
170
|
+
let run = Option.none();
|
|
171
|
+
/** Shades the open run, if any, as its rectangle and ends it. */
|
|
172
|
+
const close = () => {
|
|
173
|
+
if (Option.isSome(run)) {
|
|
174
|
+
MutableList.append(shapes, stack(...run.value));
|
|
175
|
+
run = Option.none();
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
// The grid lists cells column by column from the bottom, so a column's run is consecutive.
|
|
179
|
+
for (const cell of Arr.getSomes(Arr.map(grid(field, box, cells), square))) {
|
|
180
|
+
if (!Arr.every(cell, inside)) {
|
|
181
|
+
close();
|
|
182
|
+
for (const shape of Option.toArray(cutShape(cell))) {
|
|
183
|
+
MutableList.append(shapes, shape);
|
|
184
|
+
}
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
if (Option.isSome(run) && run.value[1][3].key === cell[0].key) {
|
|
188
|
+
run = Option.some([run.value[0], cell]);
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
close();
|
|
192
|
+
run = Option.some([cell, cell]);
|
|
193
|
+
}
|
|
194
|
+
close();
|
|
195
|
+
return MutableList.toArray(shapes);
|
|
205
196
|
}
|
|
@@ -66,6 +66,13 @@ export declare function evaluateWith(evaluate: FormulaEvaluator, scope: FormulaS
|
|
|
66
66
|
* that is not finite there, such as ln(0), places nothing.
|
|
67
67
|
*/
|
|
68
68
|
export declare function planeFormulaPoint(point: PlaneFormulaPoint, scope: FormulaScope): Result.Result<Option.Option<SamplePoint>, FormulaError>;
|
|
69
|
+
/**
|
|
70
|
+
* Whether an equation draws any curve inside the box. It answers what
|
|
71
|
+
* `planeFormulaGeometry` would trace without tracing it: a cell holds a piece
|
|
72
|
+
* of the curve when its four corners are finite and lie on both sides of zero,
|
|
73
|
+
* so a schema check stays cheap; drawing the curve is the renderer's work.
|
|
74
|
+
*/
|
|
75
|
+
export declare function implicitVisible(equation: string, box: SampleBox, scope: FormulaScope): Result.Result<boolean, FormulaError>;
|
|
69
76
|
/** The plane objects a formula defines. */
|
|
70
77
|
export type PlaneFormulaObject = (typeof PlaneCurveObjectSchemas)[number]["Type"];
|
|
71
78
|
/**
|
|
@@ -6,6 +6,7 @@ import { SampleGridSchema } from "#contracts/math/formula/mesh";
|
|
|
6
6
|
import { readFormula, readRelation } from "#contracts/math/formula/parse";
|
|
7
7
|
import { regionGeometry } from "#contracts/math/formula/region";
|
|
8
8
|
import { sampleCurve } from "#contracts/math/formula/sample";
|
|
9
|
+
import { someCell } from "#contracts/math/formula/scan";
|
|
9
10
|
const BranchSchema = Schema.Array(SamplePointSchema);
|
|
10
11
|
/**
|
|
11
12
|
* What a formula object draws once sampled: curves, marked points, a shaded
|
|
@@ -65,6 +66,27 @@ function pathBranch(points, closed, scope) {
|
|
|
65
66
|
],
|
|
66
67
|
}));
|
|
67
68
|
}
|
|
69
|
+
/** How far the two sides of an equation are apart at a point. */
|
|
70
|
+
function implicitField(equation, scope) {
|
|
71
|
+
return Result.map(readRelation(equation), (relation) => {
|
|
72
|
+
const left = compileFormula(relation.left);
|
|
73
|
+
const right = compileFormula(relation.right);
|
|
74
|
+
return (x, y) => {
|
|
75
|
+
const point = { ...scope, x, y };
|
|
76
|
+
return left(point) - right(point);
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Whether an equation draws any curve inside the box. It answers what
|
|
82
|
+
* `planeFormulaGeometry` would trace without tracing it: a cell holds a piece
|
|
83
|
+
* of the curve when its four corners are finite and lie on both sides of zero,
|
|
84
|
+
* so a schema check stays cheap; drawing the curve is the renderer's work.
|
|
85
|
+
*/
|
|
86
|
+
export function implicitVisible(equation, box, scope) {
|
|
87
|
+
return Result.map(implicitField(equation, scope), (field) => someCell(field, box, (values) => Arr.some(values, (value) => value >= 0) &&
|
|
88
|
+
Arr.some(values, (value) => value < 0)));
|
|
89
|
+
}
|
|
68
90
|
/**
|
|
69
91
|
* Samples one plane formula object inside its frame. `named` holds the input
|
|
70
92
|
* values a function must hit exactly, such as the x of each of its labels.
|
|
@@ -106,14 +128,7 @@ export function planeFormulaGeometry(object, box, scope, named = []) {
|
|
|
106
128
|
return { branches, kind: "curves" };
|
|
107
129
|
}
|
|
108
130
|
if (object.kind === "implicit") {
|
|
109
|
-
const
|
|
110
|
-
const left = compileFormula(relation.left);
|
|
111
|
-
const right = compileFormula(relation.right);
|
|
112
|
-
/** How far the two sides of the equation are apart at a point. */
|
|
113
|
-
const field = (x, y) => {
|
|
114
|
-
const point = { ...scope, x, y };
|
|
115
|
-
return left(point) - right(point);
|
|
116
|
-
};
|
|
131
|
+
const field = yield* implicitField(object.equation, scope);
|
|
117
132
|
return { branches: contourLines(field, box), kind: "curves" };
|
|
118
133
|
}
|
|
119
134
|
return yield* regionGeometry(object.inequalities, box, scope);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Array as Arr, MutableList, Option, Order, Result, Schema, } from "effect";
|
|
2
2
|
import { SamplePointSchema, } from "#contracts/math/formula/box";
|
|
3
3
|
import { compileFormula, } from "#contracts/math/formula/compile";
|
|
4
|
-
import { contourFill,
|
|
4
|
+
import { contourFill, contourLines, } from "#contracts/math/formula/contour";
|
|
5
5
|
import { readRelation } from "#contracts/math/formula/parse";
|
|
6
|
+
import { someCell } from "#contracts/math/formula/scan";
|
|
6
7
|
/** How far a boundary piece lies from one inequality's edge, and whether that edge is strict. */
|
|
7
8
|
const ConstraintGapSchema = Schema.Struct({
|
|
8
9
|
gap: Schema.Finite,
|
|
@@ -100,6 +101,6 @@ export function regionGeometry(inequalities, box, scope) {
|
|
|
100
101
|
export function regionFilled(inequalities, box, scope) {
|
|
101
102
|
return Result.map(Result.all(Arr.map(inequalities, margin)), (margins) => {
|
|
102
103
|
const fields = Arr.map(margins, (each) => each.field(scope));
|
|
103
|
-
return
|
|
104
|
+
return someCell((x, y) => Math.min(...Arr.map(fields, (field) => field(x, y))), box, (values) => Arr.some(values, (value) => value >= 0));
|
|
104
105
|
});
|
|
105
106
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SampleBox } from "#contracts/math/formula/box";
|
|
2
|
+
import { type SampleField } from "#contracts/math/formula/contour";
|
|
3
|
+
/** The field's values at the four corners of one cell, counterclockwise from the bottom left. */
|
|
4
|
+
export type CellValues = readonly [number, number, number, number];
|
|
5
|
+
/**
|
|
6
|
+
* Whether any cell of the contour grid over the frame passes a test of its
|
|
7
|
+
* corner values. It reads the field at the same corners as `contourLines` and
|
|
8
|
+
* `contourFill`, skips a cell where the field is undefined at a corner as they
|
|
9
|
+
* do, reads each corner at most once, and stops at the first cell that
|
|
10
|
+
* passes, so a check can learn whether a contour draws anything without
|
|
11
|
+
* building it.
|
|
12
|
+
*/
|
|
13
|
+
export declare function someCell(field: SampleField, box: SampleBox, test: (values: CellValues) => boolean, cells?: number): boolean;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Array as Arr, MutableHashMap, Option } from "effect";
|
|
2
|
+
import { CONTOUR_CELLS, } from "#contracts/math/formula/contour";
|
|
3
|
+
/** The field at every corner of one grid column, bottom to top. */
|
|
4
|
+
function columnValues(field, box, cells, column) {
|
|
5
|
+
const dx = (box.x.max - box.x.min) / cells;
|
|
6
|
+
const dy = (box.y.max - box.y.min) / cells;
|
|
7
|
+
const x = box.x.min + column * dx;
|
|
8
|
+
return Arr.makeBy(cells + 1, (row) => field(x, box.y.min + row * dy));
|
|
9
|
+
}
|
|
10
|
+
/** Whether one cell between two neighboring columns is defined everywhere and passes the test. */
|
|
11
|
+
function someCellBetween(left, right, test) {
|
|
12
|
+
const rows = Arr.zip(left, right);
|
|
13
|
+
return Arr.some(Arr.zip(rows, Arr.drop(rows, 1)), ([below, above]) => {
|
|
14
|
+
const values = [below[0], below[1], above[1], above[0]];
|
|
15
|
+
return Arr.every(values, Number.isFinite) && test(values);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/** Column strides from coarse to fine, each half the one before. */
|
|
19
|
+
const STRIDES = [128, 64, 32, 16, 8, 4, 2, 1];
|
|
20
|
+
/**
|
|
21
|
+
* The cell columns from coarse to fine: every 128th, then the every-64th ones
|
|
22
|
+
* not yet listed, and so on down to every one, so a shape that covers a fair
|
|
23
|
+
* part of the frame is met within the first few columns.
|
|
24
|
+
*/
|
|
25
|
+
function columnOrder(cells) {
|
|
26
|
+
return Arr.flatMap(STRIDES, (stride, level) => Arr.filter(Arr.makeBy(Math.ceil(cells / stride), (index) => index * stride), (column) => level === 0 || column % (2 * stride) !== 0));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Whether any cell of the contour grid over the frame passes a test of its
|
|
30
|
+
* corner values. It reads the field at the same corners as `contourLines` and
|
|
31
|
+
* `contourFill`, skips a cell where the field is undefined at a corner as they
|
|
32
|
+
* do, reads each corner at most once, and stops at the first cell that
|
|
33
|
+
* passes, so a check can learn whether a contour draws anything without
|
|
34
|
+
* building it.
|
|
35
|
+
*/
|
|
36
|
+
export function someCell(field, box, test, cells = CONTOUR_CELLS) {
|
|
37
|
+
const read = MutableHashMap.empty();
|
|
38
|
+
/** One column's values, read from the field the first time it is needed. */
|
|
39
|
+
const valuesAt = (column) => Option.getOrElse(MutableHashMap.get(read, column), () => {
|
|
40
|
+
const values = columnValues(field, box, cells, column);
|
|
41
|
+
MutableHashMap.set(read, column, values);
|
|
42
|
+
return values;
|
|
43
|
+
});
|
|
44
|
+
return Arr.some(columnOrder(cells), (column) => someCellBetween(valuesAt(column), valuesAt(column + 1), test));
|
|
45
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { type RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/**
|
|
4
|
+
* The props of the physiology labs. Each prop sets up an instrument or names
|
|
5
|
+
* its words; none states the conclusion the lab leads to, so none holds answer
|
|
6
|
+
* state.
|
|
7
|
+
*/
|
|
8
|
+
export declare function physiologyVisuals<E>(rich: RichSlot<E>): {
|
|
9
|
+
MicroscopeLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
10
|
+
readonly description: RichSlot<E>;
|
|
11
|
+
readonly title: RichSlot<E>;
|
|
12
|
+
readonly cell: Schema.optionalKey<Schema.Finite>;
|
|
13
|
+
readonly eyepiece: Schema.Finite;
|
|
14
|
+
readonly field: Schema.optionalKey<Schema.Struct<{
|
|
15
|
+
readonly diameter: Schema.Finite;
|
|
16
|
+
readonly magnification: Schema.Finite;
|
|
17
|
+
}>>;
|
|
18
|
+
readonly graticule: Schema.optionalKey<Schema.Struct<{
|
|
19
|
+
readonly eyepiece: Schema.Finite;
|
|
20
|
+
readonly micrometer: Schema.Finite;
|
|
21
|
+
}>>;
|
|
22
|
+
readonly labels: Schema.Struct<{
|
|
23
|
+
readonly across: RichSlot<E>;
|
|
24
|
+
readonly cell: RichSlot<E>;
|
|
25
|
+
readonly division: RichSlot<E>;
|
|
26
|
+
readonly field: RichSlot<E>;
|
|
27
|
+
readonly magnification: RichSlot<E>;
|
|
28
|
+
readonly objective: Schema.Trimmed;
|
|
29
|
+
readonly span: RichSlot<E>;
|
|
30
|
+
readonly view: Schema.Trimmed;
|
|
31
|
+
readonly views: Schema.Struct<{
|
|
32
|
+
readonly eyepiece: Schema.Trimmed;
|
|
33
|
+
readonly stand: Schema.Trimmed;
|
|
34
|
+
}>;
|
|
35
|
+
}>;
|
|
36
|
+
readonly objectives: Schema.NonEmptyArray<Schema.Finite>;
|
|
37
|
+
readonly specimen: Schema.Literals<readonly ["cheek", "onion", "root", "micrometer"]>;
|
|
38
|
+
}>, "figure">;
|
|
39
|
+
NephronLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
40
|
+
readonly description: RichSlot<E>;
|
|
41
|
+
readonly title: RichSlot<E>;
|
|
42
|
+
readonly filtration: Schema.Finite;
|
|
43
|
+
readonly glucose: Schema.optionalKey<Schema.Struct<{
|
|
44
|
+
readonly maximum: Schema.Finite;
|
|
45
|
+
readonly plasma: Schema.Finite;
|
|
46
|
+
}>>;
|
|
47
|
+
readonly labels: Schema.Struct<{
|
|
48
|
+
readonly daily: RichSlot<E>;
|
|
49
|
+
readonly factor: RichSlot<E>;
|
|
50
|
+
readonly filtrate: RichSlot<E>;
|
|
51
|
+
readonly flow: RichSlot<E>;
|
|
52
|
+
readonly load: RichSlot<E>;
|
|
53
|
+
readonly plasma: Schema.Trimmed;
|
|
54
|
+
readonly reabsorbed: RichSlot<E>;
|
|
55
|
+
readonly solute: Schema.Trimmed;
|
|
56
|
+
readonly solutes: Schema.Struct<{
|
|
57
|
+
readonly glucose: Schema.Trimmed;
|
|
58
|
+
readonly urea: Schema.Trimmed;
|
|
59
|
+
}>;
|
|
60
|
+
readonly threshold: RichSlot<E>;
|
|
61
|
+
readonly urine: RichSlot<E>;
|
|
62
|
+
readonly view: Schema.Trimmed;
|
|
63
|
+
}>;
|
|
64
|
+
readonly urea: Schema.optionalKey<Schema.Struct<{
|
|
65
|
+
readonly plasma: Schema.Finite;
|
|
66
|
+
readonly urine: Schema.Finite;
|
|
67
|
+
}>>;
|
|
68
|
+
}>, "figure">;
|
|
69
|
+
RespirometerLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
70
|
+
readonly description: RichSlot<E>;
|
|
71
|
+
readonly title: RichSlot<E>;
|
|
72
|
+
readonly carbonDioxide: Schema.Finite;
|
|
73
|
+
readonly labels: Schema.Struct<{
|
|
74
|
+
readonly potash: RichSlot<E>;
|
|
75
|
+
readonly quotient: RichSlot<E>;
|
|
76
|
+
readonly substrate: RichSlot<E>;
|
|
77
|
+
readonly substrates: Schema.$Record<Schema.Literals<readonly ["fat", "protein", "carbohydrate", "anaerobic"]>, RichSlot<E>>;
|
|
78
|
+
readonly time: Schema.Trimmed;
|
|
79
|
+
readonly view: Schema.Trimmed;
|
|
80
|
+
readonly water: RichSlot<E>;
|
|
81
|
+
}>;
|
|
82
|
+
readonly minutes: Schema.Finite;
|
|
83
|
+
readonly oxygen: Schema.Finite;
|
|
84
|
+
}>, "figure">;
|
|
85
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { byIds, cardFields, TextSchema, } from "#contracts/visual/card";
|
|
3
|
+
import { figure } from "#contracts/visual/entry";
|
|
4
|
+
/** A measure the lab divides by: a finite number above zero. */
|
|
5
|
+
const PositiveSchema = Schema.Finite.check(Schema.isGreaterThan(0));
|
|
6
|
+
/**
|
|
7
|
+
* Props of `MicroscopeLab`: a light microscope, on the bench or down its
|
|
8
|
+
* eyepiece. `field` is a field of view the learner measured, its diameter in
|
|
9
|
+
* millimetres at a total magnification; `graticule` calibrates the eyepiece
|
|
10
|
+
* scale against the stage micrometer at the first objective; `cell` is how
|
|
11
|
+
* long one cell of the specimen is, in micrometres.
|
|
12
|
+
*/
|
|
13
|
+
function microscopeLab(rich) {
|
|
14
|
+
return figure(Schema.Struct({
|
|
15
|
+
...cardFields(rich),
|
|
16
|
+
cell: Schema.optionalKey(PositiveSchema),
|
|
17
|
+
eyepiece: PositiveSchema,
|
|
18
|
+
field: Schema.optionalKey(Schema.Struct({
|
|
19
|
+
diameter: PositiveSchema,
|
|
20
|
+
magnification: PositiveSchema,
|
|
21
|
+
})),
|
|
22
|
+
graticule: Schema.optionalKey(Schema.Struct({ eyepiece: PositiveSchema, micrometer: PositiveSchema })),
|
|
23
|
+
labels: Schema.Struct({
|
|
24
|
+
across: rich,
|
|
25
|
+
cell: rich,
|
|
26
|
+
division: rich,
|
|
27
|
+
field: rich,
|
|
28
|
+
magnification: rich,
|
|
29
|
+
objective: TextSchema,
|
|
30
|
+
span: rich,
|
|
31
|
+
view: TextSchema,
|
|
32
|
+
views: Schema.Struct({ eyepiece: TextSchema, stand: TextSchema }),
|
|
33
|
+
}),
|
|
34
|
+
objectives: Schema.NonEmptyArray(PositiveSchema),
|
|
35
|
+
specimen: Schema.Literals(["cheek", "onion", "root", "micrometer"]),
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Props of `NephronLab`: one nephron with filtrate flowing through it, the
|
|
40
|
+
* plasma filtered at `filtration` cubic centimetres a minute. `glucose`
|
|
41
|
+
* gives the tubules' reabsorption maximum in milligrams a minute and the
|
|
42
|
+
* plasma concentration the lab opens at, in milligrams per cubic centimetre;
|
|
43
|
+
* `urea` gives its concentration in plasma and urine, in grams per 100 cubic
|
|
44
|
+
* centimetres.
|
|
45
|
+
*/
|
|
46
|
+
function nephronLab(rich) {
|
|
47
|
+
return figure(Schema.Struct({
|
|
48
|
+
...cardFields(rich),
|
|
49
|
+
filtration: PositiveSchema,
|
|
50
|
+
glucose: Schema.optionalKey(Schema.Struct({
|
|
51
|
+
maximum: PositiveSchema,
|
|
52
|
+
plasma: Schema.Finite.check(Schema.isGreaterThanOrEqualTo(0)),
|
|
53
|
+
})),
|
|
54
|
+
labels: Schema.Struct({
|
|
55
|
+
daily: rich,
|
|
56
|
+
factor: rich,
|
|
57
|
+
filtrate: rich,
|
|
58
|
+
flow: rich,
|
|
59
|
+
load: rich,
|
|
60
|
+
plasma: TextSchema,
|
|
61
|
+
reabsorbed: rich,
|
|
62
|
+
solute: TextSchema,
|
|
63
|
+
solutes: Schema.Struct({ glucose: TextSchema, urea: TextSchema }),
|
|
64
|
+
threshold: rich,
|
|
65
|
+
urine: rich,
|
|
66
|
+
view: TextSchema,
|
|
67
|
+
}),
|
|
68
|
+
urea: Schema.optionalKey(Schema.Struct({ plasma: PositiveSchema, urine: PositiveSchema })),
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Props of `RespirometerLab`: two respirometers of germinating seeds in one
|
|
73
|
+
* water bath, over potassium hydroxide and over water. Over the run of
|
|
74
|
+
* `minutes`, the seeds take in oxygen worth `oxygen` millimetres of the
|
|
75
|
+
* capillary and give off carbon dioxide worth `carbonDioxide` millimetres.
|
|
76
|
+
*/
|
|
77
|
+
function respirometerLab(rich) {
|
|
78
|
+
return figure(Schema.Struct({
|
|
79
|
+
...cardFields(rich),
|
|
80
|
+
carbonDioxide: Schema.Finite.check(Schema.isGreaterThanOrEqualTo(0)),
|
|
81
|
+
labels: Schema.Struct({
|
|
82
|
+
potash: rich,
|
|
83
|
+
quotient: rich,
|
|
84
|
+
substrate: rich,
|
|
85
|
+
substrates: byIds(["fat", "protein", "carbohydrate", "anaerobic"], rich),
|
|
86
|
+
time: TextSchema,
|
|
87
|
+
view: TextSchema,
|
|
88
|
+
water: rich,
|
|
89
|
+
}),
|
|
90
|
+
minutes: PositiveSchema,
|
|
91
|
+
oxygen: PositiveSchema,
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The props of the physiology labs. Each prop sets up an instrument or names
|
|
96
|
+
* its words; none states the conclusion the lab leads to, so none holds answer
|
|
97
|
+
* state.
|
|
98
|
+
*/
|
|
99
|
+
export function physiologyVisuals(rich) {
|
|
100
|
+
return {
|
|
101
|
+
MicroscopeLab: microscopeLab(rich),
|
|
102
|
+
NephronLab: nephronLab(rich),
|
|
103
|
+
RespirometerLab: respirometerLab(rich),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { type RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/**
|
|
4
|
+
* The props of the plant labs. Each prop sets up an apparatus or names its
|
|
5
|
+
* words; none states the conclusion the lab leads to, so none holds answer
|
|
6
|
+
* state.
|
|
7
|
+
*/
|
|
8
|
+
export declare function plantVisuals<E>(rich: RichSlot<E>): {
|
|
9
|
+
FertilisationLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
10
|
+
readonly description: RichSlot<E>;
|
|
11
|
+
readonly title: RichSlot<E>;
|
|
12
|
+
readonly father: Schema.Int;
|
|
13
|
+
readonly labels: Schema.Struct<{
|
|
14
|
+
readonly embryo: RichSlot<E>;
|
|
15
|
+
readonly endosperm: RichSlot<E>;
|
|
16
|
+
readonly gamete: RichSlot<E>;
|
|
17
|
+
readonly grains: RichSlot<E>;
|
|
18
|
+
readonly progress: Schema.Trimmed;
|
|
19
|
+
readonly seedCoat: RichSlot<E>;
|
|
20
|
+
readonly stages: Schema.$Record<Schema.Literals<readonly ["pollination", "tube", "entry", "fusion"]>, Schema.Trimmed>;
|
|
21
|
+
readonly view: Schema.Trimmed;
|
|
22
|
+
}>;
|
|
23
|
+
readonly mother: Schema.Int;
|
|
24
|
+
readonly ovules: Schema.optionalKey<Schema.Int>;
|
|
25
|
+
}>, "figure">;
|
|
26
|
+
OsmosisLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
27
|
+
readonly description: RichSlot<E>;
|
|
28
|
+
readonly title: RichSlot<E>;
|
|
29
|
+
readonly labels: Schema.Struct<{
|
|
30
|
+
readonly change: RichSlot<E>;
|
|
31
|
+
readonly concentration: Schema.Trimmed;
|
|
32
|
+
readonly isotonic: RichSlot<E>;
|
|
33
|
+
readonly mass: RichSlot<E>;
|
|
34
|
+
readonly none: RichSlot<E>;
|
|
35
|
+
readonly solution: RichSlot<E>;
|
|
36
|
+
readonly tonicities: Schema.Struct<{
|
|
37
|
+
readonly hypertonic: RichSlot<E>;
|
|
38
|
+
readonly hypotonic: RichSlot<E>;
|
|
39
|
+
readonly isotonic: RichSlot<E>;
|
|
40
|
+
}>;
|
|
41
|
+
readonly view: Schema.Trimmed;
|
|
42
|
+
}>;
|
|
43
|
+
readonly mass: Schema.optionalKey<Schema.Finite>;
|
|
44
|
+
readonly strips: Schema.NonEmptyArray<Schema.Struct<{
|
|
45
|
+
readonly change: Schema.Finite;
|
|
46
|
+
readonly concentration: Schema.Finite;
|
|
47
|
+
}>>;
|
|
48
|
+
}>, "figure">;
|
|
49
|
+
PhotosynthesisLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
50
|
+
readonly description: RichSlot<E>;
|
|
51
|
+
readonly title: RichSlot<E>;
|
|
52
|
+
readonly labels: Schema.Struct<{
|
|
53
|
+
readonly bubbles: RichSlot<E>;
|
|
54
|
+
readonly carbon: RichSlot<E>;
|
|
55
|
+
readonly carbonSources: Schema.Struct<{
|
|
56
|
+
readonly added: RichSlot<E>;
|
|
57
|
+
readonly none: RichSlot<E>;
|
|
58
|
+
}>;
|
|
59
|
+
readonly distance: RichSlot<E>;
|
|
60
|
+
readonly intensity: RichSlot<E>;
|
|
61
|
+
readonly reading: Schema.Trimmed;
|
|
62
|
+
readonly view: Schema.Trimmed;
|
|
63
|
+
}>;
|
|
64
|
+
readonly readings: Schema.NonEmptyArray<Schema.Struct<{
|
|
65
|
+
readonly bicarbonate: Schema.optionalKey<Schema.Boolean>;
|
|
66
|
+
readonly bubbles: Schema.Finite;
|
|
67
|
+
readonly distance: Schema.Finite;
|
|
68
|
+
}>>;
|
|
69
|
+
}>, "figure">;
|
|
70
|
+
PotometerLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
71
|
+
readonly description: RichSlot<E>;
|
|
72
|
+
readonly title: RichSlot<E>;
|
|
73
|
+
readonly labels: Schema.Struct<{
|
|
74
|
+
readonly distance: RichSlot<E>;
|
|
75
|
+
readonly rate: RichSlot<E>;
|
|
76
|
+
readonly shoot: Schema.Trimmed;
|
|
77
|
+
readonly time: Schema.Trimmed;
|
|
78
|
+
readonly view: Schema.Trimmed;
|
|
79
|
+
readonly volume: RichSlot<E>;
|
|
80
|
+
}>;
|
|
81
|
+
readonly minutes: Schema.Finite;
|
|
82
|
+
readonly radius: Schema.Finite;
|
|
83
|
+
readonly shoots: Schema.NonEmptyArray<Schema.Struct<{
|
|
84
|
+
readonly coat: Schema.Literals<readonly ["none", "lower", "upper", "both"]>;
|
|
85
|
+
readonly name: Schema.Trimmed;
|
|
86
|
+
readonly rate: Schema.Finite;
|
|
87
|
+
}>>;
|
|
88
|
+
}>, "figure">;
|
|
89
|
+
TropismLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
90
|
+
readonly description: RichSlot<E>;
|
|
91
|
+
readonly title: RichSlot<E>;
|
|
92
|
+
readonly labels: Schema.Struct<{
|
|
93
|
+
readonly bend: RichSlot<E>;
|
|
94
|
+
readonly directions: Schema.Struct<{
|
|
95
|
+
readonly away: RichSlot<E>;
|
|
96
|
+
readonly straight: RichSlot<E>;
|
|
97
|
+
readonly toward: RichSlot<E>;
|
|
98
|
+
}>;
|
|
99
|
+
readonly far: RichSlot<E>;
|
|
100
|
+
readonly growth: RichSlot<E>;
|
|
101
|
+
readonly hours: Schema.Trimmed;
|
|
102
|
+
readonly near: RichSlot<E>;
|
|
103
|
+
readonly root: RichSlot<E>;
|
|
104
|
+
readonly seedling: Schema.Trimmed;
|
|
105
|
+
readonly view: Schema.Trimmed;
|
|
106
|
+
}>;
|
|
107
|
+
readonly setup: Schema.Union<readonly [Schema.Struct<{
|
|
108
|
+
readonly seedlings: Schema.NonEmptyArray<Schema.Struct<{
|
|
109
|
+
readonly name: Schema.Trimmed;
|
|
110
|
+
readonly treatment: Schema.Literals<readonly ["intact", "cut", "cap", "micaShade", "micaLit"]>;
|
|
111
|
+
}>>;
|
|
112
|
+
readonly stimulus: Schema.Literal<"light">;
|
|
113
|
+
}>, Schema.Struct<{
|
|
114
|
+
readonly seedlings: Schema.NonEmptyArray<Schema.Struct<{
|
|
115
|
+
readonly name: Schema.Trimmed;
|
|
116
|
+
readonly treatment: Schema.Literals<readonly ["flat", "klinostat", "decapped"]>;
|
|
117
|
+
}>>;
|
|
118
|
+
readonly stimulus: Schema.Literal<"gravity">;
|
|
119
|
+
}>]>;
|
|
120
|
+
}>, "figure">;
|
|
121
|
+
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { byIds, cardFields, TextSchema, } from "#contracts/visual/card";
|
|
3
|
+
import { figure } from "#contracts/visual/entry";
|
|
4
|
+
/** A count or a measure the lab divides by: a finite number above zero. */
|
|
5
|
+
const PositiveSchema = Schema.Finite.check(Schema.isGreaterThan(0));
|
|
6
|
+
/**
|
|
7
|
+
* Props of `PotometerLab`: a bubble potometer at real size. Each leafy shoot
|
|
8
|
+
* names the leaf surfaces its petroleum jelly covers and the water it takes
|
|
9
|
+
* up, in cubic centimetres an hour; `radius` is the capillary's bore radius in
|
|
10
|
+
* millimetres and `minutes` the length of the run.
|
|
11
|
+
*/
|
|
12
|
+
function potometerLab(rich) {
|
|
13
|
+
return figure(Schema.Struct({
|
|
14
|
+
...cardFields(rich),
|
|
15
|
+
labels: Schema.Struct({
|
|
16
|
+
distance: rich,
|
|
17
|
+
rate: rich,
|
|
18
|
+
shoot: TextSchema,
|
|
19
|
+
time: TextSchema,
|
|
20
|
+
view: TextSchema,
|
|
21
|
+
volume: rich,
|
|
22
|
+
}),
|
|
23
|
+
minutes: PositiveSchema,
|
|
24
|
+
radius: PositiveSchema,
|
|
25
|
+
shoots: Schema.NonEmptyArray(Schema.Struct({
|
|
26
|
+
coat: Schema.Literals(["none", "lower", "upper", "both"]),
|
|
27
|
+
name: TextSchema,
|
|
28
|
+
rate: PositiveSchema,
|
|
29
|
+
})),
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Props of `PhotosynthesisLab`: Hydrilla in a water bath under a bench lamp.
|
|
34
|
+
* Each reading names the lamp's distance in centimetres, the bubbles a minute,
|
|
35
|
+
* and whether sodium hydrogen carbonate was added.
|
|
36
|
+
*/
|
|
37
|
+
function photosynthesisLab(rich) {
|
|
38
|
+
return figure(Schema.Struct({
|
|
39
|
+
...cardFields(rich),
|
|
40
|
+
labels: Schema.Struct({
|
|
41
|
+
bubbles: rich,
|
|
42
|
+
carbon: rich,
|
|
43
|
+
carbonSources: Schema.Struct({ added: rich, none: rich }),
|
|
44
|
+
distance: rich,
|
|
45
|
+
intensity: rich,
|
|
46
|
+
reading: TextSchema,
|
|
47
|
+
view: TextSchema,
|
|
48
|
+
}),
|
|
49
|
+
readings: Schema.NonEmptyArray(Schema.Struct({
|
|
50
|
+
bicarbonate: Schema.optionalKey(Schema.Boolean),
|
|
51
|
+
bubbles: PositiveSchema,
|
|
52
|
+
distance: PositiveSchema,
|
|
53
|
+
})),
|
|
54
|
+
}));
|
|
55
|
+
}
|
|
56
|
+
/** One seedling of a tropism lab: the letter it goes by and what was done to it. */
|
|
57
|
+
function seedling(treatments) {
|
|
58
|
+
return Schema.NonEmptyArray(Schema.Struct({ name: TextSchema, treatment: Schema.Literals(treatments) }));
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Props of `TropismLab`: seedlings lit from the right, each intact, cut,
|
|
62
|
+
* capped or carrying mica on one side, or seedlings laid flat in the dark,
|
|
63
|
+
* left still, on a klinostat or with the root cap removed.
|
|
64
|
+
*/
|
|
65
|
+
function tropismLab(rich) {
|
|
66
|
+
return figure(Schema.Struct({
|
|
67
|
+
...cardFields(rich),
|
|
68
|
+
labels: Schema.Struct({
|
|
69
|
+
bend: rich,
|
|
70
|
+
directions: Schema.Struct({ away: rich, straight: rich, toward: rich }),
|
|
71
|
+
far: rich,
|
|
72
|
+
growth: rich,
|
|
73
|
+
hours: TextSchema,
|
|
74
|
+
near: rich,
|
|
75
|
+
root: rich,
|
|
76
|
+
seedling: TextSchema,
|
|
77
|
+
view: TextSchema,
|
|
78
|
+
}),
|
|
79
|
+
setup: Schema.Union([
|
|
80
|
+
Schema.Struct({
|
|
81
|
+
seedlings: seedling(["intact", "cut", "cap", "micaShade", "micaLit"]),
|
|
82
|
+
stimulus: Schema.Literal("light"),
|
|
83
|
+
}),
|
|
84
|
+
Schema.Struct({
|
|
85
|
+
seedlings: seedling(["flat", "klinostat", "decapped"]),
|
|
86
|
+
stimulus: Schema.Literal("gravity"),
|
|
87
|
+
}),
|
|
88
|
+
]),
|
|
89
|
+
}));
|
|
90
|
+
}
|
|
91
|
+
/** A chromosome count of a plant's body cells: an even whole number, so a gamete gets half. */
|
|
92
|
+
const BodyCountSchema = Schema.Int.check(Schema.isGreaterThan(0), Schema.isMultipleOf(2));
|
|
93
|
+
/**
|
|
94
|
+
* Props of `FertilisationLab`: double fertilisation in a flower cut
|
|
95
|
+
* lengthwise, for a mother and a father plant whose body cells hold `mother`
|
|
96
|
+
* and `father` chromosomes, with the ovules to turn into seeds when the lesson
|
|
97
|
+
* counts them.
|
|
98
|
+
*/
|
|
99
|
+
function fertilisationLab(rich) {
|
|
100
|
+
return figure(Schema.Struct({
|
|
101
|
+
...cardFields(rich),
|
|
102
|
+
father: BodyCountSchema,
|
|
103
|
+
labels: Schema.Struct({
|
|
104
|
+
embryo: rich,
|
|
105
|
+
endosperm: rich,
|
|
106
|
+
gamete: rich,
|
|
107
|
+
grains: rich,
|
|
108
|
+
progress: TextSchema,
|
|
109
|
+
seedCoat: rich,
|
|
110
|
+
stages: byIds(["pollination", "tube", "entry", "fusion"], TextSchema),
|
|
111
|
+
view: TextSchema,
|
|
112
|
+
}),
|
|
113
|
+
mother: BodyCountSchema,
|
|
114
|
+
ovules: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThan(0))),
|
|
115
|
+
}));
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Props of `OsmosisLab`: potato strips in a series of sucrose solutions, each
|
|
119
|
+
* tube's concentration in moles per cubic decimetre and its strip's
|
|
120
|
+
* percentage change in mass, with the starting mass of a strip in grams when
|
|
121
|
+
* the lesson asks for one's final mass.
|
|
122
|
+
*/
|
|
123
|
+
function osmosisLab(rich) {
|
|
124
|
+
return figure(Schema.Struct({
|
|
125
|
+
...cardFields(rich),
|
|
126
|
+
labels: Schema.Struct({
|
|
127
|
+
change: rich,
|
|
128
|
+
concentration: TextSchema,
|
|
129
|
+
isotonic: rich,
|
|
130
|
+
mass: rich,
|
|
131
|
+
none: rich,
|
|
132
|
+
solution: rich,
|
|
133
|
+
tonicities: Schema.Struct({
|
|
134
|
+
hypertonic: rich,
|
|
135
|
+
hypotonic: rich,
|
|
136
|
+
isotonic: rich,
|
|
137
|
+
}),
|
|
138
|
+
view: TextSchema,
|
|
139
|
+
}),
|
|
140
|
+
mass: Schema.optionalKey(PositiveSchema),
|
|
141
|
+
strips: Schema.NonEmptyArray(Schema.Struct({
|
|
142
|
+
change: Schema.Finite,
|
|
143
|
+
concentration: Schema.Finite.check(Schema.isGreaterThanOrEqualTo(0)),
|
|
144
|
+
})),
|
|
145
|
+
}));
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The props of the plant labs. Each prop sets up an apparatus or names its
|
|
149
|
+
* words; none states the conclusion the lab leads to, so none holds answer
|
|
150
|
+
* state.
|
|
151
|
+
*/
|
|
152
|
+
export function plantVisuals(rich) {
|
|
153
|
+
return {
|
|
154
|
+
FertilisationLab: fertilisationLab(rich),
|
|
155
|
+
OsmosisLab: osmosisLab(rich),
|
|
156
|
+
PhotosynthesisLab: photosynthesisLab(rich),
|
|
157
|
+
PotometerLab: potometerLab(rich),
|
|
158
|
+
TropismLab: tropismLab(rich),
|
|
159
|
+
};
|
|
160
|
+
}
|
package/dist/visual/catalog.d.ts
CHANGED
|
@@ -1004,6 +1004,194 @@ export declare function visualCatalog<E>(rich: RichSlot<E>): {
|
|
|
1004
1004
|
}>;
|
|
1005
1005
|
readonly mode: Schema.Literals<readonly ["days", "vaccine"]>;
|
|
1006
1006
|
}>, "figure">;
|
|
1007
|
+
MicroscopeLab: VisualEntry<Schema.Struct<{
|
|
1008
|
+
readonly description: RichSlot<E>;
|
|
1009
|
+
readonly title: RichSlot<E>;
|
|
1010
|
+
readonly cell: Schema.optionalKey<Schema.Finite>;
|
|
1011
|
+
readonly eyepiece: Schema.Finite;
|
|
1012
|
+
readonly field: Schema.optionalKey<Schema.Struct<{
|
|
1013
|
+
readonly diameter: Schema.Finite;
|
|
1014
|
+
readonly magnification: Schema.Finite;
|
|
1015
|
+
}>>;
|
|
1016
|
+
readonly graticule: Schema.optionalKey<Schema.Struct<{
|
|
1017
|
+
readonly eyepiece: Schema.Finite;
|
|
1018
|
+
readonly micrometer: Schema.Finite;
|
|
1019
|
+
}>>;
|
|
1020
|
+
readonly labels: Schema.Struct<{
|
|
1021
|
+
readonly across: RichSlot<E>;
|
|
1022
|
+
readonly cell: RichSlot<E>;
|
|
1023
|
+
readonly division: RichSlot<E>;
|
|
1024
|
+
readonly field: RichSlot<E>;
|
|
1025
|
+
readonly magnification: RichSlot<E>;
|
|
1026
|
+
readonly objective: Schema.Trimmed;
|
|
1027
|
+
readonly span: RichSlot<E>;
|
|
1028
|
+
readonly view: Schema.Trimmed;
|
|
1029
|
+
readonly views: Schema.Struct<{
|
|
1030
|
+
readonly eyepiece: Schema.Trimmed;
|
|
1031
|
+
readonly stand: Schema.Trimmed;
|
|
1032
|
+
}>;
|
|
1033
|
+
}>;
|
|
1034
|
+
readonly objectives: Schema.NonEmptyArray<Schema.Finite>;
|
|
1035
|
+
readonly specimen: Schema.Literals<readonly ["cheek", "onion", "root", "micrometer"]>;
|
|
1036
|
+
}>, "figure">;
|
|
1037
|
+
NephronLab: VisualEntry<Schema.Struct<{
|
|
1038
|
+
readonly description: RichSlot<E>;
|
|
1039
|
+
readonly title: RichSlot<E>;
|
|
1040
|
+
readonly filtration: Schema.Finite;
|
|
1041
|
+
readonly glucose: Schema.optionalKey<Schema.Struct<{
|
|
1042
|
+
readonly maximum: Schema.Finite;
|
|
1043
|
+
readonly plasma: Schema.Finite;
|
|
1044
|
+
}>>;
|
|
1045
|
+
readonly labels: Schema.Struct<{
|
|
1046
|
+
readonly daily: RichSlot<E>;
|
|
1047
|
+
readonly factor: RichSlot<E>;
|
|
1048
|
+
readonly filtrate: RichSlot<E>;
|
|
1049
|
+
readonly flow: RichSlot<E>;
|
|
1050
|
+
readonly load: RichSlot<E>;
|
|
1051
|
+
readonly plasma: Schema.Trimmed;
|
|
1052
|
+
readonly reabsorbed: RichSlot<E>;
|
|
1053
|
+
readonly solute: Schema.Trimmed;
|
|
1054
|
+
readonly solutes: Schema.Struct<{
|
|
1055
|
+
readonly glucose: Schema.Trimmed;
|
|
1056
|
+
readonly urea: Schema.Trimmed;
|
|
1057
|
+
}>;
|
|
1058
|
+
readonly threshold: RichSlot<E>;
|
|
1059
|
+
readonly urine: RichSlot<E>;
|
|
1060
|
+
readonly view: Schema.Trimmed;
|
|
1061
|
+
}>;
|
|
1062
|
+
readonly urea: Schema.optionalKey<Schema.Struct<{
|
|
1063
|
+
readonly plasma: Schema.Finite;
|
|
1064
|
+
readonly urine: Schema.Finite;
|
|
1065
|
+
}>>;
|
|
1066
|
+
}>, "figure">;
|
|
1067
|
+
RespirometerLab: VisualEntry<Schema.Struct<{
|
|
1068
|
+
readonly description: RichSlot<E>;
|
|
1069
|
+
readonly title: RichSlot<E>;
|
|
1070
|
+
readonly carbonDioxide: Schema.Finite;
|
|
1071
|
+
readonly labels: Schema.Struct<{
|
|
1072
|
+
readonly potash: RichSlot<E>;
|
|
1073
|
+
readonly quotient: RichSlot<E>;
|
|
1074
|
+
readonly substrate: RichSlot<E>;
|
|
1075
|
+
readonly substrates: Schema.$Record<Schema.Literals<readonly ["fat", "protein", "carbohydrate", "anaerobic"]>, RichSlot<E>>;
|
|
1076
|
+
readonly time: Schema.Trimmed;
|
|
1077
|
+
readonly view: Schema.Trimmed;
|
|
1078
|
+
readonly water: RichSlot<E>;
|
|
1079
|
+
}>;
|
|
1080
|
+
readonly minutes: Schema.Finite;
|
|
1081
|
+
readonly oxygen: Schema.Finite;
|
|
1082
|
+
}>, "figure">;
|
|
1083
|
+
FertilisationLab: VisualEntry<Schema.Struct<{
|
|
1084
|
+
readonly description: RichSlot<E>;
|
|
1085
|
+
readonly title: RichSlot<E>;
|
|
1086
|
+
readonly father: Schema.Int;
|
|
1087
|
+
readonly labels: Schema.Struct<{
|
|
1088
|
+
readonly embryo: RichSlot<E>;
|
|
1089
|
+
readonly endosperm: RichSlot<E>;
|
|
1090
|
+
readonly gamete: RichSlot<E>;
|
|
1091
|
+
readonly grains: RichSlot<E>;
|
|
1092
|
+
readonly progress: Schema.Trimmed;
|
|
1093
|
+
readonly seedCoat: RichSlot<E>;
|
|
1094
|
+
readonly stages: Schema.$Record<Schema.Literals<readonly ["pollination", "tube", "entry", "fusion"]>, Schema.Trimmed>;
|
|
1095
|
+
readonly view: Schema.Trimmed;
|
|
1096
|
+
}>;
|
|
1097
|
+
readonly mother: Schema.Int;
|
|
1098
|
+
readonly ovules: Schema.optionalKey<Schema.Int>;
|
|
1099
|
+
}>, "figure">;
|
|
1100
|
+
OsmosisLab: VisualEntry<Schema.Struct<{
|
|
1101
|
+
readonly description: RichSlot<E>;
|
|
1102
|
+
readonly title: RichSlot<E>;
|
|
1103
|
+
readonly labels: Schema.Struct<{
|
|
1104
|
+
readonly change: RichSlot<E>;
|
|
1105
|
+
readonly concentration: Schema.Trimmed;
|
|
1106
|
+
readonly isotonic: RichSlot<E>;
|
|
1107
|
+
readonly mass: RichSlot<E>;
|
|
1108
|
+
readonly none: RichSlot<E>;
|
|
1109
|
+
readonly solution: RichSlot<E>;
|
|
1110
|
+
readonly tonicities: Schema.Struct<{
|
|
1111
|
+
readonly hypertonic: RichSlot<E>;
|
|
1112
|
+
readonly hypotonic: RichSlot<E>;
|
|
1113
|
+
readonly isotonic: RichSlot<E>;
|
|
1114
|
+
}>;
|
|
1115
|
+
readonly view: Schema.Trimmed;
|
|
1116
|
+
}>;
|
|
1117
|
+
readonly mass: Schema.optionalKey<Schema.Finite>;
|
|
1118
|
+
readonly strips: Schema.NonEmptyArray<Schema.Struct<{
|
|
1119
|
+
readonly change: Schema.Finite;
|
|
1120
|
+
readonly concentration: Schema.Finite;
|
|
1121
|
+
}>>;
|
|
1122
|
+
}>, "figure">;
|
|
1123
|
+
PhotosynthesisLab: VisualEntry<Schema.Struct<{
|
|
1124
|
+
readonly description: RichSlot<E>;
|
|
1125
|
+
readonly title: RichSlot<E>;
|
|
1126
|
+
readonly labels: Schema.Struct<{
|
|
1127
|
+
readonly bubbles: RichSlot<E>;
|
|
1128
|
+
readonly carbon: RichSlot<E>;
|
|
1129
|
+
readonly carbonSources: Schema.Struct<{
|
|
1130
|
+
readonly added: RichSlot<E>;
|
|
1131
|
+
readonly none: RichSlot<E>;
|
|
1132
|
+
}>;
|
|
1133
|
+
readonly distance: RichSlot<E>;
|
|
1134
|
+
readonly intensity: RichSlot<E>;
|
|
1135
|
+
readonly reading: Schema.Trimmed;
|
|
1136
|
+
readonly view: Schema.Trimmed;
|
|
1137
|
+
}>;
|
|
1138
|
+
readonly readings: Schema.NonEmptyArray<Schema.Struct<{
|
|
1139
|
+
readonly bicarbonate: Schema.optionalKey<Schema.Boolean>;
|
|
1140
|
+
readonly bubbles: Schema.Finite;
|
|
1141
|
+
readonly distance: Schema.Finite;
|
|
1142
|
+
}>>;
|
|
1143
|
+
}>, "figure">;
|
|
1144
|
+
PotometerLab: VisualEntry<Schema.Struct<{
|
|
1145
|
+
readonly description: RichSlot<E>;
|
|
1146
|
+
readonly title: RichSlot<E>;
|
|
1147
|
+
readonly labels: Schema.Struct<{
|
|
1148
|
+
readonly distance: RichSlot<E>;
|
|
1149
|
+
readonly rate: RichSlot<E>;
|
|
1150
|
+
readonly shoot: Schema.Trimmed;
|
|
1151
|
+
readonly time: Schema.Trimmed;
|
|
1152
|
+
readonly view: Schema.Trimmed;
|
|
1153
|
+
readonly volume: RichSlot<E>;
|
|
1154
|
+
}>;
|
|
1155
|
+
readonly minutes: Schema.Finite;
|
|
1156
|
+
readonly radius: Schema.Finite;
|
|
1157
|
+
readonly shoots: Schema.NonEmptyArray<Schema.Struct<{
|
|
1158
|
+
readonly coat: Schema.Literals<readonly ["none", "lower", "upper", "both"]>;
|
|
1159
|
+
readonly name: Schema.Trimmed;
|
|
1160
|
+
readonly rate: Schema.Finite;
|
|
1161
|
+
}>>;
|
|
1162
|
+
}>, "figure">;
|
|
1163
|
+
TropismLab: VisualEntry<Schema.Struct<{
|
|
1164
|
+
readonly description: RichSlot<E>;
|
|
1165
|
+
readonly title: RichSlot<E>;
|
|
1166
|
+
readonly labels: Schema.Struct<{
|
|
1167
|
+
readonly bend: RichSlot<E>;
|
|
1168
|
+
readonly directions: Schema.Struct<{
|
|
1169
|
+
readonly away: RichSlot<E>;
|
|
1170
|
+
readonly straight: RichSlot<E>;
|
|
1171
|
+
readonly toward: RichSlot<E>;
|
|
1172
|
+
}>;
|
|
1173
|
+
readonly far: RichSlot<E>;
|
|
1174
|
+
readonly growth: RichSlot<E>;
|
|
1175
|
+
readonly hours: Schema.Trimmed;
|
|
1176
|
+
readonly near: RichSlot<E>;
|
|
1177
|
+
readonly root: RichSlot<E>;
|
|
1178
|
+
readonly seedling: Schema.Trimmed;
|
|
1179
|
+
readonly view: Schema.Trimmed;
|
|
1180
|
+
}>;
|
|
1181
|
+
readonly setup: Schema.Union<readonly [Schema.Struct<{
|
|
1182
|
+
readonly seedlings: Schema.NonEmptyArray<Schema.Struct<{
|
|
1183
|
+
readonly name: Schema.Trimmed;
|
|
1184
|
+
readonly treatment: Schema.Literals<readonly ["intact", "cut", "cap", "micaShade", "micaLit"]>;
|
|
1185
|
+
}>>;
|
|
1186
|
+
readonly stimulus: Schema.Literal<"light">;
|
|
1187
|
+
}>, Schema.Struct<{
|
|
1188
|
+
readonly seedlings: Schema.NonEmptyArray<Schema.Struct<{
|
|
1189
|
+
readonly name: Schema.Trimmed;
|
|
1190
|
+
readonly treatment: Schema.Literals<readonly ["flat", "klinostat", "decapped"]>;
|
|
1191
|
+
}>>;
|
|
1192
|
+
readonly stimulus: Schema.Literal<"gravity">;
|
|
1193
|
+
}>]>;
|
|
1194
|
+
}>, "figure">;
|
|
1007
1195
|
AncientAtomLab: VisualEntry<Schema.Struct<{
|
|
1008
1196
|
readonly description: RichSlot<E>;
|
|
1009
1197
|
readonly title: RichSlot<E>;
|
|
@@ -3226,7 +3414,7 @@ export type AssessmentVisuals = ReturnType<typeof visualCatalog<typeof RichTextS
|
|
|
3226
3414
|
*/
|
|
3227
3415
|
export declare const assessmentVisuals: AssessmentVisuals;
|
|
3228
3416
|
/** Every catalog name, in code-unit order. */
|
|
3229
|
-
export declare const VISUAL_NAMES: ("AccelerationGraphCard" | "AccelerationLab" | "AgentContext" | "AircraftCrosswindLab" | "AlkaliWaterLab" | "AncientAtomLab" | "AntibodyNeutralizeLab" | "AtomShellLab" | "AtomSymbolLab" | "AverageVelocitySpeedLab" | "BacteriaStructureLab" | "BacterialGrowth" | "BarChart" | "BicycleWheelSpeedLab" | "BinaryFissionLab" | "BiogasDigesterLab" | "BlockMath" | "BohrEmissionLab" | "BoltDimensionsLab" | "BrakeHeatLab" | "BrakingSurfaceLab" | "CarTripSecantSlopeLab" | "CarbonBudgetLab" | "CathodeRayLab" | "CellCutawayLab" | "CellScaleLab" | "Chart" | "ChemicalCellLab" | "ChemicalReactionCharacteristicsLab" | "ChemicalReactionTypesLab" | "ChemotaxisLab" | "CityWalkDisplacementLab" | "ClimateObservationLab" | "CodeBlock" | "CombiningVolumesLab" | "CommonReferenceLab" | "ConstantCompositionLab" | "ContentBlock" | "ContentGrid" | "ContentStack" | "CoralBleachLab" | "DaltonEvidenceLab" | "DecimalSumLab" | "DensityMeasurementLab" | "DimensionLab" | "DisplacementDistanceLab" | "DnaHelixLab" | "DoorHingeTorqueLab" | "DroneDisplacementLab" | "ElectrolysisLab" | "ElectronConfigurationLab" | "EnergyFlowLossLab" | "EpidemicSpreadLab" | "FallingTargetAimLab" | "FeatherCoinVacuumLab" | "FizzBalanceLab" | "FlashlightEfficiencyLab" | "FollowingDistanceLab" | "ForceTableResultantLab" | "FuelCombustionCarbonLab" | "FunctionAndNonFunctionDiagram" | "FunctionAndNonFunctionRelationVisualizer" | "FunctionChart" | "FunctionExplorationVirusChart" | "FunctionMachine" | "FungiMyceliumLab" | "GalileoInclineBellsLab" | "GasRateLab" | "GeothermalLoopLab" | "GramStainLab" | "GreenhouseEffectLab" | "GreenhouseLayerLab" | "GridLoadCurveLab" | "Highlight" | "HistogramChart" | "HoistWorkLab" | "HoseJetProjectileLab" | "HydroDamLab" | "HyphaeDecayLab" | "InlineMath" | "InstantaneousVelocitySpeedLab" | "InverseFunctionIllustration" | "IonFormationLab" | "IonLab" | "IonLatticeLab" | "IsotopeLab" | "KettleHeatingLab" | "KimPlusElectabilityChart" | "KiteStringTensionLab" | "LavoisierCalxLab" | "LightGateSpeedLab" | "MassConservationLab" | "MassSpectrometerLab" | "MathContainer" | "MathVisual" | "MatterParticleReaderLab" | "MeasurementToolsLab" | "MerahPutihCabinetChart" | "MerahPutihCompositionChart" | "Mermaid" | "MethaneCombustionEquationLab" | "MicrohydroLab" | "MicrometerScrewLab" | "MicroscopeScaleLab" | "MillikanOilDropLab" | "ModernPeriodicTableLab" | "MoleculeShapeLab" | "MultipleProportionsLab" | "NepotismStage" | "NepotismStateTable" | "NonUniformLinearMotionGraphCard" | "NonUniformLinearMotionLab" | "OrbitalCloudLab" | "OrienteeringMapVectorLab" | "PaperStackLab" | "ParabolicMovementAnalysisLab" | "ParabolicMovementLab" | "ParallaxReadingLab" | "ParticleTrackLab" | "PendulumEnergyLab" | "PendulumPeriodLab" | "PeriodicPropertiesLab" | "PorkBarrelBudgetChart" | "PorkBarrelElectabilityChart" | "PorkBarrelFundChart" | "PrecipitateLab" | "PredatorPreyLab" | "QuadraticEquationReadingRoomProblem" | "RadioactiveDecayLab" | "RainDriveRelativeVelocityLab" | "RampBlockComponentLab" | "ReactionBalanceLab" | "ReactionTimeLab" | "RelativeMovementLab" | "RiverBoatCrossingLab" | "RunningTrackDisplacementLab" | "RutherfordScatteringLab" | "SarsCov2VirionLab" | "SatelliteOrbitCircularLab" | "ScatterDiagram" | "SeaLevelRiseLab" | "SequenceConceptTableChairsAnimation" | "ShipBearingComponentLab" | "SignificantZerosLab" | "SledPullWorkLab" | "SolarBatteryStorageLab" | "SolarPanelAngleLab" | "SolarPanelFluxLab" | "SolarPanelHeatLab" | "SolarRoofPaybackLab" | "SpeedTrapInstantSpeedLab" | "SteamPlantCycleLab" | "SteelWoolLab" | "StoppingDistanceLab" | "StopwatchSpreadLab" | "StreetOriginPositionLab" | "StringWhirlReleaseLab" | "StrobePhotoMotionLab" | "SubatomicParticlePropertiesLab" | "SubatomicParticlesLab" | "TickerTapeMotionLab" | "TitrationLab" | "TrainPassengerRelativeLab" | "TugOfWarForceLab" | "TugboatResultantLab" | "UniformCircularMotionLab" | "UniformLinearMotionLab" | "UnitSystemsLab" | "ValenceElectronLab" | "VectorConceptLab" | "VelocitySpeedLab" | "VernierCaliperLab" | "VerticalMovementLab" | "VirusMorphologyLab" | "VirusReplicationLab" | "VirusRoleLab" | "VirusStructureLab" | "WaveBuoyPowerLab" | "WeightLampEnergyLab" | "WindEnergyConversionLab" | "WindMapVectorLab" | "WindRotorLab" | "WrenchTorqueLab" | "YogurtLab" | "Youtube")[];
|
|
3417
|
+
export declare const VISUAL_NAMES: ("AccelerationGraphCard" | "AccelerationLab" | "AgentContext" | "AircraftCrosswindLab" | "AlkaliWaterLab" | "AncientAtomLab" | "AntibodyNeutralizeLab" | "AtomShellLab" | "AtomSymbolLab" | "AverageVelocitySpeedLab" | "BacteriaStructureLab" | "BacterialGrowth" | "BarChart" | "BicycleWheelSpeedLab" | "BinaryFissionLab" | "BiogasDigesterLab" | "BlockMath" | "BohrEmissionLab" | "BoltDimensionsLab" | "BrakeHeatLab" | "BrakingSurfaceLab" | "CarTripSecantSlopeLab" | "CarbonBudgetLab" | "CathodeRayLab" | "CellCutawayLab" | "CellScaleLab" | "Chart" | "ChemicalCellLab" | "ChemicalReactionCharacteristicsLab" | "ChemicalReactionTypesLab" | "ChemotaxisLab" | "CityWalkDisplacementLab" | "ClimateObservationLab" | "CodeBlock" | "CombiningVolumesLab" | "CommonReferenceLab" | "ConstantCompositionLab" | "ContentBlock" | "ContentGrid" | "ContentStack" | "CoralBleachLab" | "DaltonEvidenceLab" | "DecimalSumLab" | "DensityMeasurementLab" | "DimensionLab" | "DisplacementDistanceLab" | "DnaHelixLab" | "DoorHingeTorqueLab" | "DroneDisplacementLab" | "ElectrolysisLab" | "ElectronConfigurationLab" | "EnergyFlowLossLab" | "EpidemicSpreadLab" | "FallingTargetAimLab" | "FeatherCoinVacuumLab" | "FertilisationLab" | "FizzBalanceLab" | "FlashlightEfficiencyLab" | "FollowingDistanceLab" | "ForceTableResultantLab" | "FuelCombustionCarbonLab" | "FunctionAndNonFunctionDiagram" | "FunctionAndNonFunctionRelationVisualizer" | "FunctionChart" | "FunctionExplorationVirusChart" | "FunctionMachine" | "FungiMyceliumLab" | "GalileoInclineBellsLab" | "GasRateLab" | "GeothermalLoopLab" | "GramStainLab" | "GreenhouseEffectLab" | "GreenhouseLayerLab" | "GridLoadCurveLab" | "Highlight" | "HistogramChart" | "HoistWorkLab" | "HoseJetProjectileLab" | "HydroDamLab" | "HyphaeDecayLab" | "InlineMath" | "InstantaneousVelocitySpeedLab" | "InverseFunctionIllustration" | "IonFormationLab" | "IonLab" | "IonLatticeLab" | "IsotopeLab" | "KettleHeatingLab" | "KimPlusElectabilityChart" | "KiteStringTensionLab" | "LavoisierCalxLab" | "LightGateSpeedLab" | "MassConservationLab" | "MassSpectrometerLab" | "MathContainer" | "MathVisual" | "MatterParticleReaderLab" | "MeasurementToolsLab" | "MerahPutihCabinetChart" | "MerahPutihCompositionChart" | "Mermaid" | "MethaneCombustionEquationLab" | "MicrohydroLab" | "MicrometerScrewLab" | "MicroscopeLab" | "MicroscopeScaleLab" | "MillikanOilDropLab" | "ModernPeriodicTableLab" | "MoleculeShapeLab" | "MultipleProportionsLab" | "NephronLab" | "NepotismStage" | "NepotismStateTable" | "NonUniformLinearMotionGraphCard" | "NonUniformLinearMotionLab" | "OrbitalCloudLab" | "OrienteeringMapVectorLab" | "OsmosisLab" | "PaperStackLab" | "ParabolicMovementAnalysisLab" | "ParabolicMovementLab" | "ParallaxReadingLab" | "ParticleTrackLab" | "PendulumEnergyLab" | "PendulumPeriodLab" | "PeriodicPropertiesLab" | "PhotosynthesisLab" | "PorkBarrelBudgetChart" | "PorkBarrelElectabilityChart" | "PorkBarrelFundChart" | "PotometerLab" | "PrecipitateLab" | "PredatorPreyLab" | "QuadraticEquationReadingRoomProblem" | "RadioactiveDecayLab" | "RainDriveRelativeVelocityLab" | "RampBlockComponentLab" | "ReactionBalanceLab" | "ReactionTimeLab" | "RelativeMovementLab" | "RespirometerLab" | "RiverBoatCrossingLab" | "RunningTrackDisplacementLab" | "RutherfordScatteringLab" | "SarsCov2VirionLab" | "SatelliteOrbitCircularLab" | "ScatterDiagram" | "SeaLevelRiseLab" | "SequenceConceptTableChairsAnimation" | "ShipBearingComponentLab" | "SignificantZerosLab" | "SledPullWorkLab" | "SolarBatteryStorageLab" | "SolarPanelAngleLab" | "SolarPanelFluxLab" | "SolarPanelHeatLab" | "SolarRoofPaybackLab" | "SpeedTrapInstantSpeedLab" | "SteamPlantCycleLab" | "SteelWoolLab" | "StoppingDistanceLab" | "StopwatchSpreadLab" | "StreetOriginPositionLab" | "StringWhirlReleaseLab" | "StrobePhotoMotionLab" | "SubatomicParticlePropertiesLab" | "SubatomicParticlesLab" | "TickerTapeMotionLab" | "TitrationLab" | "TrainPassengerRelativeLab" | "TropismLab" | "TugOfWarForceLab" | "TugboatResultantLab" | "UniformCircularMotionLab" | "UniformLinearMotionLab" | "UnitSystemsLab" | "ValenceElectronLab" | "VectorConceptLab" | "VelocitySpeedLab" | "VernierCaliperLab" | "VerticalMovementLab" | "VirusMorphologyLab" | "VirusReplicationLab" | "VirusRoleLab" | "VirusStructureLab" | "WaveBuoyPowerLab" | "WeightLampEnergyLab" | "WindEnergyConversionLab" | "WindMapVectorLab" | "WindRotorLab" | "WrenchTorqueLab" | "YogurtLab" | "Youtube")[];
|
|
3230
3418
|
/** The name of one catalog component that a document draws as a figure. */
|
|
3231
3419
|
export type FigureName = {
|
|
3232
3420
|
readonly [Name in VisualName]: AssessmentVisuals[Name]["kind"] extends "figure" ? Name : never;
|
|
@@ -3234,7 +3422,7 @@ export type FigureName = {
|
|
|
3234
3422
|
/** The catalog components a document draws as a figure, in code-unit order. */
|
|
3235
3423
|
export declare const FIGURE_NAMES: FigureName[];
|
|
3236
3424
|
/** The name of one catalog component. */
|
|
3237
|
-
export declare const VisualNameSchema: Schema.Literals<("AccelerationGraphCard" | "AccelerationLab" | "AgentContext" | "AircraftCrosswindLab" | "AlkaliWaterLab" | "AncientAtomLab" | "AntibodyNeutralizeLab" | "AtomShellLab" | "AtomSymbolLab" | "AverageVelocitySpeedLab" | "BacteriaStructureLab" | "BacterialGrowth" | "BarChart" | "BicycleWheelSpeedLab" | "BinaryFissionLab" | "BiogasDigesterLab" | "BlockMath" | "BohrEmissionLab" | "BoltDimensionsLab" | "BrakeHeatLab" | "BrakingSurfaceLab" | "CarTripSecantSlopeLab" | "CarbonBudgetLab" | "CathodeRayLab" | "CellCutawayLab" | "CellScaleLab" | "Chart" | "ChemicalCellLab" | "ChemicalReactionCharacteristicsLab" | "ChemicalReactionTypesLab" | "ChemotaxisLab" | "CityWalkDisplacementLab" | "ClimateObservationLab" | "CodeBlock" | "CombiningVolumesLab" | "CommonReferenceLab" | "ConstantCompositionLab" | "ContentBlock" | "ContentGrid" | "ContentStack" | "CoralBleachLab" | "DaltonEvidenceLab" | "DecimalSumLab" | "DensityMeasurementLab" | "DimensionLab" | "DisplacementDistanceLab" | "DnaHelixLab" | "DoorHingeTorqueLab" | "DroneDisplacementLab" | "ElectrolysisLab" | "ElectronConfigurationLab" | "EnergyFlowLossLab" | "EpidemicSpreadLab" | "FallingTargetAimLab" | "FeatherCoinVacuumLab" | "FizzBalanceLab" | "FlashlightEfficiencyLab" | "FollowingDistanceLab" | "ForceTableResultantLab" | "FuelCombustionCarbonLab" | "FunctionAndNonFunctionDiagram" | "FunctionAndNonFunctionRelationVisualizer" | "FunctionChart" | "FunctionExplorationVirusChart" | "FunctionMachine" | "FungiMyceliumLab" | "GalileoInclineBellsLab" | "GasRateLab" | "GeothermalLoopLab" | "GramStainLab" | "GreenhouseEffectLab" | "GreenhouseLayerLab" | "GridLoadCurveLab" | "Highlight" | "HistogramChart" | "HoistWorkLab" | "HoseJetProjectileLab" | "HydroDamLab" | "HyphaeDecayLab" | "InlineMath" | "InstantaneousVelocitySpeedLab" | "InverseFunctionIllustration" | "IonFormationLab" | "IonLab" | "IonLatticeLab" | "IsotopeLab" | "KettleHeatingLab" | "KimPlusElectabilityChart" | "KiteStringTensionLab" | "LavoisierCalxLab" | "LightGateSpeedLab" | "MassConservationLab" | "MassSpectrometerLab" | "MathContainer" | "MathVisual" | "MatterParticleReaderLab" | "MeasurementToolsLab" | "MerahPutihCabinetChart" | "MerahPutihCompositionChart" | "Mermaid" | "MethaneCombustionEquationLab" | "MicrohydroLab" | "MicrometerScrewLab" | "MicroscopeScaleLab" | "MillikanOilDropLab" | "ModernPeriodicTableLab" | "MoleculeShapeLab" | "MultipleProportionsLab" | "NepotismStage" | "NepotismStateTable" | "NonUniformLinearMotionGraphCard" | "NonUniformLinearMotionLab" | "OrbitalCloudLab" | "OrienteeringMapVectorLab" | "PaperStackLab" | "ParabolicMovementAnalysisLab" | "ParabolicMovementLab" | "ParallaxReadingLab" | "ParticleTrackLab" | "PendulumEnergyLab" | "PendulumPeriodLab" | "PeriodicPropertiesLab" | "PorkBarrelBudgetChart" | "PorkBarrelElectabilityChart" | "PorkBarrelFundChart" | "PrecipitateLab" | "PredatorPreyLab" | "QuadraticEquationReadingRoomProblem" | "RadioactiveDecayLab" | "RainDriveRelativeVelocityLab" | "RampBlockComponentLab" | "ReactionBalanceLab" | "ReactionTimeLab" | "RelativeMovementLab" | "RiverBoatCrossingLab" | "RunningTrackDisplacementLab" | "RutherfordScatteringLab" | "SarsCov2VirionLab" | "SatelliteOrbitCircularLab" | "ScatterDiagram" | "SeaLevelRiseLab" | "SequenceConceptTableChairsAnimation" | "ShipBearingComponentLab" | "SignificantZerosLab" | "SledPullWorkLab" | "SolarBatteryStorageLab" | "SolarPanelAngleLab" | "SolarPanelFluxLab" | "SolarPanelHeatLab" | "SolarRoofPaybackLab" | "SpeedTrapInstantSpeedLab" | "SteamPlantCycleLab" | "SteelWoolLab" | "StoppingDistanceLab" | "StopwatchSpreadLab" | "StreetOriginPositionLab" | "StringWhirlReleaseLab" | "StrobePhotoMotionLab" | "SubatomicParticlePropertiesLab" | "SubatomicParticlesLab" | "TickerTapeMotionLab" | "TitrationLab" | "TrainPassengerRelativeLab" | "TugOfWarForceLab" | "TugboatResultantLab" | "UniformCircularMotionLab" | "UniformLinearMotionLab" | "UnitSystemsLab" | "ValenceElectronLab" | "VectorConceptLab" | "VelocitySpeedLab" | "VernierCaliperLab" | "VerticalMovementLab" | "VirusMorphologyLab" | "VirusReplicationLab" | "VirusRoleLab" | "VirusStructureLab" | "WaveBuoyPowerLab" | "WeightLampEnergyLab" | "WindEnergyConversionLab" | "WindMapVectorLab" | "WindRotorLab" | "WrenchTorqueLab" | "YogurtLab" | "Youtube")[]>;
|
|
3425
|
+
export declare const VisualNameSchema: Schema.Literals<("AccelerationGraphCard" | "AccelerationLab" | "AgentContext" | "AircraftCrosswindLab" | "AlkaliWaterLab" | "AncientAtomLab" | "AntibodyNeutralizeLab" | "AtomShellLab" | "AtomSymbolLab" | "AverageVelocitySpeedLab" | "BacteriaStructureLab" | "BacterialGrowth" | "BarChart" | "BicycleWheelSpeedLab" | "BinaryFissionLab" | "BiogasDigesterLab" | "BlockMath" | "BohrEmissionLab" | "BoltDimensionsLab" | "BrakeHeatLab" | "BrakingSurfaceLab" | "CarTripSecantSlopeLab" | "CarbonBudgetLab" | "CathodeRayLab" | "CellCutawayLab" | "CellScaleLab" | "Chart" | "ChemicalCellLab" | "ChemicalReactionCharacteristicsLab" | "ChemicalReactionTypesLab" | "ChemotaxisLab" | "CityWalkDisplacementLab" | "ClimateObservationLab" | "CodeBlock" | "CombiningVolumesLab" | "CommonReferenceLab" | "ConstantCompositionLab" | "ContentBlock" | "ContentGrid" | "ContentStack" | "CoralBleachLab" | "DaltonEvidenceLab" | "DecimalSumLab" | "DensityMeasurementLab" | "DimensionLab" | "DisplacementDistanceLab" | "DnaHelixLab" | "DoorHingeTorqueLab" | "DroneDisplacementLab" | "ElectrolysisLab" | "ElectronConfigurationLab" | "EnergyFlowLossLab" | "EpidemicSpreadLab" | "FallingTargetAimLab" | "FeatherCoinVacuumLab" | "FertilisationLab" | "FizzBalanceLab" | "FlashlightEfficiencyLab" | "FollowingDistanceLab" | "ForceTableResultantLab" | "FuelCombustionCarbonLab" | "FunctionAndNonFunctionDiagram" | "FunctionAndNonFunctionRelationVisualizer" | "FunctionChart" | "FunctionExplorationVirusChart" | "FunctionMachine" | "FungiMyceliumLab" | "GalileoInclineBellsLab" | "GasRateLab" | "GeothermalLoopLab" | "GramStainLab" | "GreenhouseEffectLab" | "GreenhouseLayerLab" | "GridLoadCurveLab" | "Highlight" | "HistogramChart" | "HoistWorkLab" | "HoseJetProjectileLab" | "HydroDamLab" | "HyphaeDecayLab" | "InlineMath" | "InstantaneousVelocitySpeedLab" | "InverseFunctionIllustration" | "IonFormationLab" | "IonLab" | "IonLatticeLab" | "IsotopeLab" | "KettleHeatingLab" | "KimPlusElectabilityChart" | "KiteStringTensionLab" | "LavoisierCalxLab" | "LightGateSpeedLab" | "MassConservationLab" | "MassSpectrometerLab" | "MathContainer" | "MathVisual" | "MatterParticleReaderLab" | "MeasurementToolsLab" | "MerahPutihCabinetChart" | "MerahPutihCompositionChart" | "Mermaid" | "MethaneCombustionEquationLab" | "MicrohydroLab" | "MicrometerScrewLab" | "MicroscopeLab" | "MicroscopeScaleLab" | "MillikanOilDropLab" | "ModernPeriodicTableLab" | "MoleculeShapeLab" | "MultipleProportionsLab" | "NephronLab" | "NepotismStage" | "NepotismStateTable" | "NonUniformLinearMotionGraphCard" | "NonUniformLinearMotionLab" | "OrbitalCloudLab" | "OrienteeringMapVectorLab" | "OsmosisLab" | "PaperStackLab" | "ParabolicMovementAnalysisLab" | "ParabolicMovementLab" | "ParallaxReadingLab" | "ParticleTrackLab" | "PendulumEnergyLab" | "PendulumPeriodLab" | "PeriodicPropertiesLab" | "PhotosynthesisLab" | "PorkBarrelBudgetChart" | "PorkBarrelElectabilityChart" | "PorkBarrelFundChart" | "PotometerLab" | "PrecipitateLab" | "PredatorPreyLab" | "QuadraticEquationReadingRoomProblem" | "RadioactiveDecayLab" | "RainDriveRelativeVelocityLab" | "RampBlockComponentLab" | "ReactionBalanceLab" | "ReactionTimeLab" | "RelativeMovementLab" | "RespirometerLab" | "RiverBoatCrossingLab" | "RunningTrackDisplacementLab" | "RutherfordScatteringLab" | "SarsCov2VirionLab" | "SatelliteOrbitCircularLab" | "ScatterDiagram" | "SeaLevelRiseLab" | "SequenceConceptTableChairsAnimation" | "ShipBearingComponentLab" | "SignificantZerosLab" | "SledPullWorkLab" | "SolarBatteryStorageLab" | "SolarPanelAngleLab" | "SolarPanelFluxLab" | "SolarPanelHeatLab" | "SolarRoofPaybackLab" | "SpeedTrapInstantSpeedLab" | "SteamPlantCycleLab" | "SteelWoolLab" | "StoppingDistanceLab" | "StopwatchSpreadLab" | "StreetOriginPositionLab" | "StringWhirlReleaseLab" | "StrobePhotoMotionLab" | "SubatomicParticlePropertiesLab" | "SubatomicParticlesLab" | "TickerTapeMotionLab" | "TitrationLab" | "TrainPassengerRelativeLab" | "TropismLab" | "TugOfWarForceLab" | "TugboatResultantLab" | "UniformCircularMotionLab" | "UniformLinearMotionLab" | "UnitSystemsLab" | "ValenceElectronLab" | "VectorConceptLab" | "VelocitySpeedLab" | "VernierCaliperLab" | "VerticalMovementLab" | "VirusMorphologyLab" | "VirusReplicationLab" | "VirusRoleLab" | "VirusStructureLab" | "WaveBuoyPowerLab" | "WeightLampEnergyLab" | "WindEnergyConversionLab" | "WindMapVectorLab" | "WindRotorLab" | "WrenchTorqueLab" | "YogurtLab" | "Youtube")[]>;
|
|
3238
3426
|
/** The name of one catalog component that a document draws as a figure. */
|
|
3239
3427
|
export declare const FigureNameSchema: Schema.Literals<FigureName[]>;
|
|
3240
3428
|
/**
|
package/dist/visual/catalog.js
CHANGED
|
@@ -8,6 +8,8 @@ import { bacteriaVisuals } from "#contracts/visual/biology/bacteria";
|
|
|
8
8
|
import { cellVisuals } from "#contracts/visual/biology/cell";
|
|
9
9
|
import { climateVisuals } from "#contracts/visual/biology/climate";
|
|
10
10
|
import { ecologyVisuals } from "#contracts/visual/biology/ecology";
|
|
11
|
+
import { physiologyVisuals } from "#contracts/visual/biology/physiology";
|
|
12
|
+
import { plantVisuals } from "#contracts/visual/biology/plant";
|
|
11
13
|
import { atomVisuals } from "#contracts/visual/chemistry/atom";
|
|
12
14
|
import { balanceVisuals } from "#contracts/visual/chemistry/balance";
|
|
13
15
|
import { bondingVisuals } from "#contracts/visual/chemistry/bonding";
|
|
@@ -77,6 +79,8 @@ export function visualCatalog(rich) {
|
|
|
77
79
|
...cellVisuals(rich),
|
|
78
80
|
...climateVisuals(rich),
|
|
79
81
|
...ecologyVisuals(rich),
|
|
82
|
+
...physiologyVisuals(rich),
|
|
83
|
+
...plantVisuals(rich),
|
|
80
84
|
...balanceVisuals(rich),
|
|
81
85
|
...bondingVisuals(rich),
|
|
82
86
|
...discoveryVisuals(rich),
|
package/package.json
CHANGED