manim-web 0.3.18 → 0.3.20

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 (136) hide show
  1. package/README.md +26 -40
  2. package/dist/AllPackages-B0GtkYjD.js +7912 -0
  3. package/dist/AllPackages-BIAELuhU.js +7912 -0
  4. package/dist/BaseConfiguration-CDf44lxS.js +4402 -0
  5. package/dist/BaseConfiguration-Chcqjv9L.js +4402 -0
  6. package/dist/Entities-B_gwJfrn.js +458 -0
  7. package/dist/Entities-CmJkmuw_.js +458 -0
  8. package/dist/GifExporter-C9lP34Iu.js +338 -0
  9. package/dist/GifExporter-DBak5Vk7.js +338 -0
  10. package/dist/InputJax-C5sGfjJ8.js +43 -0
  11. package/dist/InputJax-Jb4hSThK.js +43 -0
  12. package/dist/MathItem-BmK41eqe.js +77 -0
  13. package/dist/MathItem-C_mZyaeT.js +77 -0
  14. package/dist/Options-Ch1vGsgd.js +188 -0
  15. package/dist/Options-V6ag48Dv.js +188 -0
  16. package/dist/PrioritizedList-DkoCmqPk.js +36 -0
  17. package/dist/PrioritizedList-eKTii0tW.js +36 -0
  18. package/dist/Styles-De4BjKiV.js +411 -0
  19. package/dist/Styles-DgoiBrzf.js +411 -0
  20. package/dist/TeXAtom-DT2wCvcU.js +2025 -0
  21. package/dist/TeXAtom-JogI0lus.js +2025 -0
  22. package/dist/VideoExporter-Bdtz_pWv.js +102 -0
  23. package/dist/VideoExporter-Vjfsnv1h.js +102 -0
  24. package/dist/animation/creation/Create.d.ts +1 -1
  25. package/dist/animation/movement/Rotate.d.ts +2 -0
  26. package/dist/animation/movement/Rotate.d.ts.map +1 -1
  27. package/dist/animation/movement/Scale.d.ts +2 -0
  28. package/dist/animation/movement/Scale.d.ts.map +1 -1
  29. package/dist/animation/transform/ApplyTransforms.d.ts +1 -2
  30. package/dist/animation/transform/ApplyTransforms.d.ts.map +1 -1
  31. package/dist/animation/transform/MovementTransforms.d.ts +8 -0
  32. package/dist/animation/transform/MovementTransforms.d.ts.map +1 -1
  33. package/dist/animation/transform/Transform.d.ts +3 -0
  34. package/dist/animation/transform/Transform.d.ts.map +1 -1
  35. package/dist/animation/utility/index.d.ts +2 -0
  36. package/dist/animation/utility/index.d.ts.map +1 -1
  37. package/dist/chunk-3e0lkp8x.js +23 -0
  38. package/dist/constants/fontRender.d.ts +19 -0
  39. package/dist/constants/fontRender.d.ts.map +1 -0
  40. package/dist/constants/index.d.ts.map +1 -1
  41. package/dist/core/Camera.d.ts +19 -6
  42. package/dist/core/Camera.d.ts.map +1 -1
  43. package/dist/core/CameraFrame.d.ts +0 -2
  44. package/dist/core/CameraFrame.d.ts.map +1 -1
  45. package/dist/core/Group.d.ts +2 -2
  46. package/dist/core/Group.d.ts.map +1 -1
  47. package/dist/core/Mobject.d.ts +26 -6
  48. package/dist/core/Mobject.d.ts.map +1 -1
  49. package/dist/core/MobjectState.d.ts +23 -2
  50. package/dist/core/MobjectState.d.ts.map +1 -1
  51. package/dist/core/MobjectTraversal.d.ts +25 -0
  52. package/dist/core/MobjectTraversal.d.ts.map +1 -0
  53. package/dist/core/Scene.d.ts +7 -1
  54. package/dist/core/Scene.d.ts.map +1 -1
  55. package/dist/core/ThreeDScene.d.ts +19 -0
  56. package/dist/core/ThreeDScene.d.ts.map +1 -1
  57. package/dist/core/VGroup.d.ts +1 -1
  58. package/dist/core/VGroup.d.ts.map +1 -1
  59. package/dist/core/VMobject.d.ts +20 -1
  60. package/dist/core/VMobject.d.ts.map +1 -1
  61. package/dist/core/VMobjectGeometry.d.ts +2 -1
  62. package/dist/core/VMobjectGeometry.d.ts.map +1 -1
  63. package/dist/html-53__O8r2.js +1587 -0
  64. package/dist/html-DfHFh5II.js +1587 -0
  65. package/dist/index.d.ts +1 -1
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +4 -579
  68. package/dist/integrations/react.js +144 -735
  69. package/dist/integrations/vue.js +109 -735
  70. package/dist/interaction/Draggable.d.ts.map +1 -1
  71. package/dist/interaction/OrbitControls.d.ts +2 -0
  72. package/dist/interaction/OrbitControls.d.ts.map +1 -1
  73. package/dist/lengths-3epoqRj7.js +65 -0
  74. package/dist/lengths-B-bX9Tfk.js +65 -0
  75. package/dist/liteAdaptor-BxFvlO-q.js +828 -0
  76. package/dist/liteAdaptor-CsOIKw2g.js +828 -0
  77. package/dist/manim-web.browser.js +72994 -83815
  78. package/dist/mathjax-Bkrmftxh.js +102 -0
  79. package/dist/mathjax-DBrTNl9C.js +102 -0
  80. package/dist/mo-AzagC5AD.js +3271 -0
  81. package/dist/mo-I_6dyJsk.js +3271 -0
  82. package/dist/mobjects/geometry/AngleShapes.d.ts +16 -0
  83. package/dist/mobjects/geometry/AngleShapes.d.ts.map +1 -1
  84. package/dist/mobjects/geometry/DashedLine.d.ts +2 -2
  85. package/dist/mobjects/geometry/DashedLine.d.ts.map +1 -1
  86. package/dist/mobjects/graphing/Axes.d.ts +2 -2
  87. package/dist/mobjects/graphing/Axes.d.ts.map +1 -1
  88. package/dist/mobjects/graphing/ComplexPlane.d.ts +4 -1
  89. package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -1
  90. package/dist/mobjects/matrix/Matrix.d.ts +2 -2
  91. package/dist/mobjects/matrix/Matrix.d.ts.map +1 -1
  92. package/dist/mobjects/point/PGroup.d.ts +1 -1
  93. package/dist/mobjects/point/PGroup.d.ts.map +1 -1
  94. package/dist/mobjects/point/PMobject.d.ts +1 -1
  95. package/dist/mobjects/point/PMobject.d.ts.map +1 -1
  96. package/dist/mobjects/svg/Brace.d.ts +3 -3
  97. package/dist/mobjects/svg/Brace.d.ts.map +1 -1
  98. package/dist/mobjects/table/Table.d.ts +4 -4
  99. package/dist/mobjects/table/Table.d.ts.map +1 -1
  100. package/dist/mobjects/text/MathJaxRenderer.d.ts +4 -2
  101. package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -1
  102. package/dist/mobjects/text/MathTex.d.ts +68 -202
  103. package/dist/mobjects/text/MathTex.d.ts.map +1 -1
  104. package/dist/mobjects/text/MathTexImage.d.ts +258 -0
  105. package/dist/mobjects/text/MathTexImage.d.ts.map +1 -0
  106. package/dist/mobjects/text/MathTexParts.d.ts +10 -10
  107. package/dist/mobjects/text/MathTexParts.d.ts.map +1 -1
  108. package/dist/mobjects/text/Tex.d.ts +2 -7
  109. package/dist/mobjects/text/Tex.d.ts.map +1 -1
  110. package/dist/mobjects/text/Text.d.ts +2 -2
  111. package/dist/mobjects/text/Text.d.ts.map +1 -1
  112. package/dist/mobjects/text/Variable.d.ts +5 -5
  113. package/dist/mobjects/text/Variable.d.ts.map +1 -1
  114. package/dist/mobjects/text/index.d.ts +2 -2
  115. package/dist/mobjects/text/index.d.ts.map +1 -1
  116. package/dist/mobjects/text/katexStyles.d.ts.map +1 -1
  117. package/dist/mobjects/text/svgPathParser.d.ts.map +1 -1
  118. package/dist/mobjects/three-d/ThreeDAxes.d.ts +113 -9
  119. package/dist/mobjects/three-d/ThreeDAxes.d.ts.map +1 -1
  120. package/dist/player/Player.d.ts +8 -2
  121. package/dist/player/Player.d.ts.map +1 -1
  122. package/dist/player/PlayerController.d.ts +2 -0
  123. package/dist/player/PlayerController.d.ts.map +1 -1
  124. package/dist/player/PlayerUI.d.ts +5 -0
  125. package/dist/player/PlayerUI.d.ts.map +1 -1
  126. package/dist/src-Db7QTr4S.js +60248 -0
  127. package/dist/svg-CoGQ_sAt.js +23880 -0
  128. package/dist/svg-DiIG93Lr.js +23880 -0
  129. package/dist/tex-ChPKMfdv.js +401 -0
  130. package/dist/tex-hYZcjadW.js +401 -0
  131. package/dist/utils/math.d.ts +45 -0
  132. package/dist/utils/math.d.ts.map +1 -1
  133. package/package.json +6 -4
  134. package/dist/featureFlags-H97tY2Rw.js +0 -59814
  135. package/dist/mobjects/text/MathTexSVG.d.ts +0 -102
  136. package/dist/mobjects/text/MathTexSVG.d.ts.map +0 -1
@@ -0,0 +1,102 @@
1
+ import { t as e } from "./chunk-3e0lkp8x.js";
2
+ import { t } from "./PrioritizedList-eKTii0tW.js";
3
+ //#region node_modules/mathjax-full/js/util/Retries.js
4
+ var n = /* @__PURE__ */ e(((e) => {
5
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.retryAfter = e.handleRetriesFor = void 0;
6
+ function t(e) {
7
+ return new Promise(function t(n, r) {
8
+ try {
9
+ n(e());
10
+ } catch (e) {
11
+ e.retry && e.retry instanceof Promise ? e.retry.then(function() {
12
+ return t(n, r);
13
+ }).catch(function(e) {
14
+ return r(e);
15
+ }) : e.restart && e.restart.isCallback ? MathJax.Callback.After(function() {
16
+ return t(n, r);
17
+ }, e.restart) : r(e);
18
+ }
19
+ });
20
+ }
21
+ e.handleRetriesFor = t;
22
+ function n(e) {
23
+ var t = /* @__PURE__ */ Error("MathJax retry");
24
+ throw t.retry = e, t;
25
+ }
26
+ e.retryAfter = n;
27
+ })), r = /* @__PURE__ */ e(((e) => {
28
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.VERSION = void 0, e.VERSION = "3.2.2";
29
+ })), i = /* @__PURE__ */ e(((e) => {
30
+ var n = e && e.__extends || (function() {
31
+ var e = function(t, n) {
32
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
33
+ e.__proto__ = t;
34
+ } || function(e, t) {
35
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
36
+ }, e(t, n);
37
+ };
38
+ return function(t, n) {
39
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
40
+ e(t, n);
41
+ function r() {
42
+ this.constructor = t;
43
+ }
44
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
45
+ };
46
+ })(), r = e && e.__values || function(e) {
47
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
48
+ if (n) return n.call(e);
49
+ if (e && typeof e.length == "number") return { next: function() {
50
+ return e && r >= e.length && (e = void 0), {
51
+ value: e && e[r++],
52
+ done: !e
53
+ };
54
+ } };
55
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
56
+ };
57
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.HandlerList = void 0, e.HandlerList = function(e) {
58
+ n(t, e);
59
+ function t() {
60
+ return e !== null && e.apply(this, arguments) || this;
61
+ }
62
+ return t.prototype.register = function(e) {
63
+ return this.add(e, e.priority);
64
+ }, t.prototype.unregister = function(e) {
65
+ this.remove(e);
66
+ }, t.prototype.handlesDocument = function(e) {
67
+ var t, n;
68
+ try {
69
+ for (var i = r(this), a = i.next(); !a.done; a = i.next()) {
70
+ var o = a.value.item;
71
+ if (o.handlesDocument(e)) return o;
72
+ }
73
+ } catch (e) {
74
+ t = { error: e };
75
+ } finally {
76
+ try {
77
+ a && !a.done && (n = i.return) && n.call(i);
78
+ } finally {
79
+ if (t) throw t.error;
80
+ }
81
+ }
82
+ throw Error("Can't find handler for document");
83
+ }, t.prototype.document = function(e, t) {
84
+ return t === void 0 && (t = null), this.handlesDocument(e).create(e, t);
85
+ }, t;
86
+ }(t().PrioritizedList);
87
+ })), a = /* @__PURE__ */ e(((e) => {
88
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.mathjax = void 0;
89
+ var t = r(), a = i(), o = n();
90
+ e.mathjax = {
91
+ version: t.VERSION,
92
+ handlers: new a.HandlerList(),
93
+ document: function(t, n) {
94
+ return e.mathjax.handlers.document(t, n);
95
+ },
96
+ handleRetriesFor: o.handleRetriesFor,
97
+ retryAfter: o.retryAfter,
98
+ asyncLoad: null
99
+ };
100
+ }));
101
+ //#endregion
102
+ export { n, a as t };
@@ -0,0 +1,102 @@
1
+ import { t as e } from "./chunk-3e0lkp8x.js";
2
+ import { t } from "./PrioritizedList-DkoCmqPk.js";
3
+ //#region node_modules/mathjax-full/js/util/Retries.js
4
+ var n = /* @__PURE__ */ e(((e) => {
5
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.retryAfter = e.handleRetriesFor = void 0;
6
+ function t(e) {
7
+ return new Promise(function t(n, r) {
8
+ try {
9
+ n(e());
10
+ } catch (e) {
11
+ e.retry && e.retry instanceof Promise ? e.retry.then(function() {
12
+ return t(n, r);
13
+ }).catch(function(e) {
14
+ return r(e);
15
+ }) : e.restart && e.restart.isCallback ? MathJax.Callback.After(function() {
16
+ return t(n, r);
17
+ }, e.restart) : r(e);
18
+ }
19
+ });
20
+ }
21
+ e.handleRetriesFor = t;
22
+ function n(e) {
23
+ var t = /* @__PURE__ */ Error("MathJax retry");
24
+ throw t.retry = e, t;
25
+ }
26
+ e.retryAfter = n;
27
+ })), r = /* @__PURE__ */ e(((e) => {
28
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.VERSION = void 0, e.VERSION = "3.2.2";
29
+ })), i = /* @__PURE__ */ e(((e) => {
30
+ var n = e && e.__extends || (function() {
31
+ var e = function(t, n) {
32
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
33
+ e.__proto__ = t;
34
+ } || function(e, t) {
35
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
36
+ }, e(t, n);
37
+ };
38
+ return function(t, n) {
39
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
40
+ e(t, n);
41
+ function r() {
42
+ this.constructor = t;
43
+ }
44
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
45
+ };
46
+ })(), r = e && e.__values || function(e) {
47
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
48
+ if (n) return n.call(e);
49
+ if (e && typeof e.length == "number") return { next: function() {
50
+ return e && r >= e.length && (e = void 0), {
51
+ value: e && e[r++],
52
+ done: !e
53
+ };
54
+ } };
55
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
56
+ };
57
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.HandlerList = void 0, e.HandlerList = function(e) {
58
+ n(t, e);
59
+ function t() {
60
+ return e !== null && e.apply(this, arguments) || this;
61
+ }
62
+ return t.prototype.register = function(e) {
63
+ return this.add(e, e.priority);
64
+ }, t.prototype.unregister = function(e) {
65
+ this.remove(e);
66
+ }, t.prototype.handlesDocument = function(e) {
67
+ var t, n;
68
+ try {
69
+ for (var i = r(this), a = i.next(); !a.done; a = i.next()) {
70
+ var o = a.value.item;
71
+ if (o.handlesDocument(e)) return o;
72
+ }
73
+ } catch (e) {
74
+ t = { error: e };
75
+ } finally {
76
+ try {
77
+ a && !a.done && (n = i.return) && n.call(i);
78
+ } finally {
79
+ if (t) throw t.error;
80
+ }
81
+ }
82
+ throw Error("Can't find handler for document");
83
+ }, t.prototype.document = function(e, t) {
84
+ return t === void 0 && (t = null), this.handlesDocument(e).create(e, t);
85
+ }, t;
86
+ }(t().PrioritizedList);
87
+ })), a = /* @__PURE__ */ e(((e) => {
88
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.mathjax = void 0;
89
+ var t = r(), a = i(), o = n();
90
+ e.mathjax = {
91
+ version: t.VERSION,
92
+ handlers: new a.HandlerList(),
93
+ document: function(t, n) {
94
+ return e.mathjax.handlers.document(t, n);
95
+ },
96
+ handleRetriesFor: o.handleRetriesFor,
97
+ retryAfter: o.retryAfter,
98
+ asyncLoad: null
99
+ };
100
+ }));
101
+ //#endregion
102
+ export { n, a as t };