manim-web 0.3.21 → 0.3.23
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 +20 -0
- package/dist/{svg-swSF_J59.js → MathJaxBundle-xSidSV0E.js} +18571 -7242
- package/dist/animation/Animation.d.ts.map +1 -1
- package/dist/animation/AnimationGroup.d.ts.map +1 -1
- package/dist/animation/MasterTimeline.d.ts +88 -1
- package/dist/animation/MasterTimeline.d.ts.map +1 -1
- package/dist/animation/Timeline.d.ts.map +1 -1
- package/dist/animation/changing/index.d.ts +2 -2
- package/dist/animation/changing/index.d.ts.map +1 -1
- package/dist/animation/creation/Create.d.ts.map +1 -1
- package/dist/animation/growing/index.d.ts +8 -5
- package/dist/animation/growing/index.d.ts.map +1 -1
- package/dist/animation/movement/Homotopy.d.ts +37 -7
- package/dist/animation/movement/Homotopy.d.ts.map +1 -1
- package/dist/animation/movement/MoveAlongPath.d.ts.map +1 -1
- package/dist/animation/movement/Rotate.d.ts +2 -7
- package/dist/animation/movement/Rotate.d.ts.map +1 -1
- package/dist/animation/speed/index.d.ts.map +1 -1
- package/dist/animation/transform/ApplyPointwiseFunction.d.ts.map +1 -1
- package/dist/animation/transform/ApplyPointwiseFunctionToCenter.d.ts.map +1 -1
- package/dist/animation/transform/ApplyTransforms.d.ts.map +1 -1
- package/dist/animation/transform/MorphStrategy.d.ts +23 -0
- package/dist/animation/transform/MorphStrategy.d.ts.map +1 -1
- package/dist/animation/transform/PointCloudMorphStrategy.d.ts +18 -0
- package/dist/animation/transform/PointCloudMorphStrategy.d.ts.map +1 -0
- package/dist/animation/transform/PointMorphStrategy.d.ts +26 -0
- package/dist/animation/transform/PointMorphStrategy.d.ts.map +1 -1
- package/dist/animation/transform/Transform.d.ts +2 -0
- package/dist/animation/transform/Transform.d.ts.map +1 -1
- package/dist/animation/transform/TransformMatching.d.ts.map +1 -1
- package/dist/animation/utility/index.d.ts +6 -2
- package/dist/animation/utility/index.d.ts.map +1 -1
- package/dist/core/AnimateProxy.d.ts +3 -5
- package/dist/core/AnimateProxy.d.ts.map +1 -1
- package/dist/core/Camera.d.ts +40 -0
- package/dist/core/Camera.d.ts.map +1 -1
- package/dist/core/Camera2DFrame.d.ts +1 -1
- package/dist/core/Camera2DFrame.d.ts.map +1 -1
- package/dist/core/CameraExtensions.d.ts +33 -1
- package/dist/core/CameraExtensions.d.ts.map +1 -1
- package/dist/core/CameraFrame.d.ts.map +1 -1
- package/dist/core/Group.d.ts +11 -39
- package/dist/core/Group.d.ts.map +1 -1
- package/dist/core/InteractiveScene.d.ts.map +1 -1
- package/dist/core/Lighting.d.ts.map +1 -1
- package/dist/core/Mobject.d.ts +246 -11
- package/dist/core/Mobject.d.ts.map +1 -1
- package/dist/core/MobjectPositioning.d.ts +0 -8
- package/dist/core/MobjectPositioning.d.ts.map +1 -1
- package/dist/core/MobjectState.d.ts.map +1 -1
- package/dist/core/MobjectTraversal.d.ts +3 -0
- package/dist/core/MobjectTraversal.d.ts.map +1 -1
- package/dist/core/MobjectTypes.d.ts +29 -4
- package/dist/core/MobjectTypes.d.ts.map +1 -1
- package/dist/core/PointBounds.d.ts +39 -0
- package/dist/core/PointBounds.d.ts.map +1 -0
- package/dist/core/Renderer.d.ts +3 -0
- package/dist/core/Renderer.d.ts.map +1 -1
- package/dist/core/Scene.d.ts +82 -0
- package/dist/core/Scene.d.ts.map +1 -1
- package/dist/core/TexturedMobject.d.ts +12 -0
- package/dist/core/TexturedMobject.d.ts.map +1 -1
- package/dist/core/ThreeDScene.d.ts +9 -1
- package/dist/core/ThreeDScene.d.ts.map +1 -1
- package/dist/core/VDict.d.ts +1 -9
- package/dist/core/VDict.d.ts.map +1 -1
- package/dist/core/VGroup.d.ts +58 -42
- package/dist/core/VGroup.d.ts.map +1 -1
- package/dist/core/VMobject.d.ts +102 -28
- package/dist/core/VMobject.d.ts.map +1 -1
- package/dist/core/VMobjectCurveUtils.d.ts +1 -1
- package/dist/core/VMobjectCurveUtils.d.ts.map +1 -1
- package/dist/core/VMobjectGeometry.d.ts +20 -10
- package/dist/core/VMobjectGeometry.d.ts.map +1 -1
- package/dist/core/VMobjectRendering.d.ts +5 -0
- package/dist/core/VMobjectRendering.d.ts.map +1 -1
- package/dist/core/VMobjectStrokeGeometry.d.ts.map +1 -1
- package/dist/core/VMobjectTransformAlignment.d.ts +9 -0
- package/dist/core/VMobjectTransformAlignment.d.ts.map +1 -1
- package/dist/core/ZoomedScene.d.ts +2 -1
- package/dist/core/ZoomedScene.d.ts.map +1 -1
- package/dist/export/GifExporter.d.ts.map +1 -1
- package/dist/export/VideoExporter.d.ts.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -4
- package/dist/integrations/react.js +16 -18
- package/dist/integrations/vue.js +15 -17
- package/dist/interaction/Draggable.d.ts +12 -0
- package/dist/interaction/Draggable.d.ts.map +1 -1
- package/dist/interaction/OrbitControls.d.ts +1 -1
- package/dist/interaction/OrbitControls.d.ts.map +1 -1
- package/dist/manim-web.browser.js +12510 -10445
- package/dist/mobjects/fractals/MandelbrotSet.d.ts +2 -1
- package/dist/mobjects/fractals/MandelbrotSet.d.ts.map +1 -1
- package/dist/mobjects/fractals/NewtonFractal.d.ts +2 -1
- package/dist/mobjects/fractals/NewtonFractal.d.ts.map +1 -1
- package/dist/mobjects/frame/index.d.ts +3 -12
- package/dist/mobjects/frame/index.d.ts.map +1 -1
- package/dist/mobjects/geometry/AngleShapes.d.ts +4 -8
- package/dist/mobjects/geometry/AngleShapes.d.ts.map +1 -1
- package/dist/mobjects/geometry/AnnularSector.d.ts +4 -74
- package/dist/mobjects/geometry/AnnularSector.d.ts.map +1 -1
- package/dist/mobjects/geometry/Annulus.d.ts +1 -62
- package/dist/mobjects/geometry/Annulus.d.ts.map +1 -1
- package/dist/mobjects/geometry/Arc.d.ts +3 -1
- package/dist/mobjects/geometry/Arc.d.ts.map +1 -1
- package/dist/mobjects/geometry/ArcBetweenPoints.d.ts +1 -1
- package/dist/mobjects/geometry/ArcBetweenPoints.d.ts.map +1 -1
- package/dist/mobjects/geometry/ArcPolygon.d.ts +1 -1
- package/dist/mobjects/geometry/ArcPolygon.d.ts.map +1 -1
- package/dist/mobjects/geometry/Arrow.d.ts +130 -23
- package/dist/mobjects/geometry/Arrow.d.ts.map +1 -1
- package/dist/mobjects/geometry/ArrowTips.d.ts +7 -7
- package/dist/mobjects/geometry/ArrowTips.d.ts.map +1 -1
- package/dist/mobjects/geometry/BooleanOperations.d.ts.map +1 -1
- package/dist/mobjects/geometry/Circle.d.ts +20 -23
- package/dist/mobjects/geometry/Circle.d.ts.map +1 -1
- package/dist/mobjects/geometry/CubicBezier.d.ts +1 -1
- package/dist/mobjects/geometry/CubicBezier.d.ts.map +1 -1
- package/dist/mobjects/geometry/CurvedArrow.d.ts +1 -1
- package/dist/mobjects/geometry/CurvedArrow.d.ts.map +1 -1
- package/dist/mobjects/geometry/CurvedDoubleArrow.d.ts +1 -1
- package/dist/mobjects/geometry/CurvedDoubleArrow.d.ts.map +1 -1
- package/dist/mobjects/geometry/DashedLine.d.ts +3 -2
- package/dist/mobjects/geometry/DashedLine.d.ts.map +1 -1
- package/dist/mobjects/geometry/DashedVMobject.d.ts +3 -2
- package/dist/mobjects/geometry/DashedVMobject.d.ts.map +1 -1
- package/dist/mobjects/geometry/Dot.d.ts +4 -15
- package/dist/mobjects/geometry/Dot.d.ts.map +1 -1
- package/dist/mobjects/geometry/Ellipse.d.ts +3 -47
- package/dist/mobjects/geometry/Ellipse.d.ts.map +1 -1
- package/dist/mobjects/geometry/LabeledGeometry.d.ts +5 -5
- package/dist/mobjects/geometry/LabeledGeometry.d.ts.map +1 -1
- package/dist/mobjects/geometry/Line.d.ts +15 -9
- package/dist/mobjects/geometry/Line.d.ts.map +1 -1
- package/dist/mobjects/geometry/Polygon.d.ts +1 -1
- package/dist/mobjects/geometry/Polygon.d.ts.map +1 -1
- package/dist/mobjects/geometry/PolygonExtensions.d.ts +11 -67
- package/dist/mobjects/geometry/PolygonExtensions.d.ts.map +1 -1
- package/dist/mobjects/geometry/Polygram.d.ts +1 -1
- package/dist/mobjects/geometry/Polygram.d.ts.map +1 -1
- package/dist/mobjects/geometry/Rectangle.d.ts +4 -5
- package/dist/mobjects/geometry/Rectangle.d.ts.map +1 -1
- package/dist/mobjects/geometry/Sector.d.ts +5 -69
- package/dist/mobjects/geometry/Sector.d.ts.map +1 -1
- package/dist/mobjects/geometry/ShapeMatchers.d.ts +6 -5
- package/dist/mobjects/geometry/ShapeMatchers.d.ts.map +1 -1
- package/dist/mobjects/geometry/TangentialArc.d.ts +1 -1
- package/dist/mobjects/geometry/TangentialArc.d.ts.map +1 -1
- package/dist/mobjects/geometry/segment.d.ts +24 -0
- package/dist/mobjects/geometry/segment.d.ts.map +1 -0
- package/dist/mobjects/graph/DiGraph.d.ts +1 -4
- package/dist/mobjects/graph/DiGraph.d.ts.map +1 -1
- package/dist/mobjects/graph/GenericGraph.d.ts +2 -1
- package/dist/mobjects/graph/GenericGraph.d.ts.map +1 -1
- package/dist/mobjects/graph/Graph.d.ts +1 -4
- package/dist/mobjects/graph/Graph.d.ts.map +1 -1
- package/dist/mobjects/graph/layoutAlgorithms.d.ts.map +1 -1
- package/dist/mobjects/graphing/Axes.d.ts +1 -4
- package/dist/mobjects/graphing/Axes.d.ts.map +1 -1
- package/dist/mobjects/graphing/BarChart.d.ts +1 -4
- package/dist/mobjects/graphing/BarChart.d.ts.map +1 -1
- package/dist/mobjects/graphing/ComplexPlane.d.ts +43 -9
- package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -1
- package/dist/mobjects/graphing/FunctionGraph.d.ts +1 -4
- package/dist/mobjects/graphing/FunctionGraph.d.ts.map +1 -1
- package/dist/mobjects/graphing/ImplicitFunction.d.ts +1 -4
- package/dist/mobjects/graphing/ImplicitFunction.d.ts.map +1 -1
- package/dist/mobjects/graphing/NumberLine.d.ts +2 -8
- package/dist/mobjects/graphing/NumberLine.d.ts.map +1 -1
- package/dist/mobjects/graphing/NumberPlane.d.ts +1 -4
- package/dist/mobjects/graphing/NumberPlane.d.ts.map +1 -1
- package/dist/mobjects/graphing/ParametricFunction.d.ts +1 -4
- package/dist/mobjects/graphing/ParametricFunction.d.ts.map +1 -1
- package/dist/mobjects/graphing/Vector.d.ts +1 -4
- package/dist/mobjects/graphing/Vector.d.ts.map +1 -1
- package/dist/mobjects/graphing/VectorField.d.ts +3 -12
- package/dist/mobjects/graphing/VectorField.d.ts.map +1 -1
- package/dist/mobjects/image/index.d.ts +6 -4
- package/dist/mobjects/image/index.d.ts.map +1 -1
- package/dist/mobjects/matrix/Matrix.d.ts +4 -16
- package/dist/mobjects/matrix/Matrix.d.ts.map +1 -1
- package/dist/mobjects/point/Mobject1D.d.ts +1 -4
- package/dist/mobjects/point/Mobject1D.d.ts.map +1 -1
- package/dist/mobjects/point/Mobject2D.d.ts +1 -1
- package/dist/mobjects/point/Mobject2D.d.ts.map +1 -1
- package/dist/mobjects/point/PGroup.d.ts +2 -4
- package/dist/mobjects/point/PGroup.d.ts.map +1 -1
- package/dist/mobjects/point/PMobject.d.ts +49 -13
- package/dist/mobjects/point/PMobject.d.ts.map +1 -1
- package/dist/mobjects/point/PointCloudDot.d.ts +1 -4
- package/dist/mobjects/point/PointCloudDot.d.ts.map +1 -1
- package/dist/mobjects/point/PointMobject.d.ts +13 -17
- package/dist/mobjects/point/PointMobject.d.ts.map +1 -1
- package/dist/mobjects/probability/DiceFace.d.ts +1 -5
- package/dist/mobjects/probability/DiceFace.d.ts.map +1 -1
- package/dist/mobjects/probability/SampleSpace.d.ts +1 -5
- package/dist/mobjects/probability/SampleSpace.d.ts.map +1 -1
- package/dist/mobjects/svg/Brace.d.ts +5 -20
- package/dist/mobjects/svg/Brace.d.ts.map +1 -1
- package/dist/mobjects/svg/SVGMobject.d.ts +2 -2
- package/dist/mobjects/svg/SVGMobject.d.ts.map +1 -1
- package/dist/mobjects/table/Table.d.ts +1 -5
- package/dist/mobjects/table/Table.d.ts.map +1 -1
- package/dist/mobjects/text/Code.d.ts +1 -4
- package/dist/mobjects/text/Code.d.ts.map +1 -1
- package/dist/mobjects/text/CodeHighlighting.d.ts.map +1 -1
- package/dist/mobjects/text/CodeLanguageData.d.ts.map +1 -1
- package/dist/mobjects/text/DecimalNumber.d.ts +2 -8
- package/dist/mobjects/text/DecimalNumber.d.ts.map +1 -1
- package/dist/mobjects/text/GlyphVMobject.d.ts +1 -1
- package/dist/mobjects/text/GlyphVMobject.d.ts.map +1 -1
- package/dist/mobjects/text/MarkupText.d.ts +1 -1
- package/dist/mobjects/text/MarkupText.d.ts.map +1 -1
- package/dist/mobjects/text/MathJaxBundle.d.ts +7 -0
- package/dist/mobjects/text/MathJaxBundle.d.ts.map +1 -0
- package/dist/mobjects/text/MathJaxRenderer.d.ts +9 -0
- package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -1
- package/dist/mobjects/text/MathTex.d.ts +17 -4
- package/dist/mobjects/text/MathTex.d.ts.map +1 -1
- package/dist/mobjects/text/MathTexImage.d.ts +19 -4
- package/dist/mobjects/text/MathTexImage.d.ts.map +1 -1
- package/dist/mobjects/text/Paragraph.d.ts +1 -1
- package/dist/mobjects/text/Paragraph.d.ts.map +1 -1
- package/dist/mobjects/text/Tex.d.ts +2 -5
- package/dist/mobjects/text/Tex.d.ts.map +1 -1
- package/dist/mobjects/text/Text.d.ts +17 -1
- package/dist/mobjects/text/Text.d.ts.map +1 -1
- package/dist/mobjects/text/TextExtensions.d.ts +3 -12
- package/dist/mobjects/text/TextExtensions.d.ts.map +1 -1
- package/dist/mobjects/text/TextGlyphGroup.d.ts.map +1 -1
- package/dist/mobjects/text/Variable.d.ts +2 -4
- package/dist/mobjects/text/Variable.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/Arrow3D.d.ts +4 -3
- package/dist/mobjects/three-d/Arrow3D.d.ts.map +1 -1
- package/dist/mobjects/three-d/ConvexHull3D.d.ts +4 -3
- package/dist/mobjects/three-d/ConvexHull3D.d.ts.map +1 -1
- package/dist/mobjects/three-d/Cube.d.ts +6 -11
- package/dist/mobjects/three-d/Cube.d.ts.map +1 -1
- package/dist/mobjects/three-d/Cylinder.d.ts +5 -10
- package/dist/mobjects/three-d/Cylinder.d.ts.map +1 -1
- package/dist/mobjects/three-d/Line3D.d.ts +14 -59
- package/dist/mobjects/three-d/Line3D.d.ts.map +1 -1
- package/dist/mobjects/three-d/Mobject3D.d.ts +19 -0
- package/dist/mobjects/three-d/Mobject3D.d.ts.map +1 -0
- package/dist/mobjects/three-d/ParametricSurface.d.ts +1 -1
- package/dist/mobjects/three-d/ParametricSurface.d.ts.map +1 -1
- package/dist/mobjects/three-d/Polyhedra.d.ts +7 -6
- package/dist/mobjects/three-d/Polyhedra.d.ts.map +1 -1
- package/dist/mobjects/three-d/Sphere.d.ts +4 -6
- package/dist/mobjects/three-d/Sphere.d.ts.map +1 -1
- package/dist/mobjects/three-d/Surface3D.d.ts +41 -4
- package/dist/mobjects/three-d/Surface3D.d.ts.map +1 -1
- package/dist/mobjects/three-d/TexturedSurface.d.ts +4 -3
- package/dist/mobjects/three-d/TexturedSurface.d.ts.map +1 -1
- package/dist/mobjects/three-d/ThreeDAxes.d.ts +1 -1
- package/dist/mobjects/three-d/ThreeDAxes.d.ts.map +1 -1
- package/dist/mobjects/three-d/ThreeDExtensions.d.ts +7 -15
- package/dist/mobjects/three-d/ThreeDExtensions.d.ts.map +1 -1
- package/dist/mobjects/three-d/Torus.d.ts +4 -6
- package/dist/mobjects/three-d/Torus.d.ts.map +1 -1
- package/dist/mobjects/three-d/index.d.ts +1 -0
- package/dist/mobjects/three-d/index.d.ts.map +1 -1
- package/dist/mobjects/value-tracker/ValueTracker.d.ts +4 -2
- package/dist/mobjects/value-tracker/ValueTracker.d.ts.map +1 -1
- package/dist/player/Player.d.ts +36 -29
- package/dist/player/Player.d.ts.map +1 -1
- package/dist/player/PlayerUI.d.ts.map +1 -1
- package/dist/player/RecordingScene.d.ts +37 -0
- package/dist/player/RecordingScene.d.ts.map +1 -0
- package/dist/{src-CW4pfZdP.js → src-Bm3ebFjQ.js} +11003 -8942
- package/dist/test-setup/vitest-setup.d.ts +20 -0
- package/dist/test-setup/vitest-setup.d.ts.map +1 -0
- package/dist/utils/axis.d.ts +4 -0
- package/dist/utils/axis.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +37 -0
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/math.d.ts +4 -0
- package/dist/utils/math.d.ts.map +1 -1
- package/dist/utils/vectors.d.ts +54 -1
- package/dist/utils/vectors.d.ts.map +1 -1
- package/package.json +13 -8
- package/dist/AmsConfiguration-BMyoprhk.js +0 -847
- package/dist/AmsConfiguration-BdxxYRby.js +0 -847
- package/dist/ConfigMacrosConfiguration-B8X_JSVI.js +0 -46
- package/dist/ConfigMacrosConfiguration-DUxp6DUV.js +0 -46
- package/dist/Entities-B1o7gN0J.js +0 -429
- package/dist/Entities-C82lnCux.js +0 -429
- package/dist/Factory-BKM7FEO-.js +0 -107
- package/dist/Factory-D-whCqrb.js +0 -107
- package/dist/GifExporter-BrxY_q7e.js +0 -338
- package/dist/GifExporter-S2pbxMc5.js +0 -338
- package/dist/HtmlNode-BLmQ2r7U.js +0 -981
- package/dist/HtmlNode-DXGeKrcW.js +0 -981
- package/dist/InputJax-DL9oUQY4.js +0 -41
- package/dist/InputJax-DnDWM3Y0.js +0 -41
- package/dist/NewcommandConfiguration-BPjclFig.js +0 -32
- package/dist/NewcommandConfiguration-bJ6P1rBY.js +0 -32
- package/dist/NewcommandMethods-C_E3iLoK.js +0 -187
- package/dist/NewcommandMethods-Cb7yFm5P.js +0 -187
- package/dist/Options-DRlTi0G8.js +0 -63
- package/dist/Options-XPptO-6X.js +0 -63
- package/dist/ParseMethods-BMPfzfQC.js +0 -2636
- package/dist/ParseMethods-D3_HeS1K.js +0 -2636
- package/dist/Styles-Dky5jZUe.js +0 -293
- package/dist/Styles-J-6R3Vr8.js +0 -293
- package/dist/VideoExporter-6ikT3u9H.js +0 -102
- package/dist/VideoExporter-D_RxVahH.js +0 -102
- package/dist/html-DU38zqaN.js +0 -829
- package/dist/html-DjkQuIHJ.js +0 -829
- package/dist/lengths-CP7zmbxJ.js +0 -54
- package/dist/lengths-D4tR1gYA.js +0 -54
- package/dist/liteAdaptor-BLgze3o2.js +0 -616
- package/dist/liteAdaptor-zXv-jsO1.js +0 -616
- package/dist/mathjax-7LgaTjtj.js +0 -121
- package/dist/mathjax-CoSFlQ0H.js +0 -121
- package/dist/mo-C5uLT3Z9.js +0 -2675
- package/dist/mo-CNYDGAsg.js +0 -2675
- package/dist/rolldown-runtime-DnwLefa7.js +0 -23
- package/dist/svg-CYweEoZ1.js +0 -28698
- package/dist/tex-C4_queV-.js +0 -1423
- package/dist/tex-CA5MLeEe.js +0 -1423
package/dist/core/Scene.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { Animation } from '../animation/Animation';
|
|
|
5
5
|
import { Timeline } from '../animation/Timeline';
|
|
6
6
|
import { SceneStateManager, SceneSnapshot } from './StateManager';
|
|
7
7
|
import { AudioManager, AddSoundOptions, AudioTrack } from './AudioManager';
|
|
8
|
+
import { MultiCamera } from './CameraExtensions';
|
|
8
9
|
import * as THREE from 'three';
|
|
9
10
|
/**
|
|
10
11
|
* Options for scene.export() convenience method.
|
|
@@ -54,6 +55,13 @@ export interface SceneOptions {
|
|
|
54
55
|
backgroundOpacity?: number;
|
|
55
56
|
/** Enable headless mode (no WebGL renderer). Useful for testing scene logic without a DOM. */
|
|
56
57
|
headless?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Automatically resize the canvas when its container (or the window, on
|
|
60
|
+
* mobile rotation) changes size. Only active when both `width` and `height`
|
|
61
|
+
* are omitted — passing either dimension is treated as a request for a
|
|
62
|
+
* pinned canvas size, so auto-resize stays off. Defaults to true.
|
|
63
|
+
*/
|
|
64
|
+
autoResize?: boolean;
|
|
57
65
|
}
|
|
58
66
|
/**
|
|
59
67
|
* Scene orchestrator for manimweb.
|
|
@@ -81,9 +89,16 @@ export declare class Scene {
|
|
|
81
89
|
private _projScreenMatrix;
|
|
82
90
|
private static _tempBox3;
|
|
83
91
|
protected _autoRender: boolean;
|
|
92
|
+
private _pendingRender;
|
|
93
|
+
private _suppressAutoRender;
|
|
84
94
|
private _renderOrderCounter;
|
|
85
95
|
private _stateManager;
|
|
86
96
|
private _audioManager;
|
|
97
|
+
private _multiCamera;
|
|
98
|
+
private _container;
|
|
99
|
+
private _resizeObserver;
|
|
100
|
+
private _resizeRafId;
|
|
101
|
+
private _onWindowResize;
|
|
87
102
|
/**
|
|
88
103
|
* Create a new Scene.
|
|
89
104
|
* @param container - DOM element to render into, or null for headless mode
|
|
@@ -102,6 +117,18 @@ export declare class Scene {
|
|
|
102
117
|
* Get the renderer.
|
|
103
118
|
*/
|
|
104
119
|
get renderer(): IRenderer;
|
|
120
|
+
/**
|
|
121
|
+
* Get the active MultiCamera, or null if single-camera rendering is in use.
|
|
122
|
+
*/
|
|
123
|
+
get multiCamera(): MultiCamera | null;
|
|
124
|
+
/**
|
|
125
|
+
* Attach (or detach) a MultiCamera for split-screen, picture-in-picture, or
|
|
126
|
+
* quad-view rendering. Pass `null` to revert to single-camera rendering.
|
|
127
|
+
* Has no effect in headless mode (the NullRenderer cannot scissor viewports).
|
|
128
|
+
* @param mc - MultiCamera instance, or null to restore the default render path
|
|
129
|
+
* @returns this for chaining
|
|
130
|
+
*/
|
|
131
|
+
useMultiCamera(mc: MultiCamera | null): this;
|
|
105
132
|
/**
|
|
106
133
|
* Whether this scene is running in headless mode (no WebGL renderer).
|
|
107
134
|
*/
|
|
@@ -131,6 +158,14 @@ export declare class Scene {
|
|
|
131
158
|
* Used by ThreeDScene to avoid duplicate orbit rAF loops.
|
|
132
159
|
*/
|
|
133
160
|
protected get _hasActiveLoop(): boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Whether a continuous render loop is currently driving frames every
|
|
163
|
+
* tick: play(), or wait() with per-frame rendering (updaters present).
|
|
164
|
+
* A static wait() (render-once + timeout) does NOT count — manual
|
|
165
|
+
* renders are still needed there. Interaction helpers (e.g. Draggable)
|
|
166
|
+
* use this to skip redundant renders.
|
|
167
|
+
*/
|
|
168
|
+
get isRenderLoopActive(): boolean;
|
|
134
169
|
/**
|
|
135
170
|
* Get the current playback time.
|
|
136
171
|
*/
|
|
@@ -216,6 +251,13 @@ export declare class Scene {
|
|
|
216
251
|
* Recursively collect all leaf animations from animation groups.
|
|
217
252
|
*/
|
|
218
253
|
private _collectAllAnimations;
|
|
254
|
+
/**
|
|
255
|
+
* Shared animation playback logic for play() and playWithTimestamps().
|
|
256
|
+
* Handles async render waits, dirty sync, begin(), scene add, timeline setup,
|
|
257
|
+
* and cleanup. The scheduleOnTimeline callback defines how animations are
|
|
258
|
+
* scheduled on the timeline (parallel vs. timestamped).
|
|
259
|
+
*/
|
|
260
|
+
private _runAnimations;
|
|
219
261
|
/**
|
|
220
262
|
* Play animations in parallel (all at once).
|
|
221
263
|
* Matches Manim's scene.play() behavior where multiple animations run simultaneously.
|
|
@@ -224,6 +266,23 @@ export declare class Scene {
|
|
|
224
266
|
* @returns Promise that resolves when all animations complete
|
|
225
267
|
*/
|
|
226
268
|
play(...animations: Animation[]): Promise<void>;
|
|
269
|
+
/**
|
|
270
|
+
* Play animations with explicit per-animation start/end times (seconds).
|
|
271
|
+
*
|
|
272
|
+
* NOTE: this is a manim-widget wire-format feature — Python manim has no
|
|
273
|
+
* equivalent per-animation timing API. It is used by the player when
|
|
274
|
+
* deserializing AnimationGroup descriptors that carry `start`/`end` fields.
|
|
275
|
+
*
|
|
276
|
+
* Each entry's `end - start` overrides the animation's own duration so the
|
|
277
|
+
* Timeline schedules it for the correct window. WARNING: this permanently
|
|
278
|
+
* mutates the Animation object's `duration` property. Reusing the same
|
|
279
|
+
* animation instance in multiple calls will use the last set duration.
|
|
280
|
+
*/
|
|
281
|
+
playWithTimestamps(entries: {
|
|
282
|
+
animation: Animation;
|
|
283
|
+
start: number;
|
|
284
|
+
end: number;
|
|
285
|
+
}[]): Promise<void>;
|
|
227
286
|
/**
|
|
228
287
|
* Play multiple animations in parallel (all at once).
|
|
229
288
|
* Alias for play() - delegates to play() to avoid duplicated logic.
|
|
@@ -272,12 +331,28 @@ export declare class Scene {
|
|
|
272
331
|
* can override to also check for ambient camera rotation, etc.
|
|
273
332
|
*/
|
|
274
333
|
protected _needsPerFrameRendering(): boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Queue a render to run on the next microtask. Multiple calls within the
|
|
336
|
+
* same tick coalesce. If `_cancelPendingRender()` is called or
|
|
337
|
+
* `_suppressAutoRender` is set before the microtask fires, the render is
|
|
338
|
+
* skipped. Used by `add()` so a chained `play()` can suppress the
|
|
339
|
+
* pre-animation flash described in issue #317.
|
|
340
|
+
*/
|
|
341
|
+
protected _scheduleRender(): void;
|
|
342
|
+
protected _cancelPendingRender(): void;
|
|
275
343
|
/**
|
|
276
344
|
* Render a single frame.
|
|
277
345
|
* Syncs only dirty mobjects before rendering for performance.
|
|
278
346
|
* Protected so subclasses (e.g. ZoomedScene) can override for multi-pass rendering.
|
|
279
347
|
*/
|
|
280
348
|
protected _render(): void;
|
|
349
|
+
/**
|
|
350
|
+
* Render via the attached MultiCamera. Clears the full canvas first so
|
|
351
|
+
* arbitrary viewport layouts (e.g. picture-in-picture) don't leak stale
|
|
352
|
+
* pixels, and restores renderer state via try/finally even if a camera
|
|
353
|
+
* render throws.
|
|
354
|
+
*/
|
|
355
|
+
protected _renderMultiCamera(): void;
|
|
281
356
|
/**
|
|
282
357
|
* Sync only mobjects that have been modified (dirty flag optimization).
|
|
283
358
|
*/
|
|
@@ -350,6 +425,13 @@ export declare class Scene {
|
|
|
350
425
|
* @param height - New height in pixels
|
|
351
426
|
*/
|
|
352
427
|
resize(width: number, height: number): this;
|
|
428
|
+
/**
|
|
429
|
+
* Install ResizeObserver on the container and a window resize/orientation
|
|
430
|
+
* fallback. All triggers funnel through a single rAF-debounced measurement
|
|
431
|
+
* so a rotation that fires multiple events resizes once per frame.
|
|
432
|
+
*/
|
|
433
|
+
private _installAutoResize;
|
|
434
|
+
private _disposeAutoResize;
|
|
353
435
|
/**
|
|
354
436
|
* Get the canvas element.
|
|
355
437
|
* @returns The HTMLCanvasElement used for rendering
|
package/dist/core/Scene.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scene.d.ts","sourceRoot":"","sources":["../../src/core/Scene.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Scene.d.ts","sourceRoot":"","sources":["../../src/core/Scene.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAA6B,SAAS,EAAE,MAAM,YAAY,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAiB,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAErF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAUtD;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,+DAA+D;IAC/D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,yFAAyF;IACzF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wEAAwE;IAC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;OA0BG;IACG,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IA8C3E;;OAEG;IACH,OAAO,IAAI,IAAI;CAyChB"}
|
|
@@ -30,6 +30,18 @@ export declare abstract class TexturedMobject extends Mobject {
|
|
|
30
30
|
* future sync cycles and API reads (e.g. getText()) reflect the target's content.
|
|
31
31
|
*/
|
|
32
32
|
abstract applyContentFrom(other: TexturedMobject): void;
|
|
33
|
+
/**
|
|
34
|
+
* Flatten a textured leaf. Its geometry is a Three.js display mesh, not
|
|
35
|
+
* bakeable points, so — like {@link Mobject3D} — it absolutizes rather than
|
|
36
|
+
* resetting to identity: the local transform is set equal to the incoming
|
|
37
|
+
* world matrix and re-applied to the mesh on every `_syncToThree`. Keeping the
|
|
38
|
+
* scale on `scaleVector` (instead of folding it into the plane size and
|
|
39
|
+
* resetting, as #417 had to) is inherently durable across async load / canvas
|
|
40
|
+
* re-render, since those rebuild the geometry but not the Mobject transform.
|
|
41
|
+
*
|
|
42
|
+
* @post old.getBounds() === this.getBounds() // world geometry preserved
|
|
43
|
+
*/
|
|
44
|
+
normalizeTransform(worldMatrix?: THREE.Matrix4): this;
|
|
33
45
|
/**
|
|
34
46
|
* Sets material.map, marks material dirty, and disposes previous texture when replaced.
|
|
35
47
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TexturedMobject.d.ts","sourceRoot":"","sources":["../../src/core/TexturedMobject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;GAKG;AACH,8BAAsB,eAAgB,SAAQ,OAAO;IACnD;;;OAGG;aACe,gBAAgB,IAAI,KAAK,CAAC,IAAI,EAAE;IAElD;;OAEG;aACe,oBAAoB,IAAI,MAAM;IAEhD;;OAEG;IACH,QAAQ,CAAC,gBAAg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KAAK,CAAC,OAAO,GAAG,IAAI,GACpC,IAAI;CAOR"}
|
|
@@ -64,8 +64,10 @@ export declare class ThreeDScene extends Scene {
|
|
|
64
64
|
* distance instead of add order (base Scene stamps an incrementing
|
|
65
65
|
* renderOrder for 2D z-ordering, which defeats 3D depth sort)
|
|
66
66
|
*
|
|
67
|
-
* Auto-render is suppressed inside super.add() and
|
|
67
|
+
* Auto-render is suppressed inside super.add() and scheduled once at the end,
|
|
68
68
|
* after settings are applied, so the first visible frame is correct.
|
|
69
|
+
* Render is deferred via the scheduler (issue #317) so a chained `play()`
|
|
70
|
+
* can suppress it and avoid a pre-animation flash.
|
|
69
71
|
*/
|
|
70
72
|
add(...mobjects: Mobject[]): this;
|
|
71
73
|
/**
|
|
@@ -217,6 +219,12 @@ export declare class ThreeDScene extends Scene {
|
|
|
217
219
|
* @param height - New height in pixels
|
|
218
220
|
*/
|
|
219
221
|
resize(width: number, height: number): this;
|
|
222
|
+
/**
|
|
223
|
+
* The orbit-controls rAF loop also renders every frame while it runs,
|
|
224
|
+
* so count it as an active render loop (e.g. so Draggable doesn't
|
|
225
|
+
* issue redundant renders while orbiting/dragging).
|
|
226
|
+
*/
|
|
227
|
+
get isRenderLoopActive(): boolean;
|
|
220
228
|
/**
|
|
221
229
|
* Start a lightweight rAF loop for orbit controls when the scene
|
|
222
230
|
* isn't already rendering (no active animations/waits).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThreeDScene.d.ts","sourceRoot":"","sources":["../../src/core/ThreeDScene.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,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AuB,GAAG,WAAW;CAGrE"}
|
package/dist/core/VDict.d.ts
CHANGED
|
@@ -113,14 +113,10 @@ export declare class VDict extends VGroup {
|
|
|
113
113
|
asProxy(): VDict & {
|
|
114
114
|
[key: string]: VMobject | undefined;
|
|
115
115
|
};
|
|
116
|
-
/**
|
|
117
|
-
* Create a copy of this VDict.
|
|
118
|
-
*/
|
|
119
|
-
protected _createCopy(): VMobject;
|
|
120
116
|
/**
|
|
121
117
|
* Override copy to properly handle the dictionary mapping.
|
|
122
118
|
*/
|
|
123
|
-
copy():
|
|
119
|
+
copy(): VDict;
|
|
124
120
|
/**
|
|
125
121
|
* Add a named VMobject to this VDict (alias for set).
|
|
126
122
|
* @param name - Name/key for the VMobject
|
|
@@ -219,10 +215,6 @@ export declare class VectorizedPoint extends VMobject {
|
|
|
219
215
|
/**
|
|
220
216
|
* Create a copy of this VectorizedPoint.
|
|
221
217
|
*/
|
|
222
|
-
protected _createCopy(): VMobject;
|
|
223
|
-
/**
|
|
224
|
-
* Copy this VectorizedPoint.
|
|
225
|
-
*/
|
|
226
218
|
copy(): VMobject;
|
|
227
219
|
}
|
|
228
220
|
//# sourceMappingURL=VDict.d.ts.map
|
package/dist/core/VDict.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VDict.d.ts","sourceRoot":"","sources":["../../src/core/VDict.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,KAAM,SAAQ,MAAM;IAC/B;;OAEG;IACH,OAAO,CAAC,KAAK,CAAoC;IAEjD;;;OAGG;gBACS,KAAK,GAAE,MAAM,CAAC,M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AA;KAAE;IAyB1D;;OAEG;IACM,IAAI,IAAI,KAAK;IAmBtB;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAIhD;;;;;OAKG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAK/B;;;;;OAKG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS;IAI3C;;;;;OAKG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS;CAG9C;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,eAAgB,SAAQ,QAAQ;IAC3C;;;OAGG;gBACS,QAAQ,GAAE,YAAwB;IAc9C;;;OAGG;IACH,WAAW,IAAI,YAAY;IAQ3B;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI;IAOtC;;;OAGG;IACM,SAAS,IAAI,YAAY;IAIlC;;;;OAIG;IACM,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI;IAI1C;;;;OAIG;IACM,KAAK,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI;IAKzC;;;OAGG;cACgB,kBAAkB,IAAI,KAAK,CAAC,QAAQ;IAQvD;;OAEG;cACgB,oBAAoB,IAAI,IAAI;IAO/C;;OAEG;IACM,IAAI,IAAI,QAAQ;CAK1B"}
|
package/dist/core/VGroup.d.ts
CHANGED
|
@@ -10,6 +10,17 @@ import * as THREE from 'three';
|
|
|
10
10
|
* Operations apply to all children, and paths can be combined.
|
|
11
11
|
*/
|
|
12
12
|
export declare class VGroup extends VMobject {
|
|
13
|
+
/**
|
|
14
|
+
* True when this VGroup (recursively) has no renderable geometry.
|
|
15
|
+
*/
|
|
16
|
+
isEmpty(): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* World-space center from descendant geometry.
|
|
19
|
+
*
|
|
20
|
+
* @throws this.isEmpty() — an empty group has no geometry, so no center.
|
|
21
|
+
* @post !this.isEmpty() => super.getCenter()
|
|
22
|
+
*/
|
|
23
|
+
getCenter(): Vector3Tuple;
|
|
13
24
|
/**
|
|
14
25
|
* Create a new VGroup containing the given mobjects.
|
|
15
26
|
* Accepts both VMobjects and general Mobjects (e.g., Axes, Group).
|
|
@@ -45,42 +56,6 @@ export declare class VGroup extends VMobject {
|
|
|
45
56
|
* @returns this for chaining
|
|
46
57
|
*/
|
|
47
58
|
remove(...mobjects: Mobject[]): this;
|
|
48
|
-
/**
|
|
49
|
-
* Get the center of the group (average of all children centers).
|
|
50
|
-
* @returns Center position as [x, y, z]
|
|
51
|
-
*/
|
|
52
|
-
getCenter(): Vector3Tuple;
|
|
53
|
-
/**
|
|
54
|
-
* Shift all children by the given delta.
|
|
55
|
-
* Only shifts children's internal positions, not the group's own position,
|
|
56
|
-
* to avoid double-counting in THREE.js hierarchy.
|
|
57
|
-
* @param delta - Translation vector [x, y, z]
|
|
58
|
-
* @returns this for chaining
|
|
59
|
-
*/
|
|
60
|
-
shift(delta: Vector3Tuple): this;
|
|
61
|
-
/**
|
|
62
|
-
* Move the group center to the given point, or align with another Mobject.
|
|
63
|
-
* @param target - Target position [x, y, z] or Mobject to align with
|
|
64
|
-
* @param alignedEdge - Optional edge direction to align (e.g., UL aligns upper-left edges)
|
|
65
|
-
* @returns this for chaining
|
|
66
|
-
*/
|
|
67
|
-
moveTo(target: Vector3Tuple | Mobject, alignedEdge?: Vector3Tuple): this;
|
|
68
|
-
/**
|
|
69
|
-
* Rotate all children around an axis.
|
|
70
|
-
* @param angle - Rotation angle in radians
|
|
71
|
-
* @param axis - Axis of rotation [x, y, z], defaults to Z axis
|
|
72
|
-
* @returns this for chaining
|
|
73
|
-
*/
|
|
74
|
-
rotate(angle: number, axis?: Vector3Tuple): this;
|
|
75
|
-
/**
|
|
76
|
-
* Scale all children about the group's center.
|
|
77
|
-
* Each child's size is scaled, and their positions are repositioned
|
|
78
|
-
* relative to the group center — matching Manim Python behavior.
|
|
79
|
-
* Does not change the group's own scaleVector.
|
|
80
|
-
* @param factor - Scale factor (number for uniform, tuple for non-uniform)
|
|
81
|
-
* @returns this for chaining
|
|
82
|
-
*/
|
|
83
|
-
scale(factor: number | Vector3Tuple): this;
|
|
84
59
|
/**
|
|
85
60
|
* Set the color of all children.
|
|
86
61
|
* @param color - CSS color string
|
|
@@ -127,6 +102,28 @@ export declare class VGroup extends VMobject {
|
|
|
127
102
|
* @returns this for chaining
|
|
128
103
|
*/
|
|
129
104
|
arrange(direction?: Vector3Tuple, buff?: number, center?: boolean): this;
|
|
105
|
+
/**
|
|
106
|
+
* Recenter the arrangement by shifting the CHILDREN so the group's bbox
|
|
107
|
+
* center returns to `originalCenter`, leaving the container's own `position`
|
|
108
|
+
* untouched.
|
|
109
|
+
*
|
|
110
|
+
* Background: #417 removed VGroup's `moveTo`/`shift` child-shifting overrides,
|
|
111
|
+
* so `this.moveTo(...)` now moves only the container's `position` and leaves
|
|
112
|
+
* children in place. Arrange used `moveTo` to recenter, which silently became
|
|
113
|
+
* a no-op on the children — breaking callers that add the children directly
|
|
114
|
+
* (e.g. opening_manim) or rely on the children being physically centered.
|
|
115
|
+
* Shifting the children restores the pre-#417 arrange contract.
|
|
116
|
+
*
|
|
117
|
+
* Frame note: `getCenter()` returns WORLD coordinates, but `child.shift()`
|
|
118
|
+
* applies its delta in the child's PARENT-local frame — which is this VGroup's
|
|
119
|
+
* own local frame. We therefore map both world endpoints into that frame (via a
|
|
120
|
+
* child's world→parent-local conversion, which all children share) before
|
|
121
|
+
* taking the difference. For an identity, parentless VGroup the conversion is
|
|
122
|
+
* the identity, so this matches the previous world-delta behavior; for a
|
|
123
|
+
* transformed/nested VGroup it stays correct (the delta is no longer scaled or
|
|
124
|
+
* rotated by the group's transform).
|
|
125
|
+
*/
|
|
126
|
+
private _recenterChildrenTo;
|
|
130
127
|
/**
|
|
131
128
|
* Arrange children in a grid layout.
|
|
132
129
|
* @param rows - Number of rows (if not specified, auto-calculated)
|
|
@@ -153,10 +150,7 @@ export declare class VGroup extends VMobject {
|
|
|
153
150
|
* A VGroup is simply a THREE.Group that contains children.
|
|
154
151
|
*/
|
|
155
152
|
protected _createThreeObject(): THREE.Object3D;
|
|
156
|
-
|
|
157
|
-
* Create a copy of this VGroup.
|
|
158
|
-
*/
|
|
159
|
-
protected _createCopy(): VMobject;
|
|
153
|
+
copy(): VGroup;
|
|
160
154
|
/**
|
|
161
155
|
* Get the number of vmobjects in this group.
|
|
162
156
|
*/
|
|
@@ -195,8 +189,30 @@ export declare class VGroup extends VMobject {
|
|
|
195
189
|
*/
|
|
196
190
|
get points(): Point[];
|
|
197
191
|
/**
|
|
198
|
-
*
|
|
192
|
+
* Local-space points aggregated from all VMobject children.
|
|
193
|
+
*
|
|
194
|
+
* @post result === flatMap(vmobjectChildren, c => c.getLocalPoints())
|
|
195
|
+
*/
|
|
196
|
+
getLocalPoints(): number[][];
|
|
197
|
+
/**
|
|
198
|
+
* World-space points from this VGroup and all VMobject descendants.
|
|
199
|
+
*
|
|
200
|
+
* @post result === flatMap(allVMobjectDescendants, c => c.getPoints())
|
|
201
|
+
*/
|
|
202
|
+
getAllPoints(): number[][];
|
|
203
|
+
/**
|
|
204
|
+
* Distribute a flat point array back onto the children.
|
|
205
|
+
*
|
|
206
|
+
* A VGroup stores no geometry of its own — {@link getLocalPoints} aggregates the
|
|
207
|
+
* children. The inherited VMobject.setPoints would write to the container's
|
|
208
|
+
* unused `_points3D`, so a read-modify-write (Homotopy, ApplyPointwiseFunction,
|
|
209
|
+
* ApplyWave, …) on a VGroup would be a silent no-op. This override partitions the
|
|
210
|
+
* array in the same order getCombinedPoints concatenated it and assigns each slice
|
|
211
|
+
* to its child, so the round-trip actually moves the children.
|
|
212
|
+
*
|
|
213
|
+
* @pre points.length === sum over VMobject children of child.getLocalPoints().length
|
|
214
|
+
* @post for each child i: child.getLocalPoints() === the i-th slice of points
|
|
199
215
|
*/
|
|
200
|
-
|
|
216
|
+
setPoints(points: Point[] | number[][]): this;
|
|
201
217
|
}
|
|
202
218
|
//# sourceMappingURL=VGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VGroup.d.ts","sourceRoot":"","sources":["../../src/core/VGroup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,YAAY,EAAS,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAE7C;;;GAGG;AACH,qBAAa,MAAO,SAAQ,QAAQ;IAClC;;;;OAIG;gBACS,GAAG,QAAQ,EAAE,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"VGroup.d.ts","sourceRoot":"","sources":["../../src/core/VGroup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,YAAY,EAAS,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAE7C;;;GAGG;AACH,qBAAa,MAAO,SAAQ,QAAQ;IAClC;;OAEG;IACM,OAAO,IAAI,OAAO;IAI3B;;;;;OAKG;IACM,SAAS,IAAI,YAAY;IASlC;;;;OAIG;gBACS,GAAG,QAAQ,EAAE,OAAO,EAAE;IAgBlC;;;;;OAKG;IACH,YAAY,CAAC,GAAG,SAAS,EAAE,CAAC,QAAQ,GAAG,QAAQ,EAAE,CAAC,EAAE,GAAG,IAAI;IAa3D;;;;OAIG;IACM,GAAG,CAAC,GAAG,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI;IAY1C;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAoB1B;;;;OAIG;IACH,eAAe,CAAC,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI;IAgB/C;;;;OAIG;I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,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC;IAIvC;;;;OAIG;IACH,OAAO,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAK9D;;;;OAIG;IACH,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,CAAC,EAAE;IAIzD;;;;OAIG;IACH,MAAM,CAAC,EAAE,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,MAAM;IAKlE;;;OAGG;IACH,IAAa,MAAM,IAAI,KAAK,EAAE,CAQ7B;IAED;;;;OAIG;IACM,cAAc,IAAI,MAAM,EAAE,EAAE;IAIrC;;;;OAIG;IACM,YAAY,IAAI,MAAM,EAAE,EAAE;IAYnC;;;;;;;;;;;;OAYG;IACM,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,EAAE,EAAE,GAAG,IAAI;CA0BvD"}
|
package/dist/core/VMobject.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { Vector3Tuple } from './Mobject';
|
|
2
2
|
import { VMobjectRendering } from './VMobjectRendering';
|
|
3
3
|
import { Point } from './VMobjectCurves';
|
|
4
|
+
/**
|
|
5
|
+
* Vectorized Mobject - a mobject defined by cubic Bezier curves.
|
|
6
|
+
* This is the base class for all path-based shapes.
|
|
7
|
+
*
|
|
8
|
+
* Points are stored as cubic Bezier control points:
|
|
9
|
+
* [anchor1, handle1, handle2, anchor2, handle3, handle4, anchor3, ...]
|
|
10
|
+
*
|
|
11
|
+
* Each curve segment uses 4 points: anchor -> handle -> handle -> anchor
|
|
12
|
+
* Consecutive segments share the anchor point.
|
|
13
|
+
*/
|
|
14
|
+
import * as THREE from 'three';
|
|
4
15
|
export type { Point } from './VMobjectCurves';
|
|
5
16
|
/**
|
|
6
17
|
* Vectorized mobject class for path-based shapes.
|
|
@@ -19,6 +30,7 @@ export declare class VMobject extends VMobjectRendering {
|
|
|
19
30
|
/** Transform-time override for subpath lengths (compound-path metadata). */
|
|
20
31
|
protected _transformSubpathLengths?: number[];
|
|
21
32
|
constructor();
|
|
33
|
+
isEmpty(): boolean;
|
|
22
34
|
/**
|
|
23
35
|
* Get all points as 2D Point objects (derived from _points3D)
|
|
24
36
|
*/
|
|
@@ -37,10 +49,34 @@ export declare class VMobject extends VMobjectRendering {
|
|
|
37
49
|
*/
|
|
38
50
|
setPoints3D(points: number[][]): this;
|
|
39
51
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
52
|
+
* Own points in parent-local space — raw _points3D, no ancestor transforms.
|
|
53
|
+
*
|
|
54
|
+
* @post result[i] === _points3D[i]
|
|
55
|
+
*/
|
|
56
|
+
getLocalPoints(): number[][];
|
|
57
|
+
/**
|
|
58
|
+
* Own points in world coordinates (full ancestor S/R/T chain; render-only
|
|
59
|
+
* z-layering offset excluded). Children's points are not included — use
|
|
60
|
+
* {@link getAllPoints} for the full subtree.
|
|
61
|
+
*
|
|
62
|
+
* @post result[i] === worldMatrix * _points3D[i]
|
|
63
|
+
* @post this.parent === null => result === getLocalPoints()
|
|
42
64
|
*/
|
|
43
65
|
getPoints(): number[][];
|
|
66
|
+
/**
|
|
67
|
+
* World-space points from this node and all VMobject descendants recursively.
|
|
68
|
+
*
|
|
69
|
+
* Equivalent to Python manim's get_all_points(). Use this for bounding-box
|
|
70
|
+
* and center queries that must cover the full subtree.
|
|
71
|
+
*
|
|
72
|
+
* @post result === flatMap(this + vmobjectDescendants, m => m.getPoints())
|
|
73
|
+
*/
|
|
74
|
+
getAllPoints(): number[][];
|
|
75
|
+
/**
|
|
76
|
+
* @pre fn(pts).length === pts.length
|
|
77
|
+
* @post getPoints()[i] === fn(old.getPoints().map(p => p - aboutPoint))[i] + aboutPoint
|
|
78
|
+
*/
|
|
79
|
+
protected _applyFunctionAboutPoint(fn: (pts: number[][]) => number[][], aboutPoint: number[]): void;
|
|
44
80
|
/**
|
|
45
81
|
* Get the number of points
|
|
46
82
|
*/
|
|
@@ -94,6 +130,18 @@ export declare class VMobject extends VMobjectRendering {
|
|
|
94
130
|
* Clear all points
|
|
95
131
|
*/
|
|
96
132
|
clearPoints(): this;
|
|
133
|
+
/**
|
|
134
|
+
* Flatten this VMobject into absolute coordinates: bake `worldMatrix` into
|
|
135
|
+
* `_points3D` (translation, rotation and scale together — one matrix, no
|
|
136
|
+
* inverse), reset the local transform to identity, and recurse into children.
|
|
137
|
+
*
|
|
138
|
+
* Seeds with this node's own matrix when called with no argument, so the bake
|
|
139
|
+
* preserves world appearance whether or not there are ancestors.
|
|
140
|
+
*
|
|
141
|
+
* @post !this.isEmpty() => old.getPoints()[i] === this.getPoints()[i] // world geometry preserved
|
|
142
|
+
* @post this._computeOwnMatrix() === Identity
|
|
143
|
+
*/
|
|
144
|
+
normalizeTransform(worldMatrix?: THREE.Matrix4): this;
|
|
97
145
|
/**
|
|
98
146
|
* Set base subpath-length metadata for this VMobject.
|
|
99
147
|
* Represents intrinsic topology (e.g. outer contour + holes from SVG parsing).
|
|
@@ -152,37 +200,73 @@ export declare class VMobject extends VMobjectRendering {
|
|
|
152
200
|
private static _bestRotation;
|
|
153
201
|
/**
|
|
154
202
|
* Interpolate a 3D point list to have a specific number of points.
|
|
203
|
+
*
|
|
204
|
+
* Delegates to the bezier-aware `resamplePointList3D` so that valid cubic
|
|
205
|
+
* Bezier chains are densified by de Casteljau subdivision rather than
|
|
206
|
+
* piecewise-linear interpolation. Linear lerp on cubic control points
|
|
207
|
+
* silently produces invalid handles (handle = midpoint of two adjacent
|
|
208
|
+
* controls), which renders as flat polygonal segments mid-`Transform`.
|
|
155
209
|
*/
|
|
156
210
|
protected _interpolatePointList3D(points: number[][], targetCount: number): number[][];
|
|
211
|
+
protected _copyBaseAttributesInto(clone: VMobject, options?: {
|
|
212
|
+
copyChildren?: boolean;
|
|
213
|
+
copyPosition?: boolean;
|
|
214
|
+
}): void;
|
|
157
215
|
/**
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
216
|
+
* Copy this VMobject, preserving point data state after morphs/transforms.
|
|
217
|
+
*
|
|
218
|
+
* For subclasses (Circle, Square, etc.): constructors regenerate points from
|
|
219
|
+
* parameters (radius, sideLength, ...). After a Transform animation has morphed
|
|
220
|
+
* the data, the regenerated points no longer match the visual state. Subclasses
|
|
221
|
+
* must override copy(), build a new instance with their constructor params, call
|
|
222
|
+
* _copyBaseAttributesInto, and then overwrite _points3D with the current state.
|
|
223
|
+
*
|
|
224
|
+
* For direct VMobject (rare): just builds and copies.
|
|
165
225
|
*/
|
|
166
226
|
copy(): VMobject;
|
|
167
|
-
/**
|
|
168
|
-
* Create a copy of this VMobject
|
|
169
|
-
*/
|
|
170
|
-
protected _createCopy(): VMobject;
|
|
171
227
|
/**
|
|
172
228
|
* Get the unit vector from the first to the last point of this VMobject,
|
|
173
229
|
* accounting for the object's current rotation transform.
|
|
174
230
|
*/
|
|
175
231
|
getUnitVector(): Vector3Tuple;
|
|
176
232
|
/**
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
233
|
+
* World-space bounding box computed from bezier control points.
|
|
234
|
+
*
|
|
235
|
+
* Overrides Mobject.getBounds() to avoid Box3.setFromObject(), which does
|
|
236
|
+
* not work for Line2 geometries. See PointBounds.ts for the full explanation.
|
|
237
|
+
*
|
|
238
|
+
* @pre !this.isEmpty()
|
|
239
|
+
* @post result.min <= result.max component-wise
|
|
240
|
+
*/
|
|
241
|
+
getBounds(): {
|
|
242
|
+
min: {
|
|
243
|
+
x: number;
|
|
244
|
+
y: number;
|
|
245
|
+
z: number;
|
|
246
|
+
};
|
|
247
|
+
max: {
|
|
248
|
+
x: number;
|
|
249
|
+
y: number;
|
|
250
|
+
z: number;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* World-space bounding-box center derived from getAllPoints().
|
|
255
|
+
*
|
|
256
|
+
* Matches Python manim: the center is always the midpoint of the axis-aligned
|
|
257
|
+
* bounding box of every point in the family — no per-shape construction-point
|
|
258
|
+
* overrides. For the vertex centroid (which differs for asymmetric shapes like
|
|
259
|
+
* sectors), use {@link getCenterOfMass}.
|
|
180
260
|
*/
|
|
181
261
|
getCenter(): Vector3Tuple;
|
|
182
262
|
/**
|
|
183
|
-
*
|
|
263
|
+
* Get center of mass in world coordinates by averaging all world-space points.
|
|
264
|
+
*
|
|
265
|
+
* Unlike {@link getCenter} (which uses bbox midpoint), this is the true
|
|
266
|
+
* centroid — equal to getCenter() only when points are symmetrically distributed.
|
|
184
267
|
*/
|
|
185
|
-
|
|
268
|
+
getCenterOfMass(): Vector3Tuple;
|
|
269
|
+
moveCenterOfMassTo(target: Vector3Tuple): this;
|
|
186
270
|
/**
|
|
187
271
|
* Compute local bounding-box center across this VMobject and all descendants
|
|
188
272
|
* that expose point data.
|
|
@@ -198,16 +282,6 @@ export declare class VMobject extends VMobjectRendering {
|
|
|
198
282
|
* @returns this for chaining
|
|
199
283
|
*/
|
|
200
284
|
centerPointsAroundPosition(): this;
|
|
201
|
-
/** @internal Check if a Bezier segment is nearly linear. */
|
|
202
|
-
protected static _isNearlyLinear(p0: number[], p1: number[], p2: number[], p3: number[]): boolean;
|
|
203
|
-
/** @internal Ray-casting point-in-polygon test. */
|
|
204
|
-
protected static _pointInPolygon(point: number[], ring: number[][]): boolean;
|
|
205
|
-
/** @internal Sample Bezier outline for earcut triangulation. */
|
|
206
|
-
protected _sampleBezierOutline(points: number[][], samplesPerSegment: number): number[][];
|
|
207
|
-
/** @internal Sample Bezier path for stroke rendering. */
|
|
208
|
-
protected _sampleBezierPath(points: number[][], samplesPerSegment?: number): number[][];
|
|
209
|
-
/** @internal Check if Bezier control points form a closed path. */
|
|
210
|
-
protected _isClosedPath(points3D: number[][]): boolean;
|
|
211
285
|
/**
|
|
212
286
|
* Clean up Three.js resources
|
|
213
287
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VMobject.d.ts","sourceRoot":"","sources":["../../src/core/VMobject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"VMobject.d.ts","sourceRoot":"","sources":["../../src/core/VMobject.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAW,YAAY,EAAE,MAAM,WAAW,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAM9C,YAAY,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;GAEG;AACH,qBAAa,QAAS,SAAQ,iBAAiB;IAC7C;;;;OAIG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,CAAM;IAErC,sDAAsD;IACtD,SAAS,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEnD,kFAAkF;IAClF,SAAS,CAAC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzC,4EAA4E;IAC5E,SAAS,CAAC,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;;IAWrC,OAAO,IAAI,OAAO;IAW3B;;OAEG;IACH,IAAI,MAAM,IAAI,KAAK,EAAE,CAEpB;IAED;;;;;OAKG;IACH,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,EAAE,EAAE,GAAG,IAAI;IAoB7C;;;;OAIG;IACH,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,IAAI;IAIrC;;;;OAIG;IACH,cAAc,IAAI,MAAM,EAAE,EAAE;IAI5B;;;;;;;OAOG;IACH,SAAS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