manim-web 0.15.1 → 0.17.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/dist/a11y/ariaNarration.d.ts +70 -0
- package/dist/a11y/ariaNarration.d.ts.map +1 -0
- package/dist/a11y/captions.d.ts +71 -0
- package/dist/a11y/captions.d.ts.map +1 -0
- package/dist/a11y/reducedMotion.d.ts +68 -0
- package/dist/a11y/reducedMotion.d.ts.map +1 -0
- package/dist/core/Scene.d.ts.map +1 -1
- package/dist/index.d.ts +7 -2
- 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/manim-web.browser.js +2754 -1841
- package/dist/mobjects/graph/DiGraph.d.ts.map +1 -1
- package/dist/mobjects/graph/GenericGraph.d.ts +15 -0
- package/dist/mobjects/graph/GenericGraph.d.ts.map +1 -1
- package/dist/mobjects/graph/graphEdgeDecorations.d.ts +27 -0
- package/dist/mobjects/graph/graphEdgeDecorations.d.ts.map +1 -0
- package/dist/mobjects/graph/graphTypes.d.ts +8 -0
- package/dist/mobjects/graph/graphTypes.d.ts.map +1 -1
- package/dist/mobjects/graphing/ContourPlot.d.ts +77 -0
- package/dist/mobjects/graphing/ContourPlot.d.ts.map +1 -0
- package/dist/mobjects/graphing/HeatMap.d.ts +85 -0
- package/dist/mobjects/graphing/HeatMap.d.ts.map +1 -0
- package/dist/mobjects/graphing/VectorField.d.ts +53 -2
- package/dist/mobjects/graphing/VectorField.d.ts.map +1 -1
- package/dist/mobjects/graphing/colormap.d.ts +34 -0
- package/dist/mobjects/graphing/colormap.d.ts.map +1 -0
- package/dist/mobjects/graphing/index.d.ts +5 -1
- package/dist/mobjects/graphing/index.d.ts.map +1 -1
- package/dist/mobjects/graphing/marchingSquares.d.ts +26 -0
- package/dist/mobjects/graphing/marchingSquares.d.ts.map +1 -0
- package/dist/mobjects/three-d/ImplicitSurface.d.ts +122 -0
- package/dist/mobjects/three-d/ImplicitSurface.d.ts.map +1 -0
- package/dist/mobjects/three-d/index.d.ts +2 -0
- package/dist/mobjects/three-d/index.d.ts.map +1 -1
- package/dist/mobjects/three-d/marchingCubes.d.ts +47 -0
- package/dist/mobjects/three-d/marchingCubes.d.ts.map +1 -0
- package/dist/{src-CD-vS04k.js → src-BDtZsFr6.js} +2737 -1824
- package/dist/utils/oklab.d.ts +75 -0
- package/dist/utils/oklab.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { Vector3Tuple } from '../../core/Mobject';
|
|
2
|
+
import { Mobject3D } from './Mobject3D';
|
|
3
|
+
import { ScalarField3D } from './marchingCubes';
|
|
4
|
+
import * as THREE from 'three';
|
|
5
|
+
/**
|
|
6
|
+
* Options for creating an ImplicitSurface.
|
|
7
|
+
*/
|
|
8
|
+
export interface ImplicitSurfaceOptions {
|
|
9
|
+
/** The scalar field f(x, y, z). The surface is the level set f = isoLevel. */
|
|
10
|
+
func: ScalarField3D;
|
|
11
|
+
/** X range [min, max]. Default: [-2, 2] */
|
|
12
|
+
xRange?: [number, number];
|
|
13
|
+
/** Y range [min, max]. Default: [-2, 2] */
|
|
14
|
+
yRange?: [number, number];
|
|
15
|
+
/** Z range [min, max]. Default: [-2, 2] */
|
|
16
|
+
zRange?: [number, number];
|
|
17
|
+
/** Grid cells per axis for the marching-cubes sampling. Default: 24 */
|
|
18
|
+
resolution?: number;
|
|
19
|
+
/** The iso level of the extracted surface. Default: 0 */
|
|
20
|
+
isoLevel?: number;
|
|
21
|
+
/** Color as CSS color string. Default: '#58c4dd' (Manim blue) */
|
|
22
|
+
color?: string;
|
|
23
|
+
/** Opacity from 0 to 1. Default: 1 */
|
|
24
|
+
opacity?: number;
|
|
25
|
+
/** Render as wireframe. Default: false */
|
|
26
|
+
wireframe?: boolean;
|
|
27
|
+
/** Render both sides. Default: true */
|
|
28
|
+
doubleSided?: boolean;
|
|
29
|
+
/** Center position [x, y, z]. Default: [0, 0, 0] */
|
|
30
|
+
center?: Vector3Tuple;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* ImplicitSurface - the 3D isosurface f(x, y, z) = isoLevel.
|
|
34
|
+
*
|
|
35
|
+
* The surface is built with marching cubes (see {@link marchingCubes}) over a
|
|
36
|
+
* sampled grid, so an arbitrary smooth scalar field can be visualised without a
|
|
37
|
+
* parametrisation. It extends {@link Mobject3D} and reuses the Surface3D
|
|
38
|
+
* material and depth conventions, including the transparent depth prepass from
|
|
39
|
+
* issue #416, so a translucent isosurface occludes itself correctly.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```typescript
|
|
43
|
+
* // A unit sphere: x^2 + y^2 + z^2 = 1
|
|
44
|
+
* const sphere = new ImplicitSurface({
|
|
45
|
+
* func: (x, y, z) => x * x + y * y + z * z,
|
|
46
|
+
* isoLevel: 1,
|
|
47
|
+
* resolution: 32,
|
|
48
|
+
* });
|
|
49
|
+
*
|
|
50
|
+
* // A torus implicit surface
|
|
51
|
+
* const torus = new ImplicitSurface({
|
|
52
|
+
* func: (x, y, z) => {
|
|
53
|
+
* const q = Math.sqrt(x * x + y * y) - 1;
|
|
54
|
+
* return q * q + z * z;
|
|
55
|
+
* },
|
|
56
|
+
* isoLevel: 0.09,
|
|
57
|
+
* opacity: 0.6,
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare class ImplicitSurface extends Mobject3D {
|
|
62
|
+
private _func;
|
|
63
|
+
private _xRange;
|
|
64
|
+
private _yRange;
|
|
65
|
+
private _zRange;
|
|
66
|
+
private _resolution;
|
|
67
|
+
private _isoLevel;
|
|
68
|
+
private _wireframe;
|
|
69
|
+
private _doubleSided;
|
|
70
|
+
private _centerPoint;
|
|
71
|
+
private _positions;
|
|
72
|
+
private _triangleCount;
|
|
73
|
+
constructor(options: ImplicitSurfaceOptions);
|
|
74
|
+
/** Run marching cubes and cache the resulting triangle soup. */
|
|
75
|
+
private _computeSurface;
|
|
76
|
+
/** Build an indexed-free BufferGeometry with smooth normals from the cache. */
|
|
77
|
+
private _buildGeometry;
|
|
78
|
+
/**
|
|
79
|
+
* The depth prepass only helps a translucent solid. An opaque surface
|
|
80
|
+
* already writes depth, a wireframe must stay visible, and a faded-out
|
|
81
|
+
* surface must not depth-block other transparent objects.
|
|
82
|
+
*/
|
|
83
|
+
private _prepassEnabled;
|
|
84
|
+
/** Enable or disable the prepass; disabled means skipped by the renderer. */
|
|
85
|
+
private _applyPrepassState;
|
|
86
|
+
/** Find the depth-prepass child mesh, if this surface has one. */
|
|
87
|
+
private _getPrepassMesh;
|
|
88
|
+
/**
|
|
89
|
+
* Create the Three.js mesh. A transparent surface renders in two passes to
|
|
90
|
+
* fix self-occlusion (issue #416): a depth-only prepass writes the front-most
|
|
91
|
+
* layer, then the color pass depth-tests against it. The prepass mesh is
|
|
92
|
+
* created before the color mesh so its lower object.id wins three.js'
|
|
93
|
+
* reversePainterSortStable tiebreak and draws first.
|
|
94
|
+
*/
|
|
95
|
+
protected _createThreeObject(): THREE.Object3D;
|
|
96
|
+
/** Sync material properties to the Three.js object. */
|
|
97
|
+
protected _syncMaterialToThree(): void;
|
|
98
|
+
/** Recompute the surface and rebind the geometry on both meshes. */
|
|
99
|
+
private _updateGeometry;
|
|
100
|
+
/** The flat vertex positions of the surface triangles. */
|
|
101
|
+
getPositions(): Float32Array;
|
|
102
|
+
/** The number of triangles in the surface. */
|
|
103
|
+
getTriangleCount(): number;
|
|
104
|
+
/** Get the scalar field. */
|
|
105
|
+
getFunc(): ScalarField3D;
|
|
106
|
+
/** Set a new scalar field and rebuild the surface. */
|
|
107
|
+
setFunc(func: ScalarField3D): this;
|
|
108
|
+
/** Get the iso level. */
|
|
109
|
+
getIsoLevel(): number;
|
|
110
|
+
/** Set the iso level and rebuild the surface. */
|
|
111
|
+
setIsoLevel(isoLevel: number): this;
|
|
112
|
+
/** Get the grid resolution. */
|
|
113
|
+
getResolution(): number;
|
|
114
|
+
/** Set the grid resolution and rebuild the surface. */
|
|
115
|
+
setResolution(resolution: number): this;
|
|
116
|
+
/** Whether wireframe mode is enabled. */
|
|
117
|
+
isWireframe(): boolean;
|
|
118
|
+
/** Set wireframe mode. */
|
|
119
|
+
setWireframe(value: boolean): this;
|
|
120
|
+
copy(): ImplicitSurface;
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=ImplicitSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImplicitSurface.d.ts","sourceRoot":"","sources":["../../../src/mobjects/three-d/ImplicitSurface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAiB,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,8EAA8E;IAC9E,IAAI,EAAE,aAAa,CAAC;IACpB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,2CAA2C;IAC3C,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,2CAA2C;IAC3C,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uCAAuC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC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,EAAE,MAAM,GAAG,IAAI;IAMvC,yCAAyC;IACzC,WAAW,IAAI,OAAO;IAItB,0BAA0B;IAC1B,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAMzB,IAAI,IAAI,eAAe;CAiBjC"}
|
|
@@ -18,4 +18,6 @@ export { TexturedSurface, texturedSphere, type TexturedSurfaceOptions, type Text
|
|
|
18
18
|
export { ThreeDAxes, type ThreeDAxesOptions } from './ThreeDAxes';
|
|
19
19
|
export { Prism, Dot3D, ThreeDVMobject, type PrismOptions, type Dot3DOptions, type ThreeDVMobjectOptions, } from './ThreeDExtensions';
|
|
20
20
|
export { ConvexHull3D, type ConvexHull3DOptions } from './ConvexHull3D';
|
|
21
|
+
export { marchingCubes, type MarchingCubesOptions, type MarchingCubesResult, type ScalarField3D, } from './marchingCubes';
|
|
22
|
+
export { ImplicitSurface, type ImplicitSurfaceOptions } from './ImplicitSurface';
|
|
21
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mobjects/three-d/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAGnD,OAAO,EACL,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,iB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GnD,OAAO,EACL,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAGnE,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,KAAK,wBAAwB,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,cAAc,EACd,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAGlE,OAAO,EACL,KAAK,EACL,KAAK,EACL,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,qBAAqB,GAC3B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAGxE,OAAO,EACL,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,aAAa,GACnB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marching-cubes isosurface extraction for a 3D scalar field.
|
|
3
|
+
*
|
|
4
|
+
* The algorithm samples a scalar field `f(x, y, z)` on a regular grid and
|
|
5
|
+
* extracts the triangle mesh of the level set `f = iso`. This module uses the
|
|
6
|
+
* marching-tetrahedra variant: it splits every grid cube into six tetrahedra
|
|
7
|
+
* that share the cube's main diagonal, then polygonises each tetrahedron. The
|
|
8
|
+
* tetrahedral form needs no 256-entry lookup table, so it is compact and
|
|
9
|
+
* watertight, at the cost of more triangles than classic marching cubes.
|
|
10
|
+
*
|
|
11
|
+
* The output is a non-indexed triangle soup as a flat `Float32Array`. Three.js
|
|
12
|
+
* recomputes smooth normals from it, and manim-web renders the surface
|
|
13
|
+
* double-sided, so triangle winding does not affect the shaded result.
|
|
14
|
+
*/
|
|
15
|
+
/** A scalar field sampled at a point in space. */
|
|
16
|
+
export type ScalarField3D = (x: number, y: number, z: number) => number;
|
|
17
|
+
/** Options that control how the grid is sampled. */
|
|
18
|
+
export interface MarchingCubesOptions {
|
|
19
|
+
/** The scalar field to polygonise. */
|
|
20
|
+
field: ScalarField3D;
|
|
21
|
+
/** X range as [min, max]. */
|
|
22
|
+
xRange: [number, number];
|
|
23
|
+
/** Y range as [min, max]. */
|
|
24
|
+
yRange: [number, number];
|
|
25
|
+
/** Z range as [min, max]. */
|
|
26
|
+
zRange: [number, number];
|
|
27
|
+
/** Grid cells per axis. A higher value gives a finer surface. */
|
|
28
|
+
resolution: number;
|
|
29
|
+
/** The iso level of the extracted surface. */
|
|
30
|
+
isoLevel: number;
|
|
31
|
+
}
|
|
32
|
+
/** The polygonised surface as a non-indexed triangle soup. */
|
|
33
|
+
export interface MarchingCubesResult {
|
|
34
|
+
/** Flat vertex positions: `[x0, y0, z0, x1, y1, z1, ...]`. */
|
|
35
|
+
positions: Float32Array;
|
|
36
|
+
/** The number of triangles. */
|
|
37
|
+
triangleCount: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Extract the isosurface `field = isoLevel` over the sampled grid.
|
|
41
|
+
*
|
|
42
|
+
* The grid holds `resolution` cells per axis, so it samples
|
|
43
|
+
* `(resolution + 1)^3` points. Field values are evaluated once per grid point
|
|
44
|
+
* and cached, so the output is deterministic for a given input.
|
|
45
|
+
*/
|
|
46
|
+
export declare function marchingCubes(options: MarchingCubesOptions): MarchingCubesResult;
|
|
47
|
+
//# sourceMappingURL=marchingCubes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marchingCubes.d.ts","sourceRoot":"","sources":["../../../src/mobjects/three-d/marchingCubes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,kDAAkD;AAClD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;AAExE,oDAAoD;AACpD,MAAM,WAAW,oBAAoB;IACnC,sCAAsC;IACtC,KAAK,EAAE,aAAa,CAAC;IACrB,6BAA6B;IAC7B,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,6BAA6B;IAC7B,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,6BAA6B;IAC7B,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,8DAA8D;AAC9D,MAAM,WAAW,mBAAmB;IAClC,8DAA8D;IAC9D,SAAS,EAAE,YAAY,CAAC;IACxB,+BAA+B;IAC/B,aAAa,EAAE,MAAM,CAAC;CACvB;AA8FD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,mBAAmB,CA8DhF"}
|