@motionscript/math 0.1.0-alpha.6 → 0.1.0-alpha.7
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/CHANGELOG.md +6 -0
- package/dist/annotate/angle-mark.d.ts +28 -3
- package/dist/annotate/angle-mark.d.ts.map +1 -1
- package/dist/annotate/curly-brace.d.ts +38 -3
- package/dist/annotate/curly-brace.d.ts.map +1 -1
- package/dist/annotate/emphasis-mark.d.ts +29 -3
- package/dist/annotate/emphasis-mark.d.ts.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +3 -3
- package/dist/browser/manifest.json +1 -1
- package/dist/kit/component.d.ts.map +1 -1
- package/dist/kit/field-mark.d.ts +1 -3
- package/dist/kit/field-mark.d.ts.map +1 -1
- package/dist/kit/follow.d.ts +2 -2
- package/dist/kit/follow.d.ts.map +1 -1
- package/dist/marks/curve-area.d.ts +14 -1
- package/dist/marks/curve-area.d.ts.map +1 -1
- package/dist/marks/drop-lines.d.ts +20 -3
- package/dist/marks/drop-lines.d.ts.map +1 -1
- package/dist/marks/plot-point.d.ts +20 -1
- package/dist/marks/plot-point.d.ts.map +1 -1
- package/dist/marks/riemann-sum.d.ts +18 -1
- package/dist/marks/riemann-sum.d.ts.map +1 -1
- package/dist/marks/tangent-line.d.ts +23 -3
- package/dist/marks/tangent-line.d.ts.map +1 -1
- package/dist/marks/vector-arrow.d.ts +21 -3
- package/dist/marks/vector-arrow.d.ts.map +1 -1
- package/dist/plots/function-plot.d.ts +33 -5
- package/dist/plots/function-plot.d.ts.map +1 -1
- package/dist/plots/points-plot.d.ts +22 -1
- package/dist/plots/points-plot.d.ts.map +1 -1
- package/dist/plots/stream-lines.d.ts +23 -1
- package/dist/plots/stream-lines.d.ts.map +1 -1
- package/dist/plots/traced-path.d.ts +21 -1
- package/dist/plots/traced-path.d.ts.map +1 -1
- package/dist/plots/vector-field.d.ts +18 -1
- package/dist/plots/vector-field.d.ts.map +1 -1
- package/dist/structures/network-graph.d.ts +42 -1
- package/dist/structures/network-graph.d.ts.map +1 -1
- package/dist/structures/sample-space.d.ts +22 -1
- package/dist/structures/sample-space.d.ts.map +1 -1
- package/dist/systems/axes2d.d.ts +34 -1
- package/dist/systems/axes2d.d.ts.map +1 -1
- package/dist/systems/number-line.d.ts +30 -1
- package/dist/systems/number-line.d.ts.map +1 -1
- package/dist/systems/number-plane.d.ts +49 -1
- package/dist/systems/number-plane.d.ts.map +1 -1
- package/dist/systems/polar-plane.d.ts +30 -1
- package/dist/systems/polar-plane.d.ts.map +1 -1
- package/dist/tex/matrix.d.ts +34 -2
- package/dist/tex/matrix.d.ts.map +1 -1
- package/dist/tex/node.d.ts +31 -2
- package/dist/tex/node.d.ts.map +1 -1
- package/dist/tex/typeset.d.ts +4 -4
- package/dist/tex/typeset.d.ts.map +1 -1
- package/dist/three/axes3d.d.ts +75 -1
- package/dist/three/axes3d.d.ts.map +1 -1
- package/dist/three/axes3d.js +6 -2
- package/dist/three/axes3d.js.map +1 -1
- package/dist/three/curve-plot3d.d.ts +53 -15
- package/dist/three/curve-plot3d.d.ts.map +1 -1
- package/dist/three/plot-point3d.d.ts +43 -15
- package/dist/three/plot-point3d.d.ts.map +1 -1
- package/dist/three/surface-plot3d.d.ts +68 -23
- package/dist/three/surface-plot3d.d.ts.map +1 -1
- package/dist/three/vector-arrow3d.d.ts +44 -15
- package/dist/three/vector-arrow3d.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/three/axes3d.ts +8 -2
|
@@ -125,7 +125,48 @@ export declare const NetworkGraph: import("@motionscript/sdk").Component<"networ
|
|
|
125
125
|
shadow: import("@motionscript/sdk").Attribute<_Shadow, ShadowResolved[]>;
|
|
126
126
|
start: import("@motionscript/sdk").Type<number, number, false>;
|
|
127
127
|
end: import("@motionscript/sdk").Type<number, number, false>;
|
|
128
|
-
}>, null
|
|
128
|
+
}>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
129
|
+
vertices: import("@motionscript/sdk").Type<string[], string[], false>;
|
|
130
|
+
edges: import("@motionscript/sdk").Type<GraphEdge[], GraphEdge[], false>;
|
|
131
|
+
/** Draw each edge as an arrow from its `from` to its `to`. */
|
|
132
|
+
directed: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
133
|
+
arrangement: import("@motionscript/sdk").Type<GraphLayout, GraphLayout, false>;
|
|
134
|
+
/** The vertex a tree hangs from; left empty, the first. */
|
|
135
|
+
root: import("@motionscript/sdk").Type<string, string, false>;
|
|
136
|
+
/** Vertices placed by hand, whatever the layout says, in the box from -1 to 1 each way. */
|
|
137
|
+
positions: import("@motionscript/sdk").Type<GraphPosition[], GraphPosition[], false>;
|
|
138
|
+
vertexRadius: import("@motionscript/sdk").Type<number, number, false>;
|
|
139
|
+
vertexStroke: import("@motionscript/sdk").Type<Stroke, StrokeResolved[], false>;
|
|
140
|
+
labels: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
141
|
+
labelSize: import("@motionscript/sdk").Type<number, number, false>;
|
|
142
|
+
labelColor: import("@motionscript/sdk").Type<Color, NormalizedColor, false>;
|
|
143
|
+
fontFamily: import("@motionscript/sdk").Type<string, string, false>;
|
|
144
|
+
/** Paints for a vertex by its name, or an edge written `a-b`, over the graph's own. */
|
|
145
|
+
partFills: import("@motionscript/sdk").Type<PartFill[], PartFillResolved[], false>;
|
|
146
|
+
/** The arrangement an `arrangeTo` is leaving, and how far it is towards the new one. */
|
|
147
|
+
layoutFrom: import("@motionscript/sdk").Type<string, string, true>;
|
|
148
|
+
layoutMix: import("@motionscript/sdk").Type<number, number, true>;
|
|
149
|
+
fill: import("@motionscript/sdk").Attribute<Fill, FillResolved[]>;
|
|
150
|
+
stroke: import("@motionscript/sdk").Attribute<Stroke, StrokeResolved[]>;
|
|
151
|
+
shadow: import("@motionscript/sdk").Attribute<_Shadow, ShadowResolved[]>;
|
|
152
|
+
start: import("@motionscript/sdk").Type<number, number, false>;
|
|
153
|
+
end: import("@motionscript/sdk").Type<number, number, false>;
|
|
154
|
+
}>, {
|
|
155
|
+
readonly arrangeTo: {
|
|
156
|
+
readonly arrangement: import("@motionscript/sdk").Type<GraphLayout | undefined, GraphLayout | undefined, false>;
|
|
157
|
+
};
|
|
158
|
+
readonly partFillTo: {
|
|
159
|
+
readonly part: import("@motionscript/sdk").Type<string, string, false>;
|
|
160
|
+
readonly fill: import("@motionscript/sdk").Type<Fill, Fill, false>;
|
|
161
|
+
};
|
|
162
|
+
readonly fillTo: readonly ["fill"];
|
|
163
|
+
readonly strokeTo: readonly ["stroke"];
|
|
164
|
+
readonly shadowTo: readonly ["shadow"];
|
|
165
|
+
readonly progressTo: readonly ["start", "end"];
|
|
166
|
+
readonly flash: {
|
|
167
|
+
readonly portion: import("@motionscript/sdk").Type<number, number, false>;
|
|
168
|
+
};
|
|
169
|
+
}, _Node2D<_Node2DProps>>>>;
|
|
129
170
|
export type NetworkGraph = NodeOf<typeof NetworkGraph>;
|
|
130
171
|
/** Where each vertex is drawn in a graph of `size`, in pixels from its centre, y up. */
|
|
131
172
|
export declare function vertexPoints(graph: GraphValues, size: Size2D): Map<string, Vector2>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-graph.d.ts","sourceRoot":"","sources":["../../src/structures/network-graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,KAAK,EACV,KAAK,IAAI,EACT,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,UAAU,EAEf,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,OAAO,EAEZ,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,MAAM,IAAI,OAAO,EACzB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAyD,KAAK,QAAQ,EAAE,KAAK,gBA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AAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC1B;AA4BD,QAAA,MAAM,KAAK;;;IAIP,8DAA8D;;;IAG9D,2DAA2D;;IAE3D,2FAA2F;;;;;;;;IAQ3F,uFAAuF;;IAEvF,wFAAwF;;;;;;;;CAG3F,CAAC;AAEF,8FAA8F;AAC9F,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,KAAK,CAAC,CAAC;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;IA9BrB,8DAA8D;;;IAG9D,2DAA2D;;IAE3D,2FAA2F;;;;;;;;IAQ3F,uFAAuF;;IAEvF,wFAAwF;;;;;;;;;;;;;;;;;;;;;;;;;;IAfxF,8DAA8D;;;IAG9D,2DAA2D;;IAE3D,2FAA2F;;;;;;;;IAQ3F,uFAAuF;;IAEvF,wFAAwF;;;;;;;;;;;IAfxF,8DAA8D;;;IAG9D,2DAA2D;;IAE3D,2FAA2F;;;;;;;;IAQ3F,uFAAuF;;IAEvF,wFAAwF;;;;;;;;;;;;;;;;;;;;;;;2BAiD1F,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvD,wFAAwF;AACxF,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAanF"}
|
|
@@ -85,7 +85,28 @@ export declare const SampleSpace: import("@motionscript/sdk").Component<"sampleS
|
|
|
85
85
|
fontFamily: import("@motionscript/sdk").Type<string, string, false>;
|
|
86
86
|
stroke: import("@motionscript/sdk").Attribute<_Stroke, StrokeResolved[]>;
|
|
87
87
|
shadow: import("@motionscript/sdk").Attribute<_Shadow, ShadowResolved[]>;
|
|
88
|
-
}>, null
|
|
88
|
+
}>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
89
|
+
/** How the whole is shared across, left to right; any numbers, read as shares of their sum. */
|
|
90
|
+
columnShares: import("@motionscript/sdk").Type<number[], number[], false>;
|
|
91
|
+
/** Each column's upper share, 0 to 1; a column without one is not cut across. */
|
|
92
|
+
rowShares: import("@motionscript/sdk").Type<number[], number[], false>;
|
|
93
|
+
/** Each column's paint, left to right, round again past the last; its lower part shows it fainter. */
|
|
94
|
+
columnFills: import("@motionscript/sdk").Type<Fill[], FillResolved[][], false>;
|
|
95
|
+
columnLabels: import("@motionscript/sdk").Type<string[], string[], false>;
|
|
96
|
+
/** The upper part's name and the lower's, written on the left. */
|
|
97
|
+
rowLabels: import("@motionscript/sdk").Type<string[], string[], false>;
|
|
98
|
+
/** Write each part's probability in it. */
|
|
99
|
+
values: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
100
|
+
labelSize: import("@motionscript/sdk").Type<number, number, false>;
|
|
101
|
+
labelColor: import("@motionscript/sdk").Type<Color, NormalizedColor, false>;
|
|
102
|
+
fontFamily: import("@motionscript/sdk").Type<string, string, false>;
|
|
103
|
+
stroke: import("@motionscript/sdk").Attribute<_Stroke, StrokeResolved[]>;
|
|
104
|
+
shadow: import("@motionscript/sdk").Attribute<_Shadow, ShadowResolved[]>;
|
|
105
|
+
}>, {
|
|
106
|
+
readonly divideTo: readonly ["columnShares", "rowShares"];
|
|
107
|
+
readonly strokeTo: readonly ["stroke"];
|
|
108
|
+
readonly shadowTo: readonly ["shadow"];
|
|
109
|
+
}, _Node2D<_Node2DProps>>>>;
|
|
89
110
|
export type SampleSpace = NodeOf<typeof SampleSpace>;
|
|
90
111
|
/** Each part of a sample space of `size`: columns left to right, upper part first. */
|
|
91
112
|
export declare function sampleParts(space: SampleSpaceValues, size: Size2D): SamplePart[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sample-space.d.ts","sourceRoot":"","sources":["../../src/structures/sample-space.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,KAAK,KAA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AAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;IArCpB,+FAA+F;;IAE/F,iFAAiF;;IAEjF,sGAAsG;;;IAGtG,kEAAkE;;IAElE,2CAA2C;;;;;;;;;;;;IAT3C,+FAA+F;;IAE/F,iFAAiF;;IAEjF,sGAAsG;;;IAGtG,kEAAkE;;IAElE,2CAA2C;;;;;;;;IAT3C,+FAA+F;;IAE/F,iFAAiF;;IAEjF,sGAAsG;;;IAGtG,kEAAkE;;IAElE,2CAA2C;;;;;;;;;;;2BA0C7C,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AAErD,sFAAsF;AACtF,wBAAgB,WAAW,CAAC,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,CAuBhF"}
|
package/dist/systems/axes2d.d.ts
CHANGED
|
@@ -159,6 +159,39 @@ export declare const Axes2d: import("@motionscript/sdk").Component<"axes2d", imp
|
|
|
159
159
|
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
160
160
|
start: import("@motionscript/sdk").Type<number, number, false>;
|
|
161
161
|
end: import("@motionscript/sdk").Type<number, number, false>;
|
|
162
|
-
}>, null
|
|
162
|
+
}>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
163
|
+
xRange: import("@motionscript/sdk").Type<Interval, Interval, false>;
|
|
164
|
+
yRange: import("@motionscript/sdk").Type<Interval, Interval, false>;
|
|
165
|
+
/** The spacing of each axis's ticks; zero picks a tidy one for the axis's length. */
|
|
166
|
+
xStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
167
|
+
yStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
168
|
+
xScaling: import("@motionscript/sdk").Type<"linear" | "log", "linear" | "log", false>;
|
|
169
|
+
yScaling: import("@motionscript/sdk").Type<"linear" | "log", "linear" | "log", false>;
|
|
170
|
+
/** Give a y unit the length of an x unit: `yRange` keeps its centre and takes the span that fits. */
|
|
171
|
+
squareUnits: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
172
|
+
ticks: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
173
|
+
tickSize: import("@motionscript/sdk").Type<number, number, false>;
|
|
174
|
+
labels: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
175
|
+
labelSize: import("@motionscript/sdk").Type<number, number, false>;
|
|
176
|
+
labelColor: import("@motionscript/sdk").Type<Color, NormalizedColor, false>;
|
|
177
|
+
fontFamily: import("@motionscript/sdk").Type<string, string, false>;
|
|
178
|
+
/** A title at the positive end of each axis. */
|
|
179
|
+
xLabel: import("@motionscript/sdk").Type<string, string, false>;
|
|
180
|
+
yLabel: import("@motionscript/sdk").Type<string, string, false>;
|
|
181
|
+
fill: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
182
|
+
stroke: import("@motionscript/sdk").Attribute<_Stroke, StrokeResolved[]>;
|
|
183
|
+
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
184
|
+
start: import("@motionscript/sdk").Type<number, number, false>;
|
|
185
|
+
end: import("@motionscript/sdk").Type<number, number, false>;
|
|
186
|
+
}>, {
|
|
187
|
+
rangeTo: readonly ["xRange", "yRange"];
|
|
188
|
+
fillTo: readonly ["fill"];
|
|
189
|
+
strokeTo: readonly ["stroke"];
|
|
190
|
+
shadowTo: readonly ["shadow"];
|
|
191
|
+
progressTo: readonly ["start", "end"];
|
|
192
|
+
flash: {
|
|
193
|
+
readonly portion: import("@motionscript/sdk").Type<number, number, false>;
|
|
194
|
+
};
|
|
195
|
+
}, _Node2D<_Node2DProps>>>>;
|
|
163
196
|
export type Axes2d = NodeOf<typeof Axes2d>;
|
|
164
197
|
//# sourceMappingURL=axes2d.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axes2d.d.ts","sourceRoot":"","sources":["../../src/systems/axes2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,UAAU,EAEV,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,OAAO,EAEZ,KAAK,IAAI,IAAI,KAAK,EAClB,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACtC,KAAK,MAAM,IAAI,OAAO,EACzB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAA8C,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGhI,OAAO,EAAwB,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;AAGhE,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC3C,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS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A;;;;;;;;CAuCxE,CAAC;AAEF,8FAA8F;AAC9F,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,IAAI,CAAC,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5G,4GAA4G;AAC5G,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,GAAG,IAAI,CAG5D;AAED,gDAAgD;AAChD,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,GAAG,aAAa,CAUnE;AAED,yGAAyG;AACzG,wBAAgB,MAAM,CAAC,GAAG,EAAE,aAAa,EAAE,CAAC,EAAE,UAAU,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,CA4BlF;AAED,iHAAiH;AACjH,wBAAgB,aAAa,CACzB,GAAG,EAAE,aAAa,EAClB,CAAC,EAAE,UAAU,EACb,QAAQ,GAAE,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,KAAK,UAAU,EAAa,GACpE,UAAU,EAAE,CAuDd;AAED;;;GAGG;AACH,eAAO,MAAM,MAAM;;;IAhJf,qFAAqF;;;;;IAKrF,qGAAqG;;;;;;;;IAQrG,gDAAgD;;;;;;;;;;;;;;;;;;;;IAbhD,qFAAqF;;;;;IAKrF,qGAAqG;;;;;;;;IAQrG,gDAAgD;;;;;;;;;;;IAbhD,qFAAqF;;;;;IAKrF,qGAAqG;;;;;;;;IAQrG,gDAAgD;;;;;;;;;;;;;;;;;2BA8IlD,CAAC;AAEH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
|
@@ -67,6 +67,35 @@ export declare const NumberLine: import("@motionscript/sdk").Component<"numberLi
|
|
|
67
67
|
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
68
68
|
start: import("@motionscript/sdk").Type<number, number, false>;
|
|
69
69
|
end: import("@motionscript/sdk").Type<number, number, false>;
|
|
70
|
-
}>, null
|
|
70
|
+
}>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
71
|
+
range: import("@motionscript/sdk").Type<Interval, Interval, false>;
|
|
72
|
+
/** The spacing of the ticks; zero picks a tidy one for the line's length. */
|
|
73
|
+
step: import("@motionscript/sdk").Type<number, number, false>;
|
|
74
|
+
scaling: import("@motionscript/sdk").Type<"linear" | "log", "linear" | "log", false>;
|
|
75
|
+
ticks: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
76
|
+
tickSize: import("@motionscript/sdk").Type<number, number, false>;
|
|
77
|
+
/** Values whose ticks are drawn twice as long. */
|
|
78
|
+
longTicks: import("@motionscript/sdk").Type<number[], number[], false>;
|
|
79
|
+
labels: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
80
|
+
labelExclude: import("@motionscript/sdk").Type<number[], number[], false>;
|
|
81
|
+
labelSide: import("@motionscript/sdk").Type<"below" | "above", "below" | "above", false>;
|
|
82
|
+
labelSize: import("@motionscript/sdk").Type<number, number, false>;
|
|
83
|
+
labelColor: import("@motionscript/sdk").Type<Color, NormalizedColor, false>;
|
|
84
|
+
fontFamily: import("@motionscript/sdk").Type<string, string, false>;
|
|
85
|
+
fill: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
86
|
+
stroke: import("@motionscript/sdk").Attribute<_Stroke, StrokeResolved[]>;
|
|
87
|
+
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
88
|
+
start: import("@motionscript/sdk").Type<number, number, false>;
|
|
89
|
+
end: import("@motionscript/sdk").Type<number, number, false>;
|
|
90
|
+
}>, {
|
|
91
|
+
readonly rangeTo: readonly ["range"];
|
|
92
|
+
readonly fillTo: readonly ["fill"];
|
|
93
|
+
readonly strokeTo: readonly ["stroke"];
|
|
94
|
+
readonly shadowTo: readonly ["shadow"];
|
|
95
|
+
readonly progressTo: readonly ["start", "end"];
|
|
96
|
+
readonly flash: {
|
|
97
|
+
readonly portion: import("@motionscript/sdk").Type<number, number, false>;
|
|
98
|
+
};
|
|
99
|
+
}, _Node2D<_Node2DProps>>>>;
|
|
71
100
|
export type NumberLine = NodeOf<typeof NumberLine>;
|
|
72
101
|
//# sourceMappingURL=number-line.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-line.d.ts","sourceRoot":"","sources":["../../src/systems/number-line.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,KAAK,EAEV,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,cAAc,EAInB,KAAK,IAAI,IAAI,KAAK,EAClB,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACtC,KAAK,MAAM,IAAI,OAAO,EACzB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAiC,KAAK,WAAW,EAAsB,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAKnH,MAAM,WAAW,eAAgB,SAAQ,UAAU;IAC/C,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE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U;;IArBnB,6EAA6E;;;;;IAK7E,kDAAkD;;;;;;;;;;;;;;;;;;;;;;;;IALlD,6EAA6E;;;;;IAK7E,kDAAkD;;;;;;;;;;;;;;;IALlD,6EAA6E;;;;;IAK7E,kDAAkD;;;;;;;;;;;;;;;;;;;;;;2BAiCpD,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -112,7 +112,55 @@ export declare const NumberPlane: import("@motionscript/sdk").Component<"numberP
|
|
|
112
112
|
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
113
113
|
start: import("@motionscript/sdk").Type<number, number, false>;
|
|
114
114
|
end: import("@motionscript/sdk").Type<number, number, false>;
|
|
115
|
-
}>, null
|
|
115
|
+
}>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
116
|
+
grid: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
117
|
+
/** The line at every tick. */
|
|
118
|
+
gridStroke: import("@motionscript/sdk").Type<Stroke, StrokeResolved[], false>;
|
|
119
|
+
/** The lines between ticks. */
|
|
120
|
+
minorStroke: import("@motionscript/sdk").Type<Stroke, StrokeResolved[], false>;
|
|
121
|
+
/** How many parts the space between two ticks is cut into; one draws no line between them. */
|
|
122
|
+
minorDivisions: import("@motionscript/sdk").Type<number, number, false>;
|
|
123
|
+
/** A linear map of the plane, row by row: `[a, b, c, d]` sends `(x, y)` to `(ax + by, cx + dy)`. */
|
|
124
|
+
matrix: import("@motionscript/sdk").Type<Matrix2 | readonly (readonly number[])[], Matrix2, false>;
|
|
125
|
+
/**
|
|
126
|
+
* Where each point of the plane is sent, two parts in x and y:
|
|
127
|
+
* `(x + sin(y), y + sin(x))`. Empty leaves the plane flat.
|
|
128
|
+
*/
|
|
129
|
+
warp: import("@motionscript/sdk").Type<string | PlotSource, PlotSource, false>;
|
|
130
|
+
/** Leave the plane as it was, faintly, behind one that has been transformed or warped. */
|
|
131
|
+
ghost: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
132
|
+
xRange: import("@motionscript/sdk").Type<import("../index.js").Interval, import("../index.js").Interval, false>;
|
|
133
|
+
yRange: import("@motionscript/sdk").Type<import("../index.js").Interval, import("../index.js").Interval, false>;
|
|
134
|
+
xStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
135
|
+
yStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
136
|
+
xScaling: import("@motionscript/sdk").Type<"linear" | "log", "linear" | "log", false>;
|
|
137
|
+
yScaling: import("@motionscript/sdk").Type<"linear" | "log", "linear" | "log", false>;
|
|
138
|
+
squareUnits: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
139
|
+
ticks: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
140
|
+
tickSize: import("@motionscript/sdk").Type<number, number, false>;
|
|
141
|
+
labels: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
142
|
+
labelSize: import("@motionscript/sdk").Type<number, number, false>;
|
|
143
|
+
labelColor: import("@motionscript/sdk").Type<_Color, _NormalizedColor, false>;
|
|
144
|
+
fontFamily: import("@motionscript/sdk").Type<string, string, false>;
|
|
145
|
+
xLabel: import("@motionscript/sdk").Type<string, string, false>;
|
|
146
|
+
yLabel: import("@motionscript/sdk").Type<string, string, false>;
|
|
147
|
+
fill: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
148
|
+
stroke: import("@motionscript/sdk").Attribute<Stroke, StrokeResolved[]>;
|
|
149
|
+
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
150
|
+
start: import("@motionscript/sdk").Type<number, number, false>;
|
|
151
|
+
end: import("@motionscript/sdk").Type<number, number, false>;
|
|
152
|
+
}>, {
|
|
153
|
+
readonly transformTo: readonly ["matrix"];
|
|
154
|
+
readonly warpTo: readonly ["warp"];
|
|
155
|
+
readonly rangeTo: readonly ["xRange", "yRange"];
|
|
156
|
+
readonly fillTo: readonly ["fill"];
|
|
157
|
+
readonly strokeTo: readonly ["stroke"];
|
|
158
|
+
readonly shadowTo: readonly ["shadow"];
|
|
159
|
+
readonly progressTo: readonly ["start", "end"];
|
|
160
|
+
readonly flash: {
|
|
161
|
+
readonly portion: import("@motionscript/sdk").Type<number, number, false>;
|
|
162
|
+
};
|
|
163
|
+
}, _Node2D<_Node2DProps>>>>;
|
|
116
164
|
export type NumberPlane = NodeOf<typeof NumberPlane>;
|
|
117
165
|
/** The plane's map on a plot area: the flat one, sent through its matrix and its warp. */
|
|
118
166
|
export declare function planeMap(area: Extents, s: PlaneValues): CoordinateMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-plane.d.ts","sourceRoot":"","sources":["../../src/systems/number-plane.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,OAAO,EACZ,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,cAAc,EAEnB,KAAK,KAAK,IAAI,MAAM,EACpB,KAAK,IAAI,IAAI,KAAK,EAClB,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,eAAe,IAAI,gBAAgB,EACxC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACzC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAOH,KAAK,aAAa,EAClB,KAAK,OAAO,EAEf,MAAM,eAAe,CAAC;AAGvB,OAAO,EAA0B,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAExE,OAAO,EAAiE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAmB,MAAM,UAAU,CAAC;AAE7I,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACjD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,c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oGAAoG;;IAEpG;;;OAGG;;IAEH,0FAA0F;;;;;;;;;;;;;;;;;;;;;;;;IAb1F,8BAA8B;;IAE9B,+BAA+B;;IAE/B,8FAA8F;;IAE9F,oGAAoG;;IAEpG;;;OAGG;;IAEH,0FAA0F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA8C5F,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AAErD,0FAA0F;AAC1F,wBAAgB,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,GAAG,aAAa,CAErE"}
|
|
@@ -64,6 +64,35 @@ export declare const PolarPlane: import("@motionscript/sdk").Component<"polarPla
|
|
|
64
64
|
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
65
65
|
start: import("@motionscript/sdk").Type<number, number, false>;
|
|
66
66
|
end: import("@motionscript/sdk").Type<number, number, false>;
|
|
67
|
-
}>, null
|
|
67
|
+
}>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
68
|
+
/** The radius of the outermost ring, in graph units. */
|
|
69
|
+
radius: import("@motionscript/sdk").Type<number, number, false>;
|
|
70
|
+
/** The spacing of the rings; zero picks a tidy one for the plane's size. */
|
|
71
|
+
ringStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
72
|
+
/** How many spokes divide the turn; zero draws none. */
|
|
73
|
+
spokes: import("@motionscript/sdk").Type<number, number, false>;
|
|
74
|
+
angleUnit: import("@motionscript/sdk").Type<"degrees" | "radians", "degrees" | "radians", false>;
|
|
75
|
+
/** The inner rings and the spokes. */
|
|
76
|
+
gridStroke: import("@motionscript/sdk").Type<Stroke, StrokeResolved[], false>;
|
|
77
|
+
/** A number at each ring, and an angle at each spoke. */
|
|
78
|
+
labels: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
79
|
+
labelSize: import("@motionscript/sdk").Type<number, number, false>;
|
|
80
|
+
labelColor: import("@motionscript/sdk").Type<Color, NormalizedColor, false>;
|
|
81
|
+
fontFamily: import("@motionscript/sdk").Type<string, string, false>;
|
|
82
|
+
fill: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
83
|
+
stroke: import("@motionscript/sdk").Attribute<Stroke, StrokeResolved[]>;
|
|
84
|
+
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
85
|
+
start: import("@motionscript/sdk").Type<number, number, false>;
|
|
86
|
+
end: import("@motionscript/sdk").Type<number, number, false>;
|
|
87
|
+
}>, {
|
|
88
|
+
readonly rangeTo: readonly ["radius"];
|
|
89
|
+
readonly fillTo: readonly ["fill"];
|
|
90
|
+
readonly strokeTo: readonly ["stroke"];
|
|
91
|
+
readonly shadowTo: readonly ["shadow"];
|
|
92
|
+
readonly progressTo: readonly ["start", "end"];
|
|
93
|
+
readonly flash: {
|
|
94
|
+
readonly portion: import("@motionscript/sdk").Type<number, number, false>;
|
|
95
|
+
};
|
|
96
|
+
}, _Node2D<_Node2DProps>>>>;
|
|
68
97
|
export type PolarPlane = NodeOf<typeof PolarPlane>;
|
|
69
98
|
//# sourceMappingURL=polar-plane.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polar-plane.d.ts","sourceRoot":"","sources":["../../src/systems/polar-plane.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,KAAK,EAEV,KAAK,MAAM,EACX,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,MAAM,EACX,KAAK,cAAc,EAGnB,KAAK,IAAI,IAAI,KAAK,EAClB,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACzC,MAAM,mBAAmB,CAAC;AAO3B,MAAM,WAAW,eAAgB,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;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAyBD;;;;GAIG;AACH,eAAO,MAAM,UAAU;IAvBnB,wDAAwD;;IAExD,4EAA4E;;IAE5E,wDAAwD;;;IAGxD,sCAAsC;;IAEtC,yDAAyD;;;;;;;;;;;;;;;;;;;;IATzD,wDAAwD;;IAExD,4EAA4E;;IAE5E,wDAAwD;;;IAGxD,sCAAsC;;IAEtC,yDAAyD;;;;;;;;;;;IATzD,wDAAwD;;IAExD,4EAA4E;;IAE5E,wDAAwD;;;IAGxD,sCAAsC;;IAEtC,yDAAyD;;;;;;;;;;;;;;;;;;;2BAgC3D,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
package/dist/tex/matrix.d.ts
CHANGED
|
@@ -41,10 +41,10 @@ export declare const LatexMatrix: import("@motionscript/sdk").Component<"latexMa
|
|
|
41
41
|
readonly fill: import("@motionscript/sdk").Type<_Fill, _Fill, false>;
|
|
42
42
|
readonly occurrence: import("@motionscript/sdk").Type<number, number, false>;
|
|
43
43
|
};
|
|
44
|
-
readonly overlayTo: readonly ["overlay"];
|
|
45
44
|
readonly fillTo: readonly ["fill"];
|
|
46
45
|
readonly strokeTo: readonly ["stroke"];
|
|
47
46
|
readonly shadowTo: readonly ["shadow"];
|
|
47
|
+
readonly overlayTo: readonly ["overlay"];
|
|
48
48
|
}, null, _Node2D<_Node2DProps>, import("@motionscript/sdk").CallProps<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
49
49
|
latex: import("@motionscript/sdk").Type<string, Morphing<string>, false>;
|
|
50
50
|
/** A list of rows is a whole value: mid-tween it holds both, and the morph draws the way there. */
|
|
@@ -64,6 +64,38 @@ export declare const LatexMatrix: import("@motionscript/sdk").Component<"latexMa
|
|
|
64
64
|
stroke: import("@motionscript/sdk").Attribute<_Stroke, _StrokeResolved[]>;
|
|
65
65
|
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
66
66
|
overlay: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
67
|
-
}>, null
|
|
67
|
+
}>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
68
|
+
latex: import("@motionscript/sdk").Type<string, Morphing<string>, false>;
|
|
69
|
+
/** A list of rows is a whole value: mid-tween it holds both, and the morph draws the way there. */
|
|
70
|
+
entries: import("@motionscript/sdk").Type<string[][], Morphing<string[][]>, false>;
|
|
71
|
+
brackets: import("@motionscript/sdk").Type<MatrixBrackets, Morphing<MatrixBrackets>, false>;
|
|
72
|
+
fontSize: number;
|
|
73
|
+
partFills: import("@motionscript/sdk").Type<import("../index.js").PartFill[], import("../index.js").PartFillResolved[], false>;
|
|
74
|
+
written: import("@motionscript/sdk").Type<number, number, false>;
|
|
75
|
+
morphProgress: import("@motionscript/sdk").Type<number, number, false>;
|
|
76
|
+
flow: import("@motionscript/sdk").Type<_FlowMode, _FlowResolved, false>;
|
|
77
|
+
gap: import("@motionscript/sdk").Type<_GapSize, _GapSize, false>;
|
|
78
|
+
wrap: boolean;
|
|
79
|
+
crossGap: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
80
|
+
columns: import("@motionscript/sdk").Type<number, number, false>;
|
|
81
|
+
align: import("@motionscript/sdk").Attribute<_Alignment, _Vector2>;
|
|
82
|
+
fill: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
83
|
+
stroke: import("@motionscript/sdk").Attribute<_Stroke, _StrokeResolved[]>;
|
|
84
|
+
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
85
|
+
overlay: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
86
|
+
}>, {
|
|
87
|
+
readonly morphTo: readonly ["latex"];
|
|
88
|
+
readonly entriesTo: readonly ["entries"];
|
|
89
|
+
readonly writeTo: readonly ["written"];
|
|
90
|
+
readonly partFillTo: {
|
|
91
|
+
readonly part: import("@motionscript/sdk").Type<string, string, false>;
|
|
92
|
+
readonly fill: import("@motionscript/sdk").Type<_Fill, _Fill, false>;
|
|
93
|
+
readonly occurrence: import("@motionscript/sdk").Type<number, number, false>;
|
|
94
|
+
};
|
|
95
|
+
readonly fillTo: readonly ["fill"];
|
|
96
|
+
readonly strokeTo: readonly ["stroke"];
|
|
97
|
+
readonly shadowTo: readonly ["shadow"];
|
|
98
|
+
readonly overlayTo: readonly ["overlay"];
|
|
99
|
+
}, _Node2D<_Node2DProps>>>>;
|
|
68
100
|
export type LatexMatrix = NodeOf<typeof LatexMatrix>;
|
|
69
101
|
//# sourceMappingURL=matrix.d.ts.map
|
package/dist/tex/matrix.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../src/tex/matrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,MAAM,EAEX,KAAK,SAAS,IAAI,UAAU,EAC5B,KAAK,IAAI,IAAI,KAAK,EAClB,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,QAAQ,IAAI,SAAS,EAC1B,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,OAAO,IAAI,QAAQ,EACxB,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACtC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACtC,KAAK,OAAO,IAAI,QAAQ,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAEH,KAAK,QAAQ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,OAAO,GAAG,MAAM,CAAC;AAEtF,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAChD,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC;IACpB,QAAQ,EAAE,cAAc,CAAC;CAC5B;AAaD,sFAAsF;AACtF,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAAE,EAAE,QAAQ,GAAE,cAAyB,GAAG,MAAM,CAKjH;AAyBD;;;;GAIG;AACH,eAAO,MAAM,WAAW;;IAZpB,mGAAmG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAnG,mGAAmG;;;;;;;;;;;;;;;;;;;IAAnG,mGAAmG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0B1F,CAAC;AAEd,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/dist/tex/node.d.ts
CHANGED
|
@@ -43,10 +43,10 @@ export declare const Latex: import("@motionscript/sdk").Component<"latex", impor
|
|
|
43
43
|
readonly fill: import("@motionscript/sdk").Type<_Fill, _Fill, false>;
|
|
44
44
|
readonly occurrence: import("@motionscript/sdk").Type<number, number, false>;
|
|
45
45
|
};
|
|
46
|
-
readonly overlayTo: readonly ["overlay"];
|
|
47
46
|
readonly fillTo: readonly ["fill"];
|
|
48
47
|
readonly strokeTo: readonly ["stroke"];
|
|
49
48
|
readonly shadowTo: readonly ["shadow"];
|
|
49
|
+
readonly overlayTo: readonly ["overlay"];
|
|
50
50
|
}, null, _Node2D<_Node2DProps>, import("@motionscript/sdk").CallProps<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
51
51
|
/** The formula. Mid-tween it holds both ends, and the glyphs morph from the one into the other. */
|
|
52
52
|
latex: import("@motionscript/sdk").Type<string, Morphing<string>, false>;
|
|
@@ -64,6 +64,35 @@ export declare const Latex: import("@motionscript/sdk").Component<"latex", impor
|
|
|
64
64
|
stroke: import("@motionscript/sdk").Attribute<_Stroke, _StrokeResolved[]>;
|
|
65
65
|
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
66
66
|
overlay: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
67
|
-
}>, null
|
|
67
|
+
}>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
68
|
+
/** The formula. Mid-tween it holds both ends, and the glyphs morph from the one into the other. */
|
|
69
|
+
latex: import("@motionscript/sdk").Type<string, Morphing<string>, false>;
|
|
70
|
+
fontSize: number;
|
|
71
|
+
partFills: import("@motionscript/sdk").Type<PartFill[], import("../index.js").PartFillResolved[], false>;
|
|
72
|
+
written: import("@motionscript/sdk").Type<number, number, false>;
|
|
73
|
+
morphProgress: import("@motionscript/sdk").Type<number, number, false>;
|
|
74
|
+
flow: import("@motionscript/sdk").Type<_FlowMode, _FlowResolved, false>;
|
|
75
|
+
gap: import("@motionscript/sdk").Type<_GapSize, _GapSize, false>;
|
|
76
|
+
wrap: boolean;
|
|
77
|
+
crossGap: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
78
|
+
columns: import("@motionscript/sdk").Type<number, number, false>;
|
|
79
|
+
align: import("@motionscript/sdk").Attribute<_Alignment, _Vector2>;
|
|
80
|
+
fill: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
81
|
+
stroke: import("@motionscript/sdk").Attribute<_Stroke, _StrokeResolved[]>;
|
|
82
|
+
shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
83
|
+
overlay: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
84
|
+
}>, {
|
|
85
|
+
readonly morphTo: readonly ["latex"];
|
|
86
|
+
readonly writeTo: readonly ["written"];
|
|
87
|
+
readonly partFillTo: {
|
|
88
|
+
readonly part: import("@motionscript/sdk").Type<string, string, false>;
|
|
89
|
+
readonly fill: import("@motionscript/sdk").Type<_Fill, _Fill, false>;
|
|
90
|
+
readonly occurrence: import("@motionscript/sdk").Type<number, number, false>;
|
|
91
|
+
};
|
|
92
|
+
readonly fillTo: readonly ["fill"];
|
|
93
|
+
readonly strokeTo: readonly ["stroke"];
|
|
94
|
+
readonly shadowTo: readonly ["shadow"];
|
|
95
|
+
readonly overlayTo: readonly ["overlay"];
|
|
96
|
+
}, _Node2D<_Node2DProps>>>>;
|
|
68
97
|
export type Latex = NodeOf<typeof Latex>;
|
|
69
98
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/tex/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/tex/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,UAAU,EAEf,KAAK,SAAS,IAAI,UAAU,EAC5B,KAAK,IAAI,IAAI,KAAK,EAClB,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,QAAQ,IAAI,SAAS,EAC1B,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,OAAO,IAAI,QAAQ,EACxB,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACtC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACtC,KAAK,OAAO,IAAI,QAAQ,EAC3B,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAEH,KAAK,QAAQ,EAChB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACj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;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,iFAAiF;IACjF,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC9B;AAUD,sFAAsF;AACtF,eAAO,MAAM,KAAK;IAPd,mGAAmG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAnG,mGAAmG;;;;;;;;;;;;;;;;;IAAnG,mGAAmG;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoB9C,CAAC;AAE1D,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,KAAK,CAAC,CAAC"}
|
package/dist/tex/typeset.d.ts
CHANGED
|
@@ -60,10 +60,6 @@ export declare const TYPESET_COMMANDS: {
|
|
|
60
60
|
};
|
|
61
61
|
run(timeline: any, state: any, children: any): import("@motionscript/sdk").Piece;
|
|
62
62
|
};
|
|
63
|
-
overlayTo: {
|
|
64
|
-
readonly args: readonly ["overlay"];
|
|
65
|
-
readonly run?: undefined;
|
|
66
|
-
};
|
|
67
63
|
fillTo: {
|
|
68
64
|
readonly args: readonly ["fill"];
|
|
69
65
|
readonly run?: undefined;
|
|
@@ -76,6 +72,10 @@ export declare const TYPESET_COMMANDS: {
|
|
|
76
72
|
readonly args: readonly ["shadow"];
|
|
77
73
|
readonly run?: undefined;
|
|
78
74
|
};
|
|
75
|
+
overlayTo: {
|
|
76
|
+
readonly args: readonly ["overlay"];
|
|
77
|
+
readonly run?: undefined;
|
|
78
|
+
};
|
|
79
79
|
};
|
|
80
80
|
type TypesetValues = Values<typeof TYPESET>;
|
|
81
81
|
/** What is drawn of a formula now: its glyphs, its parts, its centre frame and size, and mid-morph each end's part fills. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeset.d.ts","sourceRoot":"","sources":["../../src/tex/typeset.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,IAAI,EAOJ,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,IAAI,EACT,KAAK,YAAY,EACjB,KAAK,cAA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AY,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,SAAI,GAAG,SAAS,GAAG,IAAI,CAchG;AAED,+EAA+E;AAC/E,KAAK,QAAQ,GAAG,CAAC,MAAM,EAAE,KAAK,KAAK,QAAQ,CAAC,MAAM,CAAC,CAAC;AAGpD,+FAA+F;AAC/F,wBAAgB,OAAO,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAG,CAAC,CAG9F;AAED,4EAA4E;AAC5E,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE/C;AAED,qEAAqE;AACrE,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAK3D;AAED,uHAAuH;AACvH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,SAAI,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,CAGxG;AA2CD,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/three/axes3d.d.ts
CHANGED
|
@@ -168,6 +168,80 @@ export declare const Axes3d: import("@motionscript/sdk").Component<"axes3d", imp
|
|
|
168
168
|
readonly overlay: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
169
169
|
readonly start: import("@motionscript/sdk").Type<number, number, false>;
|
|
170
170
|
readonly end: import("@motionscript/sdk").Type<number, number, false>;
|
|
171
|
-
}>, readonly ["2d", "3d"]
|
|
171
|
+
}>, readonly ["2d", "3d"], import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
|
|
172
|
+
readonly xRange: import("@motionscript/sdk").Type<Interval, Interval, false>;
|
|
173
|
+
readonly yRange: import("@motionscript/sdk").Type<Interval, Interval, false>;
|
|
174
|
+
readonly zRange: import("@motionscript/sdk").Type<Interval, Interval, false>;
|
|
175
|
+
readonly xLength: import("@motionscript/sdk").Type<number, number, false>;
|
|
176
|
+
readonly yLength: import("@motionscript/sdk").Type<number, number, false>;
|
|
177
|
+
readonly zLength: import("@motionscript/sdk").Type<number, number, false>;
|
|
178
|
+
readonly xStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
179
|
+
readonly yStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
180
|
+
readonly zStep: import("@motionscript/sdk").Type<number, number, false>;
|
|
181
|
+
readonly color: import("@motionscript/sdk").Type<Color, _NormalizedColor, false>;
|
|
182
|
+
readonly thickness: import("@motionscript/sdk").Type<number, number, false>;
|
|
183
|
+
readonly tips: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
184
|
+
readonly ticks: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
185
|
+
readonly tickSize: import("@motionscript/sdk").Type<number, number, false>;
|
|
186
|
+
readonly grid: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
187
|
+
readonly gridLineColor: import("@motionscript/sdk").Type<Color, _NormalizedColor, false>;
|
|
188
|
+
readonly labels: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
189
|
+
readonly labelSize: import("@motionscript/sdk").Type<number, number, false>;
|
|
190
|
+
readonly labelColor: import("@motionscript/sdk").Type<Color, _NormalizedColor, false>;
|
|
191
|
+
readonly fontFamily: import("@motionscript/sdk").Type<string, string, false>;
|
|
192
|
+
readonly xLabel: import("@motionscript/sdk").Type<string, string, false>;
|
|
193
|
+
readonly yLabel: import("@motionscript/sdk").Type<string, string, false>;
|
|
194
|
+
readonly zLabel: import("@motionscript/sdk").Type<string, string, false>;
|
|
195
|
+
readonly orbit: import("@motionscript/sdk").Type<number, number, false>;
|
|
196
|
+
readonly elevation: import("@motionscript/sdk").Type<number, number, false>;
|
|
197
|
+
readonly zoom: import("@motionscript/sdk").Type<number, number, false>;
|
|
198
|
+
readonly fov: import("@motionscript/sdk").Type<number, number, false>;
|
|
199
|
+
readonly ambientIntensity: import("@motionscript/sdk").Type<number, number, false>;
|
|
200
|
+
readonly ambientColor: import("@motionscript/sdk").Type<Color, _NormalizedColor, false>;
|
|
201
|
+
readonly keyIntensity: import("@motionscript/sdk").Type<number, number, false>;
|
|
202
|
+
readonly keyColor: import("@motionscript/sdk").Type<Color, _NormalizedColor, false>;
|
|
203
|
+
readonly showGrid: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
204
|
+
readonly gridSize: import("@motionscript/sdk").Type<number, number, false>;
|
|
205
|
+
readonly gridDivisions: import("@motionscript/sdk").Type<number, number, false>;
|
|
206
|
+
readonly gridMajorEvery: import("@motionscript/sdk").Type<number, number, false>;
|
|
207
|
+
readonly gridColor: import("@motionscript/sdk").Type<Color, _NormalizedColor, false>;
|
|
208
|
+
readonly gridMajorColor: import("@motionscript/sdk").Type<Color, _NormalizedColor, false>;
|
|
209
|
+
readonly showAxes: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
210
|
+
readonly axisXColor: import("@motionscript/sdk").Type<Color, _NormalizedColor, false>;
|
|
211
|
+
readonly axisZColor: import("@motionscript/sdk").Type<Color, _NormalizedColor, false>;
|
|
212
|
+
readonly gridFade: import("@motionscript/sdk").Type<number, number, false>;
|
|
213
|
+
readonly gridFadeColor: import("@motionscript/sdk").Type<Color, _NormalizedColor, false>;
|
|
214
|
+
readonly maxPixelRatio: import("@motionscript/sdk").Type<number, number, false>;
|
|
215
|
+
readonly antialias: import("@motionscript/sdk").Type<boolean, boolean, false>;
|
|
216
|
+
readonly shadows: import("@motionscript/sdk").Type<_Shadows3D, _Shadows3D, false>;
|
|
217
|
+
readonly tone: import("@motionscript/sdk").Type<_ToneMapping3D | undefined, _ToneMapping3D | undefined, false>;
|
|
218
|
+
readonly exposure: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
219
|
+
readonly post: import("@motionscript/sdk").Type<_PostEffect3D | readonly _PostEffect3D[] | undefined, _PostEffect3D | readonly _PostEffect3D[] | undefined, false>;
|
|
220
|
+
readonly cornerRadius: import("@motionscript/sdk").Attribute<_RectCornerRadius, _CornerRadiusResolved>;
|
|
221
|
+
readonly cornerStyle: import("@motionscript/sdk").Attribute<_RectCornerStyle, _CornerStyleResolved>;
|
|
222
|
+
readonly flow: import("@motionscript/sdk").Type<_FlowMode, _FlowResolved, false>;
|
|
223
|
+
readonly gap: import("@motionscript/sdk").Type<_GapSize, _GapSize, false>;
|
|
224
|
+
readonly wrap: boolean;
|
|
225
|
+
readonly crossGap: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
|
|
226
|
+
readonly columns: import("@motionscript/sdk").Type<number, number, false>;
|
|
227
|
+
readonly align: import("@motionscript/sdk").Attribute<_Alignment, _Vector2>;
|
|
228
|
+
readonly fill: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
229
|
+
readonly stroke: import("@motionscript/sdk").Attribute<_Stroke, _StrokeResolved[]>;
|
|
230
|
+
readonly shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
|
|
231
|
+
readonly overlay: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
|
|
232
|
+
readonly start: import("@motionscript/sdk").Type<number, number, false>;
|
|
233
|
+
readonly end: import("@motionscript/sdk").Type<number, number, false>;
|
|
234
|
+
}>, {
|
|
235
|
+
readonly rangeTo: readonly ["xRange", "yRange", "zRange"];
|
|
236
|
+
readonly orbitTo: readonly ["orbit", "elevation", "zoom"];
|
|
237
|
+
readonly fillTo: readonly ["fill"];
|
|
238
|
+
readonly strokeTo: readonly ["stroke"];
|
|
239
|
+
readonly shadowTo: readonly ["shadow"];
|
|
240
|
+
readonly overlayTo: readonly ["overlay"];
|
|
241
|
+
readonly progressTo: readonly ["start", "end"];
|
|
242
|
+
readonly flash: {
|
|
243
|
+
readonly portion: import("@motionscript/sdk").Type<number, number, false>;
|
|
244
|
+
};
|
|
245
|
+
}, _Node2D<_Node2DProps>>>>;
|
|
172
246
|
export type Axes3d = NodeOf<typeof Axes3d>;
|
|
173
247
|
//# sourceMappingURL=axes3d.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axes3d.d.ts","sourceRoot":"","sources":["../../src/three/axes3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAWH,KAAK,aAAa,EAClB,KAAK,KAAK,EACV,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"axes3d.d.ts","sourceRoot":"","sources":["../../src/three/axes3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAWH,KAAK,aAAa,EAClB,KAAK,KAAK,EACV,KAAK,MAAM,EAOX,KAAK,SAAS,IAAI,UAAU,EAC5B,KAAK,oBAAoB,IAAI,qBAAqB,EAClD,KAAK,mBAAmB,IAAI,oBAAoB,EAChD,KAAK,IAAI,IAAI,KAAK,EAClB,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,QAAQ,IAAI,SAAS,EAC1B,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,OAAO,IAAI,QAAQ,EACxB,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,eAAe,IAAI,gBAAgB,EACxC,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,gBAAgB,IAAI,iBAAiB,EAC1C,KAAK,eAAe,IAAI,gBAAgB,EACxC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACtC,KAAK,SAAS,IAAI,UAAU,EAC5B,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACtC,KAAK,aAAa,IAAI,cAAc,EACpC,KAAK,OAAO,IAAI,QAAQ,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAO9C,MAAM,WAAW,WAAY,SAAQ,aAAa;IAC9C,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,MAAM,CAAC,E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
},
|
|
66
66
|
allowedChildren: ["2d", "3d"],
|
|
67
67
|
load: (loader, s) => {
|
|
68
|
-
View3D.load(loader);
|
|
68
|
+
View3D.load(loader, furnish(s));
|
|
69
69
|
if (s.fontFamily !== "")
|
|
70
70
|
loader.font(s.fontFamily);
|
|
71
71
|
},
|
|
@@ -73,8 +73,12 @@ export const Axes3d = component2d({
|
|
|
73
73
|
space: (s) => axesSpace(s),
|
|
74
74
|
measure: (measurer, s, children) => Flow.measure(measurer, s, children, Paint.inset(s)),
|
|
75
75
|
layout: (box, s, children) => Flow.layout(box, s, children, Paint.inset(s)),
|
|
76
|
-
render: (ctx, s) => View3D.draw(ctx, s, (
|
|
76
|
+
render: (ctx, s) => View3D.draw(ctx, s, furnish(s)),
|
|
77
77
|
});
|
|
78
|
+
/** The axes' own drawing, added to the scene: what `render` draws and `load` declares. */
|
|
79
|
+
function furnish(s) {
|
|
80
|
+
return (scene) => scene.draw(furniture(s));
|
|
81
|
+
}
|
|
78
82
|
/** The last space worked out for each axes, kept while its ranges and lengths are unchanged. */
|
|
79
83
|
const spaces = new WeakMap();
|
|
80
84
|
/** The coordinates of a 3D graph: what its children's `x`, `y` and `z` are in. */
|