@nakafa/aksara-contracts 8.10.0 → 8.13.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/visual/biology/binomial.d.ts +139 -0
- package/dist/visual/biology/binomial.js +46 -0
- package/dist/visual/biology/bone.d.ts +141 -0
- package/dist/visual/biology/bone.js +46 -0
- package/dist/visual/biology/chromosome.d.ts +139 -0
- package/dist/visual/biology/chromosome.js +42 -0
- package/dist/visual/biology/control.d.ts +17 -0
- package/dist/visual/biology/control.js +21 -0
- package/dist/visual/biology/denature.d.ts +159 -0
- package/dist/visual/biology/denature.js +74 -0
- package/dist/visual/biology/drawing.d.ts +151 -0
- package/dist/visual/biology/drawing.js +69 -0
- package/dist/visual/biology/enzyme.d.ts +145 -0
- package/dist/visual/biology/enzyme.js +54 -0
- package/dist/visual/biology/equipment.d.ts +140 -0
- package/dist/visual/biology/equipment.js +64 -0
- package/dist/visual/biology/gametogenesis.d.ts +145 -0
- package/dist/visual/biology/gametogenesis.js +83 -0
- package/dist/visual/biology/implantation.d.ts +138 -0
- package/dist/visual/biology/implantation.js +44 -0
- package/dist/visual/biology/joint.d.ts +140 -0
- package/dist/visual/biology/joint.js +47 -0
- package/dist/visual/biology/key.d.ts +141 -0
- package/dist/visual/biology/key.js +58 -0
- package/dist/visual/biology/kingdom.d.ts +142 -0
- package/dist/visual/biology/kingdom.js +82 -0
- package/dist/visual/biology/lactase.d.ts +147 -0
- package/dist/visual/biology/lactase.js +48 -0
- package/dist/visual/biology/leaf.d.ts +436 -0
- package/dist/visual/biology/leaf.js +151 -0
- package/dist/visual/biology/limb.d.ts +139 -0
- package/dist/visual/biology/limb.js +44 -0
- package/dist/visual/biology/lipid.d.ts +144 -0
- package/dist/visual/biology/lipid.js +43 -0
- package/dist/visual/biology/locomotion.d.ts +141 -0
- package/dist/visual/biology/locomotion.js +48 -0
- package/dist/visual/biology/menstrual.d.ts +148 -0
- package/dist/visual/biology/menstrual.js +65 -0
- package/dist/visual/biology/metamorphosis.d.ts +140 -0
- package/dist/visual/biology/metamorphosis.js +34 -0
- package/dist/visual/biology/placenta.d.ts +139 -0
- package/dist/visual/biology/placenta.js +52 -0
- package/dist/visual/biology/planes.d.ts +145 -0
- package/dist/visual/biology/planes.js +62 -0
- package/dist/visual/biology/protein.d.ts +142 -0
- package/dist/visual/biology/protein.js +41 -0
- package/dist/visual/biology/saturation.d.ts +149 -0
- package/dist/visual/biology/saturation.js +40 -0
- package/dist/visual/biology/secretion.d.ts +149 -0
- package/dist/visual/biology/secretion.js +79 -0
- package/dist/visual/biology/spill.d.ts +165 -0
- package/dist/visual/biology/spill.js +58 -0
- package/dist/visual/biology/sugar.d.ts +152 -0
- package/dist/visual/biology/sugar.js +59 -0
- package/dist/visual/biology/taxon.d.ts +138 -0
- package/dist/visual/biology/taxon.js +50 -0
- package/dist/visual/biology/tissue.d.ts +424 -0
- package/dist/visual/biology/tissue.js +140 -0
- package/dist/visual/biology/twins.d.ts +144 -0
- package/dist/visual/biology/twins.js +60 -0
- package/dist/visual/biology/vernacular.d.ts +141 -0
- package/dist/visual/biology/vernacular.js +57 -0
- package/dist/visual/biology/vertebra.d.ts +141 -0
- package/dist/visual/biology/vertebra.js +59 -0
- package/dist/visual/biology/waste.d.ts +140 -0
- package/dist/visual/biology/waste.js +57 -0
- package/dist/visual/biology/water.d.ts +152 -0
- package/dist/visual/biology/water.js +54 -0
- package/dist/visual/card.d.ts +11 -0
- package/dist/visual/card.js +17 -1
- package/dist/visual/catalog.d.ts +6886 -754
- package/dist/visual/catalog.js +72 -0
- package/dist/visual/chemistry/equilibrium.d.ts +449 -0
- package/dist/visual/chemistry/equilibrium.js +135 -0
- package/dist/visual/mathematics/argument.d.ts +226 -0
- package/dist/visual/mathematics/argument.js +150 -0
- package/dist/visual/mathematics/counterexample.d.ts +340 -0
- package/dist/visual/mathematics/counterexample.js +157 -0
- package/package.json +1 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/** The immobilised lactase lab. The learner compares the methods by trying, so none is answer state. */
|
|
4
|
+
export declare function lactaseVisuals<E>(rich: RichSlot<E>): {
|
|
5
|
+
LactaseColumnLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
6
|
+
readonly description: RichSlot<E>;
|
|
7
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
8
|
+
readonly marks?: readonly [{
|
|
9
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
10
|
+
} | {
|
|
11
|
+
readonly attrs: {
|
|
12
|
+
readonly href: string;
|
|
13
|
+
};
|
|
14
|
+
readonly type: "link";
|
|
15
|
+
} | {
|
|
16
|
+
readonly attrs: {
|
|
17
|
+
readonly variant: "success" | "warning" | null;
|
|
18
|
+
};
|
|
19
|
+
readonly type: "highlight";
|
|
20
|
+
}, ...({
|
|
21
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
22
|
+
} | {
|
|
23
|
+
readonly attrs: {
|
|
24
|
+
readonly href: string;
|
|
25
|
+
};
|
|
26
|
+
readonly type: "link";
|
|
27
|
+
} | {
|
|
28
|
+
readonly attrs: {
|
|
29
|
+
readonly variant: "success" | "warning" | null;
|
|
30
|
+
};
|
|
31
|
+
readonly type: "highlight";
|
|
32
|
+
})[]];
|
|
33
|
+
readonly text: string;
|
|
34
|
+
readonly type: "text";
|
|
35
|
+
} | {
|
|
36
|
+
readonly attrs: {
|
|
37
|
+
readonly latex: string;
|
|
38
|
+
};
|
|
39
|
+
readonly marks?: readonly [{
|
|
40
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
41
|
+
} | {
|
|
42
|
+
readonly attrs: {
|
|
43
|
+
readonly href: string;
|
|
44
|
+
};
|
|
45
|
+
readonly type: "link";
|
|
46
|
+
} | {
|
|
47
|
+
readonly attrs: {
|
|
48
|
+
readonly variant: "success" | "warning" | null;
|
|
49
|
+
};
|
|
50
|
+
readonly type: "highlight";
|
|
51
|
+
}, ...({
|
|
52
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
53
|
+
} | {
|
|
54
|
+
readonly attrs: {
|
|
55
|
+
readonly href: string;
|
|
56
|
+
};
|
|
57
|
+
readonly type: "link";
|
|
58
|
+
} | {
|
|
59
|
+
readonly attrs: {
|
|
60
|
+
readonly variant: "success" | "warning" | null;
|
|
61
|
+
};
|
|
62
|
+
readonly type: "highlight";
|
|
63
|
+
})[]];
|
|
64
|
+
readonly type: "mathInline";
|
|
65
|
+
}, ...({
|
|
66
|
+
readonly marks?: readonly [{
|
|
67
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
68
|
+
} | {
|
|
69
|
+
readonly attrs: {
|
|
70
|
+
readonly href: string;
|
|
71
|
+
};
|
|
72
|
+
readonly type: "link";
|
|
73
|
+
} | {
|
|
74
|
+
readonly attrs: {
|
|
75
|
+
readonly variant: "success" | "warning" | null;
|
|
76
|
+
};
|
|
77
|
+
readonly type: "highlight";
|
|
78
|
+
}, ...({
|
|
79
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
80
|
+
} | {
|
|
81
|
+
readonly attrs: {
|
|
82
|
+
readonly href: string;
|
|
83
|
+
};
|
|
84
|
+
readonly type: "link";
|
|
85
|
+
} | {
|
|
86
|
+
readonly attrs: {
|
|
87
|
+
readonly variant: "success" | "warning" | null;
|
|
88
|
+
};
|
|
89
|
+
readonly type: "highlight";
|
|
90
|
+
})[]];
|
|
91
|
+
readonly text: string;
|
|
92
|
+
readonly type: "text";
|
|
93
|
+
} | {
|
|
94
|
+
readonly attrs: {
|
|
95
|
+
readonly latex: string;
|
|
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 type: "mathInline";
|
|
123
|
+
})[]], E, never, never>>;
|
|
124
|
+
readonly title: RichSlot<E>;
|
|
125
|
+
readonly flow: Schema.Struct<{
|
|
126
|
+
readonly max: Schema.Codec<number, number, never, never>;
|
|
127
|
+
readonly min: Schema.Codec<number, number, never, never>;
|
|
128
|
+
readonly value: Schema.Codec<number, number, never, never>;
|
|
129
|
+
}>;
|
|
130
|
+
readonly labels: Schema.Struct<{
|
|
131
|
+
readonly batches: RichSlot<E>;
|
|
132
|
+
readonly enzyme: RichSlot<E>;
|
|
133
|
+
readonly flow: Schema.Trimmed;
|
|
134
|
+
readonly glucose: RichSlot<E>;
|
|
135
|
+
readonly lactose: RichSlot<E>;
|
|
136
|
+
readonly method: Schema.Trimmed;
|
|
137
|
+
readonly methods: Schema.$Record<Schema.Literals<readonly ["immobilised", "free"]>, Schema.optionalKey<Schema.Trimmed>>;
|
|
138
|
+
readonly negative: RichSlot<E>;
|
|
139
|
+
readonly none: RichSlot<E>;
|
|
140
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["column", "beads", "milk", "strip"]>, Schema.Trimmed>;
|
|
141
|
+
readonly positive: RichSlot<E>;
|
|
142
|
+
readonly present: RichSlot<E>;
|
|
143
|
+
readonly view: Schema.Trimmed;
|
|
144
|
+
}>;
|
|
145
|
+
readonly methods: Schema.NonEmptyArray<Schema.Literals<readonly ["immobilised", "free"]>>;
|
|
146
|
+
}>, "figure">;
|
|
147
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { pickedFrom, sliderOf } from "#contracts/visual/biology/control";
|
|
3
|
+
import { byIds, byPickedIds, cardFields, namesEach, TextSchema, } from "#contracts/visual/card";
|
|
4
|
+
import { figure } from "#contracts/visual/entry";
|
|
5
|
+
/**
|
|
6
|
+
* The two ways to make lactose-reduced milk: lactase held in alginate beads
|
|
7
|
+
* in a column the milk flows through, or lactase stirred straight into the
|
|
8
|
+
* milk, which then leaves with it.
|
|
9
|
+
*/
|
|
10
|
+
const METHODS = ["immobilised", "free"];
|
|
11
|
+
/** A milk flow rate through the column in millilitres per minute, up to twenty. */
|
|
12
|
+
const FlowSchema = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(20));
|
|
13
|
+
/**
|
|
14
|
+
* Props of `LactaseColumnLab`: a glass column of alginate beads with milk
|
|
15
|
+
* flowing through it, or a beaker of milk with lactase stirred in, picked
|
|
16
|
+
* from `methods` (each once, in toggle order). The learner sets the milk
|
|
17
|
+
* `flow`; the readouts give the lactose left, the glucose test strip result,
|
|
18
|
+
* whether lactase leaves in the milk, and how many batches the same lactase
|
|
19
|
+
* treats.
|
|
20
|
+
*/
|
|
21
|
+
function lactaseColumnLab(rich) {
|
|
22
|
+
return figure(Schema.Struct({
|
|
23
|
+
...cardFields(rich),
|
|
24
|
+
flow: sliderOf(FlowSchema),
|
|
25
|
+
labels: Schema.Struct({
|
|
26
|
+
batches: rich,
|
|
27
|
+
enzyme: rich,
|
|
28
|
+
flow: TextSchema,
|
|
29
|
+
glucose: rich,
|
|
30
|
+
lactose: rich,
|
|
31
|
+
method: TextSchema,
|
|
32
|
+
methods: byPickedIds(METHODS, TextSchema),
|
|
33
|
+
negative: rich,
|
|
34
|
+
none: rich,
|
|
35
|
+
parts: byIds(["column", "beads", "milk", "strip"], TextSchema),
|
|
36
|
+
positive: rich,
|
|
37
|
+
present: rich,
|
|
38
|
+
view: TextSchema,
|
|
39
|
+
}),
|
|
40
|
+
methods: pickedFrom(METHODS),
|
|
41
|
+
}).check(Schema.makeFilter(({ labels, methods }) => namesEach(methods, labels.methods), {
|
|
42
|
+
message: "Expected a name for every method the lab shows, and no other.",
|
|
43
|
+
})));
|
|
44
|
+
}
|
|
45
|
+
/** The immobilised lactase lab. The learner compares the methods by trying, so none is answer state. */
|
|
46
|
+
export function lactaseVisuals(rich) {
|
|
47
|
+
return { LactaseColumnLab: lactaseColumnLab(rich) };
|
|
48
|
+
}
|
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import type { RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/**
|
|
4
|
+
* Leaf structure and photosynthesis organellar labs covering leaf lamina
|
|
5
|
+
* anatomy, stomatal guard-cell osmosis, and chloroplast reaction stages.
|
|
6
|
+
*/
|
|
7
|
+
export declare function leafVisuals<E>(rich: RichSlot<E>): {
|
|
8
|
+
ChloroplastStageLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
9
|
+
readonly description: RichSlot<E>;
|
|
10
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
11
|
+
readonly marks?: readonly [{
|
|
12
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
13
|
+
} | {
|
|
14
|
+
readonly attrs: {
|
|
15
|
+
readonly href: string;
|
|
16
|
+
};
|
|
17
|
+
readonly type: "link";
|
|
18
|
+
} | {
|
|
19
|
+
readonly attrs: {
|
|
20
|
+
readonly variant: "success" | "warning" | null;
|
|
21
|
+
};
|
|
22
|
+
readonly type: "highlight";
|
|
23
|
+
}, ...({
|
|
24
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
25
|
+
} | {
|
|
26
|
+
readonly attrs: {
|
|
27
|
+
readonly href: string;
|
|
28
|
+
};
|
|
29
|
+
readonly type: "link";
|
|
30
|
+
} | {
|
|
31
|
+
readonly attrs: {
|
|
32
|
+
readonly variant: "success" | "warning" | null;
|
|
33
|
+
};
|
|
34
|
+
readonly type: "highlight";
|
|
35
|
+
})[]];
|
|
36
|
+
readonly text: string;
|
|
37
|
+
readonly type: "text";
|
|
38
|
+
} | {
|
|
39
|
+
readonly attrs: {
|
|
40
|
+
readonly latex: string;
|
|
41
|
+
};
|
|
42
|
+
readonly marks?: readonly [{
|
|
43
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
44
|
+
} | {
|
|
45
|
+
readonly attrs: {
|
|
46
|
+
readonly href: string;
|
|
47
|
+
};
|
|
48
|
+
readonly type: "link";
|
|
49
|
+
} | {
|
|
50
|
+
readonly attrs: {
|
|
51
|
+
readonly variant: "success" | "warning" | null;
|
|
52
|
+
};
|
|
53
|
+
readonly type: "highlight";
|
|
54
|
+
}, ...({
|
|
55
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
56
|
+
} | {
|
|
57
|
+
readonly attrs: {
|
|
58
|
+
readonly href: string;
|
|
59
|
+
};
|
|
60
|
+
readonly type: "link";
|
|
61
|
+
} | {
|
|
62
|
+
readonly attrs: {
|
|
63
|
+
readonly variant: "success" | "warning" | null;
|
|
64
|
+
};
|
|
65
|
+
readonly type: "highlight";
|
|
66
|
+
})[]];
|
|
67
|
+
readonly type: "mathInline";
|
|
68
|
+
}, ...({
|
|
69
|
+
readonly marks?: readonly [{
|
|
70
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
71
|
+
} | {
|
|
72
|
+
readonly attrs: {
|
|
73
|
+
readonly href: string;
|
|
74
|
+
};
|
|
75
|
+
readonly type: "link";
|
|
76
|
+
} | {
|
|
77
|
+
readonly attrs: {
|
|
78
|
+
readonly variant: "success" | "warning" | null;
|
|
79
|
+
};
|
|
80
|
+
readonly type: "highlight";
|
|
81
|
+
}, ...({
|
|
82
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
83
|
+
} | {
|
|
84
|
+
readonly attrs: {
|
|
85
|
+
readonly href: string;
|
|
86
|
+
};
|
|
87
|
+
readonly type: "link";
|
|
88
|
+
} | {
|
|
89
|
+
readonly attrs: {
|
|
90
|
+
readonly variant: "success" | "warning" | null;
|
|
91
|
+
};
|
|
92
|
+
readonly type: "highlight";
|
|
93
|
+
})[]];
|
|
94
|
+
readonly text: string;
|
|
95
|
+
readonly type: "text";
|
|
96
|
+
} | {
|
|
97
|
+
readonly attrs: {
|
|
98
|
+
readonly latex: string;
|
|
99
|
+
};
|
|
100
|
+
readonly marks?: readonly [{
|
|
101
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
102
|
+
} | {
|
|
103
|
+
readonly attrs: {
|
|
104
|
+
readonly href: string;
|
|
105
|
+
};
|
|
106
|
+
readonly type: "link";
|
|
107
|
+
} | {
|
|
108
|
+
readonly attrs: {
|
|
109
|
+
readonly variant: "success" | "warning" | null;
|
|
110
|
+
};
|
|
111
|
+
readonly type: "highlight";
|
|
112
|
+
}, ...({
|
|
113
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
114
|
+
} | {
|
|
115
|
+
readonly attrs: {
|
|
116
|
+
readonly href: string;
|
|
117
|
+
};
|
|
118
|
+
readonly type: "link";
|
|
119
|
+
} | {
|
|
120
|
+
readonly attrs: {
|
|
121
|
+
readonly variant: "success" | "warning" | null;
|
|
122
|
+
};
|
|
123
|
+
readonly type: "highlight";
|
|
124
|
+
})[]];
|
|
125
|
+
readonly type: "mathInline";
|
|
126
|
+
})[]], E, never, never>>;
|
|
127
|
+
readonly title: RichSlot<E>;
|
|
128
|
+
readonly co2: Schema.Struct<{
|
|
129
|
+
readonly max: Schema.Finite;
|
|
130
|
+
readonly min: Schema.Finite;
|
|
131
|
+
readonly value: Schema.Finite;
|
|
132
|
+
}>;
|
|
133
|
+
readonly labels: Schema.Struct<{
|
|
134
|
+
readonly co2: Schema.Trimmed;
|
|
135
|
+
readonly factors: Schema.$Record<Schema.Literals<readonly ["light", "co2", "temperature", "balanced"]>, Schema.Trimmed>;
|
|
136
|
+
readonly gasStates: Schema.$Record<Schema.Literals<readonly ["netRelease", "compensation", "netUptake"]>, Schema.Trimmed>;
|
|
137
|
+
readonly light: Schema.Trimmed;
|
|
138
|
+
readonly limitingFactor: Schema.optionalKey<RichSlot<E>>;
|
|
139
|
+
readonly netGas: Schema.optionalKey<RichSlot<E>>;
|
|
140
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["thylakoid", "granum", "stroma", "water", "oxygen", "atp", "nadph", "co2", "glucose"]>, Schema.Trimmed>;
|
|
141
|
+
readonly site: RichSlot<E>;
|
|
142
|
+
readonly sites: Schema.$Record<Schema.Literals<readonly ["lightDependent", "calvinCycle", "compensation"]>, Schema.optionalKey<RichSlot<E>>>;
|
|
143
|
+
readonly stage: Schema.Trimmed;
|
|
144
|
+
readonly stages: Schema.$Record<Schema.Literals<readonly ["lightDependent", "calvinCycle", "compensation"]>, Schema.optionalKey<Schema.Trimmed>>;
|
|
145
|
+
readonly temperature: Schema.Trimmed;
|
|
146
|
+
readonly view: Schema.Trimmed;
|
|
147
|
+
}>;
|
|
148
|
+
readonly light: Schema.Struct<{
|
|
149
|
+
readonly max: Schema.Finite;
|
|
150
|
+
readonly min: Schema.Finite;
|
|
151
|
+
readonly value: Schema.Finite;
|
|
152
|
+
}>;
|
|
153
|
+
readonly stages: Schema.NonEmptyArray<Schema.Literals<readonly ["lightDependent", "calvinCycle", "compensation"]>>;
|
|
154
|
+
readonly temperature: Schema.Struct<{
|
|
155
|
+
readonly max: Schema.Finite;
|
|
156
|
+
readonly min: Schema.Finite;
|
|
157
|
+
readonly value: Schema.Finite;
|
|
158
|
+
}>;
|
|
159
|
+
}>, "figure">;
|
|
160
|
+
LeafLaminaCrossSectionLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
161
|
+
readonly description: RichSlot<E>;
|
|
162
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
163
|
+
readonly marks?: readonly [{
|
|
164
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
165
|
+
} | {
|
|
166
|
+
readonly attrs: {
|
|
167
|
+
readonly href: string;
|
|
168
|
+
};
|
|
169
|
+
readonly type: "link";
|
|
170
|
+
} | {
|
|
171
|
+
readonly attrs: {
|
|
172
|
+
readonly variant: "success" | "warning" | null;
|
|
173
|
+
};
|
|
174
|
+
readonly type: "highlight";
|
|
175
|
+
}, ...({
|
|
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 text: string;
|
|
189
|
+
readonly type: "text";
|
|
190
|
+
} | {
|
|
191
|
+
readonly attrs: {
|
|
192
|
+
readonly latex: string;
|
|
193
|
+
};
|
|
194
|
+
readonly marks?: readonly [{
|
|
195
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
196
|
+
} | {
|
|
197
|
+
readonly attrs: {
|
|
198
|
+
readonly href: string;
|
|
199
|
+
};
|
|
200
|
+
readonly type: "link";
|
|
201
|
+
} | {
|
|
202
|
+
readonly attrs: {
|
|
203
|
+
readonly variant: "success" | "warning" | null;
|
|
204
|
+
};
|
|
205
|
+
readonly type: "highlight";
|
|
206
|
+
}, ...({
|
|
207
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
208
|
+
} | {
|
|
209
|
+
readonly attrs: {
|
|
210
|
+
readonly href: string;
|
|
211
|
+
};
|
|
212
|
+
readonly type: "link";
|
|
213
|
+
} | {
|
|
214
|
+
readonly attrs: {
|
|
215
|
+
readonly variant: "success" | "warning" | null;
|
|
216
|
+
};
|
|
217
|
+
readonly type: "highlight";
|
|
218
|
+
})[]];
|
|
219
|
+
readonly type: "mathInline";
|
|
220
|
+
}, ...({
|
|
221
|
+
readonly marks?: readonly [{
|
|
222
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
223
|
+
} | {
|
|
224
|
+
readonly attrs: {
|
|
225
|
+
readonly href: string;
|
|
226
|
+
};
|
|
227
|
+
readonly type: "link";
|
|
228
|
+
} | {
|
|
229
|
+
readonly attrs: {
|
|
230
|
+
readonly variant: "success" | "warning" | null;
|
|
231
|
+
};
|
|
232
|
+
readonly type: "highlight";
|
|
233
|
+
}, ...({
|
|
234
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
235
|
+
} | {
|
|
236
|
+
readonly attrs: {
|
|
237
|
+
readonly href: string;
|
|
238
|
+
};
|
|
239
|
+
readonly type: "link";
|
|
240
|
+
} | {
|
|
241
|
+
readonly attrs: {
|
|
242
|
+
readonly variant: "success" | "warning" | null;
|
|
243
|
+
};
|
|
244
|
+
readonly type: "highlight";
|
|
245
|
+
})[]];
|
|
246
|
+
readonly text: string;
|
|
247
|
+
readonly type: "text";
|
|
248
|
+
} | {
|
|
249
|
+
readonly attrs: {
|
|
250
|
+
readonly latex: string;
|
|
251
|
+
};
|
|
252
|
+
readonly marks?: readonly [{
|
|
253
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
254
|
+
} | {
|
|
255
|
+
readonly attrs: {
|
|
256
|
+
readonly href: string;
|
|
257
|
+
};
|
|
258
|
+
readonly type: "link";
|
|
259
|
+
} | {
|
|
260
|
+
readonly attrs: {
|
|
261
|
+
readonly variant: "success" | "warning" | null;
|
|
262
|
+
};
|
|
263
|
+
readonly type: "highlight";
|
|
264
|
+
}, ...({
|
|
265
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
266
|
+
} | {
|
|
267
|
+
readonly attrs: {
|
|
268
|
+
readonly href: string;
|
|
269
|
+
};
|
|
270
|
+
readonly type: "link";
|
|
271
|
+
} | {
|
|
272
|
+
readonly attrs: {
|
|
273
|
+
readonly variant: "success" | "warning" | null;
|
|
274
|
+
};
|
|
275
|
+
readonly type: "highlight";
|
|
276
|
+
})[]];
|
|
277
|
+
readonly type: "mathInline";
|
|
278
|
+
})[]], E, never, never>>;
|
|
279
|
+
readonly title: RichSlot<E>;
|
|
280
|
+
readonly labels: Schema.Struct<{
|
|
281
|
+
readonly adaptation: Schema.optionalKey<RichSlot<E>>;
|
|
282
|
+
readonly chloroplasts: Schema.optionalKey<RichSlot<E>>;
|
|
283
|
+
readonly densities: Schema.$Record<Schema.Literals<readonly ["high", "moderate", "guardOnly", "none"]>, Schema.Trimmed>;
|
|
284
|
+
readonly layer: Schema.Trimmed;
|
|
285
|
+
readonly layers: Schema.$Record<Schema.Literals<readonly ["cuticle", "upperEpidermis", "palisade", "spongy", "vascular", "lowerEpidermis", "stoma"]>, Schema.optionalKey<Schema.Struct<{
|
|
286
|
+
readonly adaptation: RichSlot<E>;
|
|
287
|
+
readonly name: Schema.Trimmed;
|
|
288
|
+
}>>>;
|
|
289
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["xylem", "phloem", "airSpace", "chloroplast", "guardCell"]>, Schema.Trimmed>;
|
|
290
|
+
readonly view: Schema.Trimmed;
|
|
291
|
+
}>;
|
|
292
|
+
readonly layers: Schema.NonEmptyArray<Schema.Literals<readonly ["cuticle", "upperEpidermis", "palisade", "spongy", "vascular", "lowerEpidermis", "stoma"]>>;
|
|
293
|
+
}>, "figure">;
|
|
294
|
+
StomatalGuardCellLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
295
|
+
readonly description: RichSlot<E>;
|
|
296
|
+
readonly footer: Schema.optionalKey<Schema.Codec<readonly [{
|
|
297
|
+
readonly marks?: readonly [{
|
|
298
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
299
|
+
} | {
|
|
300
|
+
readonly attrs: {
|
|
301
|
+
readonly href: string;
|
|
302
|
+
};
|
|
303
|
+
readonly type: "link";
|
|
304
|
+
} | {
|
|
305
|
+
readonly attrs: {
|
|
306
|
+
readonly variant: "success" | "warning" | null;
|
|
307
|
+
};
|
|
308
|
+
readonly type: "highlight";
|
|
309
|
+
}, ...({
|
|
310
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
311
|
+
} | {
|
|
312
|
+
readonly attrs: {
|
|
313
|
+
readonly href: string;
|
|
314
|
+
};
|
|
315
|
+
readonly type: "link";
|
|
316
|
+
} | {
|
|
317
|
+
readonly attrs: {
|
|
318
|
+
readonly variant: "success" | "warning" | null;
|
|
319
|
+
};
|
|
320
|
+
readonly type: "highlight";
|
|
321
|
+
})[]];
|
|
322
|
+
readonly text: string;
|
|
323
|
+
readonly type: "text";
|
|
324
|
+
} | {
|
|
325
|
+
readonly attrs: {
|
|
326
|
+
readonly latex: string;
|
|
327
|
+
};
|
|
328
|
+
readonly marks?: readonly [{
|
|
329
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
330
|
+
} | {
|
|
331
|
+
readonly attrs: {
|
|
332
|
+
readonly href: string;
|
|
333
|
+
};
|
|
334
|
+
readonly type: "link";
|
|
335
|
+
} | {
|
|
336
|
+
readonly attrs: {
|
|
337
|
+
readonly variant: "success" | "warning" | null;
|
|
338
|
+
};
|
|
339
|
+
readonly type: "highlight";
|
|
340
|
+
}, ...({
|
|
341
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
342
|
+
} | {
|
|
343
|
+
readonly attrs: {
|
|
344
|
+
readonly href: string;
|
|
345
|
+
};
|
|
346
|
+
readonly type: "link";
|
|
347
|
+
} | {
|
|
348
|
+
readonly attrs: {
|
|
349
|
+
readonly variant: "success" | "warning" | null;
|
|
350
|
+
};
|
|
351
|
+
readonly type: "highlight";
|
|
352
|
+
})[]];
|
|
353
|
+
readonly type: "mathInline";
|
|
354
|
+
}, ...({
|
|
355
|
+
readonly marks?: readonly [{
|
|
356
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
357
|
+
} | {
|
|
358
|
+
readonly attrs: {
|
|
359
|
+
readonly href: string;
|
|
360
|
+
};
|
|
361
|
+
readonly type: "link";
|
|
362
|
+
} | {
|
|
363
|
+
readonly attrs: {
|
|
364
|
+
readonly variant: "success" | "warning" | null;
|
|
365
|
+
};
|
|
366
|
+
readonly type: "highlight";
|
|
367
|
+
}, ...({
|
|
368
|
+
readonly type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
369
|
+
} | {
|
|
370
|
+
readonly attrs: {
|
|
371
|
+
readonly href: string;
|
|
372
|
+
};
|
|
373
|
+
readonly type: "link";
|
|
374
|
+
} | {
|
|
375
|
+
readonly attrs: {
|
|
376
|
+
readonly variant: "success" | "warning" | null;
|
|
377
|
+
};
|
|
378
|
+
readonly type: "highlight";
|
|
379
|
+
})[]];
|
|
380
|
+
readonly text: string;
|
|
381
|
+
readonly type: "text";
|
|
382
|
+
} | {
|
|
383
|
+
readonly attrs: {
|
|
384
|
+
readonly latex: string;
|
|
385
|
+
};
|
|
386
|
+
readonly marks?: readonly [{
|
|
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 type: "bold" | "code" | "italic" | "subscript" | "superscript" | "underline";
|
|
400
|
+
} | {
|
|
401
|
+
readonly attrs: {
|
|
402
|
+
readonly href: string;
|
|
403
|
+
};
|
|
404
|
+
readonly type: "link";
|
|
405
|
+
} | {
|
|
406
|
+
readonly attrs: {
|
|
407
|
+
readonly variant: "success" | "warning" | null;
|
|
408
|
+
};
|
|
409
|
+
readonly type: "highlight";
|
|
410
|
+
})[]];
|
|
411
|
+
readonly type: "mathInline";
|
|
412
|
+
})[]], E, never, never>>;
|
|
413
|
+
readonly title: RichSlot<E>;
|
|
414
|
+
readonly conditions: Schema.NonEmptyArray<Schema.Literals<readonly ["light", "dark", "drought"]>>;
|
|
415
|
+
readonly labels: Schema.Struct<{
|
|
416
|
+
readonly aperture: Schema.optionalKey<RichSlot<E>>;
|
|
417
|
+
readonly apertures: Schema.$Record<Schema.Literals<readonly ["open", "narrow", "closed"]>, Schema.Trimmed>;
|
|
418
|
+
readonly co2Intake: RichSlot<E>;
|
|
419
|
+
readonly condition: Schema.Trimmed;
|
|
420
|
+
readonly conditions: Schema.$Record<Schema.Literals<readonly ["light", "dark", "drought"]>, Schema.optionalKey<Schema.Trimmed>>;
|
|
421
|
+
readonly light: Schema.Trimmed;
|
|
422
|
+
readonly mechanism: Schema.optionalKey<RichSlot<E>>;
|
|
423
|
+
readonly mechanisms: Schema.$Record<Schema.Literals<readonly ["light", "dark", "drought"]>, Schema.optionalKey<RichSlot<E>>>;
|
|
424
|
+
readonly parts: Schema.$Record<Schema.Literals<readonly ["guardCell", "thickInnerWall", "thinOuterWall", "chloroplast", "vacuole", "pore", "potassiumIon", "water"]>, Schema.Trimmed>;
|
|
425
|
+
readonly transpiration: RichSlot<E>;
|
|
426
|
+
readonly turgor: RichSlot<E>;
|
|
427
|
+
readonly turgors: Schema.$Record<Schema.Literals<readonly ["turgid", "flaccid"]>, Schema.Trimmed>;
|
|
428
|
+
readonly view: Schema.Trimmed;
|
|
429
|
+
}>;
|
|
430
|
+
readonly light: Schema.Struct<{
|
|
431
|
+
readonly max: Schema.Finite;
|
|
432
|
+
readonly min: Schema.Finite;
|
|
433
|
+
readonly value: Schema.Finite;
|
|
434
|
+
}>;
|
|
435
|
+
}>, "figure">;
|
|
436
|
+
};
|