manim-web 0.3.20 → 0.3.21

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.
Files changed (144) hide show
  1. package/dist/AmsConfiguration-BMyoprhk.js +847 -0
  2. package/dist/AmsConfiguration-BdxxYRby.js +847 -0
  3. package/dist/ConfigMacrosConfiguration-B8X_JSVI.js +46 -0
  4. package/dist/ConfigMacrosConfiguration-DUxp6DUV.js +46 -0
  5. package/dist/Entities-B1o7gN0J.js +429 -0
  6. package/dist/Entities-C82lnCux.js +429 -0
  7. package/dist/Factory-BKM7FEO-.js +107 -0
  8. package/dist/Factory-D-whCqrb.js +107 -0
  9. package/dist/{GifExporter-C9lP34Iu.js → GifExporter-BrxY_q7e.js} +1 -1
  10. package/dist/{GifExporter-DBak5Vk7.js → GifExporter-S2pbxMc5.js} +1 -1
  11. package/dist/HtmlNode-BLmQ2r7U.js +981 -0
  12. package/dist/HtmlNode-DXGeKrcW.js +981 -0
  13. package/dist/InputJax-DL9oUQY4.js +41 -0
  14. package/dist/InputJax-DnDWM3Y0.js +41 -0
  15. package/dist/NewcommandConfiguration-BPjclFig.js +32 -0
  16. package/dist/NewcommandConfiguration-bJ6P1rBY.js +32 -0
  17. package/dist/NewcommandMethods-C_E3iLoK.js +187 -0
  18. package/dist/NewcommandMethods-Cb7yFm5P.js +187 -0
  19. package/dist/Options-DRlTi0G8.js +63 -0
  20. package/dist/Options-XPptO-6X.js +63 -0
  21. package/dist/ParseMethods-BMPfzfQC.js +2636 -0
  22. package/dist/ParseMethods-D3_HeS1K.js +2636 -0
  23. package/dist/Styles-Dky5jZUe.js +293 -0
  24. package/dist/Styles-J-6R3Vr8.js +293 -0
  25. package/dist/{VideoExporter-Bdtz_pWv.js → VideoExporter-6ikT3u9H.js} +1 -1
  26. package/dist/{VideoExporter-Vjfsnv1h.js → VideoExporter-D_RxVahH.js} +1 -1
  27. package/dist/animation/Animation.d.ts +15 -0
  28. package/dist/animation/Animation.d.ts.map +1 -1
  29. package/dist/animation/transform/FadeMorphStrategy.d.ts +18 -0
  30. package/dist/animation/transform/FadeMorphStrategy.d.ts.map +1 -0
  31. package/dist/animation/transform/FadeTransforms.d.ts +2 -0
  32. package/dist/animation/transform/FadeTransforms.d.ts.map +1 -1
  33. package/dist/animation/transform/MorphStrategy.d.ts +8 -0
  34. package/dist/animation/transform/MorphStrategy.d.ts.map +1 -0
  35. package/dist/animation/transform/MovementTransforms.d.ts.map +1 -1
  36. package/dist/animation/transform/PointMorphStrategy.d.ts +36 -0
  37. package/dist/animation/transform/PointMorphStrategy.d.ts.map +1 -0
  38. package/dist/animation/transform/ShapeMorphStrategy.d.ts +39 -0
  39. package/dist/animation/transform/ShapeMorphStrategy.d.ts.map +1 -0
  40. package/dist/animation/transform/Transform.d.ts +9 -91
  41. package/dist/animation/transform/Transform.d.ts.map +1 -1
  42. package/dist/animation/transform/TransformMatching.d.ts.map +1 -1
  43. package/dist/animation/transform/TransformMatchingBase.d.ts +1 -0
  44. package/dist/animation/transform/TransformMatchingBase.d.ts.map +1 -1
  45. package/dist/animation/transform/TransformMatchingShared.d.ts +37 -0
  46. package/dist/animation/transform/TransformMatchingShared.d.ts.map +1 -0
  47. package/dist/animation/transform/TransformPairing.d.ts +19 -0
  48. package/dist/animation/transform/TransformPairing.d.ts.map +1 -0
  49. package/dist/core/AnimateProxy.d.ts +1 -0
  50. package/dist/core/AnimateProxy.d.ts.map +1 -1
  51. package/dist/core/Group.d.ts +2 -0
  52. package/dist/core/Group.d.ts.map +1 -1
  53. package/dist/core/Mobject.d.ts +6 -0
  54. package/dist/core/Mobject.d.ts.map +1 -1
  55. package/dist/core/Scene.d.ts.map +1 -1
  56. package/dist/core/TexturedMobject.d.ts +38 -0
  57. package/dist/core/TexturedMobject.d.ts.map +1 -0
  58. package/dist/core/ThreeDScene.d.ts +16 -3
  59. package/dist/core/ThreeDScene.d.ts.map +1 -1
  60. package/dist/core/VMobject.d.ts +34 -109
  61. package/dist/core/VMobject.d.ts.map +1 -1
  62. package/dist/core/VMobjectCurveUtils.d.ts +106 -0
  63. package/dist/core/VMobjectCurveUtils.d.ts.map +1 -0
  64. package/dist/core/VMobjectGeometry.d.ts +2 -15
  65. package/dist/core/VMobjectGeometry.d.ts.map +1 -1
  66. package/dist/core/VMobjectRendering.d.ts.map +1 -1
  67. package/dist/core/VMobjectStrokeGeometry.d.ts +20 -0
  68. package/dist/core/VMobjectStrokeGeometry.d.ts.map +1 -0
  69. package/dist/core/VMobjectTransformAlignment.d.ts +11 -0
  70. package/dist/core/VMobjectTransformAlignment.d.ts.map +1 -0
  71. package/dist/html-DU38zqaN.js +829 -0
  72. package/dist/html-DjkQuIHJ.js +829 -0
  73. package/dist/index.js +4 -4
  74. package/dist/integrations/react.js +5 -5
  75. package/dist/integrations/vue.js +7 -7
  76. package/dist/interaction/Draggable.d.ts +2 -0
  77. package/dist/interaction/Draggable.d.ts.map +1 -1
  78. package/dist/lengths-CP7zmbxJ.js +54 -0
  79. package/dist/lengths-D4tR1gYA.js +54 -0
  80. package/dist/liteAdaptor-BLgze3o2.js +616 -0
  81. package/dist/liteAdaptor-zXv-jsO1.js +616 -0
  82. package/dist/manim-web.browser.js +34463 -31055
  83. package/dist/mathjax-7LgaTjtj.js +121 -0
  84. package/dist/mathjax-CoSFlQ0H.js +121 -0
  85. package/dist/mo-C5uLT3Z9.js +2675 -0
  86. package/dist/mo-CNYDGAsg.js +2675 -0
  87. package/dist/mobjects/geometry/BooleanOperations.d.ts +1 -1
  88. package/dist/mobjects/geometry/BooleanOperations.d.ts.map +1 -1
  89. package/dist/mobjects/geometry/PolygonExtensions.d.ts +1 -1
  90. package/dist/mobjects/geometry/PolygonExtensions.d.ts.map +1 -1
  91. package/dist/mobjects/graphing/ComplexPlane.d.ts +18 -0
  92. package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -1
  93. package/dist/mobjects/image/index.d.ts +9 -2
  94. package/dist/mobjects/image/index.d.ts.map +1 -1
  95. package/dist/mobjects/text/MarkupText.d.ts.map +1 -1
  96. package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -1
  97. package/dist/mobjects/text/MathTexImage.d.ts +9 -3
  98. package/dist/mobjects/text/MathTexImage.d.ts.map +1 -1
  99. package/dist/mobjects/text/Text.d.ts +8 -3
  100. package/dist/mobjects/text/Text.d.ts.map +1 -1
  101. package/dist/mobjects/text/svgPathParser.d.ts.map +1 -1
  102. package/dist/mobjects/three-d/ThreeDAxes.d.ts +8 -0
  103. package/dist/mobjects/three-d/ThreeDAxes.d.ts.map +1 -1
  104. package/dist/{src-Db7QTr4S.js → src-CW4pfZdP.js} +32387 -28979
  105. package/dist/svg-CYweEoZ1.js +28698 -0
  106. package/dist/svg-swSF_J59.js +28698 -0
  107. package/dist/tex-C4_queV-.js +1423 -0
  108. package/dist/tex-CA5MLeEe.js +1423 -0
  109. package/dist/utils/math.d.ts +7 -0
  110. package/dist/utils/math.d.ts.map +1 -1
  111. package/package.json +3 -3
  112. package/dist/AllPackages-B0GtkYjD.js +0 -7912
  113. package/dist/AllPackages-BIAELuhU.js +0 -7912
  114. package/dist/BaseConfiguration-CDf44lxS.js +0 -4402
  115. package/dist/BaseConfiguration-Chcqjv9L.js +0 -4402
  116. package/dist/Entities-B_gwJfrn.js +0 -458
  117. package/dist/Entities-CmJkmuw_.js +0 -458
  118. package/dist/InputJax-C5sGfjJ8.js +0 -43
  119. package/dist/InputJax-Jb4hSThK.js +0 -43
  120. package/dist/MathItem-BmK41eqe.js +0 -77
  121. package/dist/MathItem-C_mZyaeT.js +0 -77
  122. package/dist/Options-Ch1vGsgd.js +0 -188
  123. package/dist/Options-V6ag48Dv.js +0 -188
  124. package/dist/PrioritizedList-DkoCmqPk.js +0 -36
  125. package/dist/PrioritizedList-eKTii0tW.js +0 -36
  126. package/dist/Styles-De4BjKiV.js +0 -411
  127. package/dist/Styles-DgoiBrzf.js +0 -411
  128. package/dist/TeXAtom-DT2wCvcU.js +0 -2025
  129. package/dist/TeXAtom-JogI0lus.js +0 -2025
  130. package/dist/html-53__O8r2.js +0 -1587
  131. package/dist/html-DfHFh5II.js +0 -1587
  132. package/dist/lengths-3epoqRj7.js +0 -65
  133. package/dist/lengths-B-bX9Tfk.js +0 -65
  134. package/dist/liteAdaptor-BxFvlO-q.js +0 -828
  135. package/dist/liteAdaptor-CsOIKw2g.js +0 -828
  136. package/dist/mathjax-Bkrmftxh.js +0 -102
  137. package/dist/mathjax-DBrTNl9C.js +0 -102
  138. package/dist/mo-AzagC5AD.js +0 -3271
  139. package/dist/mo-I_6dyJsk.js +0 -3271
  140. package/dist/svg-CoGQ_sAt.js +0 -23880
  141. package/dist/svg-DiIG93Lr.js +0 -23880
  142. package/dist/tex-ChPKMfdv.js +0 -401
  143. package/dist/tex-hYZcjadW.js +0 -401
  144. /package/dist/{chunk-3e0lkp8x.js → rolldown-runtime-DnwLefa7.js} +0 -0
@@ -0,0 +1,293 @@
1
+ import { t as e } from "./mathjax-7LgaTjtj.js";
2
+ //#region node_modules/@mathjax/src/mjs/util/AsyncLoad.js
3
+ function t(t) {
4
+ return e.asyncLoad ? new Promise((n, r) => {
5
+ let i = e.asyncLoad(t);
6
+ i instanceof Promise ? i.then((e) => n(e)).catch((e) => r(e)) : n(i);
7
+ }) : Promise.reject(`Can't load '${t}': No mathjax.asyncLoad method specified`);
8
+ }
9
+ //#endregion
10
+ //#region node_modules/@mathjax/src/mjs/util/Styles.js
11
+ var n = [
12
+ "top",
13
+ "right",
14
+ "bottom",
15
+ "left"
16
+ ], r = [
17
+ "width",
18
+ "style",
19
+ "color"
20
+ ];
21
+ function i(e) {
22
+ let t = e.split(/((?:'[^'\n]*'|"[^"\n]*"|,[\s\n]|[^\s\n])*)/g), n = [];
23
+ for (; t.length > 1;) t.shift(), n.push(t.shift());
24
+ return n;
25
+ }
26
+ function a(e) {
27
+ let t = i(this.styles[e]);
28
+ t.length === 0 && t.push(""), t.length === 1 && t.push(t[0]), t.length === 2 && t.push(t[0]), t.length === 3 && t.push(t[1]);
29
+ for (let n of _.connect[e].children) this.setStyle(this.childName(e, n), t.shift());
30
+ }
31
+ function o(e) {
32
+ let t = _.connect[e].children, n = [];
33
+ for (let r of t) {
34
+ let t = this.styles[this.childName(e, r)];
35
+ if (!t) {
36
+ delete this.styles[e];
37
+ return;
38
+ }
39
+ n.push(t);
40
+ }
41
+ n[3] === n[1] && (n.pop(), n[2] === n[0] && (n.pop(), n[1] === n[0] && n.pop())), this.styles[e] = n.join(" ");
42
+ }
43
+ function s(e) {
44
+ o.call(this, e), this.combineChildren(e), l.call(this, e), this.combineParent(e);
45
+ }
46
+ function c(e) {
47
+ for (let t of _.connect[e].children) this.setStyle(this.childName(e, t), this.styles[e]);
48
+ }
49
+ function l(e) {
50
+ if (!_.connect[e]) return;
51
+ let t = [..._.connect[e].children], n = this.styles[this.childName(e, t.shift())];
52
+ for (let r of t) if (this.styles[this.childName(e, r)] !== n) {
53
+ delete this.styles[e];
54
+ return;
55
+ }
56
+ n && (this.styles[e] = n);
57
+ }
58
+ var u = {
59
+ width: /^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,
60
+ style: /^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/
61
+ };
62
+ function d(e) {
63
+ let t = {
64
+ width: "",
65
+ style: "",
66
+ color: ""
67
+ };
68
+ for (let n of i(this.styles[e])) n.match(u.width) && t.width === "" ? t.width = n : n.match(u.style) && t.style === "" ? t.style = n : t.color = n;
69
+ for (let n of _.connect[e].children) this.setStyle(this.childName(e, n), t[n]);
70
+ }
71
+ function f(e) {
72
+ let t = [];
73
+ for (let n of _.connect[e].children) {
74
+ let r = this.styles[this.childName(e, n)];
75
+ r && t.push(r);
76
+ }
77
+ t.length > 1 ? this.styles[e] = t.join(" ") : delete this.styles[e];
78
+ }
79
+ var p = {
80
+ style: /^(?:normal|italic|oblique|inherit|initial|unset)$/,
81
+ variant: RegExp("^(?:" + [
82
+ "normal|none",
83
+ "inherit|initial|unset",
84
+ "common-ligatures|no-common-ligatures",
85
+ "discretionary-ligatures|no-discretionary-ligatures",
86
+ "historical-ligatures|no-historical-ligatures",
87
+ "contextual|no-contextual",
88
+ "(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)",
89
+ "small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps",
90
+ "lining-nums|oldstyle-nums|proportional-nums|tabular-nums",
91
+ "diagonal-fractions|stacked-fractions",
92
+ "ordinal|slashed-zero",
93
+ "jis78|jis83|jis90|jis04|simplified|traditional",
94
+ "full-width|proportional-width",
95
+ "ruby"
96
+ ].join("|") + ")$"),
97
+ weight: /^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,
98
+ stretch: RegExp("^(?:" + [
99
+ "normal",
100
+ "(?:(?:ultra|extra|semi)-)?(?:condensed|expanded)",
101
+ "inherit|initial|unset"
102
+ ].join("|") + ")$"),
103
+ size: RegExp("^(?:" + [
104
+ "xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller",
105
+ "[\\d.]+%|[\\d.]+[a-z]+",
106
+ "inherit|initial|unset"
107
+ ].join("|") + ")(?:/(?:normal|[\\d.]+(?:%|[a-z]+)?))?$")
108
+ };
109
+ function m(e) {
110
+ let t = i(this.styles[e]), n = {
111
+ style: "",
112
+ variant: [],
113
+ weight: "",
114
+ stretch: "",
115
+ size: "",
116
+ family: "",
117
+ "line-height": ""
118
+ };
119
+ for (let e of t) {
120
+ n.family ||= e;
121
+ for (let t of Object.keys(p)) if ((Array.isArray(n[t]) || n[t] === "") && e.match(p[t])) if (n.family === e && (n.family = ""), t === "size") {
122
+ let [r, i] = e.split(/\//);
123
+ n[t] = r, i && (n["line-height"] = i);
124
+ } else n.size === "" && (Array.isArray(n[t]) ? n[t].push(e) : n[t] === "" && (n[t] = e));
125
+ }
126
+ h.call(this, e, n), delete this.styles[e];
127
+ }
128
+ function h(e, t) {
129
+ for (let n of _.connect[e].children) {
130
+ let r = this.childName(e, n);
131
+ if (Array.isArray(t[n])) {
132
+ let e = t[n];
133
+ e.length && (this.styles[r] = e.join(" "));
134
+ } else t[n] !== "" && (this.styles[r] = t[n]);
135
+ }
136
+ }
137
+ function g(e) {}
138
+ var _ = class e {
139
+ constructor(e = "") {
140
+ this.parse(e);
141
+ }
142
+ sanitizeValue(e) {
143
+ let t = this.constructor.pattern;
144
+ if (!e.match(t.sanitize)) return e;
145
+ e = e.replace(t.value, "$1");
146
+ let n = e.replace(/\\./g, "").replace(/(['"]).*?\1/g, "").replace(/[^'"]/g, "");
147
+ return n.length && (e += n.charAt(0)), e;
148
+ }
149
+ get cssText() {
150
+ let t = [];
151
+ for (let n of Object.keys(this.styles)) {
152
+ let r = this.parentName(n), i = n.replace(/.*-/, ""), a = this.childName(this.parentName(r), i);
153
+ this.styles[n] && !this.styles[a] && (!this.styles[r] || !(e.connect[r]?.children)?.includes(i)) && t.push(`${n}: ${this.styles[n]};`);
154
+ }
155
+ return t.join(" ");
156
+ }
157
+ get styleList() {
158
+ return Object.assign({}, this.styles);
159
+ }
160
+ set(t, n) {
161
+ t = this.normalizeName(t), this.setStyle(t, String(n));
162
+ let r = e.connect[t];
163
+ if (r?.subPart) {
164
+ r.combine.call(this, t);
165
+ return;
166
+ }
167
+ if (this.combineParent(t), t.match(/-.*-/)) {
168
+ let e = t.replace(/-.*-/, "-");
169
+ l.call(this, e);
170
+ }
171
+ }
172
+ combineParent(t) {
173
+ for (; t.match(/-/);) {
174
+ let n = t;
175
+ t = this.parentName(t);
176
+ let r = e.connect[t];
177
+ if (!e.connect[n] && !(r?.children)?.includes(n.substring(t.length + 1))) break;
178
+ r.combine.call(this, t);
179
+ }
180
+ if (!this.styles[t]) return;
181
+ let n = e.connect[t];
182
+ for (let e of n?.parts || []) delete this.styles[this.childName(t, e)];
183
+ }
184
+ get(e) {
185
+ return e = this.normalizeName(e), Object.hasOwn(this.styles, e) ? this.styles[e] : "";
186
+ }
187
+ setStyle(t, n) {
188
+ this.styles[t] = this.sanitizeValue(n), e.connect[t]?.children && e.connect[t].split.call(this, t), n === "" && delete this.styles[t];
189
+ }
190
+ combineChildren(t) {
191
+ let n = this.parentName(t);
192
+ for (let r of e.connect[t].children) {
193
+ let t = this.childName(n, r);
194
+ e.connect[t].combine.call(this, t);
195
+ }
196
+ }
197
+ parentName(e) {
198
+ let t = e.replace(/-[^-]*$/, "");
199
+ return e === t ? "" : t;
200
+ }
201
+ childName(t, n) {
202
+ return n.match(/-/) ? n : (e.connect[t]?.subPart && (n += t.replace(/.*-/, "-"), t = this.parentName(t)), t + "-" + n);
203
+ }
204
+ normalizeName(e) {
205
+ return e.replace(/[A-Z]/g, (e) => "-" + e.toLowerCase());
206
+ }
207
+ parse(e = "") {
208
+ let t = this.constructor.pattern;
209
+ this.styles = {};
210
+ let n = e.replace(/\n/g, " ").replace(t.comment, "").split(t.style);
211
+ for (; n.length > 1;) {
212
+ let [e, t, r] = n.splice(0, 3);
213
+ if (e.match(/[^\s\n;]/)) return;
214
+ this.set(t, r);
215
+ }
216
+ }
217
+ };
218
+ _.pattern = {
219
+ sanitize: /['";]/,
220
+ value: /^((:?'(?:\\.|[^'])*(?:'|$)|"(?:\\.|[^"])*(?:"|$)|\n|\\.|[^'";])*?)[\s\n]*(?:;|$).*/,
221
+ style: /([-a-z]+)[\s\n]*:[\s\n]*((?:'(?:\\.|[^'])*(?:'|$)|"(?:\\.|[^"])*(?:"|$)|\n|\\.|[^'";])*?)[\s\n]*(?:;|$)/g,
222
+ comment: /\/\*[^]*?\*\//g
223
+ }, _.connect = {
224
+ padding: {
225
+ children: n,
226
+ split: a,
227
+ combine: o
228
+ },
229
+ margin: {
230
+ children: n,
231
+ split: a,
232
+ combine: o
233
+ },
234
+ border: {
235
+ children: n,
236
+ parts: r,
237
+ split: c,
238
+ combine: l
239
+ },
240
+ "border-top": {
241
+ children: r,
242
+ split: d,
243
+ combine: f
244
+ },
245
+ "border-right": {
246
+ children: r,
247
+ split: d,
248
+ combine: f
249
+ },
250
+ "border-bottom": {
251
+ children: r,
252
+ split: d,
253
+ combine: f
254
+ },
255
+ "border-left": {
256
+ children: r,
257
+ split: d,
258
+ combine: f
259
+ },
260
+ "border-width": {
261
+ children: n,
262
+ split: a,
263
+ combine: s,
264
+ subPart: !0
265
+ },
266
+ "border-style": {
267
+ children: n,
268
+ split: a,
269
+ combine: s,
270
+ subPart: !0
271
+ },
272
+ "border-color": {
273
+ children: n,
274
+ split: a,
275
+ combine: s,
276
+ subPart: !0
277
+ },
278
+ font: {
279
+ children: [
280
+ "style",
281
+ "variant",
282
+ "weight",
283
+ "stretch",
284
+ "line-height",
285
+ "size",
286
+ "family"
287
+ ],
288
+ split: m,
289
+ combine: g
290
+ }
291
+ };
292
+ //#endregion
293
+ export { n, t as r, _ as t };
@@ -0,0 +1,293 @@
1
+ import { t as e } from "./mathjax-CoSFlQ0H.js";
2
+ //#region node_modules/@mathjax/src/mjs/util/AsyncLoad.js
3
+ function t(t) {
4
+ return e.asyncLoad ? new Promise((n, r) => {
5
+ let i = e.asyncLoad(t);
6
+ i instanceof Promise ? i.then((e) => n(e)).catch((e) => r(e)) : n(i);
7
+ }) : Promise.reject(`Can't load '${t}': No mathjax.asyncLoad method specified`);
8
+ }
9
+ //#endregion
10
+ //#region node_modules/@mathjax/src/mjs/util/Styles.js
11
+ var n = [
12
+ "top",
13
+ "right",
14
+ "bottom",
15
+ "left"
16
+ ], r = [
17
+ "width",
18
+ "style",
19
+ "color"
20
+ ];
21
+ function i(e) {
22
+ let t = e.split(/((?:'[^'\n]*'|"[^"\n]*"|,[\s\n]|[^\s\n])*)/g), n = [];
23
+ for (; t.length > 1;) t.shift(), n.push(t.shift());
24
+ return n;
25
+ }
26
+ function a(e) {
27
+ let t = i(this.styles[e]);
28
+ t.length === 0 && t.push(""), t.length === 1 && t.push(t[0]), t.length === 2 && t.push(t[0]), t.length === 3 && t.push(t[1]);
29
+ for (let n of _.connect[e].children) this.setStyle(this.childName(e, n), t.shift());
30
+ }
31
+ function o(e) {
32
+ let t = _.connect[e].children, n = [];
33
+ for (let r of t) {
34
+ let t = this.styles[this.childName(e, r)];
35
+ if (!t) {
36
+ delete this.styles[e];
37
+ return;
38
+ }
39
+ n.push(t);
40
+ }
41
+ n[3] === n[1] && (n.pop(), n[2] === n[0] && (n.pop(), n[1] === n[0] && n.pop())), this.styles[e] = n.join(" ");
42
+ }
43
+ function s(e) {
44
+ o.call(this, e), this.combineChildren(e), l.call(this, e), this.combineParent(e);
45
+ }
46
+ function c(e) {
47
+ for (let t of _.connect[e].children) this.setStyle(this.childName(e, t), this.styles[e]);
48
+ }
49
+ function l(e) {
50
+ if (!_.connect[e]) return;
51
+ let t = [..._.connect[e].children], n = this.styles[this.childName(e, t.shift())];
52
+ for (let r of t) if (this.styles[this.childName(e, r)] !== n) {
53
+ delete this.styles[e];
54
+ return;
55
+ }
56
+ n && (this.styles[e] = n);
57
+ }
58
+ var u = {
59
+ width: /^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,
60
+ style: /^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/
61
+ };
62
+ function d(e) {
63
+ let t = {
64
+ width: "",
65
+ style: "",
66
+ color: ""
67
+ };
68
+ for (let n of i(this.styles[e])) n.match(u.width) && t.width === "" ? t.width = n : n.match(u.style) && t.style === "" ? t.style = n : t.color = n;
69
+ for (let n of _.connect[e].children) this.setStyle(this.childName(e, n), t[n]);
70
+ }
71
+ function f(e) {
72
+ let t = [];
73
+ for (let n of _.connect[e].children) {
74
+ let r = this.styles[this.childName(e, n)];
75
+ r && t.push(r);
76
+ }
77
+ t.length > 1 ? this.styles[e] = t.join(" ") : delete this.styles[e];
78
+ }
79
+ var p = {
80
+ style: /^(?:normal|italic|oblique|inherit|initial|unset)$/,
81
+ variant: RegExp("^(?:" + [
82
+ "normal|none",
83
+ "inherit|initial|unset",
84
+ "common-ligatures|no-common-ligatures",
85
+ "discretionary-ligatures|no-discretionary-ligatures",
86
+ "historical-ligatures|no-historical-ligatures",
87
+ "contextual|no-contextual",
88
+ "(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)",
89
+ "small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps",
90
+ "lining-nums|oldstyle-nums|proportional-nums|tabular-nums",
91
+ "diagonal-fractions|stacked-fractions",
92
+ "ordinal|slashed-zero",
93
+ "jis78|jis83|jis90|jis04|simplified|traditional",
94
+ "full-width|proportional-width",
95
+ "ruby"
96
+ ].join("|") + ")$"),
97
+ weight: /^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,
98
+ stretch: RegExp("^(?:" + [
99
+ "normal",
100
+ "(?:(?:ultra|extra|semi)-)?(?:condensed|expanded)",
101
+ "inherit|initial|unset"
102
+ ].join("|") + ")$"),
103
+ size: RegExp("^(?:" + [
104
+ "xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller",
105
+ "[\\d.]+%|[\\d.]+[a-z]+",
106
+ "inherit|initial|unset"
107
+ ].join("|") + ")(?:/(?:normal|[\\d.]+(?:%|[a-z]+)?))?$")
108
+ };
109
+ function m(e) {
110
+ let t = i(this.styles[e]), n = {
111
+ style: "",
112
+ variant: [],
113
+ weight: "",
114
+ stretch: "",
115
+ size: "",
116
+ family: "",
117
+ "line-height": ""
118
+ };
119
+ for (let e of t) {
120
+ n.family ||= e;
121
+ for (let t of Object.keys(p)) if ((Array.isArray(n[t]) || n[t] === "") && e.match(p[t])) if (n.family === e && (n.family = ""), t === "size") {
122
+ let [r, i] = e.split(/\//);
123
+ n[t] = r, i && (n["line-height"] = i);
124
+ } else n.size === "" && (Array.isArray(n[t]) ? n[t].push(e) : n[t] === "" && (n[t] = e));
125
+ }
126
+ h.call(this, e, n), delete this.styles[e];
127
+ }
128
+ function h(e, t) {
129
+ for (let n of _.connect[e].children) {
130
+ let r = this.childName(e, n);
131
+ if (Array.isArray(t[n])) {
132
+ let e = t[n];
133
+ e.length && (this.styles[r] = e.join(" "));
134
+ } else t[n] !== "" && (this.styles[r] = t[n]);
135
+ }
136
+ }
137
+ function g(e) {}
138
+ var _ = class e {
139
+ constructor(e = "") {
140
+ this.parse(e);
141
+ }
142
+ sanitizeValue(e) {
143
+ let t = this.constructor.pattern;
144
+ if (!e.match(t.sanitize)) return e;
145
+ e = e.replace(t.value, "$1");
146
+ let n = e.replace(/\\./g, "").replace(/(['"]).*?\1/g, "").replace(/[^'"]/g, "");
147
+ return n.length && (e += n.charAt(0)), e;
148
+ }
149
+ get cssText() {
150
+ let t = [];
151
+ for (let n of Object.keys(this.styles)) {
152
+ let r = this.parentName(n), i = n.replace(/.*-/, ""), a = this.childName(this.parentName(r), i);
153
+ this.styles[n] && !this.styles[a] && (!this.styles[r] || !(e.connect[r]?.children)?.includes(i)) && t.push(`${n}: ${this.styles[n]};`);
154
+ }
155
+ return t.join(" ");
156
+ }
157
+ get styleList() {
158
+ return Object.assign({}, this.styles);
159
+ }
160
+ set(t, n) {
161
+ t = this.normalizeName(t), this.setStyle(t, String(n));
162
+ let r = e.connect[t];
163
+ if (r?.subPart) {
164
+ r.combine.call(this, t);
165
+ return;
166
+ }
167
+ if (this.combineParent(t), t.match(/-.*-/)) {
168
+ let e = t.replace(/-.*-/, "-");
169
+ l.call(this, e);
170
+ }
171
+ }
172
+ combineParent(t) {
173
+ for (; t.match(/-/);) {
174
+ let n = t;
175
+ t = this.parentName(t);
176
+ let r = e.connect[t];
177
+ if (!e.connect[n] && !(r?.children)?.includes(n.substring(t.length + 1))) break;
178
+ r.combine.call(this, t);
179
+ }
180
+ if (!this.styles[t]) return;
181
+ let n = e.connect[t];
182
+ for (let e of n?.parts || []) delete this.styles[this.childName(t, e)];
183
+ }
184
+ get(e) {
185
+ return e = this.normalizeName(e), Object.hasOwn(this.styles, e) ? this.styles[e] : "";
186
+ }
187
+ setStyle(t, n) {
188
+ this.styles[t] = this.sanitizeValue(n), e.connect[t]?.children && e.connect[t].split.call(this, t), n === "" && delete this.styles[t];
189
+ }
190
+ combineChildren(t) {
191
+ let n = this.parentName(t);
192
+ for (let r of e.connect[t].children) {
193
+ let t = this.childName(n, r);
194
+ e.connect[t].combine.call(this, t);
195
+ }
196
+ }
197
+ parentName(e) {
198
+ let t = e.replace(/-[^-]*$/, "");
199
+ return e === t ? "" : t;
200
+ }
201
+ childName(t, n) {
202
+ return n.match(/-/) ? n : (e.connect[t]?.subPart && (n += t.replace(/.*-/, "-"), t = this.parentName(t)), t + "-" + n);
203
+ }
204
+ normalizeName(e) {
205
+ return e.replace(/[A-Z]/g, (e) => "-" + e.toLowerCase());
206
+ }
207
+ parse(e = "") {
208
+ let t = this.constructor.pattern;
209
+ this.styles = {};
210
+ let n = e.replace(/\n/g, " ").replace(t.comment, "").split(t.style);
211
+ for (; n.length > 1;) {
212
+ let [e, t, r] = n.splice(0, 3);
213
+ if (e.match(/[^\s\n;]/)) return;
214
+ this.set(t, r);
215
+ }
216
+ }
217
+ };
218
+ _.pattern = {
219
+ sanitize: /['";]/,
220
+ value: /^((:?'(?:\\.|[^'])*(?:'|$)|"(?:\\.|[^"])*(?:"|$)|\n|\\.|[^'";])*?)[\s\n]*(?:;|$).*/,
221
+ style: /([-a-z]+)[\s\n]*:[\s\n]*((?:'(?:\\.|[^'])*(?:'|$)|"(?:\\.|[^"])*(?:"|$)|\n|\\.|[^'";])*?)[\s\n]*(?:;|$)/g,
222
+ comment: /\/\*[^]*?\*\//g
223
+ }, _.connect = {
224
+ padding: {
225
+ children: n,
226
+ split: a,
227
+ combine: o
228
+ },
229
+ margin: {
230
+ children: n,
231
+ split: a,
232
+ combine: o
233
+ },
234
+ border: {
235
+ children: n,
236
+ parts: r,
237
+ split: c,
238
+ combine: l
239
+ },
240
+ "border-top": {
241
+ children: r,
242
+ split: d,
243
+ combine: f
244
+ },
245
+ "border-right": {
246
+ children: r,
247
+ split: d,
248
+ combine: f
249
+ },
250
+ "border-bottom": {
251
+ children: r,
252
+ split: d,
253
+ combine: f
254
+ },
255
+ "border-left": {
256
+ children: r,
257
+ split: d,
258
+ combine: f
259
+ },
260
+ "border-width": {
261
+ children: n,
262
+ split: a,
263
+ combine: s,
264
+ subPart: !0
265
+ },
266
+ "border-style": {
267
+ children: n,
268
+ split: a,
269
+ combine: s,
270
+ subPart: !0
271
+ },
272
+ "border-color": {
273
+ children: n,
274
+ split: a,
275
+ combine: s,
276
+ subPart: !0
277
+ },
278
+ font: {
279
+ children: [
280
+ "style",
281
+ "variant",
282
+ "weight",
283
+ "stretch",
284
+ "line-height",
285
+ "size",
286
+ "family"
287
+ ],
288
+ split: m,
289
+ combine: g
290
+ }
291
+ };
292
+ //#endregion
293
+ export { n, t as r, _ as t };
@@ -1,4 +1,4 @@
1
- import { n as e } from "./chunk-3e0lkp8x.js";
1
+ import { n as e } from "./rolldown-runtime-DnwLefa7.js";
2
2
  //#region src/export/VideoExporter.ts
3
3
  var t = /* @__PURE__ */ e({
4
4
  VideoExporter: () => n,
@@ -1,4 +1,4 @@
1
- import { n as e } from "./chunk-3e0lkp8x.js";
1
+ import { n as e } from "./rolldown-runtime-DnwLefa7.js";
2
2
  //#region src/export/VideoExporter.ts
3
3
  var t = /* @__PURE__ */ e({
4
4
  VideoExporter: () => n,
@@ -9,6 +9,14 @@ export interface AnimationOptions {
9
9
  /** Shift direction for fade animations */
10
10
  shift?: [number, number, number];
11
11
  }
12
+ /**
13
+ * Minimal scene surface needed by Animation.cleanUpFromScene().
14
+ * Declared here (not imported from core/Scene) to avoid a core→animation cycle.
15
+ */
16
+ export interface AnimationScene {
17
+ add(...mobjects: Mobject[]): void;
18
+ remove(...mobjects: Mobject[]): void;
19
+ }
12
20
  export declare abstract class Animation {
13
21
  /** The mobject being animated */
14
22
  readonly mobject: Mobject;
@@ -51,6 +59,13 @@ export declare abstract class Animation {
51
59
  * Subclasses can override to clean up or finalize state.
52
60
  */
53
61
  finish(): void;
62
+ /**
63
+ * Hook called by Scene after the animation finishes, before the next play().
64
+ * Default: removes `mobject` if `remover` is set (FadeOut, Write({remover:true})).
65
+ * Override for animations that need to mutate scene membership — e.g.
66
+ * ReplacementTransform swaps source for target.
67
+ */
68
+ cleanUpFromScene(scene: AnimationScene): void;
54
69
  /**
55
70
  * Apply the animation at a given progress value.
56
71
  * @param alpha Progress from 0 (start) to 1 (end)
@@ -1 +1 @@
1
- {"version":3,"file":"Animation.d.ts","sourceRoot":"","sources":["../../src/animation/Animation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAU,MAAM,mBAAmB,CAAC;AAEzD,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,MAAM,WAAW,gBAAgB;IAC/B,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,8BAAsB,SAAS;IAC7B,iCAAiC;IACjC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,2CAA2C;IAC3C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,uDAAuD;IACvD,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAEhC,wDAAwD;IACxD,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE3C,yCAAyC;IACzC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAS;IAEvC,uCAAuC;IACvC,SAAS,CAAC,SAAS,EAAE,OAAO,CAAS;IAErC;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAS;IAEzB;;;;OAIG;IACH,OAAO,CAAC,kBAAkB,CAAwB;gBAEtC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,gBAAqB;IAM5D;;;;;OAKG;IACH,KAAK,IAAI,IAAI;IAmBb;;;OAGG;IAC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IACvD,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAEhC,wDAAwD;IACxD,SAAS,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE3C,yCAAyC;IACzC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAS;IAEvC,uCAAuC;IACvC,SAAS,CAAC,SAAS,EAAE,OAAO,CAAS;IAErC;;;OAGG;IACH,OAAO,EAAE,OAAO,CAAS;IAEzB;;;;OAIG;IACH,OAAO,CAAC,kBAAkB,CAAwB;gBAEtC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,gBAAqB;IAM5D;;;;;OAKG;IACH,KAAK,IAAI,IAAI;IAmBb;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAe5B;;;OAGG;IACH,MAAM,IAAI,IAAI;IAId;;;;;OAKG;IACH,gBAAgB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAM7C;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAEzC;;;;OAIG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI;IAoB9C;;OAEG;IACH,UAAU,IAAI,OAAO;IAIrB;;;;OAIG;IACH,KAAK,IAAI,IAAI;IA2Bb;;OAEG;IACH,IAAI,SAAS,IAAI,MAAM,GAAG,IAAI,CAE7B;IAED;;OAEG;IACH,IAAI,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAEhC;CACF"}
@@ -0,0 +1,18 @@
1
+ import { Mobject } from '../../core/Mobject';
2
+ import { Animation } from '../Animation';
3
+ import { MorphStrategy } from './MorphStrategy';
4
+ export declare class FadeMorphStrategy implements MorphStrategy {
5
+ private _sourceSnapshot;
6
+ private _targetSnapshot;
7
+ private _startPositionX;
8
+ private _startPositionY;
9
+ private _startPositionZ;
10
+ private _targetPositionX;
11
+ private _targetPositionY;
12
+ private _targetPositionZ;
13
+ private _snapshotState;
14
+ begin(_animation: Animation, source: Mobject, target: Mobject): void;
15
+ interpolate(_animation: Animation, source: Mobject, target: Mobject, alpha: number): void;
16
+ finish(_animation: Animation, source: Mobject, target: Mobject): void;
17
+ }
18
+ //# sourceMappingURL=FadeMorphStrategy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FadeMorphStrategy.d.ts","sourceRoot":"","sources":["../../../src/animation/transform/FadeMorphStrategy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAShD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,eAAe,CAAkC;IACzD,OAAO,CAAC,eAAe,CAAkC;IACzD,OAAO,CAAC,eAAe,CAAK;IAC5B,OAAO,CAAC,eAAe,CAAK;IAC5B,OAAO,CAAC,eAAe,CAAK;IAC5B,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,gBAAgB,CAAK;IAC7B,OAAO,CAAC,gBAAgB,CAAK;IAE7B,OAAO,CAAC,cAAc;IAStB,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI;IAgBpE,WAAW,CAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAqBzF,MAAM,CAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI;CAWtE"}
@@ -22,6 +22,8 @@ export declare class FadeTransform extends Animation {
22
22
  private _startOpacity;
23
23
  /** Target opacity */
24
24
  private _targetOpacity;
25
+ /** Transform-time subpath lengths override for compound paths */
26
+ private _alignedSubpathLengths?;
25
27
  constructor(mobject: VMobject, target: VMobject, options?: FadeTransformOptions);
26
28
  begin(): void;
27
29
  interpolate(alpha: number): void;
@@ -1 +1 @@
1
- {"version":3,"file":"FadeTransforms.d.ts","sourceRoot":"","sources":["../../../src/animation/transform/FadeTransforms.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAOxC,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,uCAAuC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,qBAAa,aAAc,SAAQ,SAAS;IAC1C,2CAA2C;IAC3C,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAE1B,kCAAkC;IAClC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B,kCAAkC;IAClC,OAAO,CAAC,YAAY,CAAkB;IAEtC,gCAAgC;IAChC,OAAO,CAAC,aAAa,CAAkB;IAEvC,uBAAuB;IACvB,OAAO,CAAC,aAAa,CAAa;IAElC,qBAAqB;IACrB,OAAO,CAAC,cAAc,CAAa;gBAEvB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAE,oBAAyB;IAM1E,KAAK,IAAI,IAAI;IAoBtB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAoBvB,MAAM,IAAI,IAAI;CAOxB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,QAAQ,EAChB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,aAAa,CAEf;AAMD,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC;AAE1D;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,SAAS;I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AM,MAAM,wBAAwB,GAAG,gBAAgB,CAAC;AAExD;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,mDAAmD;IACnD,QAAQ,CAAC,cAAc,EAAE,QAAQ,CAAC;gBAEtB,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAE,wBAA6B;CAMvF;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,QAAQ,EAChB,MAAM,EAAE,QAAQ,EAChB,OAAO,CAAC,EAAE,wBAAwB,GACjC,iBAAiB,CAEnB"}
@@ -0,0 +1,8 @@
1
+ import { Mobject } from '../../core/Mobject';
2
+ import { Animation } from '../Animation';
3
+ export interface MorphStrategy {
4
+ begin(animation: Animation, source: Mobject, target: Mobject): void;
5
+ interpolate(animation: Animation, source: Mobject, target: Mobject, alpha: number): void;
6
+ finish(animation: Animation, source: Mobject, target: Mobject): void;
7
+ }
8
+ //# sourceMappingURL=MorphStrategy.d.ts.map