manim-web 0.3.19 → 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/README.md +1 -1
- 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-7EpPGupp.js → GifExporter-BrxY_q7e.js} +1 -1
- package/dist/{GifExporter-DCrSD6FV.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-6w8xBpcV.js → VideoExporter-6ikT3u9H.js} +1 -1
- package/dist/{VideoExporter-DdQb18dC.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 +8 -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 -88
- 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/constants/fontRender.d.ts +19 -0
- package/dist/constants/fontRender.d.ts.map +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/core/AnimateProxy.d.ts +1 -0
- package/dist/core/AnimateProxy.d.ts.map +1 -1
- package/dist/core/Camera.d.ts +19 -6
- package/dist/core/Camera.d.ts.map +1 -1
- package/dist/core/CameraFrame.d.ts +0 -2
- package/dist/core/CameraFrame.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/MobjectTraversal.d.ts +25 -0
- package/dist/core/MobjectTraversal.d.ts.map +1 -0
- 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 +18 -3
- package/dist/core/ThreeDScene.d.ts.map +1 -1
- package/dist/core/VMobject.d.ts +54 -110
- 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 +4 -16
- 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/interaction/OrbitControls.d.ts +2 -0
- package/dist/interaction/OrbitControls.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 +35324 -31248
- 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/AngleShapes.d.ts +8 -0
- package/dist/mobjects/geometry/AngleShapes.d.ts.map +1 -1
- 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 +4 -2
- package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -1
- package/dist/mobjects/text/MathTex.d.ts +9 -2
- package/dist/mobjects/text/MathTex.d.ts.map +1 -1
- package/dist/mobjects/text/MathTexImage.d.ts +14 -4
- package/dist/mobjects/text/MathTexImage.d.ts.map +1 -1
- package/dist/mobjects/text/Text.d.ts +10 -5
- package/dist/mobjects/text/Text.d.ts.map +1 -1
- package/dist/mobjects/text/katexStyles.d.ts.map +1 -1
- package/dist/mobjects/text/svgPathParser.d.ts.map +1 -1
- package/dist/mobjects/three-d/ThreeDAxes.d.ts +121 -9
- package/dist/mobjects/three-d/ThreeDAxes.d.ts.map +1 -1
- package/dist/{chunk-DeC0fbbY.js → rolldown-runtime-DnwLefa7.js} +1 -1
- package/dist/{src-0ifQdJUj.js → src-CW4pfZdP.js} +33071 -29118
- 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 +50 -5
- package/dist/utils/math.d.ts.map +1 -1
- package/package.json +6 -5
- package/dist/AllPackages-C4Ha3Jps.js +0 -7912
- package/dist/AllPackages-Dwxf_-Ps.js +0 -7912
- package/dist/BaseConfiguration-D2fikupy.js +0 -4402
- package/dist/BaseConfiguration-DYpI8zxb.js +0 -4402
- package/dist/Entities-BxzKxtF2.js +0 -458
- package/dist/Entities-gIbwAkB6.js +0 -458
- package/dist/InputJax-BszJvLkW.js +0 -43
- package/dist/InputJax-CgHBfQsv.js +0 -43
- package/dist/MathItem-4gYKatZT.js +0 -77
- package/dist/MathItem-BGJUnd1K.js +0 -77
- package/dist/Options-CQim5zsr.js +0 -188
- package/dist/Options-Cn9jv1mh.js +0 -188
- package/dist/PrioritizedList-C1R4aNEC.js +0 -36
- package/dist/PrioritizedList-lIkFMNlo.js +0 -36
- package/dist/Styles-Bi9Db-2J.js +0 -411
- package/dist/Styles-CzHPc-An.js +0 -411
- package/dist/TeXAtom-Cinii27y.js +0 -2025
- package/dist/TeXAtom-DFdvwkN2.js +0 -2025
- package/dist/html-DKkfg_ss.js +0 -1587
- package/dist/html-DpiYkktJ.js +0 -1587
- package/dist/lengths-C0YS8_KC.js +0 -65
- package/dist/lengths-eBH2o1TO.js +0 -65
- package/dist/liteAdaptor-CB8lQj3d.js +0 -828
- package/dist/liteAdaptor-DvuW8HsZ.js +0 -828
- package/dist/mathjax-BVz9WLAG.js +0 -105
- package/dist/mathjax-BbWkqal4.js +0 -2
- package/dist/mathjax-BrFZxFhK.js +0 -2
- package/dist/mathjax-DdKmwllV.js +0 -105
- package/dist/mo-B60kIOAG.js +0 -3271
- package/dist/mo-cSv2058o.js +0 -3271
- package/dist/svg-BDTt4xHZ.js +0 -23879
- package/dist/svg-DzbC3CbJ.js +0 -23879
- package/dist/tex-CRhAZgfS.js +0 -401
- package/dist/tex-D3LEgNlQ.js +0 -401
|
@@ -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 };
|