manim-web 0.3.17 → 0.3.19

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 (130) hide show
  1. package/README.md +26 -40
  2. package/dist/AllPackages-C4Ha3Jps.js +7912 -0
  3. package/dist/AllPackages-Dwxf_-Ps.js +7912 -0
  4. package/dist/BaseConfiguration-D2fikupy.js +4402 -0
  5. package/dist/BaseConfiguration-DYpI8zxb.js +4402 -0
  6. package/dist/Entities-BxzKxtF2.js +458 -0
  7. package/dist/Entities-gIbwAkB6.js +458 -0
  8. package/dist/GifExporter-7EpPGupp.js +338 -0
  9. package/dist/GifExporter-DCrSD6FV.js +338 -0
  10. package/dist/InputJax-BszJvLkW.js +43 -0
  11. package/dist/InputJax-CgHBfQsv.js +43 -0
  12. package/dist/MathItem-4gYKatZT.js +77 -0
  13. package/dist/MathItem-BGJUnd1K.js +77 -0
  14. package/dist/Options-CQim5zsr.js +188 -0
  15. package/dist/Options-Cn9jv1mh.js +188 -0
  16. package/dist/PrioritizedList-C1R4aNEC.js +36 -0
  17. package/dist/PrioritizedList-lIkFMNlo.js +36 -0
  18. package/dist/Styles-Bi9Db-2J.js +411 -0
  19. package/dist/Styles-CzHPc-An.js +411 -0
  20. package/dist/TeXAtom-Cinii27y.js +2025 -0
  21. package/dist/TeXAtom-DFdvwkN2.js +2025 -0
  22. package/dist/VideoExporter-6w8xBpcV.js +102 -0
  23. package/dist/VideoExporter-DdQb18dC.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/Transform.d.ts +19 -0
  32. package/dist/animation/transform/Transform.d.ts.map +1 -1
  33. package/dist/animation/utility/index.d.ts +2 -0
  34. package/dist/animation/utility/index.d.ts.map +1 -1
  35. package/dist/chunk-DeC0fbbY.js +23 -0
  36. package/dist/core/AnimateProxy.d.ts +39 -0
  37. package/dist/core/AnimateProxy.d.ts.map +1 -0
  38. package/dist/core/CameraExtensions.d.ts +128 -0
  39. package/dist/core/CameraExtensions.d.ts.map +1 -1
  40. package/dist/core/Group.d.ts +2 -2
  41. package/dist/core/Group.d.ts.map +1 -1
  42. package/dist/core/Mobject.d.ts +40 -6
  43. package/dist/core/Mobject.d.ts.map +1 -1
  44. package/dist/core/MobjectState.d.ts +23 -2
  45. package/dist/core/MobjectState.d.ts.map +1 -1
  46. package/dist/core/NullRenderer.d.ts +42 -0
  47. package/dist/core/NullRenderer.d.ts.map +1 -0
  48. package/dist/core/Renderer.d.ts +17 -1
  49. package/dist/core/Renderer.d.ts.map +1 -1
  50. package/dist/core/Scene.d.ts +23 -5
  51. package/dist/core/Scene.d.ts.map +1 -1
  52. package/dist/core/ThreeDScene.d.ts +23 -2
  53. package/dist/core/ThreeDScene.d.ts.map +1 -1
  54. package/dist/core/VGroup.d.ts +8 -1
  55. package/dist/core/VGroup.d.ts.map +1 -1
  56. package/dist/core/ZoomedScene.d.ts +6 -2
  57. package/dist/core/ZoomedScene.d.ts.map +1 -1
  58. package/dist/html-DKkfg_ss.js +1587 -0
  59. package/dist/html-DpiYkktJ.js +1587 -0
  60. package/dist/index.d.ts +5 -3
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +4 -575
  63. package/dist/integrations/react.js +144 -731
  64. package/dist/integrations/vue.js +109 -731
  65. package/dist/interaction/Draggable.d.ts.map +1 -1
  66. package/dist/lengths-C0YS8_KC.js +65 -0
  67. package/dist/lengths-eBH2o1TO.js +65 -0
  68. package/dist/liteAdaptor-CB8lQj3d.js +828 -0
  69. package/dist/liteAdaptor-DvuW8HsZ.js +828 -0
  70. package/dist/manim-web.browser.js +72318 -83323
  71. package/dist/mathjax-BVz9WLAG.js +105 -0
  72. package/dist/mathjax-BbWkqal4.js +2 -0
  73. package/dist/mathjax-BrFZxFhK.js +2 -0
  74. package/dist/mathjax-DdKmwllV.js +105 -0
  75. package/dist/mo-B60kIOAG.js +3271 -0
  76. package/dist/mo-cSv2058o.js +3271 -0
  77. package/dist/mobjects/geometry/AngleShapes.d.ts +8 -0
  78. package/dist/mobjects/geometry/AngleShapes.d.ts.map +1 -1
  79. package/dist/mobjects/geometry/DashedLine.d.ts +2 -2
  80. package/dist/mobjects/geometry/DashedLine.d.ts.map +1 -1
  81. package/dist/mobjects/graphing/Axes.d.ts +2 -2
  82. package/dist/mobjects/graphing/Axes.d.ts.map +1 -1
  83. package/dist/mobjects/graphing/ComplexPlane.d.ts +4 -1
  84. package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -1
  85. package/dist/mobjects/matrix/Matrix.d.ts +2 -2
  86. package/dist/mobjects/matrix/Matrix.d.ts.map +1 -1
  87. package/dist/mobjects/point/PGroup.d.ts +1 -1
  88. package/dist/mobjects/point/PGroup.d.ts.map +1 -1
  89. package/dist/mobjects/point/PMobject.d.ts +1 -1
  90. package/dist/mobjects/point/PMobject.d.ts.map +1 -1
  91. package/dist/mobjects/svg/Brace.d.ts +3 -3
  92. package/dist/mobjects/svg/Brace.d.ts.map +1 -1
  93. package/dist/mobjects/table/Table.d.ts +4 -4
  94. package/dist/mobjects/table/Table.d.ts.map +1 -1
  95. package/dist/mobjects/text/Code.d.ts.map +1 -1
  96. package/dist/mobjects/text/DecimalNumber.d.ts.map +1 -1
  97. package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -1
  98. package/dist/mobjects/text/MathTex.d.ts +61 -202
  99. package/dist/mobjects/text/MathTex.d.ts.map +1 -1
  100. package/dist/mobjects/text/MathTexImage.d.ts +254 -0
  101. package/dist/mobjects/text/MathTexImage.d.ts.map +1 -0
  102. package/dist/mobjects/text/MathTexParts.d.ts +10 -10
  103. package/dist/mobjects/text/MathTexParts.d.ts.map +1 -1
  104. package/dist/mobjects/text/Tex.d.ts +2 -7
  105. package/dist/mobjects/text/Tex.d.ts.map +1 -1
  106. package/dist/mobjects/text/Text.d.ts.map +1 -1
  107. package/dist/mobjects/text/Variable.d.ts +5 -5
  108. package/dist/mobjects/text/Variable.d.ts.map +1 -1
  109. package/dist/mobjects/text/index.d.ts +2 -2
  110. package/dist/mobjects/text/index.d.ts.map +1 -1
  111. package/dist/mobjects/text/svgPathParser.d.ts.map +1 -1
  112. package/dist/mobjects/value-tracker/ValueTracker.d.ts +0 -14
  113. package/dist/mobjects/value-tracker/ValueTracker.d.ts.map +1 -1
  114. package/dist/player/Player.d.ts +8 -2
  115. package/dist/player/Player.d.ts.map +1 -1
  116. package/dist/player/PlayerController.d.ts +2 -0
  117. package/dist/player/PlayerController.d.ts.map +1 -1
  118. package/dist/player/PlayerUI.d.ts +5 -0
  119. package/dist/player/PlayerUI.d.ts.map +1 -1
  120. package/dist/src-0ifQdJUj.js +59703 -0
  121. package/dist/svg-BDTt4xHZ.js +23879 -0
  122. package/dist/svg-DzbC3CbJ.js +23879 -0
  123. package/dist/tex-CRhAZgfS.js +401 -0
  124. package/dist/tex-D3LEgNlQ.js +401 -0
  125. package/dist/utils/math.d.ts +7 -0
  126. package/dist/utils/math.d.ts.map +1 -1
  127. package/package.json +3 -2
  128. package/dist/featureFlags-RDWYX142.js +0 -59330
  129. package/dist/mobjects/text/MathTexSVG.d.ts +0 -102
  130. package/dist/mobjects/text/MathTexSVG.d.ts.map +0 -1
@@ -0,0 +1,105 @@
1
+ import { t as __commonJSMin } from "./chunk-DeC0fbbY.js";
2
+ import { t as require_PrioritizedList } from "./PrioritizedList-C1R4aNEC.js";
3
+ //#region node_modules/mathjax-full/js/util/Retries.js
4
+ var require_Retries = /* @__PURE__ */ __commonJSMin(((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
+ })), require_version = /* @__PURE__ */ __commonJSMin(((exports) => {
28
+ Object.defineProperty(exports, "__esModule", { value: !0 }), exports.VERSION = void 0, exports.VERSION = typeof PACKAGE_VERSION > "u" ? (function() {
29
+ var load = eval("require"), dirname = eval("__dirname"), path = load("path");
30
+ return load(path.resolve(dirname, "..", "..", "package.json")).version;
31
+ })() : PACKAGE_VERSION;
32
+ })), require_HandlerList = /* @__PURE__ */ __commonJSMin(((e) => {
33
+ var t = e && e.__extends || (function() {
34
+ var e = function(t, n) {
35
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
36
+ e.__proto__ = t;
37
+ } || function(e, t) {
38
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
39
+ }, e(t, n);
40
+ };
41
+ return function(t, n) {
42
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
43
+ e(t, n);
44
+ function r() {
45
+ this.constructor = t;
46
+ }
47
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
48
+ };
49
+ })(), n = e && e.__values || function(e) {
50
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
51
+ if (n) return n.call(e);
52
+ if (e && typeof e.length == "number") return { next: function() {
53
+ return e && r >= e.length && (e = void 0), {
54
+ value: e && e[r++],
55
+ done: !e
56
+ };
57
+ } };
58
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
59
+ };
60
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.HandlerList = void 0, e.HandlerList = function(e) {
61
+ t(r, e);
62
+ function r() {
63
+ return e !== null && e.apply(this, arguments) || this;
64
+ }
65
+ return r.prototype.register = function(e) {
66
+ return this.add(e, e.priority);
67
+ }, r.prototype.unregister = function(e) {
68
+ this.remove(e);
69
+ }, r.prototype.handlesDocument = function(e) {
70
+ var t, r;
71
+ try {
72
+ for (var i = n(this), a = i.next(); !a.done; a = i.next()) {
73
+ var o = a.value.item;
74
+ if (o.handlesDocument(e)) return o;
75
+ }
76
+ } catch (e) {
77
+ t = { error: e };
78
+ } finally {
79
+ try {
80
+ a && !a.done && (r = i.return) && r.call(i);
81
+ } finally {
82
+ if (t) throw t.error;
83
+ }
84
+ }
85
+ throw Error("Can't find handler for document");
86
+ }, r.prototype.document = function(e, t) {
87
+ return t === void 0 && (t = null), this.handlesDocument(e).create(e, t);
88
+ }, r;
89
+ }(require_PrioritizedList().PrioritizedList);
90
+ })), require_mathjax = /* @__PURE__ */ __commonJSMin(((e) => {
91
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.mathjax = void 0;
92
+ var t = require_version(), n = require_HandlerList(), r = require_Retries();
93
+ e.mathjax = {
94
+ version: t.VERSION,
95
+ handlers: new n.HandlerList(),
96
+ document: function(t, n) {
97
+ return e.mathjax.handlers.document(t, n);
98
+ },
99
+ handleRetriesFor: r.handleRetriesFor,
100
+ retryAfter: r.retryAfter,
101
+ asyncLoad: null
102
+ };
103
+ }));
104
+ //#endregion
105
+ export { require_Retries as n, require_mathjax as t };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./mathjax-DdKmwllV.js";
2
+ export default e();
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./mathjax-BVz9WLAG.js";
2
+ export default e();
@@ -0,0 +1,105 @@
1
+ import { t as __commonJSMin } from "./chunk-DeC0fbbY.js";
2
+ import { t as require_PrioritizedList } from "./PrioritizedList-lIkFMNlo.js";
3
+ //#region node_modules/mathjax-full/js/util/Retries.js
4
+ var require_Retries = /* @__PURE__ */ __commonJSMin(((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
+ })), require_version = /* @__PURE__ */ __commonJSMin(((exports) => {
28
+ Object.defineProperty(exports, "__esModule", { value: !0 }), exports.VERSION = void 0, exports.VERSION = typeof PACKAGE_VERSION > "u" ? (function() {
29
+ var load = eval("require"), dirname = eval("__dirname"), path = load("path");
30
+ return load(path.resolve(dirname, "..", "..", "package.json")).version;
31
+ })() : PACKAGE_VERSION;
32
+ })), require_HandlerList = /* @__PURE__ */ __commonJSMin(((e) => {
33
+ var t = e && e.__extends || (function() {
34
+ var e = function(t, n) {
35
+ return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
36
+ e.__proto__ = t;
37
+ } || function(e, t) {
38
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
39
+ }, e(t, n);
40
+ };
41
+ return function(t, n) {
42
+ if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
43
+ e(t, n);
44
+ function r() {
45
+ this.constructor = t;
46
+ }
47
+ t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
48
+ };
49
+ })(), n = e && e.__values || function(e) {
50
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
51
+ if (n) return n.call(e);
52
+ if (e && typeof e.length == "number") return { next: function() {
53
+ return e && r >= e.length && (e = void 0), {
54
+ value: e && e[r++],
55
+ done: !e
56
+ };
57
+ } };
58
+ throw TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
59
+ };
60
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.HandlerList = void 0, e.HandlerList = function(e) {
61
+ t(r, e);
62
+ function r() {
63
+ return e !== null && e.apply(this, arguments) || this;
64
+ }
65
+ return r.prototype.register = function(e) {
66
+ return this.add(e, e.priority);
67
+ }, r.prototype.unregister = function(e) {
68
+ this.remove(e);
69
+ }, r.prototype.handlesDocument = function(e) {
70
+ var t, r;
71
+ try {
72
+ for (var i = n(this), a = i.next(); !a.done; a = i.next()) {
73
+ var o = a.value.item;
74
+ if (o.handlesDocument(e)) return o;
75
+ }
76
+ } catch (e) {
77
+ t = { error: e };
78
+ } finally {
79
+ try {
80
+ a && !a.done && (r = i.return) && r.call(i);
81
+ } finally {
82
+ if (t) throw t.error;
83
+ }
84
+ }
85
+ throw Error("Can't find handler for document");
86
+ }, r.prototype.document = function(e, t) {
87
+ return t === void 0 && (t = null), this.handlesDocument(e).create(e, t);
88
+ }, r;
89
+ }(require_PrioritizedList().PrioritizedList);
90
+ })), require_mathjax = /* @__PURE__ */ __commonJSMin(((e) => {
91
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.mathjax = void 0;
92
+ var t = require_version(), n = require_HandlerList(), r = require_Retries();
93
+ e.mathjax = {
94
+ version: t.VERSION,
95
+ handlers: new n.HandlerList(),
96
+ document: function(t, n) {
97
+ return e.mathjax.handlers.document(t, n);
98
+ },
99
+ handleRetriesFor: r.handleRetriesFor,
100
+ retryAfter: r.retryAfter,
101
+ asyncLoad: null
102
+ };
103
+ }));
104
+ //#endregion
105
+ export { require_Retries as n, require_mathjax as t };