@nakafa/aksara-contracts 7.0.0 → 8.0.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/assessment/figure.d.ts +24 -48725
- package/dist/assessment/figure.js +10 -6
- package/dist/visual/base/layout.d.ts +6 -6
- package/dist/visual/base/math.d.ts +4 -4
- package/dist/visual/base/media.d.ts +2 -2
- package/dist/visual/biology/bacteria.d.ts +55 -0
- package/dist/visual/biology/bacteria.js +79 -0
- package/dist/visual/biology/cell.d.ts +89 -0
- package/dist/visual/biology/cell.js +95 -0
- package/dist/visual/biology/climate.d.ts +75 -0
- package/dist/visual/biology/climate.js +94 -0
- package/dist/visual/biology/ecology.d.ts +75 -0
- package/dist/visual/biology/ecology.js +94 -0
- package/dist/visual/biology.d.ts +9 -9
- package/dist/visual/card.d.ts +0 -2
- package/dist/visual/card.js +0 -6
- package/dist/visual/catalog.d.ts +1610 -27079
- package/dist/visual/catalog.js +47 -1
- package/dist/visual/chemistry/atom.d.ts +4 -4
- package/dist/visual/chemistry/balance.d.ts +79 -0
- package/dist/visual/chemistry/balance.js +128 -0
- package/dist/visual/chemistry/bonding.d.ts +80 -0
- package/dist/visual/chemistry/bonding.js +147 -0
- package/dist/visual/chemistry/discovery.d.ts +96 -0
- package/dist/visual/chemistry/discovery.js +137 -0
- package/dist/visual/chemistry/electron.d.ts +2 -2
- package/dist/visual/chemistry/laws.d.ts +4 -4
- package/dist/visual/chemistry/particles.d.ts +5 -5
- package/dist/visual/chemistry/periodic.d.ts +2 -2
- package/dist/visual/chemistry/reaction.d.ts +3 -3
- package/dist/visual/entry.d.ts +4 -4
- package/dist/visual/mathematics/chart.d.ts +1 -1
- package/dist/visual/mathematics/charts.d.ts +5 -5
- package/dist/visual/mathematics/function.d.ts +7 -7
- package/dist/visual/mathematics/geometry.d.ts +4 -213
- package/dist/visual/mathematics/geometry.js +3 -65
- package/dist/visual/physics/braking.d.ts +62 -0
- package/dist/visual/physics/braking.js +83 -0
- package/dist/visual/physics/circular.d.ts +36 -0
- package/dist/visual/physics/circular.js +51 -0
- package/dist/visual/physics/efficiency.d.ts +93 -0
- package/dist/visual/physics/efficiency.js +129 -0
- package/dist/visual/physics/falling.d.ts +56 -0
- package/dist/visual/physics/falling.js +77 -0
- package/dist/visual/physics/force.d.ts +88 -0
- package/dist/visual/physics/force.js +115 -0
- package/dist/visual/physics/instrument.d.ts +93 -0
- package/dist/visual/physics/instrument.js +135 -0
- package/dist/visual/physics/measurement.d.ts +4 -4
- package/dist/visual/physics/motion.d.ts +6 -6
- package/dist/visual/physics/parabolic.d.ts +2 -2
- package/dist/visual/physics/position.d.ts +87 -0
- package/dist/visual/physics/position.js +123 -0
- package/dist/visual/physics/power.d.ts +121 -0
- package/dist/visual/physics/power.js +162 -0
- package/dist/visual/physics/precision.d.ts +96 -0
- package/dist/visual/physics/precision.js +137 -0
- package/dist/visual/physics/product.d.ts +73 -0
- package/dist/visual/physics/product.js +96 -0
- package/dist/visual/physics/record.d.ts +34 -0
- package/dist/visual/physics/record.js +46 -0
- package/dist/visual/physics/relative.d.ts +55 -0
- package/dist/visual/physics/relative.js +76 -0
- package/dist/visual/physics/solar.d.ts +91 -0
- package/dist/visual/physics/solar.js +126 -0
- package/dist/visual/physics/vector.d.ts +103 -0
- package/dist/visual/physics/vector.js +123 -0
- package/dist/visual/physics/velocity.d.ts +7 -7
- package/dist/visual/politics.d.ts +8 -8
- package/package.json +1 -1
- package/dist/visual/mathematics/line.d.ts +0 -179
- package/dist/visual/mathematics/line.js +0 -156
- package/dist/visual/mathematics/number.d.ts +0 -21
- package/dist/visual/mathematics/number.js +0 -53
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { type RichSlot } from "#contracts/visual/card";
|
|
3
|
+
/**
|
|
4
|
+
* The props of the labs that add and resolve displacement vectors. No prop
|
|
5
|
+
* states the conclusion a lab leads to, so none holds answer state.
|
|
6
|
+
*/
|
|
7
|
+
export declare function vectorVisuals<E>(rich: RichSlot<E>): {
|
|
8
|
+
AircraftCrosswindLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
9
|
+
readonly description: RichSlot<E>;
|
|
10
|
+
readonly title: RichSlot<E>;
|
|
11
|
+
readonly airspeed: Schema.Finite;
|
|
12
|
+
readonly heading: Schema.optionalKey<Schema.Finite>;
|
|
13
|
+
readonly labels: Schema.Struct<{
|
|
14
|
+
readonly between: RichSlot<E>;
|
|
15
|
+
readonly drift: RichSlot<E>;
|
|
16
|
+
readonly groundSpeed: RichSlot<E>;
|
|
17
|
+
readonly heading: RichSlot<E>;
|
|
18
|
+
readonly headingName: Schema.Trimmed;
|
|
19
|
+
readonly track: RichSlot<E>;
|
|
20
|
+
readonly viewLabel: Schema.Trimmed;
|
|
21
|
+
}>;
|
|
22
|
+
readonly toward: Schema.Finite;
|
|
23
|
+
readonly wind: Schema.Finite;
|
|
24
|
+
}>, "figure">;
|
|
25
|
+
DroneDisplacementLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
26
|
+
readonly description: RichSlot<E>;
|
|
27
|
+
readonly title: RichSlot<E>;
|
|
28
|
+
readonly factors: Schema.optionalKey<Schema.$Array<Schema.Finite>>;
|
|
29
|
+
readonly hops: Schema.NonEmptyArray<Schema.Struct<{
|
|
30
|
+
readonly east: Schema.Finite;
|
|
31
|
+
readonly north: Schema.Finite;
|
|
32
|
+
readonly up: Schema.Finite;
|
|
33
|
+
}>>;
|
|
34
|
+
readonly labels: Schema.Struct<{
|
|
35
|
+
readonly chooseFactor: Schema.Trimmed;
|
|
36
|
+
readonly displacement: RichSlot<E>;
|
|
37
|
+
readonly path: RichSlot<E>;
|
|
38
|
+
readonly size: RichSlot<E>;
|
|
39
|
+
readonly viewLabel: Schema.Trimmed;
|
|
40
|
+
}>;
|
|
41
|
+
readonly units: Schema.optionalKey<Schema.Boolean>;
|
|
42
|
+
}>, "figure">;
|
|
43
|
+
OrienteeringMapVectorLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
44
|
+
readonly description: RichSlot<E>;
|
|
45
|
+
readonly title: RichSlot<E>;
|
|
46
|
+
readonly labels: Schema.Struct<{
|
|
47
|
+
readonly angle: RichSlot<E>;
|
|
48
|
+
readonly chooseView: Schema.Trimmed;
|
|
49
|
+
readonly east: RichSlot<E>;
|
|
50
|
+
readonly north: RichSlot<E>;
|
|
51
|
+
readonly size: RichSlot<E>;
|
|
52
|
+
readonly viewLabel: Schema.Trimmed;
|
|
53
|
+
readonly views: Schema.$Record<Schema.Literals<readonly ["forward", "back", "copy", "difference"]>, RichSlot<E>>;
|
|
54
|
+
}>;
|
|
55
|
+
readonly marks: Schema.Struct<{
|
|
56
|
+
readonly a: Schema.Struct<{
|
|
57
|
+
readonly east: Schema.Finite;
|
|
58
|
+
readonly north: Schema.Finite;
|
|
59
|
+
}>;
|
|
60
|
+
readonly b: Schema.Struct<{
|
|
61
|
+
readonly east: Schema.Finite;
|
|
62
|
+
readonly north: Schema.Finite;
|
|
63
|
+
}>;
|
|
64
|
+
readonly c: Schema.Struct<{
|
|
65
|
+
readonly east: Schema.Finite;
|
|
66
|
+
readonly north: Schema.Finite;
|
|
67
|
+
}>;
|
|
68
|
+
}>;
|
|
69
|
+
readonly views: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["forward", "back", "copy", "difference"]>>>;
|
|
70
|
+
}>, "figure">;
|
|
71
|
+
ShipBearingComponentLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
72
|
+
readonly description: RichSlot<E>;
|
|
73
|
+
readonly title: RichSlot<E>;
|
|
74
|
+
readonly courses: Schema.NonEmptyArray<Schema.Struct<{
|
|
75
|
+
readonly bearing: Schema.Finite;
|
|
76
|
+
readonly distance: Schema.Finite;
|
|
77
|
+
}>>;
|
|
78
|
+
readonly labels: Schema.Struct<{
|
|
79
|
+
readonly bearing: RichSlot<E>;
|
|
80
|
+
readonly bearingName: Schema.Trimmed;
|
|
81
|
+
readonly direction: RichSlot<E>;
|
|
82
|
+
readonly distance: RichSlot<E>;
|
|
83
|
+
readonly east: RichSlot<E>;
|
|
84
|
+
readonly north: RichSlot<E>;
|
|
85
|
+
readonly viewLabel: Schema.Trimmed;
|
|
86
|
+
}>;
|
|
87
|
+
}>, "figure">;
|
|
88
|
+
WindMapVectorLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
89
|
+
readonly description: RichSlot<E>;
|
|
90
|
+
readonly title: RichSlot<E>;
|
|
91
|
+
readonly angle: Schema.Finite;
|
|
92
|
+
readonly labels: Schema.Struct<{
|
|
93
|
+
readonly angle: RichSlot<E>;
|
|
94
|
+
readonly angleName: Schema.Trimmed;
|
|
95
|
+
readonly east: RichSlot<E>;
|
|
96
|
+
readonly north: RichSlot<E>;
|
|
97
|
+
readonly speed: RichSlot<E>;
|
|
98
|
+
readonly speedName: Schema.Trimmed;
|
|
99
|
+
readonly viewLabel: Schema.Trimmed;
|
|
100
|
+
}>;
|
|
101
|
+
readonly speed: Schema.Finite;
|
|
102
|
+
}>, "figure">;
|
|
103
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { byIds, cardFields, TextSchema, } from "#contracts/visual/card";
|
|
3
|
+
import { figure } from "#contracts/visual/entry";
|
|
4
|
+
/** A point on the orienteering map: metres east and north of the start. */
|
|
5
|
+
const MARK = Schema.Struct({ east: Schema.Finite, north: Schema.Finite });
|
|
6
|
+
/**
|
|
7
|
+
* Props of `AircraftCrosswindLab`: an airliner over farmland in a crosswind,
|
|
8
|
+
* seen from above.
|
|
9
|
+
*/
|
|
10
|
+
function aircraftCrosswindLab(rich) {
|
|
11
|
+
return figure(Schema.Struct({
|
|
12
|
+
...cardFields(rich),
|
|
13
|
+
airspeed: Schema.Finite,
|
|
14
|
+
heading: Schema.optionalKey(Schema.Finite),
|
|
15
|
+
labels: Schema.Struct({
|
|
16
|
+
between: rich,
|
|
17
|
+
drift: rich,
|
|
18
|
+
groundSpeed: rich,
|
|
19
|
+
heading: rich,
|
|
20
|
+
headingName: TextSchema,
|
|
21
|
+
track: rich,
|
|
22
|
+
viewLabel: TextSchema,
|
|
23
|
+
}),
|
|
24
|
+
toward: Schema.Finite,
|
|
25
|
+
wind: Schema.Finite,
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Props of `DroneDisplacementLab`: a drone takes off from a pad in a field and
|
|
30
|
+
* flies its plan leg by leg.
|
|
31
|
+
*/
|
|
32
|
+
function droneDisplacementLab(rich) {
|
|
33
|
+
return figure(Schema.Struct({
|
|
34
|
+
...cardFields(rich),
|
|
35
|
+
factors: Schema.optionalKey(Schema.Array(Schema.Finite)),
|
|
36
|
+
hops: Schema.NonEmptyArray(Schema.Struct({
|
|
37
|
+
east: Schema.Finite,
|
|
38
|
+
north: Schema.Finite,
|
|
39
|
+
up: Schema.Finite,
|
|
40
|
+
})),
|
|
41
|
+
labels: Schema.Struct({
|
|
42
|
+
chooseFactor: TextSchema,
|
|
43
|
+
displacement: rich,
|
|
44
|
+
path: rich,
|
|
45
|
+
size: rich,
|
|
46
|
+
viewLabel: TextSchema,
|
|
47
|
+
}),
|
|
48
|
+
units: Schema.optionalKey(Schema.Boolean),
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Props of `OrienteeringMapVectorLab`: an orienteering map of a city park with
|
|
53
|
+
* the start O (fuchsia triangle) and the checkpoints A, B and C in teal, amber
|
|
54
|
+
* and pink rings.
|
|
55
|
+
*/
|
|
56
|
+
function orienteeringMapVectorLab(rich) {
|
|
57
|
+
return figure(Schema.Struct({
|
|
58
|
+
...cardFields(rich),
|
|
59
|
+
labels: Schema.Struct({
|
|
60
|
+
angle: rich,
|
|
61
|
+
chooseView: TextSchema,
|
|
62
|
+
east: rich,
|
|
63
|
+
north: rich,
|
|
64
|
+
size: rich,
|
|
65
|
+
viewLabel: TextSchema,
|
|
66
|
+
views: byIds(["forward", "back", "copy", "difference"], rich),
|
|
67
|
+
}),
|
|
68
|
+
marks: Schema.Struct({ a: MARK, b: MARK, c: MARK }),
|
|
69
|
+
views: Schema.optionalKey(Schema.Array(Schema.Literals(["forward", "back", "copy", "difference"]))),
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Props of `ShipBearingComponentLab`: a ferry leaves its harbour in legs, each
|
|
74
|
+
* a distance on a compass bearing.
|
|
75
|
+
*/
|
|
76
|
+
function shipBearingComponentLab(rich) {
|
|
77
|
+
return figure(Schema.Struct({
|
|
78
|
+
...cardFields(rich),
|
|
79
|
+
courses: Schema.NonEmptyArray(Schema.Struct({
|
|
80
|
+
bearing: Schema.Finite,
|
|
81
|
+
distance: Schema.Finite.check(Schema.isGreaterThan(0)),
|
|
82
|
+
})),
|
|
83
|
+
labels: Schema.Struct({
|
|
84
|
+
bearing: rich,
|
|
85
|
+
bearingName: TextSchema,
|
|
86
|
+
direction: rich,
|
|
87
|
+
distance: rich,
|
|
88
|
+
east: rich,
|
|
89
|
+
north: rich,
|
|
90
|
+
viewLabel: TextSchema,
|
|
91
|
+
}),
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
/** Props of `WindMapVectorLab`: a steady sea wind on a weather map. */
|
|
95
|
+
function windMapVectorLab(rich) {
|
|
96
|
+
return figure(Schema.Struct({
|
|
97
|
+
...cardFields(rich),
|
|
98
|
+
angle: Schema.Finite,
|
|
99
|
+
labels: Schema.Struct({
|
|
100
|
+
angle: rich,
|
|
101
|
+
angleName: TextSchema,
|
|
102
|
+
east: rich,
|
|
103
|
+
north: rich,
|
|
104
|
+
speed: rich,
|
|
105
|
+
speedName: TextSchema,
|
|
106
|
+
viewLabel: TextSchema,
|
|
107
|
+
}),
|
|
108
|
+
speed: Schema.Finite,
|
|
109
|
+
}));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* The props of the labs that add and resolve displacement vectors. No prop
|
|
113
|
+
* states the conclusion a lab leads to, so none holds answer state.
|
|
114
|
+
*/
|
|
115
|
+
export function vectorVisuals(rich) {
|
|
116
|
+
return {
|
|
117
|
+
AircraftCrosswindLab: aircraftCrosswindLab(rich),
|
|
118
|
+
DroneDisplacementLab: droneDisplacementLab(rich),
|
|
119
|
+
OrienteeringMapVectorLab: orienteeringMapVectorLab(rich),
|
|
120
|
+
ShipBearingComponentLab: shipBearingComponentLab(rich),
|
|
121
|
+
WindMapVectorLab: windMapVectorLab(rich),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
@@ -22,7 +22,7 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
|
|
|
22
22
|
readonly modeLabels: Schema.$Record<Schema.Literals<readonly ["straight", "bank", "loop"]>, RichSlot<E>>;
|
|
23
23
|
readonly viewLabel: Schema.Trimmed;
|
|
24
24
|
}>;
|
|
25
|
-
}
|
|
25
|
+
}>, "figure">;
|
|
26
26
|
DisplacementDistanceLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
27
27
|
readonly description: RichSlot<E>;
|
|
28
28
|
readonly title: RichSlot<E>;
|
|
@@ -38,7 +38,7 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
|
|
|
38
38
|
readonly modeLabels: Schema.$Record<Schema.Literals<readonly ["straight", "turn", "return"]>, RichSlot<E>>;
|
|
39
39
|
readonly viewLabel: Schema.Trimmed;
|
|
40
40
|
}>;
|
|
41
|
-
}
|
|
41
|
+
}>, "figure">;
|
|
42
42
|
InstantaneousVelocitySpeedLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
43
43
|
readonly description: RichSlot<E>;
|
|
44
44
|
readonly title: RichSlot<E>;
|
|
@@ -51,7 +51,7 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
|
|
|
51
51
|
}>;
|
|
52
52
|
readonly viewLabel: Schema.Trimmed;
|
|
53
53
|
}>;
|
|
54
|
-
}
|
|
54
|
+
}>, "figure">;
|
|
55
55
|
RelativeMovementLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
56
56
|
readonly description: RichSlot<E>;
|
|
57
57
|
readonly title: RichSlot<E>;
|
|
@@ -67,7 +67,7 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
|
|
|
67
67
|
readonly modeLabels: Schema.$Record<Schema.Literals<readonly ["same-direction", "opposite-direction"]>, RichSlot<E>>;
|
|
68
68
|
readonly viewLabel: Schema.Trimmed;
|
|
69
69
|
}>;
|
|
70
|
-
}
|
|
70
|
+
}>, "figure">;
|
|
71
71
|
StoppingDistanceLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
72
72
|
readonly description: RichSlot<E>;
|
|
73
73
|
readonly title: RichSlot<E>;
|
|
@@ -79,7 +79,7 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
|
|
|
79
79
|
readonly stoppingDistance: RichSlot<E>;
|
|
80
80
|
readonly viewLabel: Schema.Trimmed;
|
|
81
81
|
}>;
|
|
82
|
-
}
|
|
82
|
+
}>, "figure">;
|
|
83
83
|
VelocitySpeedLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
84
84
|
readonly description: RichSlot<E>;
|
|
85
85
|
readonly title: RichSlot<E>;
|
|
@@ -94,7 +94,7 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
|
|
|
94
94
|
readonly modeLabels: Schema.$Record<Schema.Literals<readonly ["forward", "partialReturn", "backToStart"]>, RichSlot<E>>;
|
|
95
95
|
readonly viewLabel: Schema.Trimmed;
|
|
96
96
|
}>;
|
|
97
|
-
}
|
|
97
|
+
}>, "figure">;
|
|
98
98
|
VerticalMovementLab: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
99
99
|
readonly description: RichSlot<E>;
|
|
100
100
|
readonly title: RichSlot<E>;
|
|
@@ -108,5 +108,5 @@ export declare function velocityVisuals<E>(rich: RichSlot<E>): {
|
|
|
108
108
|
readonly time: RichSlot<E>;
|
|
109
109
|
readonly viewLabel: Schema.Trimmed;
|
|
110
110
|
}>;
|
|
111
|
-
}
|
|
111
|
+
}>, "figure">;
|
|
112
112
|
};
|
|
@@ -13,7 +13,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
|
|
|
13
13
|
electability: RichSlot<E>;
|
|
14
14
|
notAnswering: Schema.Trimmed;
|
|
15
15
|
}>;
|
|
16
|
-
}
|
|
16
|
+
}>, "figure">;
|
|
17
17
|
MerahPutihCabinetChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
18
18
|
readonly description: RichSlot<E>;
|
|
19
19
|
readonly title: RichSlot<E>;
|
|
@@ -21,7 +21,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
|
|
|
21
21
|
readonly labels: Schema.Struct<{
|
|
22
22
|
cabinet: RichSlot<E>;
|
|
23
23
|
}>;
|
|
24
|
-
}
|
|
24
|
+
}>, "figure">;
|
|
25
25
|
MerahPutihCompositionChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
26
26
|
readonly description: RichSlot<E>;
|
|
27
27
|
readonly title: RichSlot<E>;
|
|
@@ -37,7 +37,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
|
|
|
37
37
|
politicalStatus: Schema.Trimmed;
|
|
38
38
|
politicians: RichSlot<E>;
|
|
39
39
|
}>;
|
|
40
|
-
}
|
|
40
|
+
}>, "figure">;
|
|
41
41
|
NepotismStage: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
42
42
|
readonly description: Schema.optionalKey<RichSlot<E>>;
|
|
43
43
|
readonly labels: Schema.Struct<{
|
|
@@ -46,7 +46,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
|
|
|
46
46
|
readonly selection: RichSlot<E>;
|
|
47
47
|
}>;
|
|
48
48
|
readonly title: RichSlot<E>;
|
|
49
|
-
}
|
|
49
|
+
}>, "figure">;
|
|
50
50
|
NepotismStateTable: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
51
51
|
readonly caption: RichSlot<E>;
|
|
52
52
|
readonly labels: Schema.Struct<{
|
|
@@ -59,7 +59,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
|
|
|
59
59
|
readonly low: RichSlot<E>;
|
|
60
60
|
readonly medium: RichSlot<E>;
|
|
61
61
|
}>;
|
|
62
|
-
}
|
|
62
|
+
}>, "figure">;
|
|
63
63
|
PorkBarrelBudgetChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
64
64
|
readonly description: RichSlot<E>;
|
|
65
65
|
readonly title: RichSlot<E>;
|
|
@@ -68,7 +68,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
|
|
|
68
68
|
budget: RichSlot<E>;
|
|
69
69
|
}>;
|
|
70
70
|
readonly yLabel: Schema.Trimmed;
|
|
71
|
-
}
|
|
71
|
+
}>, "figure">;
|
|
72
72
|
PorkBarrelElectabilityChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
73
73
|
readonly description: RichSlot<E>;
|
|
74
74
|
readonly title: RichSlot<E>;
|
|
@@ -79,7 +79,7 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
|
|
|
79
79
|
prabowoGibran: RichSlot<E>;
|
|
80
80
|
}>;
|
|
81
81
|
readonly yLabel: Schema.Trimmed;
|
|
82
|
-
}
|
|
82
|
+
}>, "figure">;
|
|
83
83
|
PorkBarrelFundChart: import("#contracts/visual/entry").VisualEntry<Schema.Struct<{
|
|
84
84
|
readonly description: RichSlot<E>;
|
|
85
85
|
readonly title: RichSlot<E>;
|
|
@@ -88,5 +88,5 @@ export declare function politicsVisuals<E>(rich: RichSlot<E>): {
|
|
|
88
88
|
fund: RichSlot<E>;
|
|
89
89
|
}>;
|
|
90
90
|
readonly yLabel: Schema.Trimmed;
|
|
91
|
-
}
|
|
91
|
+
}>, "figure">;
|
|
92
92
|
};
|
package/package.json
CHANGED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import { Schema } from "effect";
|
|
2
|
-
import { type RichSlot } from "#contracts/visual/card";
|
|
3
|
-
/**
|
|
4
|
-
* One line of a `LineEquation` scene: a line through points, a curve by its
|
|
5
|
-
* formula, a cuboid, or a part of a circle.
|
|
6
|
-
*/
|
|
7
|
-
export declare function sceneLine<E>(rich: RichSlot<E>): Schema.Union<readonly [Schema.Struct<{
|
|
8
|
-
readonly color: Schema.optionalKey<Schema.Trimmed>;
|
|
9
|
-
readonly cone: Schema.optionalKey<Schema.Struct<{
|
|
10
|
-
readonly position: Schema.Literals<readonly ["start", "end", "both"]>;
|
|
11
|
-
readonly size: Schema.optionalKey<Schema.Finite>;
|
|
12
|
-
}>>;
|
|
13
|
-
readonly curvePoints: Schema.optionalKey<Schema.Int>;
|
|
14
|
-
readonly endpoints: Schema.optionalKey<Schema.Struct<{
|
|
15
|
-
readonly end: Schema.optionalKey<Schema.Literals<readonly ["open", "closed"]>>;
|
|
16
|
-
readonly start: Schema.optionalKey<Schema.Literals<readonly ["open", "closed"]>>;
|
|
17
|
-
}>>;
|
|
18
|
-
readonly labels: Schema.optionalKey<Schema.NonEmptyArray<Schema.Struct<{
|
|
19
|
-
readonly anchorX: Schema.optionalKey<Schema.Literals<readonly ["center", "left", "right"]>>;
|
|
20
|
-
readonly at: Schema.optionalKey<Schema.Int>;
|
|
21
|
-
readonly fontSize: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["marker", "compact", "annotation", "reading", "display", "diagram"]>, Schema.Finite]>>;
|
|
22
|
-
readonly offset: Schema.optionalKey<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
23
|
-
readonly text: RichSlot<E>;
|
|
24
|
-
}>>>;
|
|
25
|
-
readonly lineWidth: Schema.optionalKey<Schema.Finite>;
|
|
26
|
-
readonly pointIndices: Schema.optionalKey<Schema.NonEmptyArray<Schema.Int>>;
|
|
27
|
-
readonly showPoints: Schema.optionalKey<Schema.Boolean>;
|
|
28
|
-
readonly points: Schema.NonEmptyArray<Schema.Struct<{
|
|
29
|
-
readonly x: Schema.Finite;
|
|
30
|
-
readonly y: Schema.Finite;
|
|
31
|
-
readonly z: Schema.Finite;
|
|
32
|
-
}>>;
|
|
33
|
-
readonly smooth: Schema.optionalKey<Schema.Boolean>;
|
|
34
|
-
}>, Schema.Struct<{
|
|
35
|
-
readonly color: Schema.optionalKey<Schema.Trimmed>;
|
|
36
|
-
readonly cone: Schema.optionalKey<Schema.Struct<{
|
|
37
|
-
readonly position: Schema.Literals<readonly ["start", "end", "both"]>;
|
|
38
|
-
readonly size: Schema.optionalKey<Schema.Finite>;
|
|
39
|
-
}>>;
|
|
40
|
-
readonly curvePoints: Schema.optionalKey<Schema.Int>;
|
|
41
|
-
readonly endpoints: Schema.optionalKey<Schema.Struct<{
|
|
42
|
-
readonly end: Schema.optionalKey<Schema.Literals<readonly ["open", "closed"]>>;
|
|
43
|
-
readonly start: Schema.optionalKey<Schema.Literals<readonly ["open", "closed"]>>;
|
|
44
|
-
}>>;
|
|
45
|
-
readonly labels: Schema.optionalKey<Schema.NonEmptyArray<Schema.Struct<{
|
|
46
|
-
readonly anchorX: Schema.optionalKey<Schema.Literals<readonly ["center", "left", "right"]>>;
|
|
47
|
-
readonly at: Schema.optionalKey<Schema.Int>;
|
|
48
|
-
readonly fontSize: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["marker", "compact", "annotation", "reading", "display", "diagram"]>, Schema.Finite]>>;
|
|
49
|
-
readonly offset: Schema.optionalKey<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
50
|
-
readonly text: RichSlot<E>;
|
|
51
|
-
}>>>;
|
|
52
|
-
readonly lineWidth: Schema.optionalKey<Schema.Finite>;
|
|
53
|
-
readonly pointIndices: Schema.optionalKey<Schema.NonEmptyArray<Schema.Int>>;
|
|
54
|
-
readonly showPoints: Schema.optionalKey<Schema.Boolean>;
|
|
55
|
-
readonly curve: Schema.Struct<{
|
|
56
|
-
readonly amplitude: Schema.Finite;
|
|
57
|
-
readonly domain: Schema.Tuple<readonly [Schema.Finite, Schema.Finite]>;
|
|
58
|
-
readonly frequency: Schema.Finite;
|
|
59
|
-
readonly kind: Schema.Literals<readonly ["sin", "cos", "tan"]>;
|
|
60
|
-
readonly phase: Schema.Finite;
|
|
61
|
-
readonly samples: Schema.optionalKey<Schema.Int>;
|
|
62
|
-
readonly shift: Schema.Finite;
|
|
63
|
-
}>;
|
|
64
|
-
}>, Schema.Struct<{
|
|
65
|
-
readonly center: Schema.optionalKey<Schema.Struct<{
|
|
66
|
-
readonly x: Schema.Finite;
|
|
67
|
-
readonly y: Schema.Finite;
|
|
68
|
-
readonly z: Schema.Finite;
|
|
69
|
-
}>>;
|
|
70
|
-
readonly color: Schema.optionalKey<Schema.Trimmed>;
|
|
71
|
-
readonly height: Schema.Finite;
|
|
72
|
-
readonly kind: Schema.Literal<"cuboid">;
|
|
73
|
-
readonly length: Schema.Finite;
|
|
74
|
-
readonly lineWidth: Schema.optionalKey<Schema.Finite>;
|
|
75
|
-
readonly showPoints: Schema.optionalKey<Schema.Boolean>;
|
|
76
|
-
readonly width: Schema.Finite;
|
|
77
|
-
}>, Schema.Struct<{
|
|
78
|
-
readonly color: Schema.optionalKey<Schema.Trimmed>;
|
|
79
|
-
readonly cone: Schema.optionalKey<Schema.Struct<{
|
|
80
|
-
readonly position: Schema.Literals<readonly ["start", "end", "both"]>;
|
|
81
|
-
readonly size: Schema.optionalKey<Schema.Finite>;
|
|
82
|
-
}>>;
|
|
83
|
-
readonly curvePoints: Schema.optionalKey<Schema.Int>;
|
|
84
|
-
readonly endpoints: Schema.optionalKey<Schema.Struct<{
|
|
85
|
-
readonly end: Schema.optionalKey<Schema.Literals<readonly ["open", "closed"]>>;
|
|
86
|
-
readonly start: Schema.optionalKey<Schema.Literals<readonly ["open", "closed"]>>;
|
|
87
|
-
}>>;
|
|
88
|
-
readonly labels: Schema.optionalKey<Schema.NonEmptyArray<Schema.Struct<{
|
|
89
|
-
readonly anchorX: Schema.optionalKey<Schema.Literals<readonly ["center", "left", "right"]>>;
|
|
90
|
-
readonly at: Schema.optionalKey<Schema.Int>;
|
|
91
|
-
readonly fontSize: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["marker", "compact", "annotation", "reading", "display", "diagram"]>, Schema.Finite]>>;
|
|
92
|
-
readonly offset: Schema.optionalKey<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
93
|
-
readonly text: RichSlot<E>;
|
|
94
|
-
}>>>;
|
|
95
|
-
readonly lineWidth: Schema.optionalKey<Schema.Finite>;
|
|
96
|
-
readonly pointIndices: Schema.optionalKey<Schema.NonEmptyArray<Schema.Int>>;
|
|
97
|
-
readonly showPoints: Schema.optionalKey<Schema.Boolean>;
|
|
98
|
-
readonly kind: Schema.Literal<"circle-outline">;
|
|
99
|
-
readonly radius: Schema.Finite;
|
|
100
|
-
}>, Schema.Struct<{
|
|
101
|
-
readonly color: Schema.optionalKey<Schema.Trimmed>;
|
|
102
|
-
readonly cone: Schema.optionalKey<Schema.Struct<{
|
|
103
|
-
readonly position: Schema.Literals<readonly ["start", "end", "both"]>;
|
|
104
|
-
readonly size: Schema.optionalKey<Schema.Finite>;
|
|
105
|
-
}>>;
|
|
106
|
-
readonly curvePoints: Schema.optionalKey<Schema.Int>;
|
|
107
|
-
readonly endpoints: Schema.optionalKey<Schema.Struct<{
|
|
108
|
-
readonly end: Schema.optionalKey<Schema.Literals<readonly ["open", "closed"]>>;
|
|
109
|
-
readonly start: Schema.optionalKey<Schema.Literals<readonly ["open", "closed"]>>;
|
|
110
|
-
}>>;
|
|
111
|
-
readonly labels: Schema.optionalKey<Schema.NonEmptyArray<Schema.Struct<{
|
|
112
|
-
readonly anchorX: Schema.optionalKey<Schema.Literals<readonly ["center", "left", "right"]>>;
|
|
113
|
-
readonly at: Schema.optionalKey<Schema.Int>;
|
|
114
|
-
readonly fontSize: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["marker", "compact", "annotation", "reading", "display", "diagram"]>, Schema.Finite]>>;
|
|
115
|
-
readonly offset: Schema.optionalKey<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
116
|
-
readonly text: RichSlot<E>;
|
|
117
|
-
}>>>;
|
|
118
|
-
readonly lineWidth: Schema.optionalKey<Schema.Finite>;
|
|
119
|
-
readonly pointIndices: Schema.optionalKey<Schema.NonEmptyArray<Schema.Int>>;
|
|
120
|
-
readonly showPoints: Schema.optionalKey<Schema.Boolean>;
|
|
121
|
-
readonly radius: Schema.Finite;
|
|
122
|
-
readonly startDegrees: Schema.Finite;
|
|
123
|
-
readonly sweepDegrees: Schema.Finite;
|
|
124
|
-
readonly kind: Schema.Literal<"circle-chord">;
|
|
125
|
-
}>, Schema.Struct<{
|
|
126
|
-
readonly color: Schema.optionalKey<Schema.Trimmed>;
|
|
127
|
-
readonly cone: Schema.optionalKey<Schema.Struct<{
|
|
128
|
-
readonly position: Schema.Literals<readonly ["start", "end", "both"]>;
|
|
129
|
-
readonly size: Schema.optionalKey<Schema.Finite>;
|
|
130
|
-
}>>;
|
|
131
|
-
readonly curvePoints: Schema.optionalKey<Schema.Int>;
|
|
132
|
-
readonly endpoints: Schema.optionalKey<Schema.Struct<{
|
|
133
|
-
readonly end: Schema.optionalKey<Schema.Literals<readonly ["open", "closed"]>>;
|
|
134
|
-
readonly start: Schema.optionalKey<Schema.Literals<readonly ["open", "closed"]>>;
|
|
135
|
-
}>>;
|
|
136
|
-
readonly labels: Schema.optionalKey<Schema.NonEmptyArray<Schema.Struct<{
|
|
137
|
-
readonly anchorX: Schema.optionalKey<Schema.Literals<readonly ["center", "left", "right"]>>;
|
|
138
|
-
readonly at: Schema.optionalKey<Schema.Int>;
|
|
139
|
-
readonly fontSize: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["marker", "compact", "annotation", "reading", "display", "diagram"]>, Schema.Finite]>>;
|
|
140
|
-
readonly offset: Schema.optionalKey<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
141
|
-
readonly text: RichSlot<E>;
|
|
142
|
-
}>>>;
|
|
143
|
-
readonly lineWidth: Schema.optionalKey<Schema.Finite>;
|
|
144
|
-
readonly pointIndices: Schema.optionalKey<Schema.NonEmptyArray<Schema.Int>>;
|
|
145
|
-
readonly showPoints: Schema.optionalKey<Schema.Boolean>;
|
|
146
|
-
readonly degrees: Schema.Finite;
|
|
147
|
-
readonly kind: Schema.Literal<"circle-radius">;
|
|
148
|
-
readonly radius: Schema.Finite;
|
|
149
|
-
}>, Schema.Struct<{
|
|
150
|
-
readonly radius: Schema.Finite;
|
|
151
|
-
readonly startDegrees: Schema.Finite;
|
|
152
|
-
readonly sweepDegrees: Schema.Finite;
|
|
153
|
-
readonly color: Schema.Trimmed;
|
|
154
|
-
readonly kind: Schema.Literal<"circle-arc" | "circle-segment">;
|
|
155
|
-
readonly label: Schema.optionalKey<Schema.Struct<{
|
|
156
|
-
readonly anchorX: Schema.optionalKey<Schema.Literals<readonly ["center", "left", "right"]>>;
|
|
157
|
-
readonly fontSize: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["marker", "compact", "annotation", "reading", "display", "diagram"]>, Schema.Finite]>>;
|
|
158
|
-
readonly offset: Schema.optionalKey<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
159
|
-
readonly text: RichSlot<E>;
|
|
160
|
-
readonly progress: Schema.optionalKey<Schema.Finite>;
|
|
161
|
-
}>>;
|
|
162
|
-
readonly lineWidth: Schema.optionalKey<Schema.Finite>;
|
|
163
|
-
readonly segments: Schema.optionalKey<Schema.Int>;
|
|
164
|
-
}>, Schema.Struct<{
|
|
165
|
-
readonly radius: Schema.Finite;
|
|
166
|
-
readonly startDegrees: Schema.Finite;
|
|
167
|
-
readonly sweepDegrees: Schema.Finite;
|
|
168
|
-
readonly color: Schema.Trimmed;
|
|
169
|
-
readonly kind: Schema.Literal<"circle-arc" | "circle-segment">;
|
|
170
|
-
readonly label: Schema.optionalKey<Schema.Struct<{
|
|
171
|
-
readonly anchorX: Schema.optionalKey<Schema.Literals<readonly ["center", "left", "right"]>>;
|
|
172
|
-
readonly fontSize: Schema.optionalKey<Schema.Union<readonly [Schema.Literals<readonly ["marker", "compact", "annotation", "reading", "display", "diagram"]>, Schema.Finite]>>;
|
|
173
|
-
readonly offset: Schema.optionalKey<Schema.Tuple<readonly [Schema.Finite, Schema.Finite, Schema.Finite]>>;
|
|
174
|
-
readonly text: RichSlot<E>;
|
|
175
|
-
readonly progress: Schema.optionalKey<Schema.Finite>;
|
|
176
|
-
}>>;
|
|
177
|
-
readonly lineWidth: Schema.optionalKey<Schema.Finite>;
|
|
178
|
-
readonly segments: Schema.optionalKey<Schema.Int>;
|
|
179
|
-
}>]>;
|