@beff/aula 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/dist/animations.d.ts +634 -0
- package/dist/animations.js +1793 -0
- package/dist/braces.d.ts +84 -0
- package/dist/braces.js +253 -0
- package/dist/card.d.ts +17 -0
- package/dist/card.js +90 -0
- package/dist/colors-palette.d.ts +2242 -0
- package/dist/colors-palette.js +2241 -0
- package/dist/colors.d.ts +120 -0
- package/dist/colors.js +403 -0
- package/dist/curves.d.ts +10 -0
- package/dist/curves.js +128 -0
- package/dist/engine.d.ts +1595 -0
- package/dist/engine.js +3364 -0
- package/dist/errors.d.ts +19 -0
- package/dist/errors.js +25 -0
- package/dist/generated/aula.conditional-suspending-3-i32-to-void.wasm +0 -0
- package/dist/generated/aula.core.wasm +0 -0
- package/dist/generated/aula.core2.wasm +0 -0
- package/dist/generated/aula.core3.wasm +0 -0
- package/dist/generated/aula.core4.wasm +0 -0
- package/dist/generated/aula.core5.wasm +0 -0
- package/dist/generated/aula.core6.wasm +0 -0
- package/dist/generated/aula.core7.wasm +0 -0
- package/dist/generated/aula.core8.wasm +0 -0
- package/dist/generated/aula.d.ts +80 -0
- package/dist/generated/aula.js +54639 -0
- package/dist/generated/interfaces/aula-engine-engine.d.ts +983 -0
- package/dist/generated/interfaces/aula-engine-host.d.ts +10 -0
- package/dist/generated/interfaces/aula-engine-tts.d.ts +43 -0
- package/dist/generated/interfaces/aula-engine-types.d.ts +60 -0
- package/dist/geometry.d.ts +551 -0
- package/dist/geometry.js +1821 -0
- package/dist/graph.d.ts +117 -0
- package/dist/graph.js +526 -0
- package/dist/graphing.d.ts +597 -0
- package/dist/graphing.js +1504 -0
- package/dist/host.d.ts +19 -0
- package/dist/host.js +85 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +11 -0
- package/dist/licenses/aula-g2p-NOTICE.txt +13 -0
- package/dist/licenses/espeak-ng-COPYING.txt +674 -0
- package/dist/licenses/fonts-OFL-JetBrainsMono.txt +93 -0
- package/dist/licenses/fonts-OFL-NunitoSans.txt +93 -0
- package/dist/load.d.ts +16 -0
- package/dist/load.js +69 -0
- package/dist/logo.d.ts +30 -0
- package/dist/logo.js +186 -0
- package/dist/manim.d.ts +22 -0
- package/dist/manim.js +19 -0
- package/dist/mobjects.d.ts +127 -0
- package/dist/mobjects.js +316 -0
- package/dist/pointcloud.d.ts +144 -0
- package/dist/pointcloud.js +400 -0
- package/dist/rates.d.ts +19 -0
- package/dist/rates.js +54 -0
- package/dist/run.d.ts +82 -0
- package/dist/run.js +245 -0
- package/dist/tables.d.ts +179 -0
- package/dist/tables.js +403 -0
- package/dist/tex.d.ts +8 -0
- package/dist/tex.js +257 -0
- package/dist/text-layouts.d.ts +64 -0
- package/dist/text-layouts.js +225 -0
- package/dist/text.d.ts +35 -0
- package/dist/text.js +52 -0
- package/dist/theme.d.ts +25 -0
- package/dist/theme.js +12 -0
- package/dist/user-code.d.ts +5 -0
- package/dist/user-code.js +20 -0
- package/dist/utils.d.ts +152 -0
- package/dist/utils.js +517 -0
- package/dist/vector-field.d.ts +132 -0
- package/dist/vector-field.js +361 -0
- package/package.json +45 -3
|
@@ -0,0 +1,983 @@
|
|
|
1
|
+
/** @module Interface aula:engine/engine **/
|
|
2
|
+
/**
|
|
3
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
4
|
+
*/
|
|
5
|
+
export function tex(name: string, parts: Array<Array<Glyph>>, color: Color): Mobject;
|
|
6
|
+
/**
|
|
7
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
8
|
+
*/
|
|
9
|
+
export function text(content: string, settings: TextSettings): Mobject;
|
|
10
|
+
/**
|
|
11
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
12
|
+
*/
|
|
13
|
+
export function code(code: string, settings: CodeSettings): Mobject;
|
|
14
|
+
export function vGroup(children: Array<Mobject>): Mobject;
|
|
15
|
+
/**
|
|
16
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
17
|
+
*/
|
|
18
|
+
export function polygon(points: Array<Point>): Mobject;
|
|
19
|
+
/**
|
|
20
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
21
|
+
*/
|
|
22
|
+
export function polyline(points: Array<Point>): Mobject;
|
|
23
|
+
/**
|
|
24
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
25
|
+
*/
|
|
26
|
+
export function rectangle(width: number, height: number): Mobject;
|
|
27
|
+
/**
|
|
28
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
29
|
+
*/
|
|
30
|
+
export function roundedRectangle(width: number, height: number, radius: number): Mobject;
|
|
31
|
+
/**
|
|
32
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
33
|
+
*/
|
|
34
|
+
export function square(side: number): Mobject;
|
|
35
|
+
/**
|
|
36
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
37
|
+
*/
|
|
38
|
+
export function arc(radius: number, startAngle: number, angle: number, numComponents: number): Mobject;
|
|
39
|
+
/**
|
|
40
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
41
|
+
*/
|
|
42
|
+
export function circle(radius: number): Mobject;
|
|
43
|
+
/**
|
|
44
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
45
|
+
*/
|
|
46
|
+
export function dot(p: Point, radius: number, color: Color): Mobject;
|
|
47
|
+
/**
|
|
48
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
49
|
+
*/
|
|
50
|
+
export function ellipse(width: number, height: number): Mobject;
|
|
51
|
+
/**
|
|
52
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
53
|
+
*/
|
|
54
|
+
export function annularSector(inner: number, outer: number, angle: number, startAngle: number): Mobject;
|
|
55
|
+
/**
|
|
56
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
57
|
+
*/
|
|
58
|
+
export function regularPolygon(n: number): Mobject;
|
|
59
|
+
export function triangle(): Mobject;
|
|
60
|
+
/**
|
|
61
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
62
|
+
*/
|
|
63
|
+
export function star(n: number, outerRadius: number): Mobject;
|
|
64
|
+
/**
|
|
65
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
66
|
+
*/
|
|
67
|
+
export function line(start: Point, end: Point, buff: number, pathArc: number): Mobject;
|
|
68
|
+
/**
|
|
69
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
70
|
+
*/
|
|
71
|
+
export function cubicBezier(start: Point, handle1: Point, handle2: Point, end: Point): Mobject;
|
|
72
|
+
/**
|
|
73
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
74
|
+
*/
|
|
75
|
+
export function dashed(m: Mobject, numDashes: number, dashedRatio: number, dashOffset: number, equalLengths: boolean): Mobject;
|
|
76
|
+
/**
|
|
77
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
78
|
+
*/
|
|
79
|
+
export function dashedLine(start: Point, end: Point, numDashes: number): Mobject;
|
|
80
|
+
/**
|
|
81
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
82
|
+
*/
|
|
83
|
+
export function arrow(start: Point, end: Point, options: ArrowOptions): Mobject;
|
|
84
|
+
/**
|
|
85
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
86
|
+
*/
|
|
87
|
+
export function doubleArrow(start: Point, end: Point, options: ArrowOptions): Mobject;
|
|
88
|
+
/**
|
|
89
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
90
|
+
*/
|
|
91
|
+
export function vector(direction: Point, options: ArrowOptions): Mobject;
|
|
92
|
+
/**
|
|
93
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
94
|
+
*/
|
|
95
|
+
export function backgroundRectangle(m: Mobject, color: Color, fillOpacity: number, buff: number): Mobject;
|
|
96
|
+
/**
|
|
97
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
98
|
+
*/
|
|
99
|
+
export function surroundingRectangle(m: Mobject, color: Color, buff: number): Mobject;
|
|
100
|
+
/**
|
|
101
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
102
|
+
*/
|
|
103
|
+
export function decimalNumber(value: number, settings: NumberSettings): Mobject;
|
|
104
|
+
/**
|
|
105
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
106
|
+
*/
|
|
107
|
+
export function numberLine(settings: NumberLineSettings): Mobject;
|
|
108
|
+
/**
|
|
109
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
110
|
+
*/
|
|
111
|
+
export function alwaysRedraw(make: number): Mobject;
|
|
112
|
+
export function redrawn(m: Mobject): void;
|
|
113
|
+
export function animateTo(m: Mobject, target: Mobject): Animation;
|
|
114
|
+
export function transform(m: Mobject, target: Mobject): Animation;
|
|
115
|
+
export function transformFromCopy(source: Mobject, target: Mobject): Animation;
|
|
116
|
+
/**
|
|
117
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
118
|
+
*/
|
|
119
|
+
export function moveToTarget(m: Mobject): Animation;
|
|
120
|
+
/**
|
|
121
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
122
|
+
*/
|
|
123
|
+
export function restore(m: Mobject): Animation;
|
|
124
|
+
export function replacementTransform(m: Mobject, target: Mobject): Animation;
|
|
125
|
+
export function fadeIn(m: Mobject): Animation;
|
|
126
|
+
export function fadeOut(m: Mobject): Animation;
|
|
127
|
+
/**
|
|
128
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
129
|
+
*/
|
|
130
|
+
export function fadeOutTo(m: Mobject, p: Point): Animation;
|
|
131
|
+
/**
|
|
132
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
133
|
+
*/
|
|
134
|
+
export function fadeTransform(a: Mobject, b: Mobject, stretch: boolean, dimToMatch: number): Animation;
|
|
135
|
+
export function create(m: Mobject): Animation;
|
|
136
|
+
export function uncreate(m: Mobject): Animation;
|
|
137
|
+
export function write(m: Mobject, reverse: boolean): Animation;
|
|
138
|
+
export function unwrite(m: Mobject, reverse: boolean): Animation;
|
|
139
|
+
/**
|
|
140
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
141
|
+
*/
|
|
142
|
+
export function drawBorderThenFill(m: Mobject, strokeWidth: number | undefined, strokeColor: Color | undefined): Animation;
|
|
143
|
+
/**
|
|
144
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
145
|
+
*/
|
|
146
|
+
export function growFromPoint(m: Mobject, p: Point, pointColor: Color | undefined): Animation;
|
|
147
|
+
/**
|
|
148
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
149
|
+
*/
|
|
150
|
+
export function growFromEdge(m: Mobject, edge: Point, pointColor: Color | undefined): Animation;
|
|
151
|
+
/**
|
|
152
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
153
|
+
*/
|
|
154
|
+
export function growFromCenter(m: Mobject, pointColor: Color | undefined): Animation;
|
|
155
|
+
/**
|
|
156
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
157
|
+
*/
|
|
158
|
+
export function growArrow(arrow: Mobject, pointColor: Color | undefined): Animation;
|
|
159
|
+
/**
|
|
160
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
161
|
+
*/
|
|
162
|
+
export function indicate(m: Mobject, scaleFactor: number, color: Color): Animation;
|
|
163
|
+
/**
|
|
164
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
165
|
+
*/
|
|
166
|
+
export function circumscribe(m: Mobject, options: CircumscribeSettings): Animation;
|
|
167
|
+
/**
|
|
168
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
169
|
+
*/
|
|
170
|
+
export function flash(p: Point, options: FlashSettings): Animation;
|
|
171
|
+
/**
|
|
172
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
173
|
+
*/
|
|
174
|
+
export function rotate(m: Mobject, angle: number, about: Point): Animation;
|
|
175
|
+
/**
|
|
176
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
177
|
+
*/
|
|
178
|
+
export function transformMatching(source: Mobject, target: Mobject, sourceKeys: Array<string>, targetKeys: Array<string>, mismatches: Mismatches): Animation;
|
|
179
|
+
export function transformMatchingShapes(source: Mobject, target: Mobject, keyMap: Array<[string, string]>, mismatches: Mismatches): Animation;
|
|
180
|
+
export function rateAt(name: RateName, t: number): number;
|
|
181
|
+
/**
|
|
182
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
183
|
+
*/
|
|
184
|
+
export function driven(m: Mobject | undefined, begin: number, step: number, finish: number, runTime: number): Animation;
|
|
185
|
+
/**
|
|
186
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
187
|
+
*/
|
|
188
|
+
export function animationGroup(anims: Array<Animation>): Animation;
|
|
189
|
+
/**
|
|
190
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
191
|
+
*/
|
|
192
|
+
export function laggedStart(anims: Array<Animation>, lagRatio: number): Animation;
|
|
193
|
+
/**
|
|
194
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
195
|
+
*/
|
|
196
|
+
export function succession(anims: Array<Animation>): Animation;
|
|
197
|
+
export function wait(): Animation;
|
|
198
|
+
/**
|
|
199
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
200
|
+
*/
|
|
201
|
+
export function settle(anims: Array<Animation>): void;
|
|
202
|
+
export function constants(): EngineConstants;
|
|
203
|
+
export function scriptMarkdown(title: string, texts: Array<ChapterText>): string;
|
|
204
|
+
export function narrationScript(title: string, texts: Array<ChapterText>): Array<Array<ScriptCue>>;
|
|
205
|
+
/**
|
|
206
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
207
|
+
*/
|
|
208
|
+
export function chapterNarration(cues: Array<ScriptCue>, spoken: Array<SpokenCue>, sampleRate: number): Narration;
|
|
209
|
+
export function check(text: ChapterText): Array<Diagnostic>;
|
|
210
|
+
export function timeline(narration: Narration, text: ChapterText): Array<string>;
|
|
211
|
+
export function moveFrames(narration: Narration, text: ChapterText): Array<ParagraphFrames>;
|
|
212
|
+
export function estimateNarration(cues: Array<ScriptCue>): Narration;
|
|
213
|
+
export function paragraphAt(text: ChapterText, line: number): number | undefined;
|
|
214
|
+
export function renderDiagnostic(d: Diagnostic): string;
|
|
215
|
+
export function fps(): number;
|
|
216
|
+
/**
|
|
217
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
218
|
+
*/
|
|
219
|
+
export function phonemize(text: string): string;
|
|
220
|
+
export type Point = import('./aula-engine-types.js').Point;
|
|
221
|
+
export type Color = import('./aula-engine-types.js').Color;
|
|
222
|
+
export type Diagnostic = import('./aula-engine-types.js').Diagnostic;
|
|
223
|
+
export type Location = import('./aula-engine-types.js').Location;
|
|
224
|
+
export type Note = import('./aula-engine-types.js').Note;
|
|
225
|
+
export type ChapterText = import('./aula-engine-types.js').ChapterText;
|
|
226
|
+
export interface Shown {
|
|
227
|
+
id: number,
|
|
228
|
+
place: Location,
|
|
229
|
+
text: string,
|
|
230
|
+
low: Point,
|
|
231
|
+
high: Point,
|
|
232
|
+
opacity: number,
|
|
233
|
+
}
|
|
234
|
+
export interface Instant {
|
|
235
|
+
place: Location,
|
|
236
|
+
texts: Array<Shown>,
|
|
237
|
+
dashed: Array<Shown>,
|
|
238
|
+
}
|
|
239
|
+
export interface Screen {
|
|
240
|
+
instants: Array<Instant>,
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* # Variants
|
|
244
|
+
*
|
|
245
|
+
* ## `"linear"`
|
|
246
|
+
*
|
|
247
|
+
* ## `"smooth"`
|
|
248
|
+
*
|
|
249
|
+
* ## `"rush-into"`
|
|
250
|
+
*
|
|
251
|
+
* ## `"rush-from"`
|
|
252
|
+
*
|
|
253
|
+
* ## `"slow-into"`
|
|
254
|
+
*
|
|
255
|
+
* ## `"double-smooth"`
|
|
256
|
+
*
|
|
257
|
+
* ## `"there-and-back"`
|
|
258
|
+
*
|
|
259
|
+
* ## `"there-and-back-with-pause"`
|
|
260
|
+
*
|
|
261
|
+
* ## `"ease-in-sine"`
|
|
262
|
+
*
|
|
263
|
+
* ## `"ease-out-sine"`
|
|
264
|
+
*
|
|
265
|
+
* ## `"ease-in-out-sine"`
|
|
266
|
+
*
|
|
267
|
+
* ## `"ease-in-quad"`
|
|
268
|
+
*
|
|
269
|
+
* ## `"ease-out-quad"`
|
|
270
|
+
*
|
|
271
|
+
* ## `"ease-in-out-quad"`
|
|
272
|
+
*
|
|
273
|
+
* ## `"ease-in-cubic"`
|
|
274
|
+
*
|
|
275
|
+
* ## `"ease-out-cubic"`
|
|
276
|
+
*
|
|
277
|
+
* ## `"ease-in-out-cubic"`
|
|
278
|
+
*
|
|
279
|
+
* ## `"ease-in-quart"`
|
|
280
|
+
*
|
|
281
|
+
* ## `"ease-out-quart"`
|
|
282
|
+
*
|
|
283
|
+
* ## `"ease-in-out-quart"`
|
|
284
|
+
*
|
|
285
|
+
* ## `"ease-in-quint"`
|
|
286
|
+
*
|
|
287
|
+
* ## `"ease-out-quint"`
|
|
288
|
+
*
|
|
289
|
+
* ## `"ease-in-out-quint"`
|
|
290
|
+
*
|
|
291
|
+
* ## `"ease-in-expo"`
|
|
292
|
+
*
|
|
293
|
+
* ## `"ease-out-expo"`
|
|
294
|
+
*
|
|
295
|
+
* ## `"ease-in-out-expo"`
|
|
296
|
+
*
|
|
297
|
+
* ## `"ease-in-circ"`
|
|
298
|
+
*
|
|
299
|
+
* ## `"ease-out-circ"`
|
|
300
|
+
*
|
|
301
|
+
* ## `"ease-in-out-circ"`
|
|
302
|
+
*
|
|
303
|
+
* ## `"ease-in-back"`
|
|
304
|
+
*
|
|
305
|
+
* ## `"ease-out-back"`
|
|
306
|
+
*
|
|
307
|
+
* ## `"ease-in-out-back"`
|
|
308
|
+
*
|
|
309
|
+
* ## `"ease-in-elastic"`
|
|
310
|
+
*
|
|
311
|
+
* ## `"ease-out-elastic"`
|
|
312
|
+
*
|
|
313
|
+
* ## `"ease-in-out-elastic"`
|
|
314
|
+
*
|
|
315
|
+
* ## `"ease-in-bounce"`
|
|
316
|
+
*
|
|
317
|
+
* ## `"ease-out-bounce"`
|
|
318
|
+
*
|
|
319
|
+
* ## `"ease-in-out-bounce"`
|
|
320
|
+
*/
|
|
321
|
+
export type RateName = "linear" | "smooth" | "rush-into" | "rush-from" | "slow-into" | "double-smooth" | "there-and-back" | "there-and-back-with-pause" | "ease-in-sine" | "ease-out-sine" | "ease-in-out-sine" | "ease-in-quad" | "ease-out-quad" | "ease-in-out-quad" | "ease-in-cubic" | "ease-out-cubic" | "ease-in-out-cubic" | "ease-in-quart" | "ease-out-quart" | "ease-in-out-quart" | "ease-in-quint" | "ease-out-quint" | "ease-in-out-quint" | "ease-in-expo" | "ease-out-expo" | "ease-in-out-expo" | "ease-in-circ" | "ease-out-circ" | "ease-in-out-circ" | "ease-in-back" | "ease-out-back" | "ease-in-out-back" | "ease-in-elastic" | "ease-out-elastic" | "ease-in-out-elastic" | "ease-in-bounce" | "ease-out-bounce" | "ease-in-out-bounce";
|
|
322
|
+
export type Rate = RateNamed | RateCustom;
|
|
323
|
+
export interface RateNamed {
|
|
324
|
+
tag: 'named',
|
|
325
|
+
val: RateName,
|
|
326
|
+
}
|
|
327
|
+
export interface RateCustom {
|
|
328
|
+
tag: 'custom',
|
|
329
|
+
val: number,
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* # Variants
|
|
333
|
+
*
|
|
334
|
+
* ## `"auto"`
|
|
335
|
+
*
|
|
336
|
+
* ## `"round"`
|
|
337
|
+
*
|
|
338
|
+
* ## `"butt"`
|
|
339
|
+
*
|
|
340
|
+
* ## `"square"`
|
|
341
|
+
*/
|
|
342
|
+
export type CapStyle = "auto" | "round" | "butt" | "square";
|
|
343
|
+
/**
|
|
344
|
+
* # Variants
|
|
345
|
+
*
|
|
346
|
+
* ## `"auto"`
|
|
347
|
+
*
|
|
348
|
+
* ## `"round"`
|
|
349
|
+
*
|
|
350
|
+
* ## `"bevel"`
|
|
351
|
+
*
|
|
352
|
+
* ## `"miter"`
|
|
353
|
+
*/
|
|
354
|
+
export type JointType = "auto" | "round" | "bevel" | "miter";
|
|
355
|
+
export interface ArrowOptions {
|
|
356
|
+
color: Color,
|
|
357
|
+
strokeWidth: number,
|
|
358
|
+
buff: number,
|
|
359
|
+
tipLength: number,
|
|
360
|
+
maxTipLengthToLengthRatio: number,
|
|
361
|
+
maxStrokeWidthToLengthRatio: number,
|
|
362
|
+
}
|
|
363
|
+
export interface Glyph {
|
|
364
|
+
d: string,
|
|
365
|
+
transform: [number, number, number, number, number, number],
|
|
366
|
+
}
|
|
367
|
+
export interface TextSettings {
|
|
368
|
+
size: number,
|
|
369
|
+
color: Color,
|
|
370
|
+
bold: boolean,
|
|
371
|
+
italic: boolean,
|
|
372
|
+
lineSpacing?: number,
|
|
373
|
+
t2c: Array<[string, Color]>,
|
|
374
|
+
t2w: Array<[string, boolean]>,
|
|
375
|
+
t2s: Array<[string, boolean]>,
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* # Variants
|
|
379
|
+
*
|
|
380
|
+
* ## `"dark"`
|
|
381
|
+
*
|
|
382
|
+
* ## `"light"`
|
|
383
|
+
*/
|
|
384
|
+
export type CodeStyle = "dark" | "light";
|
|
385
|
+
/**
|
|
386
|
+
* # Variants
|
|
387
|
+
*
|
|
388
|
+
* ## `"rectangle"`
|
|
389
|
+
*
|
|
390
|
+
* ## `"window"`
|
|
391
|
+
*/
|
|
392
|
+
export type CodeBackground = "rectangle" | "window";
|
|
393
|
+
export interface CodeSettings {
|
|
394
|
+
language?: string,
|
|
395
|
+
formatterStyle: CodeStyle,
|
|
396
|
+
tabWidth: number,
|
|
397
|
+
addLineNumbers: boolean,
|
|
398
|
+
lineNumbersFrom: bigint,
|
|
399
|
+
background: CodeBackground,
|
|
400
|
+
buff: number,
|
|
401
|
+
fillColor?: Color,
|
|
402
|
+
fillOpacity: number,
|
|
403
|
+
strokeColor?: Color,
|
|
404
|
+
strokeWidth: number,
|
|
405
|
+
cornerRadius: number,
|
|
406
|
+
fontSize: number,
|
|
407
|
+
lineSpacing: number,
|
|
408
|
+
}
|
|
409
|
+
export interface NumberSettings {
|
|
410
|
+
numDecimalPlaces: number,
|
|
411
|
+
includeSign: boolean,
|
|
412
|
+
groupWithCommas: boolean,
|
|
413
|
+
unit?: string,
|
|
414
|
+
edgeToFix: Point,
|
|
415
|
+
fontSize: number,
|
|
416
|
+
color: Color,
|
|
417
|
+
}
|
|
418
|
+
export interface NumberLineSettings {
|
|
419
|
+
xRange: [number, number, number],
|
|
420
|
+
length?: number,
|
|
421
|
+
unitSize: number,
|
|
422
|
+
includeTicks: boolean,
|
|
423
|
+
tickSize: number,
|
|
424
|
+
numbersWithElongatedTicks: Float64Array,
|
|
425
|
+
longerTickMultiple: number,
|
|
426
|
+
excludeOriginTick: boolean,
|
|
427
|
+
rotation: number,
|
|
428
|
+
strokeWidth: number,
|
|
429
|
+
color: Color,
|
|
430
|
+
includeTip: boolean,
|
|
431
|
+
tipWidth: number,
|
|
432
|
+
tipHeight: number,
|
|
433
|
+
includeNumbers: boolean,
|
|
434
|
+
fontSize: number,
|
|
435
|
+
labelDirection: Point,
|
|
436
|
+
lineToNumberBuff: number,
|
|
437
|
+
numDecimalPlaces: number,
|
|
438
|
+
numbersToExclude: Float64Array,
|
|
439
|
+
numbersToInclude?: Float64Array,
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* # Variants
|
|
443
|
+
*
|
|
444
|
+
* ## `"rectangle"`
|
|
445
|
+
*
|
|
446
|
+
* ## `"circle"`
|
|
447
|
+
*/
|
|
448
|
+
export type CircumscribeFrame = "rectangle" | "circle";
|
|
449
|
+
export interface CircumscribeSettings {
|
|
450
|
+
shape: CircumscribeFrame,
|
|
451
|
+
fadeIn: boolean,
|
|
452
|
+
fadeOut: boolean,
|
|
453
|
+
timeWidth: number,
|
|
454
|
+
buff: number,
|
|
455
|
+
color: Color,
|
|
456
|
+
strokeWidth: number,
|
|
457
|
+
}
|
|
458
|
+
export interface FlashSettings {
|
|
459
|
+
lineLength: number,
|
|
460
|
+
numLines: number,
|
|
461
|
+
flashRadius: number,
|
|
462
|
+
lineStrokeWidth: number,
|
|
463
|
+
color: Color,
|
|
464
|
+
timeWidth: number,
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* # Variants
|
|
468
|
+
*
|
|
469
|
+
* ## `"fade"`
|
|
470
|
+
*
|
|
471
|
+
* ## `"transform"`
|
|
472
|
+
*
|
|
473
|
+
* ## `"fade-transform"`
|
|
474
|
+
*/
|
|
475
|
+
export type Mismatches = "fade" | "transform" | "fade-transform";
|
|
476
|
+
export interface EngineConstants {
|
|
477
|
+
origin: Point,
|
|
478
|
+
up: Point,
|
|
479
|
+
down: Point,
|
|
480
|
+
left: Point,
|
|
481
|
+
right: Point,
|
|
482
|
+
ul: Point,
|
|
483
|
+
ur: Point,
|
|
484
|
+
dl: Point,
|
|
485
|
+
dr: Point,
|
|
486
|
+
frameWidth: number,
|
|
487
|
+
frameHeight: number,
|
|
488
|
+
pixelWidth: number,
|
|
489
|
+
white: Color,
|
|
490
|
+
black: Color,
|
|
491
|
+
yellow: Color,
|
|
492
|
+
}
|
|
493
|
+
export interface NarrationWord {
|
|
494
|
+
text: string,
|
|
495
|
+
char: number,
|
|
496
|
+
startFrame: number,
|
|
497
|
+
}
|
|
498
|
+
export interface NarrationCue {
|
|
499
|
+
text: string,
|
|
500
|
+
startFrame: number,
|
|
501
|
+
speechStartFrame: number,
|
|
502
|
+
endFrame: number,
|
|
503
|
+
words: Array<NarrationWord>,
|
|
504
|
+
}
|
|
505
|
+
export interface Narration {
|
|
506
|
+
sampleRate: number,
|
|
507
|
+
endFrame: number,
|
|
508
|
+
cues: Array<NarrationCue>,
|
|
509
|
+
}
|
|
510
|
+
export interface NarrationWait {
|
|
511
|
+
sample: number,
|
|
512
|
+
samples: number,
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* # Variants
|
|
516
|
+
*
|
|
517
|
+
* ## `"title"`
|
|
518
|
+
*
|
|
519
|
+
* ## `"heading"`
|
|
520
|
+
*
|
|
521
|
+
* ## `"paragraph"`
|
|
522
|
+
*/
|
|
523
|
+
export type CueKind = "title" | "heading" | "paragraph";
|
|
524
|
+
export interface ScriptCue {
|
|
525
|
+
text: string,
|
|
526
|
+
kind: CueKind,
|
|
527
|
+
place?: string,
|
|
528
|
+
leadIn: number,
|
|
529
|
+
pause: number,
|
|
530
|
+
speed: number,
|
|
531
|
+
}
|
|
532
|
+
export interface SpokenWord {
|
|
533
|
+
text: string,
|
|
534
|
+
char: number,
|
|
535
|
+
start: number,
|
|
536
|
+
}
|
|
537
|
+
export interface SpokenCue {
|
|
538
|
+
samples: number,
|
|
539
|
+
words: Array<SpokenWord>,
|
|
540
|
+
}
|
|
541
|
+
export interface ParagraphFrames {
|
|
542
|
+
start: number,
|
|
543
|
+
moves: Uint32Array,
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
export class Animation implements Disposable {
|
|
547
|
+
/**
|
|
548
|
+
* This type does not have a public constructor.
|
|
549
|
+
*/
|
|
550
|
+
private constructor();
|
|
551
|
+
used(): boolean;
|
|
552
|
+
/**
|
|
553
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
554
|
+
*/
|
|
555
|
+
setRateFunc(rate: Rate): void;
|
|
556
|
+
/**
|
|
557
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
558
|
+
*/
|
|
559
|
+
setLagRatio(lagRatio: number): void;
|
|
560
|
+
/**
|
|
561
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
562
|
+
*/
|
|
563
|
+
setShift(v: Point): void;
|
|
564
|
+
/**
|
|
565
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
566
|
+
*/
|
|
567
|
+
setScale(k: number): void;
|
|
568
|
+
/**
|
|
569
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
570
|
+
*/
|
|
571
|
+
setRemover(): void;
|
|
572
|
+
/**
|
|
573
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
574
|
+
*/
|
|
575
|
+
setPathArc(angle: number): void;
|
|
576
|
+
/**
|
|
577
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
578
|
+
*/
|
|
579
|
+
setPathFunc(f: number): void;
|
|
580
|
+
/**
|
|
581
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
582
|
+
*/
|
|
583
|
+
setSuspendUpdating(suspend: boolean): void;
|
|
584
|
+
/**
|
|
585
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
586
|
+
*/
|
|
587
|
+
setRunTime(seconds: number): void;
|
|
588
|
+
/**
|
|
589
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
590
|
+
*/
|
|
591
|
+
begin(): void;
|
|
592
|
+
/**
|
|
593
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
594
|
+
*/
|
|
595
|
+
interpolate(alpha: number): void;
|
|
596
|
+
/**
|
|
597
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
598
|
+
*/
|
|
599
|
+
finish(): void;
|
|
600
|
+
/**
|
|
601
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
602
|
+
*/
|
|
603
|
+
runTime(): number;
|
|
604
|
+
[Symbol.dispose](): void;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export class Chapter implements Disposable {
|
|
608
|
+
/**
|
|
609
|
+
* This type does not have a public constructor.
|
|
610
|
+
*/
|
|
611
|
+
private constructor();
|
|
612
|
+
/**
|
|
613
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
614
|
+
*/
|
|
615
|
+
static textPass(chapter: number, count: number): Chapter;
|
|
616
|
+
/**
|
|
617
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
618
|
+
*/
|
|
619
|
+
static orderPass(chapter: number, count: number): Chapter;
|
|
620
|
+
/**
|
|
621
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
622
|
+
*/
|
|
623
|
+
static render(narration: Narration, background: Color, chapter: number, count: number, name: string, lint: boolean, text: ChapterText | undefined): Chapter;
|
|
624
|
+
/**
|
|
625
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
626
|
+
*/
|
|
627
|
+
static scene(): Chapter;
|
|
628
|
+
narratedParagraphs(): number;
|
|
629
|
+
/**
|
|
630
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
631
|
+
*/
|
|
632
|
+
header(place: Location, heading: string, metaphor: string): void;
|
|
633
|
+
/**
|
|
634
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
635
|
+
*/
|
|
636
|
+
paragraph(place: Location, notes: Array<Note>): void;
|
|
637
|
+
/**
|
|
638
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
639
|
+
*/
|
|
640
|
+
say(place: Location, text: string): void;
|
|
641
|
+
/**
|
|
642
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
643
|
+
*/
|
|
644
|
+
show(place: Location, note: string, timing: string | undefined): void;
|
|
645
|
+
/**
|
|
646
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
647
|
+
*/
|
|
648
|
+
open(place: Location, note: string, timing: string | undefined): void;
|
|
649
|
+
/**
|
|
650
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
651
|
+
*/
|
|
652
|
+
play(place: Location, anims: Array<Animation>, runTime: number | undefined): void;
|
|
653
|
+
/**
|
|
654
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
655
|
+
*/
|
|
656
|
+
add(m: Mobject): void;
|
|
657
|
+
/**
|
|
658
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
659
|
+
*/
|
|
660
|
+
remove(m: Mobject): void;
|
|
661
|
+
/**
|
|
662
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
663
|
+
*/
|
|
664
|
+
bringToBack(mobs: Array<Mobject>): void;
|
|
665
|
+
/**
|
|
666
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
667
|
+
*/
|
|
668
|
+
wait(place: Location, seconds: number | undefined): void;
|
|
669
|
+
/**
|
|
670
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
671
|
+
*/
|
|
672
|
+
fadeAll(place: Location, keep: Array<Mobject>): void;
|
|
673
|
+
/**
|
|
674
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
675
|
+
*/
|
|
676
|
+
canvas(): Mobject;
|
|
677
|
+
/**
|
|
678
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
679
|
+
*/
|
|
680
|
+
mobjects(): Array<Mobject>;
|
|
681
|
+
/**
|
|
682
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
683
|
+
*/
|
|
684
|
+
clear(): void;
|
|
685
|
+
/**
|
|
686
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
687
|
+
*/
|
|
688
|
+
addForeground(mobs: Array<Mobject>): void;
|
|
689
|
+
/**
|
|
690
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
691
|
+
*/
|
|
692
|
+
removeForeground(mobs: Array<Mobject>): void;
|
|
693
|
+
/**
|
|
694
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
695
|
+
*/
|
|
696
|
+
replace(old: Mobject, new_: Mobject): void;
|
|
697
|
+
/**
|
|
698
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
699
|
+
*/
|
|
700
|
+
addUpdater(f: number): void;
|
|
701
|
+
/**
|
|
702
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
703
|
+
*/
|
|
704
|
+
removeUpdater(f: number): void;
|
|
705
|
+
/**
|
|
706
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
707
|
+
*/
|
|
708
|
+
time(): number;
|
|
709
|
+
/**
|
|
710
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
711
|
+
*/
|
|
712
|
+
headingCue(): [number, number];
|
|
713
|
+
/**
|
|
714
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
715
|
+
*/
|
|
716
|
+
chrome(mobs: Array<Mobject>): void;
|
|
717
|
+
/**
|
|
718
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
719
|
+
*/
|
|
720
|
+
finish(): void;
|
|
721
|
+
text(): ChapterText;
|
|
722
|
+
problems(): Array<Diagnostic>;
|
|
723
|
+
report(): Array<Diagnostic>;
|
|
724
|
+
screens(): Array<Screen>;
|
|
725
|
+
closed(): Uint32Array;
|
|
726
|
+
waits(): Array<NarrationWait>;
|
|
727
|
+
narration(): Narration;
|
|
728
|
+
lottie(): string;
|
|
729
|
+
trace(): string;
|
|
730
|
+
frames(): number;
|
|
731
|
+
chapterSeconds(): number;
|
|
732
|
+
position(): [number, number];
|
|
733
|
+
[Symbol.dispose](): void;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
export class Mobject implements Disposable {
|
|
737
|
+
/**
|
|
738
|
+
* This type does not have a public constructor.
|
|
739
|
+
*/
|
|
740
|
+
private constructor();
|
|
741
|
+
children(): Array<Mobject>;
|
|
742
|
+
/**
|
|
743
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
744
|
+
*/
|
|
745
|
+
add(m: Mobject): void;
|
|
746
|
+
/**
|
|
747
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
748
|
+
*/
|
|
749
|
+
remove(m: Mobject): void;
|
|
750
|
+
family(): Array<Mobject>;
|
|
751
|
+
contains(m: Mobject): boolean;
|
|
752
|
+
hasPoints(): boolean;
|
|
753
|
+
id(): number;
|
|
754
|
+
copy(): Mobject;
|
|
755
|
+
bounds(): [Point, Point] | undefined;
|
|
756
|
+
/**
|
|
757
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
758
|
+
*/
|
|
759
|
+
critical(direction: Point): Point;
|
|
760
|
+
center(): Point;
|
|
761
|
+
leftPoint(): Point;
|
|
762
|
+
rightPoint(): Point;
|
|
763
|
+
topPoint(): Point;
|
|
764
|
+
bottomPoint(): Point;
|
|
765
|
+
x(): number;
|
|
766
|
+
y(): number;
|
|
767
|
+
width(): number;
|
|
768
|
+
height(): number;
|
|
769
|
+
left(): number;
|
|
770
|
+
right(): number;
|
|
771
|
+
top(): number;
|
|
772
|
+
bottom(): number;
|
|
773
|
+
/**
|
|
774
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
775
|
+
*/
|
|
776
|
+
start(): Point;
|
|
777
|
+
/**
|
|
778
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
779
|
+
*/
|
|
780
|
+
end(): Point;
|
|
781
|
+
isClosed(): boolean;
|
|
782
|
+
bezierTuples(): Array<[Point, Point, Point, Point]>;
|
|
783
|
+
/**
|
|
784
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
785
|
+
*/
|
|
786
|
+
pointFromProportion(alpha: number): Point;
|
|
787
|
+
/**
|
|
788
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
789
|
+
*/
|
|
790
|
+
applyPoints(f: number): void;
|
|
791
|
+
/**
|
|
792
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
793
|
+
*/
|
|
794
|
+
shift(v: Point): void;
|
|
795
|
+
/**
|
|
796
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
797
|
+
*/
|
|
798
|
+
scale(k: number): void;
|
|
799
|
+
/**
|
|
800
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
801
|
+
*/
|
|
802
|
+
scaleAbout(k: number, about: Point): void;
|
|
803
|
+
/**
|
|
804
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
805
|
+
*/
|
|
806
|
+
scaleAboutEdge(k: number, edge: Point): void;
|
|
807
|
+
/**
|
|
808
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
809
|
+
*/
|
|
810
|
+
stretch(k: number, dim: number, edge: Point): void;
|
|
811
|
+
/**
|
|
812
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
813
|
+
*/
|
|
814
|
+
stretchToFitHeight(height: number, edge: Point): void;
|
|
815
|
+
/**
|
|
816
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
817
|
+
*/
|
|
818
|
+
stretchToFitWidth(width: number, edge: Point): void;
|
|
819
|
+
/**
|
|
820
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
821
|
+
*/
|
|
822
|
+
scaleToFitWidth(width: number): void;
|
|
823
|
+
/**
|
|
824
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
825
|
+
*/
|
|
826
|
+
scaleToFitHeight(height: number): void;
|
|
827
|
+
/**
|
|
828
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
829
|
+
*/
|
|
830
|
+
fitWidth(width: number): void;
|
|
831
|
+
/**
|
|
832
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
833
|
+
*/
|
|
834
|
+
rotate(angle: number): void;
|
|
835
|
+
/**
|
|
836
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
837
|
+
*/
|
|
838
|
+
rotateAbout(angle: number, about: Point): void;
|
|
839
|
+
/**
|
|
840
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
841
|
+
*/
|
|
842
|
+
moveTo(p: Point): void;
|
|
843
|
+
/**
|
|
844
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
845
|
+
*/
|
|
846
|
+
toCorner(direction: Point, buff: number): void;
|
|
847
|
+
/**
|
|
848
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
849
|
+
*/
|
|
850
|
+
toEdge(direction: Point, buff: number): void;
|
|
851
|
+
/**
|
|
852
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
853
|
+
*/
|
|
854
|
+
alignTo(other: Mobject, direction: Point): void;
|
|
855
|
+
/**
|
|
856
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
857
|
+
*/
|
|
858
|
+
alignToPoint(p: Point, direction: Point): void;
|
|
859
|
+
/**
|
|
860
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
861
|
+
*/
|
|
862
|
+
replace(other: Mobject, dim: number, stretch: boolean): void;
|
|
863
|
+
/**
|
|
864
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
865
|
+
*/
|
|
866
|
+
putStartAndEndOn(start: Point, end: Point): void;
|
|
867
|
+
/**
|
|
868
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
869
|
+
*/
|
|
870
|
+
arrange(direction: Point, buff: number, center: boolean, alignedEdge: Point): void;
|
|
871
|
+
/**
|
|
872
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
873
|
+
*/
|
|
874
|
+
setFill(color: Color | undefined, opacity: number | undefined, family: boolean): void;
|
|
875
|
+
/**
|
|
876
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
877
|
+
*/
|
|
878
|
+
setStroke(color: Color | undefined, width: number | undefined, opacity: number | undefined, family: boolean): void;
|
|
879
|
+
/**
|
|
880
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
881
|
+
*/
|
|
882
|
+
setColor(color: Color, family: boolean): void;
|
|
883
|
+
/**
|
|
884
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
885
|
+
*/
|
|
886
|
+
setOpacity(opacity: number, family: boolean): void;
|
|
887
|
+
/**
|
|
888
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
889
|
+
*/
|
|
890
|
+
fade(darkness: number, family: boolean): void;
|
|
891
|
+
setCapStyle(cap: CapStyle, family: boolean): void;
|
|
892
|
+
capStyle(): CapStyle;
|
|
893
|
+
setJointType(joint: JointType, family: boolean): void;
|
|
894
|
+
jointType(): JointType;
|
|
895
|
+
/**
|
|
896
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
897
|
+
*/
|
|
898
|
+
setZIndex(z: number, family: boolean): void;
|
|
899
|
+
zIndex(): number;
|
|
900
|
+
/**
|
|
901
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
902
|
+
*/
|
|
903
|
+
pointwiseBecomePartial(other: Mobject, a: number, b: number): void;
|
|
904
|
+
fillOpacity(): number;
|
|
905
|
+
strokeOpacity(): number;
|
|
906
|
+
strokeWidth(): number;
|
|
907
|
+
fillColor(): Color;
|
|
908
|
+
strokeColor(): Color;
|
|
909
|
+
/**
|
|
910
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
911
|
+
*/
|
|
912
|
+
becomePointsOf(other: Mobject): void;
|
|
913
|
+
/**
|
|
914
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
915
|
+
*/
|
|
916
|
+
becomeCopyOf(other: Mobject): void;
|
|
917
|
+
text(): string;
|
|
918
|
+
fontSize(): number;
|
|
919
|
+
/**
|
|
920
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
921
|
+
*/
|
|
922
|
+
addUpdater(f: number, callNow: boolean, real: boolean): void;
|
|
923
|
+
removeUpdater(f: number): void;
|
|
924
|
+
clearUpdaters(recursive: boolean): void;
|
|
925
|
+
hasUpdaters(): boolean;
|
|
926
|
+
/**
|
|
927
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
928
|
+
*/
|
|
929
|
+
update(dt: number, recursive: boolean): void;
|
|
930
|
+
suspendUpdating(recursive: boolean): void;
|
|
931
|
+
/**
|
|
932
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
933
|
+
*/
|
|
934
|
+
resumeUpdating(recursive: boolean): void;
|
|
935
|
+
generateTarget(): Mobject;
|
|
936
|
+
target(): Mobject | undefined;
|
|
937
|
+
setTarget(target: Mobject): void;
|
|
938
|
+
saveState(): void;
|
|
939
|
+
/**
|
|
940
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
941
|
+
*/
|
|
942
|
+
restore(): void;
|
|
943
|
+
/**
|
|
944
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
945
|
+
*/
|
|
946
|
+
getValue(): number;
|
|
947
|
+
/**
|
|
948
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
949
|
+
*/
|
|
950
|
+
setValue(value: number): void;
|
|
951
|
+
getPoints(): Array<Point>;
|
|
952
|
+
/**
|
|
953
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
954
|
+
*/
|
|
955
|
+
setPoints(points: Array<Point>): void;
|
|
956
|
+
/**
|
|
957
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
958
|
+
*/
|
|
959
|
+
setPointsSmoothly(points: Array<Point>): void;
|
|
960
|
+
/**
|
|
961
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
962
|
+
*/
|
|
963
|
+
addTip(tipLength: number, tipWidth: number, atStart: boolean): void;
|
|
964
|
+
[Symbol.dispose](): void;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
export class Tracker implements Disposable {
|
|
968
|
+
constructor(value: number)
|
|
969
|
+
getValue(): number;
|
|
970
|
+
/**
|
|
971
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
972
|
+
*/
|
|
973
|
+
setValue(value: number): void;
|
|
974
|
+
/**
|
|
975
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
976
|
+
*/
|
|
977
|
+
animateTo(value: number): Animation;
|
|
978
|
+
/**
|
|
979
|
+
* @throws {Error & { payload: Diagnostic }} The error of the result, as the `payload` of the thrown error.
|
|
980
|
+
*/
|
|
981
|
+
animateBy(delta: number): Animation;
|
|
982
|
+
[Symbol.dispose](): void;
|
|
983
|
+
}
|