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.
- package/dist/AmsConfiguration-BMyoprhk.js +847 -0
- package/dist/AmsConfiguration-BdxxYRby.js +847 -0
- package/dist/ConfigMacrosConfiguration-B8X_JSVI.js +46 -0
- package/dist/ConfigMacrosConfiguration-DUxp6DUV.js +46 -0
- package/dist/Entities-B1o7gN0J.js +429 -0
- package/dist/Entities-C82lnCux.js +429 -0
- package/dist/Factory-BKM7FEO-.js +107 -0
- package/dist/Factory-D-whCqrb.js +107 -0
- package/dist/{GifExporter-C9lP34Iu.js → GifExporter-BrxY_q7e.js} +1 -1
- package/dist/{GifExporter-DBak5Vk7.js → GifExporter-S2pbxMc5.js} +1 -1
- package/dist/HtmlNode-BLmQ2r7U.js +981 -0
- package/dist/HtmlNode-DXGeKrcW.js +981 -0
- package/dist/InputJax-DL9oUQY4.js +41 -0
- package/dist/InputJax-DnDWM3Y0.js +41 -0
- package/dist/NewcommandConfiguration-BPjclFig.js +32 -0
- package/dist/NewcommandConfiguration-bJ6P1rBY.js +32 -0
- package/dist/NewcommandMethods-C_E3iLoK.js +187 -0
- package/dist/NewcommandMethods-Cb7yFm5P.js +187 -0
- package/dist/Options-DRlTi0G8.js +63 -0
- package/dist/Options-XPptO-6X.js +63 -0
- package/dist/ParseMethods-BMPfzfQC.js +2636 -0
- package/dist/ParseMethods-D3_HeS1K.js +2636 -0
- package/dist/Styles-Dky5jZUe.js +293 -0
- package/dist/Styles-J-6R3Vr8.js +293 -0
- package/dist/{VideoExporter-Bdtz_pWv.js → VideoExporter-6ikT3u9H.js} +1 -1
- package/dist/{VideoExporter-Vjfsnv1h.js → VideoExporter-D_RxVahH.js} +1 -1
- package/dist/animation/Animation.d.ts +15 -0
- package/dist/animation/Animation.d.ts.map +1 -1
- package/dist/animation/transform/FadeMorphStrategy.d.ts +18 -0
- package/dist/animation/transform/FadeMorphStrategy.d.ts.map +1 -0
- package/dist/animation/transform/FadeTransforms.d.ts +2 -0
- package/dist/animation/transform/FadeTransforms.d.ts.map +1 -1
- package/dist/animation/transform/MorphStrategy.d.ts +8 -0
- package/dist/animation/transform/MorphStrategy.d.ts.map +1 -0
- package/dist/animation/transform/MovementTransforms.d.ts.map +1 -1
- package/dist/animation/transform/PointMorphStrategy.d.ts +36 -0
- package/dist/animation/transform/PointMorphStrategy.d.ts.map +1 -0
- package/dist/animation/transform/ShapeMorphStrategy.d.ts +39 -0
- package/dist/animation/transform/ShapeMorphStrategy.d.ts.map +1 -0
- package/dist/animation/transform/Transform.d.ts +9 -91
- package/dist/animation/transform/Transform.d.ts.map +1 -1
- package/dist/animation/transform/TransformMatching.d.ts.map +1 -1
- package/dist/animation/transform/TransformMatchingBase.d.ts +1 -0
- package/dist/animation/transform/TransformMatchingBase.d.ts.map +1 -1
- package/dist/animation/transform/TransformMatchingShared.d.ts +37 -0
- package/dist/animation/transform/TransformMatchingShared.d.ts.map +1 -0
- package/dist/animation/transform/TransformPairing.d.ts +19 -0
- package/dist/animation/transform/TransformPairing.d.ts.map +1 -0
- package/dist/core/AnimateProxy.d.ts +1 -0
- package/dist/core/AnimateProxy.d.ts.map +1 -1
- package/dist/core/Group.d.ts +2 -0
- package/dist/core/Group.d.ts.map +1 -1
- package/dist/core/Mobject.d.ts +6 -0
- package/dist/core/Mobject.d.ts.map +1 -1
- package/dist/core/Scene.d.ts.map +1 -1
- package/dist/core/TexturedMobject.d.ts +38 -0
- package/dist/core/TexturedMobject.d.ts.map +1 -0
- package/dist/core/ThreeDScene.d.ts +16 -3
- package/dist/core/ThreeDScene.d.ts.map +1 -1
- package/dist/core/VMobject.d.ts +34 -109
- package/dist/core/VMobject.d.ts.map +1 -1
- package/dist/core/VMobjectCurveUtils.d.ts +106 -0
- package/dist/core/VMobjectCurveUtils.d.ts.map +1 -0
- package/dist/core/VMobjectGeometry.d.ts +2 -15
- package/dist/core/VMobjectGeometry.d.ts.map +1 -1
- package/dist/core/VMobjectRendering.d.ts.map +1 -1
- package/dist/core/VMobjectStrokeGeometry.d.ts +20 -0
- package/dist/core/VMobjectStrokeGeometry.d.ts.map +1 -0
- package/dist/core/VMobjectTransformAlignment.d.ts +11 -0
- package/dist/core/VMobjectTransformAlignment.d.ts.map +1 -0
- package/dist/html-DU38zqaN.js +829 -0
- package/dist/html-DjkQuIHJ.js +829 -0
- package/dist/index.js +4 -4
- package/dist/integrations/react.js +5 -5
- package/dist/integrations/vue.js +7 -7
- package/dist/interaction/Draggable.d.ts +2 -0
- package/dist/interaction/Draggable.d.ts.map +1 -1
- package/dist/lengths-CP7zmbxJ.js +54 -0
- package/dist/lengths-D4tR1gYA.js +54 -0
- package/dist/liteAdaptor-BLgze3o2.js +616 -0
- package/dist/liteAdaptor-zXv-jsO1.js +616 -0
- package/dist/manim-web.browser.js +34463 -31055
- package/dist/mathjax-7LgaTjtj.js +121 -0
- package/dist/mathjax-CoSFlQ0H.js +121 -0
- package/dist/mo-C5uLT3Z9.js +2675 -0
- package/dist/mo-CNYDGAsg.js +2675 -0
- package/dist/mobjects/geometry/BooleanOperations.d.ts +1 -1
- package/dist/mobjects/geometry/BooleanOperations.d.ts.map +1 -1
- package/dist/mobjects/geometry/PolygonExtensions.d.ts +1 -1
- package/dist/mobjects/geometry/PolygonExtensions.d.ts.map +1 -1
- package/dist/mobjects/graphing/ComplexPlane.d.ts +18 -0
- package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -1
- package/dist/mobjects/image/index.d.ts +9 -2
- package/dist/mobjects/image/index.d.ts.map +1 -1
- package/dist/mobjects/text/MarkupText.d.ts.map +1 -1
- package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -1
- package/dist/mobjects/text/MathTexImage.d.ts +9 -3
- package/dist/mobjects/text/MathTexImage.d.ts.map +1 -1
- package/dist/mobjects/text/Text.d.ts +8 -3
- package/dist/mobjects/text/Text.d.ts.map +1 -1
- package/dist/mobjects/text/svgPathParser.d.ts.map +1 -1
- package/dist/mobjects/three-d/ThreeDAxes.d.ts +8 -0
- package/dist/mobjects/three-d/ThreeDAxes.d.ts.map +1 -1
- package/dist/{src-Db7QTr4S.js → src-CW4pfZdP.js} +32387 -28979
- package/dist/svg-CYweEoZ1.js +28698 -0
- package/dist/svg-swSF_J59.js +28698 -0
- package/dist/tex-C4_queV-.js +1423 -0
- package/dist/tex-CA5MLeEe.js +1423 -0
- package/dist/utils/math.d.ts +7 -0
- package/dist/utils/math.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/AllPackages-B0GtkYjD.js +0 -7912
- package/dist/AllPackages-BIAELuhU.js +0 -7912
- package/dist/BaseConfiguration-CDf44lxS.js +0 -4402
- package/dist/BaseConfiguration-Chcqjv9L.js +0 -4402
- package/dist/Entities-B_gwJfrn.js +0 -458
- package/dist/Entities-CmJkmuw_.js +0 -458
- package/dist/InputJax-C5sGfjJ8.js +0 -43
- package/dist/InputJax-Jb4hSThK.js +0 -43
- package/dist/MathItem-BmK41eqe.js +0 -77
- package/dist/MathItem-C_mZyaeT.js +0 -77
- package/dist/Options-Ch1vGsgd.js +0 -188
- package/dist/Options-V6ag48Dv.js +0 -188
- package/dist/PrioritizedList-DkoCmqPk.js +0 -36
- package/dist/PrioritizedList-eKTii0tW.js +0 -36
- package/dist/Styles-De4BjKiV.js +0 -411
- package/dist/Styles-DgoiBrzf.js +0 -411
- package/dist/TeXAtom-DT2wCvcU.js +0 -2025
- package/dist/TeXAtom-JogI0lus.js +0 -2025
- package/dist/html-53__O8r2.js +0 -1587
- package/dist/html-DfHFh5II.js +0 -1587
- package/dist/lengths-3epoqRj7.js +0 -65
- package/dist/lengths-B-bX9Tfk.js +0 -65
- package/dist/liteAdaptor-BxFvlO-q.js +0 -828
- package/dist/liteAdaptor-CsOIKw2g.js +0 -828
- package/dist/mathjax-Bkrmftxh.js +0 -102
- package/dist/mathjax-DBrTNl9C.js +0 -102
- package/dist/mo-AzagC5AD.js +0 -3271
- package/dist/mo-I_6dyJsk.js +0 -3271
- package/dist/svg-CoGQ_sAt.js +0 -23880
- package/dist/svg-DiIG93Lr.js +0 -23880
- package/dist/tex-ChPKMfdv.js +0 -401
- package/dist/tex-hYZcjadW.js +0 -401
- /package/dist/{chunk-3e0lkp8x.js → rolldown-runtime-DnwLefa7.js} +0 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { n as e } from "./rolldown-runtime-DnwLefa7.js";
|
|
2
|
+
//#region node_modules/@mathjax/src/mjs/components/version.js
|
|
3
|
+
var t = "4.1.1", n = class e {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.items = [], this.items = [];
|
|
6
|
+
}
|
|
7
|
+
[Symbol.iterator]() {
|
|
8
|
+
let e = 0, t = this.items;
|
|
9
|
+
return { next() {
|
|
10
|
+
return {
|
|
11
|
+
value: t[e++],
|
|
12
|
+
done: e > t.length
|
|
13
|
+
};
|
|
14
|
+
} };
|
|
15
|
+
}
|
|
16
|
+
add(t, n = e.DEFAULTPRIORITY) {
|
|
17
|
+
let r = this.items.length;
|
|
18
|
+
do
|
|
19
|
+
r--;
|
|
20
|
+
while (r >= 0 && n < this.items[r].priority);
|
|
21
|
+
return this.items.splice(r + 1, 0, {
|
|
22
|
+
item: t,
|
|
23
|
+
priority: n
|
|
24
|
+
}), t;
|
|
25
|
+
}
|
|
26
|
+
remove(e) {
|
|
27
|
+
let t = this.items.length;
|
|
28
|
+
do
|
|
29
|
+
t--;
|
|
30
|
+
while (t >= 0 && this.items[t].item !== e);
|
|
31
|
+
return t >= 0 && this.items.splice(t, 1), this;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
n.DEFAULTPRIORITY = 5;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region node_modules/@mathjax/src/mjs/core/HandlerList.js
|
|
37
|
+
var r = class extends n {
|
|
38
|
+
register(e) {
|
|
39
|
+
return this.add(e, e.priority);
|
|
40
|
+
}
|
|
41
|
+
unregister(e) {
|
|
42
|
+
this.remove(e);
|
|
43
|
+
}
|
|
44
|
+
handlesDocument(e) {
|
|
45
|
+
for (let t of this) {
|
|
46
|
+
let n = t.item;
|
|
47
|
+
if (n.handlesDocument(e)) return n;
|
|
48
|
+
}
|
|
49
|
+
throw Error("Can't find handler for document");
|
|
50
|
+
}
|
|
51
|
+
document(e, t = null) {
|
|
52
|
+
return this.handlesDocument(e).create(e, t);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region node_modules/@mathjax/src/mjs/util/Retries.js
|
|
57
|
+
function i(e) {
|
|
58
|
+
return new Promise(function t(n, r) {
|
|
59
|
+
let i = (e) => {
|
|
60
|
+
e.retry instanceof Promise ? e.retry.then(() => t(n, r)).catch((e) => r(e)) : e.restart?.isCallback ? MathJax.Callback.After(() => t(n, r), e.restart) : r(e);
|
|
61
|
+
};
|
|
62
|
+
try {
|
|
63
|
+
let t = e();
|
|
64
|
+
t instanceof Promise ? t.then((e) => n(e)).catch((e) => i(e)) : n(t);
|
|
65
|
+
} catch (e) {
|
|
66
|
+
i(e);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function a(e) {
|
|
71
|
+
let t = /* @__PURE__ */ Error("MathJax retry -- an asynchronous action is required; try using one of the promise-based functions and await its resolution.");
|
|
72
|
+
throw t.retry = e, t;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region node_modules/@mathjax/src/mjs/util/context.js
|
|
76
|
+
var o = typeof window < "u", s = {
|
|
77
|
+
window: o ? window : null,
|
|
78
|
+
document: o ? window.document : null,
|
|
79
|
+
os: (() => {
|
|
80
|
+
if (o && window.navigator) {
|
|
81
|
+
let e = window.navigator.appVersion;
|
|
82
|
+
for (let [t, n] of [
|
|
83
|
+
["Win", "Windows"],
|
|
84
|
+
["Mac", "MacOS"],
|
|
85
|
+
["X11", "Unix"],
|
|
86
|
+
["Linux", "Unix"]
|
|
87
|
+
]) if (e.includes(t)) return n;
|
|
88
|
+
if (window.navigator.userAgent.includes("Android")) return "Unix";
|
|
89
|
+
} else if (typeof process < "u") return {
|
|
90
|
+
linux: "Unix",
|
|
91
|
+
android: "Unix",
|
|
92
|
+
aix: "Unix",
|
|
93
|
+
freebsd: "Unix",
|
|
94
|
+
netbsd: "Unix",
|
|
95
|
+
openbsd: "Unix",
|
|
96
|
+
sunos: "Unix",
|
|
97
|
+
darwin: "MacOS",
|
|
98
|
+
win32: "Windows",
|
|
99
|
+
cygwin: "Windows"
|
|
100
|
+
}[process.platform] || process.platform;
|
|
101
|
+
return "unknown";
|
|
102
|
+
})(),
|
|
103
|
+
path: (e) => e
|
|
104
|
+
};
|
|
105
|
+
s.os === "Windows" && (s.path = (e) => e.match(/^[/\\]?[a-zA-Z]:[/\\]/) ? "file://" + e.replace(/\\/g, "/").replace(/^\//, "") : e.replace(/^\//, "file:///"));
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region node_modules/@mathjax/src/mjs/mathjax.js
|
|
108
|
+
var c = /* @__PURE__ */ e({ mathjax: () => l }), l = {
|
|
109
|
+
version: t,
|
|
110
|
+
context: s,
|
|
111
|
+
handlers: new r(),
|
|
112
|
+
document: function(e, t) {
|
|
113
|
+
return l.handlers.document(e, t);
|
|
114
|
+
},
|
|
115
|
+
handleRetriesFor: i,
|
|
116
|
+
retryAfter: a,
|
|
117
|
+
asyncLoad: null,
|
|
118
|
+
asyncIsSynchronous: !1
|
|
119
|
+
};
|
|
120
|
+
//#endregion
|
|
121
|
+
export { a, i, c as n, n as o, s as r, l as t };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { n as e } from "./rolldown-runtime-DnwLefa7.js";
|
|
2
|
+
//#region node_modules/@mathjax/src/mjs/components/version.js
|
|
3
|
+
var t = "4.1.1", n = class e {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.items = [], this.items = [];
|
|
6
|
+
}
|
|
7
|
+
[Symbol.iterator]() {
|
|
8
|
+
let e = 0, t = this.items;
|
|
9
|
+
return { next() {
|
|
10
|
+
return {
|
|
11
|
+
value: t[e++],
|
|
12
|
+
done: e > t.length
|
|
13
|
+
};
|
|
14
|
+
} };
|
|
15
|
+
}
|
|
16
|
+
add(t, n = e.DEFAULTPRIORITY) {
|
|
17
|
+
let r = this.items.length;
|
|
18
|
+
do
|
|
19
|
+
r--;
|
|
20
|
+
while (r >= 0 && n < this.items[r].priority);
|
|
21
|
+
return this.items.splice(r + 1, 0, {
|
|
22
|
+
item: t,
|
|
23
|
+
priority: n
|
|
24
|
+
}), t;
|
|
25
|
+
}
|
|
26
|
+
remove(e) {
|
|
27
|
+
let t = this.items.length;
|
|
28
|
+
do
|
|
29
|
+
t--;
|
|
30
|
+
while (t >= 0 && this.items[t].item !== e);
|
|
31
|
+
return t >= 0 && this.items.splice(t, 1), this;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
n.DEFAULTPRIORITY = 5;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region node_modules/@mathjax/src/mjs/core/HandlerList.js
|
|
37
|
+
var r = class extends n {
|
|
38
|
+
register(e) {
|
|
39
|
+
return this.add(e, e.priority);
|
|
40
|
+
}
|
|
41
|
+
unregister(e) {
|
|
42
|
+
this.remove(e);
|
|
43
|
+
}
|
|
44
|
+
handlesDocument(e) {
|
|
45
|
+
for (let t of this) {
|
|
46
|
+
let n = t.item;
|
|
47
|
+
if (n.handlesDocument(e)) return n;
|
|
48
|
+
}
|
|
49
|
+
throw Error("Can't find handler for document");
|
|
50
|
+
}
|
|
51
|
+
document(e, t = null) {
|
|
52
|
+
return this.handlesDocument(e).create(e, t);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region node_modules/@mathjax/src/mjs/util/Retries.js
|
|
57
|
+
function i(e) {
|
|
58
|
+
return new Promise(function t(n, r) {
|
|
59
|
+
let i = (e) => {
|
|
60
|
+
e.retry instanceof Promise ? e.retry.then(() => t(n, r)).catch((e) => r(e)) : e.restart?.isCallback ? MathJax.Callback.After(() => t(n, r), e.restart) : r(e);
|
|
61
|
+
};
|
|
62
|
+
try {
|
|
63
|
+
let t = e();
|
|
64
|
+
t instanceof Promise ? t.then((e) => n(e)).catch((e) => i(e)) : n(t);
|
|
65
|
+
} catch (e) {
|
|
66
|
+
i(e);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function a(e) {
|
|
71
|
+
let t = /* @__PURE__ */ Error("MathJax retry -- an asynchronous action is required; try using one of the promise-based functions and await its resolution.");
|
|
72
|
+
throw t.retry = e, t;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region node_modules/@mathjax/src/mjs/util/context.js
|
|
76
|
+
var o = typeof window < "u", s = {
|
|
77
|
+
window: o ? window : null,
|
|
78
|
+
document: o ? window.document : null,
|
|
79
|
+
os: (() => {
|
|
80
|
+
if (o && window.navigator) {
|
|
81
|
+
let e = window.navigator.appVersion;
|
|
82
|
+
for (let [t, n] of [
|
|
83
|
+
["Win", "Windows"],
|
|
84
|
+
["Mac", "MacOS"],
|
|
85
|
+
["X11", "Unix"],
|
|
86
|
+
["Linux", "Unix"]
|
|
87
|
+
]) if (e.includes(t)) return n;
|
|
88
|
+
if (window.navigator.userAgent.includes("Android")) return "Unix";
|
|
89
|
+
} else if (typeof process < "u") return {
|
|
90
|
+
linux: "Unix",
|
|
91
|
+
android: "Unix",
|
|
92
|
+
aix: "Unix",
|
|
93
|
+
freebsd: "Unix",
|
|
94
|
+
netbsd: "Unix",
|
|
95
|
+
openbsd: "Unix",
|
|
96
|
+
sunos: "Unix",
|
|
97
|
+
darwin: "MacOS",
|
|
98
|
+
win32: "Windows",
|
|
99
|
+
cygwin: "Windows"
|
|
100
|
+
}[process.platform] || process.platform;
|
|
101
|
+
return "unknown";
|
|
102
|
+
})(),
|
|
103
|
+
path: (e) => e
|
|
104
|
+
};
|
|
105
|
+
s.os === "Windows" && (s.path = (e) => e.match(/^[/\\]?[a-zA-Z]:[/\\]/) ? "file://" + e.replace(/\\/g, "/").replace(/^\//, "") : e.replace(/^\//, "file:///"));
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region node_modules/@mathjax/src/mjs/mathjax.js
|
|
108
|
+
var c = /* @__PURE__ */ e({ mathjax: () => l }), l = {
|
|
109
|
+
version: t,
|
|
110
|
+
context: s,
|
|
111
|
+
handlers: new r(),
|
|
112
|
+
document: function(e, t) {
|
|
113
|
+
return l.handlers.document(e, t);
|
|
114
|
+
},
|
|
115
|
+
handleRetriesFor: i,
|
|
116
|
+
retryAfter: a,
|
|
117
|
+
asyncLoad: null,
|
|
118
|
+
asyncIsSynchronous: !1
|
|
119
|
+
};
|
|
120
|
+
//#endregion
|
|
121
|
+
export { a, i, c as n, n as o, s as r, l as t };
|