manim-web 0.13.0 → 0.15.0
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 +35 -19
- package/dist/animation/transform/MovementTransforms.d.ts.map +1 -1
- package/dist/export/chooseExporter.d.ts +19 -0
- package/dist/export/chooseExporter.d.ts.map +1 -0
- package/dist/export/index.d.ts +1 -0
- package/dist/export/index.d.ts.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/integrations/react.js +16 -16
- package/dist/integrations/vue.js +13 -13
- package/dist/interaction/DynamicMatrix.d.ts +164 -0
- package/dist/interaction/DynamicMatrix.d.ts.map +1 -0
- package/dist/interaction/index.d.ts +1 -0
- package/dist/interaction/index.d.ts.map +1 -1
- package/dist/manim-web.browser.js +1499 -624
- package/dist/mobjects/geo/ChoroplethMap.d.ts +72 -0
- package/dist/mobjects/geo/ChoroplethMap.d.ts.map +1 -0
- package/dist/mobjects/geo/Globe.d.ts +122 -0
- package/dist/mobjects/geo/Globe.d.ts.map +1 -0
- package/dist/mobjects/geo/colorScale.d.ts +45 -0
- package/dist/mobjects/geo/colorScale.d.ts.map +1 -0
- package/dist/mobjects/geo/geojson.d.ts +54 -0
- package/dist/mobjects/geo/geojson.d.ts.map +1 -0
- package/dist/mobjects/geo/index.d.ts +13 -0
- package/dist/mobjects/geo/index.d.ts.map +1 -0
- package/dist/mobjects/geo/projections.d.ts +53 -0
- package/dist/mobjects/geo/projections.d.ts.map +1 -0
- package/dist/mobjects/three-d/Line3D.d.ts.map +1 -1
- package/dist/player/ExportSettingsUI.d.ts +82 -0
- package/dist/player/ExportSettingsUI.d.ts.map +1 -0
- package/dist/player/Player.d.ts +50 -2
- package/dist/player/Player.d.ts.map +1 -1
- package/dist/player/PlayerUI.d.ts +15 -1
- package/dist/player/PlayerUI.d.ts.map +1 -1
- package/dist/player/SlideInteractionRenderer.d.ts +32 -0
- package/dist/player/SlideInteractionRenderer.d.ts.map +1 -0
- package/dist/player/index.d.ts +1 -0
- package/dist/player/index.d.ts.map +1 -1
- package/dist/rate-functions/spring.d.ts.map +1 -1
- package/dist/serialization/defaults.d.ts +13 -0
- package/dist/serialization/defaults.d.ts.map +1 -0
- package/dist/serialization/index.d.ts +15 -0
- package/dist/serialization/index.d.ts.map +1 -0
- package/dist/serialization/props.d.ts +16 -0
- package/dist/serialization/props.d.ts.map +1 -0
- package/dist/serialization/registry.d.ts +17 -0
- package/dist/serialization/registry.d.ts.map +1 -0
- package/dist/serialization/serialize.d.ts +24 -0
- package/dist/serialization/serialize.d.ts.map +1 -0
- package/dist/serialization/types.d.ts +70 -0
- package/dist/serialization/types.d.ts.map +1 -0
- package/dist/{src-BcBBUMTP.js → src-Da4luuzD.js} +1481 -606
- package/dist/test-setup/TestMobject.d.ts +23 -0
- package/dist/test-setup/TestMobject.d.ts.map +1 -0
- package/dist/utils/axis.d.ts +0 -1
- package/dist/utils/axis.d.ts.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Mobject, MobjectOptions } from '../core/Mobject';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
/**
|
|
4
|
+
* Minimal concrete Mobject for tests.
|
|
5
|
+
*
|
|
6
|
+
* The base {@link Mobject} is abstract and cannot be instantiated. Tests that
|
|
7
|
+
* need a plain, non-VMobject mobject (for example to exercise the opacity
|
|
8
|
+
* fallback path of an animation) use this stand-in. It implements only the
|
|
9
|
+
* abstract members with the smallest valid behavior:
|
|
10
|
+
* - `_createThreeObject` returns an empty Three.js object.
|
|
11
|
+
* - `copy` returns a new instance with the base attributes copied over.
|
|
12
|
+
* - `normalizeTransform` is a no-op that returns `this`.
|
|
13
|
+
*
|
|
14
|
+
* Keep it a direct subclass of Mobject (not VMobject) so tests that check
|
|
15
|
+
* non-VMobject behavior still exercise that path.
|
|
16
|
+
*/
|
|
17
|
+
export declare class TestMobject extends Mobject {
|
|
18
|
+
constructor(options?: MobjectOptions);
|
|
19
|
+
protected _createThreeObject(): THREE.Object3D;
|
|
20
|
+
copy(): Mobject;
|
|
21
|
+
normalizeTransform(): this;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=TestMobject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestMobject.d.ts","sourceRoot":"","sources":["../../src/test-setup/TestMobject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,qBAAa,WAAY,SAAQ,OAAO;gBAC1B,OAAO,CAAC,EAAE,cAAc;IAIpC,SAAS,CAAC,kBAAkB,IAAI,KAAK,CAAC,QAAQ;IAIrC,IAAI,IAAI,OAAO;IAMf,kBAAkB,IAAI,IAAI;CAGpC"}
|
package/dist/utils/axis.d.ts
CHANGED
package/dist/utils/axis.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axis.d.ts","sourceRoot":"","sources":["../../src/utils/axis.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEvC,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CASnE
|
|
1
|
+
{"version":3,"file":"axis.d.ts","sourceRoot":"","sources":["../../src/utils/axis.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEvC,wBAAgB,UAAU,CAAC,IAAI,EAAE,QAAQ,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CASnE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "manim-web",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Manim-like mathematical animation library for the web",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"build:browser": "vite build --config vite.browser.config.ts",
|
|
44
44
|
"preview": "vite preview",
|
|
45
45
|
"typecheck": "tsc --noEmit",
|
|
46
|
+
"typecheck:tests": "tsc -p tsconfig.test.json --noEmit",
|
|
46
47
|
"test": "vitest run",
|
|
47
48
|
"test:coverage": "vitest run --coverage",
|
|
48
49
|
"test:watch": "vitest",
|
|
@@ -104,6 +105,7 @@
|
|
|
104
105
|
"codemirror": "^6.0.2",
|
|
105
106
|
"eslint": "^10.0.2",
|
|
106
107
|
"eslint-config-prettier": "^10.1.8",
|
|
108
|
+
"fast-check": "^4.10.2",
|
|
107
109
|
"happy-dom": "^20.6.1",
|
|
108
110
|
"husky": "^9.1.7",
|
|
109
111
|
"jscpd": "^5.0.9",
|