manim-web 0.2.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/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/animation/Animation.d.ts +69 -0
- package/dist/animation/Animation.d.ts.map +1 -0
- package/dist/animation/AnimationGroup.d.ts +48 -0
- package/dist/animation/AnimationGroup.d.ts.map +1 -0
- package/dist/animation/LaggedStart.d.ts +25 -0
- package/dist/animation/LaggedStart.d.ts.map +1 -0
- package/dist/animation/MaintainPositionRelativeTo.d.ts +23 -0
- package/dist/animation/MaintainPositionRelativeTo.d.ts.map +1 -0
- package/dist/animation/Succession.d.ts +19 -0
- package/dist/animation/Succession.d.ts.map +1 -0
- package/dist/animation/Timeline.d.ts +89 -0
- package/dist/animation/Timeline.d.ts.map +1 -0
- package/dist/animation/UpdateFromAlphaFunc.d.ts +32 -0
- package/dist/animation/UpdateFromAlphaFunc.d.ts.map +1 -0
- package/dist/animation/UpdateFromFunc.d.ts +30 -0
- package/dist/animation/UpdateFromFunc.d.ts.map +1 -0
- package/dist/animation/changing/index.d.ts +213 -0
- package/dist/animation/changing/index.d.ts.map +1 -0
- package/dist/animation/composition/LaggedStartMap.d.ts +47 -0
- package/dist/animation/composition/LaggedStartMap.d.ts.map +1 -0
- package/dist/animation/composition/index.d.ts +5 -0
- package/dist/animation/composition/index.d.ts.map +1 -0
- package/dist/animation/creation/Create.d.ts +232 -0
- package/dist/animation/creation/Create.d.ts.map +1 -0
- package/dist/animation/creation/CreationExtensions.d.ts +127 -0
- package/dist/animation/creation/CreationExtensions.d.ts.map +1 -0
- package/dist/animation/creation/TypeWithCursor.d.ts +133 -0
- package/dist/animation/creation/TypeWithCursor.d.ts.map +1 -0
- package/dist/animation/creation/index.d.ts +4 -0
- package/dist/animation/creation/index.d.ts.map +1 -0
- package/dist/animation/fading/FadeIn.d.ts +31 -0
- package/dist/animation/fading/FadeIn.d.ts.map +1 -0
- package/dist/animation/fading/FadeOut.d.ts +32 -0
- package/dist/animation/fading/FadeOut.d.ts.map +1 -0
- package/dist/animation/fading/index.d.ts +3 -0
- package/dist/animation/fading/index.d.ts.map +1 -0
- package/dist/animation/growing/index.d.ts +103 -0
- package/dist/animation/growing/index.d.ts.map +1 -0
- package/dist/animation/index.d.ts +20 -0
- package/dist/animation/index.d.ts.map +1 -0
- package/dist/animation/indication/ApplyWave.d.ts +51 -0
- package/dist/animation/indication/ApplyWave.d.ts.map +1 -0
- package/dist/animation/indication/Blink.d.ts +34 -0
- package/dist/animation/indication/Blink.d.ts.map +1 -0
- package/dist/animation/indication/Circumscribe.d.ts +54 -0
- package/dist/animation/indication/Circumscribe.d.ts.map +1 -0
- package/dist/animation/indication/Flash.d.ts +45 -0
- package/dist/animation/indication/Flash.d.ts.map +1 -0
- package/dist/animation/indication/FocusOn.d.ts +79 -0
- package/dist/animation/indication/FocusOn.d.ts.map +1 -0
- package/dist/animation/indication/Indicate.d.ts +30 -0
- package/dist/animation/indication/Indicate.d.ts.map +1 -0
- package/dist/animation/indication/ShowCreationThenDestruction.d.ts +26 -0
- package/dist/animation/indication/ShowCreationThenDestruction.d.ts.map +1 -0
- package/dist/animation/indication/ShowPassingFlash.d.ts +47 -0
- package/dist/animation/indication/ShowPassingFlash.d.ts.map +1 -0
- package/dist/animation/indication/ShowPassingFlashWithThinningStrokeWidth.d.ts +21 -0
- package/dist/animation/indication/ShowPassingFlashWithThinningStrokeWidth.d.ts.map +1 -0
- package/dist/animation/indication/Wiggle.d.ts +48 -0
- package/dist/animation/indication/Wiggle.d.ts.map +1 -0
- package/dist/animation/indication/WiggleOutThenIn.d.ts +44 -0
- package/dist/animation/indication/WiggleOutThenIn.d.ts.map +1 -0
- package/dist/animation/indication/index.d.ts +20 -0
- package/dist/animation/indication/index.d.ts.map +1 -0
- package/dist/animation/movement/Homotopy.d.ts +204 -0
- package/dist/animation/movement/Homotopy.d.ts.map +1 -0
- package/dist/animation/movement/MoveAlongPath.d.ts +48 -0
- package/dist/animation/movement/MoveAlongPath.d.ts.map +1 -0
- package/dist/animation/movement/Rotate.d.ts +47 -0
- package/dist/animation/movement/Rotate.d.ts.map +1 -0
- package/dist/animation/movement/Scale.d.ts +74 -0
- package/dist/animation/movement/Scale.d.ts.map +1 -0
- package/dist/animation/movement/Shift.d.ts +74 -0
- package/dist/animation/movement/Shift.d.ts.map +1 -0
- package/dist/animation/movement/index.d.ts +6 -0
- package/dist/animation/movement/index.d.ts.map +1 -0
- package/dist/animation/numbers/index.d.ts +152 -0
- package/dist/animation/numbers/index.d.ts.map +1 -0
- package/dist/animation/speed/index.d.ts +114 -0
- package/dist/animation/speed/index.d.ts.map +1 -0
- package/dist/animation/transform/ApplyPointwiseFunction.d.ts +23 -0
- package/dist/animation/transform/ApplyPointwiseFunction.d.ts.map +1 -0
- package/dist/animation/transform/Transform.d.ts +89 -0
- package/dist/animation/transform/Transform.d.ts.map +1 -0
- package/dist/animation/transform/TransformExtensions.d.ts +444 -0
- package/dist/animation/transform/TransformExtensions.d.ts.map +1 -0
- package/dist/animation/transform/TransformMatching.d.ts +138 -0
- package/dist/animation/transform/TransformMatching.d.ts.map +1 -0
- package/dist/animation/transform/index.d.ts +5 -0
- package/dist/animation/transform/index.d.ts.map +1 -0
- package/dist/animation/utility/index.d.ts +171 -0
- package/dist/animation/utility/index.d.ts.map +1 -0
- package/dist/constants/colors.d.ts +72 -0
- package/dist/constants/colors.d.ts.map +1 -0
- package/dist/constants/colors.test.d.ts +2 -0
- package/dist/constants/colors.test.d.ts.map +1 -0
- package/dist/constants/directions.test.d.ts +2 -0
- package/dist/constants/directions.test.d.ts.map +1 -0
- package/dist/constants/index.d.ts +16 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/core/AudioManager.d.ts +203 -0
- package/dist/core/AudioManager.d.ts.map +1 -0
- package/dist/core/Camera.d.ts +172 -0
- package/dist/core/Camera.d.ts.map +1 -0
- package/dist/core/Camera2DFrame.d.ts +31 -0
- package/dist/core/Camera2DFrame.d.ts.map +1 -0
- package/dist/core/CameraExtensions.d.ts +420 -0
- package/dist/core/CameraExtensions.d.ts.map +1 -0
- package/dist/core/CameraFrame.d.ts +178 -0
- package/dist/core/CameraFrame.d.ts.map +1 -0
- package/dist/core/Group.d.ts +139 -0
- package/dist/core/Group.d.ts.map +1 -0
- package/dist/core/InteractiveScene.d.ts +122 -0
- package/dist/core/InteractiveScene.d.ts.map +1 -0
- package/dist/core/Lighting.d.ts +128 -0
- package/dist/core/Lighting.d.ts.map +1 -0
- package/dist/core/Mobject.d.ts +488 -0
- package/dist/core/Mobject.d.ts.map +1 -0
- package/dist/core/Renderer.d.ts +84 -0
- package/dist/core/Renderer.d.ts.map +1 -0
- package/dist/core/Scene.d.ts +353 -0
- package/dist/core/Scene.d.ts.map +1 -0
- package/dist/core/SceneExtensions.d.ts +640 -0
- package/dist/core/SceneExtensions.d.ts.map +1 -0
- package/dist/core/SceneExtensions.test.d.ts +2 -0
- package/dist/core/SceneExtensions.test.d.ts.map +1 -0
- package/dist/core/StateManager.d.ts +193 -0
- package/dist/core/StateManager.d.ts.map +1 -0
- package/dist/core/VDict.d.ts +229 -0
- package/dist/core/VDict.d.ts.map +1 -0
- package/dist/core/VGroup.d.ts +200 -0
- package/dist/core/VGroup.d.ts.map +1 -0
- package/dist/core/VMobject.d.ts +419 -0
- package/dist/core/VMobject.d.ts.map +1 -0
- package/dist/core/index.d.ts +16 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/examples.test.d.ts +2 -0
- package/dist/examples.test.d.ts.map +1 -0
- package/dist/export/GifExporter.d.ts +40 -0
- package/dist/export/GifExporter.d.ts.map +1 -0
- package/dist/export/VideoExporter.d.ts +135 -0
- package/dist/export/VideoExporter.d.ts.map +1 -0
- package/dist/export/index.d.ts +3 -0
- package/dist/export/index.d.ts.map +1 -0
- package/dist/index.d.ts +65 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +49064 -0
- package/dist/integrations/index.d.ts +1 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/react.d.ts +144 -0
- package/dist/integrations/react.d.ts.map +1 -0
- package/dist/integrations/react.js +570 -0
- package/dist/integrations/vue.d.ts +249 -0
- package/dist/integrations/vue.d.ts.map +1 -0
- package/dist/integrations/vue.js +560 -0
- package/dist/interaction/Clickable.d.ts +71 -0
- package/dist/interaction/Clickable.d.ts.map +1 -0
- package/dist/interaction/Controls.d.ts +174 -0
- package/dist/interaction/Controls.d.ts.map +1 -0
- package/dist/interaction/Draggable.d.ts +88 -0
- package/dist/interaction/Draggable.d.ts.map +1 -0
- package/dist/interaction/Hoverable.d.ts +82 -0
- package/dist/interaction/Hoverable.d.ts.map +1 -0
- package/dist/interaction/OrbitControls.d.ts +139 -0
- package/dist/interaction/OrbitControls.d.ts.map +1 -0
- package/dist/interaction/PlaybackControls.d.ts +113 -0
- package/dist/interaction/PlaybackControls.d.ts.map +1 -0
- package/dist/interaction/SelectionManager.d.ts +125 -0
- package/dist/interaction/SelectionManager.d.ts.map +1 -0
- package/dist/interaction/index.d.ts +12 -0
- package/dist/interaction/index.d.ts.map +1 -0
- package/dist/mobjects/fractals/MandelbrotSet.d.ts +92 -0
- package/dist/mobjects/fractals/MandelbrotSet.d.ts.map +1 -0
- package/dist/mobjects/fractals/NewtonFractal.d.ts +121 -0
- package/dist/mobjects/fractals/NewtonFractal.d.ts.map +1 -0
- package/dist/mobjects/fractals/index.d.ts +3 -0
- package/dist/mobjects/fractals/index.d.ts.map +1 -0
- package/dist/mobjects/frame/index.d.ts +188 -0
- package/dist/mobjects/frame/index.d.ts.map +1 -0
- package/dist/mobjects/geometry/AngleShapes.d.ts +326 -0
- package/dist/mobjects/geometry/AngleShapes.d.ts.map +1 -0
- package/dist/mobjects/geometry/Arc.d.ts +111 -0
- package/dist/mobjects/geometry/Arc.d.ts.map +1 -0
- package/dist/mobjects/geometry/ArcBetweenPoints.d.ts +68 -0
- package/dist/mobjects/geometry/ArcBetweenPoints.d.ts.map +1 -0
- package/dist/mobjects/geometry/ArcShapes.d.ts +659 -0
- package/dist/mobjects/geometry/ArcShapes.d.ts.map +1 -0
- package/dist/mobjects/geometry/Arrow.d.ts +130 -0
- package/dist/mobjects/geometry/Arrow.d.ts.map +1 -0
- package/dist/mobjects/geometry/ArrowTips.d.ts +238 -0
- package/dist/mobjects/geometry/ArrowTips.d.ts.map +1 -0
- package/dist/mobjects/geometry/BooleanOperations.d.ts +163 -0
- package/dist/mobjects/geometry/BooleanOperations.d.ts.map +1 -0
- package/dist/mobjects/geometry/Circle.d.ts +92 -0
- package/dist/mobjects/geometry/Circle.d.ts.map +1 -0
- package/dist/mobjects/geometry/CubicBezier.d.ts +126 -0
- package/dist/mobjects/geometry/CubicBezier.d.ts.map +1 -0
- package/dist/mobjects/geometry/DashedLine.d.ts +109 -0
- package/dist/mobjects/geometry/DashedLine.d.ts.map +1 -0
- package/dist/mobjects/geometry/DashedVMobject.d.ts +96 -0
- package/dist/mobjects/geometry/DashedVMobject.d.ts.map +1 -0
- package/dist/mobjects/geometry/Dot.d.ts +100 -0
- package/dist/mobjects/geometry/Dot.d.ts.map +1 -0
- package/dist/mobjects/geometry/LabeledGeometry.d.ts +372 -0
- package/dist/mobjects/geometry/LabeledGeometry.d.ts.map +1 -0
- package/dist/mobjects/geometry/Line.d.ts +83 -0
- package/dist/mobjects/geometry/Line.d.ts.map +1 -0
- package/dist/mobjects/geometry/Polygon.d.ts +155 -0
- package/dist/mobjects/geometry/Polygon.d.ts.map +1 -0
- package/dist/mobjects/geometry/PolygonExtensions.d.ts +412 -0
- package/dist/mobjects/geometry/PolygonExtensions.d.ts.map +1 -0
- package/dist/mobjects/geometry/Rectangle.d.ts +123 -0
- package/dist/mobjects/geometry/Rectangle.d.ts.map +1 -0
- package/dist/mobjects/geometry/ShapeMatchers.d.ts +252 -0
- package/dist/mobjects/geometry/ShapeMatchers.d.ts.map +1 -0
- package/dist/mobjects/geometry/index.d.ts +25 -0
- package/dist/mobjects/geometry/index.d.ts.map +1 -0
- package/dist/mobjects/graph/index.d.ts +425 -0
- package/dist/mobjects/graph/index.d.ts.map +1 -0
- package/dist/mobjects/graphing/Axes.d.ts +254 -0
- package/dist/mobjects/graphing/Axes.d.ts.map +1 -0
- package/dist/mobjects/graphing/BarChart.d.ts +241 -0
- package/dist/mobjects/graphing/BarChart.d.ts.map +1 -0
- package/dist/mobjects/graphing/ComplexPlane.d.ts +311 -0
- package/dist/mobjects/graphing/ComplexPlane.d.ts.map +1 -0
- package/dist/mobjects/graphing/FunctionGraph.d.ts +123 -0
- package/dist/mobjects/graphing/FunctionGraph.d.ts.map +1 -0
- package/dist/mobjects/graphing/ImplicitFunction.d.ts +131 -0
- package/dist/mobjects/graphing/ImplicitFunction.d.ts.map +1 -0
- package/dist/mobjects/graphing/NumberLine.d.ts +195 -0
- package/dist/mobjects/graphing/NumberLine.d.ts.map +1 -0
- package/dist/mobjects/graphing/NumberPlane.d.ts +91 -0
- package/dist/mobjects/graphing/NumberPlane.d.ts.map +1 -0
- package/dist/mobjects/graphing/ParametricFunction.d.ts +111 -0
- package/dist/mobjects/graphing/ParametricFunction.d.ts.map +1 -0
- package/dist/mobjects/graphing/Vector.d.ts +121 -0
- package/dist/mobjects/graphing/Vector.d.ts.map +1 -0
- package/dist/mobjects/graphing/VectorField.d.ts +321 -0
- package/dist/mobjects/graphing/VectorField.d.ts.map +1 -0
- package/dist/mobjects/graphing/index.d.ts +18 -0
- package/dist/mobjects/graphing/index.d.ts.map +1 -0
- package/dist/mobjects/image/index.d.ts +223 -0
- package/dist/mobjects/image/index.d.ts.map +1 -0
- package/dist/mobjects/matrix/Matrix.d.ts +260 -0
- package/dist/mobjects/matrix/Matrix.d.ts.map +1 -0
- package/dist/mobjects/matrix/index.d.ts +8 -0
- package/dist/mobjects/matrix/index.d.ts.map +1 -0
- package/dist/mobjects/point/index.d.ts +707 -0
- package/dist/mobjects/point/index.d.ts.map +1 -0
- package/dist/mobjects/probability/DiceFace.d.ts +137 -0
- package/dist/mobjects/probability/DiceFace.d.ts.map +1 -0
- package/dist/mobjects/probability/SampleSpace.d.ts +267 -0
- package/dist/mobjects/probability/SampleSpace.d.ts.map +1 -0
- package/dist/mobjects/probability/index.d.ts +9 -0
- package/dist/mobjects/probability/index.d.ts.map +1 -0
- package/dist/mobjects/svg/Brace.d.ts +308 -0
- package/dist/mobjects/svg/Brace.d.ts.map +1 -0
- package/dist/mobjects/svg/SVGMobject.d.ts +64 -0
- package/dist/mobjects/svg/SVGMobject.d.ts.map +1 -0
- package/dist/mobjects/svg/index.d.ts +10 -0
- package/dist/mobjects/svg/index.d.ts.map +1 -0
- package/dist/mobjects/table/Table.d.ts +315 -0
- package/dist/mobjects/table/Table.d.ts.map +1 -0
- package/dist/mobjects/table/index.d.ts +8 -0
- package/dist/mobjects/table/index.d.ts.map +1 -0
- package/dist/mobjects/text/Code.d.ts +244 -0
- package/dist/mobjects/text/Code.d.ts.map +1 -0
- package/dist/mobjects/text/DecimalNumber.d.ts +199 -0
- package/dist/mobjects/text/DecimalNumber.d.ts.map +1 -0
- package/dist/mobjects/text/GlyphVMobject.d.ts +76 -0
- package/dist/mobjects/text/GlyphVMobject.d.ts.map +1 -0
- package/dist/mobjects/text/MarkupText.d.ts +161 -0
- package/dist/mobjects/text/MarkupText.d.ts.map +1 -0
- package/dist/mobjects/text/MathJaxRenderer.d.ts +49 -0
- package/dist/mobjects/text/MathJaxRenderer.d.ts.map +1 -0
- package/dist/mobjects/text/MathTex.d.ts +242 -0
- package/dist/mobjects/text/MathTex.d.ts.map +1 -0
- package/dist/mobjects/text/Paragraph.d.ts +86 -0
- package/dist/mobjects/text/Paragraph.d.ts.map +1 -0
- package/dist/mobjects/text/Tex.d.ts +40 -0
- package/dist/mobjects/text/Tex.d.ts.map +1 -0
- package/dist/mobjects/text/Text.d.ts +171 -0
- package/dist/mobjects/text/Text.d.ts.map +1 -0
- package/dist/mobjects/text/TextExtensions.d.ts +383 -0
- package/dist/mobjects/text/TextExtensions.d.ts.map +1 -0
- package/dist/mobjects/text/TextGlyphGroup.d.ts +48 -0
- package/dist/mobjects/text/TextGlyphGroup.d.ts.map +1 -0
- package/dist/mobjects/text/Variable.d.ts +160 -0
- package/dist/mobjects/text/Variable.d.ts.map +1 -0
- package/dist/mobjects/text/index.d.ts +21 -0
- package/dist/mobjects/text/index.d.ts.map +1 -0
- package/dist/mobjects/text/katex-styles.d.ts +23 -0
- package/dist/mobjects/text/katex-styles.d.ts.map +1 -0
- package/dist/mobjects/text/svgPathParser.d.ts +39 -0
- package/dist/mobjects/text/svgPathParser.d.ts.map +1 -0
- package/dist/mobjects/three-d/Arrow3D.d.ts +136 -0
- package/dist/mobjects/three-d/Arrow3D.d.ts.map +1 -0
- package/dist/mobjects/three-d/Cube.d.ts +186 -0
- package/dist/mobjects/three-d/Cube.d.ts.map +1 -0
- package/dist/mobjects/three-d/Cylinder.d.ts +189 -0
- package/dist/mobjects/three-d/Cylinder.d.ts.map +1 -0
- package/dist/mobjects/three-d/Line3D.d.ts +100 -0
- package/dist/mobjects/three-d/Line3D.d.ts.map +1 -0
- package/dist/mobjects/three-d/ParametricSurface.d.ts +86 -0
- package/dist/mobjects/three-d/ParametricSurface.d.ts.map +1 -0
- package/dist/mobjects/three-d/Polyhedra.d.ts +271 -0
- package/dist/mobjects/three-d/Polyhedra.d.ts.map +1 -0
- package/dist/mobjects/three-d/Sphere.d.ts +100 -0
- package/dist/mobjects/three-d/Sphere.d.ts.map +1 -0
- package/dist/mobjects/three-d/Surface3D.d.ts +156 -0
- package/dist/mobjects/three-d/Surface3D.d.ts.map +1 -0
- package/dist/mobjects/three-d/TexturedSurface.d.ts +208 -0
- package/dist/mobjects/three-d/TexturedSurface.d.ts.map +1 -0
- package/dist/mobjects/three-d/ThreeDAxes.d.ts +172 -0
- package/dist/mobjects/three-d/ThreeDAxes.d.ts.map +1 -0
- package/dist/mobjects/three-d/ThreeDExtensions.d.ts +335 -0
- package/dist/mobjects/three-d/ThreeDExtensions.d.ts.map +1 -0
- package/dist/mobjects/three-d/Torus.d.ts +123 -0
- package/dist/mobjects/three-d/Torus.d.ts.map +1 -0
- package/dist/mobjects/three-d/index.d.ts +19 -0
- package/dist/mobjects/three-d/index.d.ts.map +1 -0
- package/dist/mobjects/value-tracker/ValueTracker.d.ts +248 -0
- package/dist/mobjects/value-tracker/ValueTracker.d.ts.map +1 -0
- package/dist/mobjects/value-tracker/index.d.ts +9 -0
- package/dist/mobjects/value-tracker/index.d.ts.map +1 -0
- package/dist/rate-functions/index.d.ts +81 -0
- package/dist/rate-functions/index.d.ts.map +1 -0
- package/dist/rate-functions/rateFunctions.test.d.ts +2 -0
- package/dist/rate-functions/rateFunctions.test.d.ts.map +1 -0
- package/dist/rendering/BezierRenderer.d.ts +112 -0
- package/dist/rendering/BezierRenderer.d.ts.map +1 -0
- package/dist/rendering/BezierShaderMaterial.d.ts +50 -0
- package/dist/rendering/BezierShaderMaterial.d.ts.map +1 -0
- package/dist/rendering/index.d.ts +10 -0
- package/dist/rendering/index.d.ts.map +1 -0
- package/dist/utils/Performance.d.ts +118 -0
- package/dist/utils/Performance.d.ts.map +1 -0
- package/dist/utils/featureFlags.d.ts +15 -0
- package/dist/utils/featureFlags.d.ts.map +1 -0
- package/dist/utils/hungarian.d.ts +66 -0
- package/dist/utils/hungarian.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +14 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/math.d.ts +52 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/ode.d.ts +135 -0
- package/dist/utils/ode.d.ts.map +1 -0
- package/dist/utils/skeletonize.d.ts +35 -0
- package/dist/utils/skeletonize.d.ts.map +1 -0
- package/dist/utils/triangulate.d.ts +54 -0
- package/dist/utils/triangulate.d.ts.map +1 -0
- package/dist/utils/vectors.d.ts +57 -0
- package/dist/utils/vectors.d.ts.map +1 -0
- package/package.json +122 -0
|
@@ -0,0 +1,640 @@
|
|
|
1
|
+
import { Scene, SceneOptions } from './Scene';
|
|
2
|
+
import { Camera3D } from './Camera';
|
|
3
|
+
import { Lighting } from './Lighting';
|
|
4
|
+
import { OrbitControls, OrbitControlsOptions } from '../interaction/OrbitControls';
|
|
5
|
+
import { Mobject, Vector3Tuple } from './Mobject';
|
|
6
|
+
import { Rectangle } from '../mobjects/geometry/Rectangle';
|
|
7
|
+
import { Animation, AnimationOptions } from '../animation/Animation';
|
|
8
|
+
import * as THREE from 'three';
|
|
9
|
+
/**
|
|
10
|
+
* Options for configuring a ThreeDScene.
|
|
11
|
+
*/
|
|
12
|
+
export interface ThreeDSceneOptions extends SceneOptions {
|
|
13
|
+
/** Camera field of view in degrees. Defaults to 45. */
|
|
14
|
+
fov?: number;
|
|
15
|
+
/** Initial camera phi angle (polar, from Y axis). Defaults to PI/4. */
|
|
16
|
+
phi?: number;
|
|
17
|
+
/** Initial camera theta angle (azimuthal, in XZ plane). Defaults to -PI/4. */
|
|
18
|
+
theta?: number;
|
|
19
|
+
/** Initial camera distance from origin. Defaults to 15. */
|
|
20
|
+
distance?: number;
|
|
21
|
+
/** Enable orbit controls for user interaction. Defaults to true. */
|
|
22
|
+
enableOrbitControls?: boolean;
|
|
23
|
+
/** Orbit controls configuration options. */
|
|
24
|
+
orbitControlsOptions?: OrbitControlsOptions;
|
|
25
|
+
/** Whether to set up default lighting. Defaults to true. */
|
|
26
|
+
setupLighting?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Scene configured for 3D content.
|
|
30
|
+
* Provides a 3D camera, orbit controls, and lighting setup by default.
|
|
31
|
+
* Compatible with the Timeline system for animations.
|
|
32
|
+
*/
|
|
33
|
+
export declare class ThreeDScene extends Scene {
|
|
34
|
+
private _camera3D;
|
|
35
|
+
private _lighting;
|
|
36
|
+
private _orbitControls;
|
|
37
|
+
private _orbitControlsEnabled;
|
|
38
|
+
private _isRendering;
|
|
39
|
+
private _hudScene;
|
|
40
|
+
private _hudCamera;
|
|
41
|
+
private _fixedMobjects;
|
|
42
|
+
private _ambientRotationRate;
|
|
43
|
+
private _lastRenderTime;
|
|
44
|
+
private _illusionRotationRate;
|
|
45
|
+
private _illusionOriginPhi;
|
|
46
|
+
private _illusionOriginTheta;
|
|
47
|
+
private _illusionThetaTracker;
|
|
48
|
+
private _illusionPhiTracker;
|
|
49
|
+
private _illusionActive;
|
|
50
|
+
/**
|
|
51
|
+
* Create a new 3D scene.
|
|
52
|
+
* @param container - DOM element to render into
|
|
53
|
+
* @param options - Scene configuration options
|
|
54
|
+
*/
|
|
55
|
+
constructor(container: HTMLElement, options?: ThreeDSceneOptions);
|
|
56
|
+
/**
|
|
57
|
+
* Get the 3D camera.
|
|
58
|
+
*/
|
|
59
|
+
get camera3D(): Camera3D;
|
|
60
|
+
/**
|
|
61
|
+
* Get the lighting system.
|
|
62
|
+
*/
|
|
63
|
+
get lighting(): Lighting;
|
|
64
|
+
/**
|
|
65
|
+
* Get the orbit controls (if enabled).
|
|
66
|
+
*/
|
|
67
|
+
get orbitControls(): OrbitControls | null;
|
|
68
|
+
/**
|
|
69
|
+
* Set the camera orientation using spherical coordinates.
|
|
70
|
+
* @param phi - Polar angle from Y axis (0 = top, PI = bottom)
|
|
71
|
+
* @param theta - Azimuthal angle in XZ plane
|
|
72
|
+
* @param distance - Optional distance from the look-at point
|
|
73
|
+
* @returns this for chaining
|
|
74
|
+
*/
|
|
75
|
+
setCameraOrientation(phi: number, theta: number, distance?: number): this;
|
|
76
|
+
/**
|
|
77
|
+
* Set the camera's look-at target.
|
|
78
|
+
* @param target - Target position [x, y, z]
|
|
79
|
+
* @returns this for chaining
|
|
80
|
+
*/
|
|
81
|
+
setLookAt(target: Vector3Tuple): this;
|
|
82
|
+
/**
|
|
83
|
+
* Get the current camera orientation angles.
|
|
84
|
+
* @returns Object with phi, theta, and distance
|
|
85
|
+
*/
|
|
86
|
+
getCameraOrientation(): {
|
|
87
|
+
phi: number;
|
|
88
|
+
theta: number;
|
|
89
|
+
distance: number;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Begin continuous ambient rotation of the camera around the scene.
|
|
93
|
+
* Rotates the camera's theta angle at the given rate (radians per second)
|
|
94
|
+
* during wait() calls and play() calls.
|
|
95
|
+
* Equivalent to Python Manim's begin_ambient_camera_rotation(rate).
|
|
96
|
+
* @param rate - Rotation rate in radians per second. Defaults to 0.1.
|
|
97
|
+
* @returns this for chaining
|
|
98
|
+
*/
|
|
99
|
+
beginAmbientCameraRotation(rate?: number): this;
|
|
100
|
+
/**
|
|
101
|
+
* Stop the ambient camera rotation.
|
|
102
|
+
* Equivalent to Python Manim's stop_ambient_camera_rotation().
|
|
103
|
+
* @returns this for chaining
|
|
104
|
+
*/
|
|
105
|
+
stopAmbientCameraRotation(): this;
|
|
106
|
+
/**
|
|
107
|
+
* Begin 3D illusion camera rotation.
|
|
108
|
+
* Unlike ambient rotation (which only rotates theta), this also oscillates
|
|
109
|
+
* phi sinusoidally, creating a wobbling 3D illusion as if the viewer walks
|
|
110
|
+
* around the scene.
|
|
111
|
+
* Equivalent to Python Manim's begin_3dillusion_camera_rotation(rate).
|
|
112
|
+
* @param rate - Rotation rate in radians per second. Defaults to 2.
|
|
113
|
+
* @returns this for chaining
|
|
114
|
+
*/
|
|
115
|
+
begin3DIllusionCameraRotation(rate?: number): this;
|
|
116
|
+
/**
|
|
117
|
+
* Stop the 3D illusion camera rotation.
|
|
118
|
+
* Equivalent to Python Manim's stop_3dillusion_camera_rotation().
|
|
119
|
+
* @returns this for chaining
|
|
120
|
+
*/
|
|
121
|
+
stop3DIllusionCameraRotation(): this;
|
|
122
|
+
/**
|
|
123
|
+
* Animate the camera to a new orientation over a given duration.
|
|
124
|
+
* Equivalent to Python Manim's move_camera(phi, theta, distance).
|
|
125
|
+
* If no duration is given, snaps instantly.
|
|
126
|
+
* @param options - Target orientation and duration
|
|
127
|
+
* @returns Promise that resolves when the animation completes
|
|
128
|
+
*/
|
|
129
|
+
moveCamera(options: {
|
|
130
|
+
phi?: number;
|
|
131
|
+
theta?: number;
|
|
132
|
+
distance?: number;
|
|
133
|
+
duration?: number;
|
|
134
|
+
}): Promise<void>;
|
|
135
|
+
/**
|
|
136
|
+
* Enable or disable orbit controls.
|
|
137
|
+
* @param enabled - Whether orbit controls should be enabled
|
|
138
|
+
* @returns this for chaining
|
|
139
|
+
*/
|
|
140
|
+
setOrbitControlsEnabled(enabled: boolean): this;
|
|
141
|
+
/**
|
|
142
|
+
* Pin mobjects to the screen (HUD) so they don't move with the 3D camera.
|
|
143
|
+
* Equivalent to Python Manim's add_fixed_in_frame_mobjects.
|
|
144
|
+
* @param mobjects - Mobjects to fix in screen space
|
|
145
|
+
* @returns this for chaining
|
|
146
|
+
*/
|
|
147
|
+
addFixedInFrameMobjects(...mobjects: Mobject[]): this;
|
|
148
|
+
/**
|
|
149
|
+
* Remove mobjects from the fixed-in-frame HUD.
|
|
150
|
+
* @param mobjects - Mobjects to unpin from screen space
|
|
151
|
+
* @returns this for chaining
|
|
152
|
+
*/
|
|
153
|
+
removeFixedInFrameMobjects(...mobjects: Mobject[]): this;
|
|
154
|
+
/**
|
|
155
|
+
* Override _render to use the 3D camera with two-pass rendering for HUD.
|
|
156
|
+
* This is called by the animation loop internally.
|
|
157
|
+
*/
|
|
158
|
+
protected _render(): void;
|
|
159
|
+
/**
|
|
160
|
+
* Public render - delegates to _render.
|
|
161
|
+
*/
|
|
162
|
+
render(): void;
|
|
163
|
+
/**
|
|
164
|
+
* Override clear to also clear the HUD scene and fixed mobjects.
|
|
165
|
+
*/
|
|
166
|
+
clear(): this;
|
|
167
|
+
/**
|
|
168
|
+
* Override remove to also handle fixed mobjects.
|
|
169
|
+
*/
|
|
170
|
+
remove(...mobjects: Mobject[]): this;
|
|
171
|
+
/**
|
|
172
|
+
* Handle window resize.
|
|
173
|
+
* @param width - New width in pixels
|
|
174
|
+
* @param height - New height in pixels
|
|
175
|
+
*/
|
|
176
|
+
resize(width: number, height: number): this;
|
|
177
|
+
/**
|
|
178
|
+
* Clean up all resources.
|
|
179
|
+
*/
|
|
180
|
+
dispose(): void;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Options for configuring a MovingCameraScene.
|
|
184
|
+
*/
|
|
185
|
+
export interface MovingCameraSceneOptions extends SceneOptions {
|
|
186
|
+
/** Default duration for camera animations. Defaults to 1 second. */
|
|
187
|
+
defaultCameraDuration?: number;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Scene with moving camera support.
|
|
191
|
+
* The camera can be animated smoothly between positions.
|
|
192
|
+
* Maintains frame of reference tracking for complex camera movements.
|
|
193
|
+
*/
|
|
194
|
+
export declare class MovingCameraScene extends Scene {
|
|
195
|
+
/** Frame of reference - the point the camera tracks */
|
|
196
|
+
private _frameCenter;
|
|
197
|
+
/** Default duration for camera animations */
|
|
198
|
+
private _defaultCameraDuration;
|
|
199
|
+
/** Pending camera animation state */
|
|
200
|
+
private _cameraAnimating;
|
|
201
|
+
private _cameraAnimationStart;
|
|
202
|
+
private _cameraAnimationTarget;
|
|
203
|
+
private _cameraAnimationProgress;
|
|
204
|
+
private _cameraAnimationDuration;
|
|
205
|
+
/** Zoom animation state */
|
|
206
|
+
private _zoomAnimating;
|
|
207
|
+
private _zoomStart;
|
|
208
|
+
private _zoomTarget;
|
|
209
|
+
private _zoomProgress;
|
|
210
|
+
private _zoomDuration;
|
|
211
|
+
/**
|
|
212
|
+
* Create a new moving camera scene.
|
|
213
|
+
* @param container - DOM element to render into
|
|
214
|
+
* @param options - Scene configuration options
|
|
215
|
+
*/
|
|
216
|
+
constructor(container: HTMLElement, options?: MovingCameraSceneOptions);
|
|
217
|
+
/**
|
|
218
|
+
* Get the current frame center (what the camera is tracking).
|
|
219
|
+
*/
|
|
220
|
+
get frameCenter(): Vector3Tuple;
|
|
221
|
+
/**
|
|
222
|
+
* Set the frame center directly (no animation).
|
|
223
|
+
* @param point - New frame center [x, y, z]
|
|
224
|
+
* @returns this for chaining
|
|
225
|
+
*/
|
|
226
|
+
setFrameCenter(point: Vector3Tuple): this;
|
|
227
|
+
/**
|
|
228
|
+
* Animate the camera to a new position.
|
|
229
|
+
* @param position - Target position [x, y, z]
|
|
230
|
+
* @param duration - Animation duration in seconds (optional)
|
|
231
|
+
* @returns Promise that resolves when the animation completes
|
|
232
|
+
*/
|
|
233
|
+
moveCameraTo(position: Vector3Tuple, duration?: number): Promise<void>;
|
|
234
|
+
/**
|
|
235
|
+
* Animate zoom to a specific level.
|
|
236
|
+
* @param zoom - Target zoom level (1 = normal, 2 = 2x zoom in)
|
|
237
|
+
* @param duration - Animation duration in seconds (optional)
|
|
238
|
+
* @returns Promise that resolves when the animation completes
|
|
239
|
+
*/
|
|
240
|
+
zoomTo(zoom: number, duration?: number): Promise<void>;
|
|
241
|
+
/**
|
|
242
|
+
* Pan the camera to follow a target point.
|
|
243
|
+
* @param target - Target point to pan to [x, y, z]
|
|
244
|
+
* @param duration - Animation duration in seconds (optional)
|
|
245
|
+
* @returns Promise that resolves when the animation completes
|
|
246
|
+
*/
|
|
247
|
+
panTo(target: Vector3Tuple, duration?: number): Promise<void>;
|
|
248
|
+
/**
|
|
249
|
+
* Follow a mobject with the camera (keeps it centered).
|
|
250
|
+
* @param mobject - The mobject to follow
|
|
251
|
+
* @param duration - Duration to follow (0 = instant move)
|
|
252
|
+
* @returns Promise that resolves when initial move completes
|
|
253
|
+
*/
|
|
254
|
+
followMobject(mobject: Mobject, duration?: number): Promise<void>;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Options for configuring a ZoomedScene.
|
|
258
|
+
*/
|
|
259
|
+
export interface ZoomedSceneOptions extends SceneOptions {
|
|
260
|
+
/** Width of the zoom camera frame in world units. Defaults to 3. */
|
|
261
|
+
cameraFrameWidth?: number;
|
|
262
|
+
/** Height of the zoom camera frame in world units. Defaults to 3. */
|
|
263
|
+
cameraFrameHeight?: number;
|
|
264
|
+
/** Default zoom factor (frame.width / display.width). Defaults to 0.3. */
|
|
265
|
+
zoomFactor?: number;
|
|
266
|
+
/** Width of the zoomed display in world units. Defaults to 3. */
|
|
267
|
+
displayWidth?: number;
|
|
268
|
+
/** Height of the zoomed display in world units. Defaults to 3. */
|
|
269
|
+
displayHeight?: number;
|
|
270
|
+
/** Color of the camera frame border. Defaults to '#FFFF00'. */
|
|
271
|
+
cameraFrameColor?: string;
|
|
272
|
+
/** Color of the display frame border. Defaults to '#FFFF00'. */
|
|
273
|
+
displayFrameColor?: string;
|
|
274
|
+
/** Stroke width of camera frame. Defaults to 3. */
|
|
275
|
+
cameraFrameStrokeWidth?: number;
|
|
276
|
+
/** Stroke width of display frame. Defaults to 3. */
|
|
277
|
+
displayFrameStrokeWidth?: number;
|
|
278
|
+
/** Size of render target in pixels. Defaults to 512. */
|
|
279
|
+
renderTargetSize?: number;
|
|
280
|
+
/** Corner direction for zoomed display [x, y, z]. Defaults to UP+RIGHT [1,1,0]. */
|
|
281
|
+
displayCorner?: [number, number, number];
|
|
282
|
+
/** Buffer from corner edges. Defaults to 0.5. */
|
|
283
|
+
displayCornerBuff?: number;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Helper: the zoomed camera with its visible frame rectangle.
|
|
287
|
+
*/
|
|
288
|
+
declare class ZoomedCamera {
|
|
289
|
+
/** The visible frame rectangle showing the zoom region */
|
|
290
|
+
readonly frame: Rectangle;
|
|
291
|
+
constructor(width: number, height: number, color: string, strokeWidth: number);
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Helper: a Mobject that contains both the render-target texture mesh
|
|
295
|
+
* and a visible display frame border.
|
|
296
|
+
*/
|
|
297
|
+
declare class ZoomedDisplay extends Mobject {
|
|
298
|
+
/** The visible border of the display window */
|
|
299
|
+
readonly displayFrame: Rectangle;
|
|
300
|
+
/** The THREE.Mesh showing the zoomed texture */
|
|
301
|
+
private _imageMesh;
|
|
302
|
+
/** Width/height in world units */
|
|
303
|
+
private _width;
|
|
304
|
+
private _height;
|
|
305
|
+
constructor(width: number, height: number, renderTarget: THREE.WebGLRenderTarget, color: string, strokeWidth: number);
|
|
306
|
+
protected _createThreeObject(): THREE.Object3D;
|
|
307
|
+
_syncToThree(): void;
|
|
308
|
+
protected _createCopy(): Mobject;
|
|
309
|
+
getWidth(): number;
|
|
310
|
+
getHeight(): number;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Animation that pops the zoomed display out from the camera frame to its
|
|
314
|
+
* target position, mimicking Manim's get_zoomed_display_pop_out_animation().
|
|
315
|
+
*
|
|
316
|
+
* In begin(), the display's current position/scale are saved, then the display
|
|
317
|
+
* is snapped onto the camera frame via replace(frame, stretch=true).
|
|
318
|
+
* interpolate(alpha) lerps from frame-matched state (alpha=0) to the saved
|
|
319
|
+
* original state (alpha=1). Works with reversed rate functions for reverse
|
|
320
|
+
* pop-out.
|
|
321
|
+
*/
|
|
322
|
+
export declare class ZoomDisplayPopOut extends Animation {
|
|
323
|
+
private _savedPosition;
|
|
324
|
+
private _savedScale;
|
|
325
|
+
private _startPosition;
|
|
326
|
+
private _startScale;
|
|
327
|
+
private _frame;
|
|
328
|
+
constructor(display: Mobject, frame: Mobject, options?: AnimationOptions);
|
|
329
|
+
begin(): void;
|
|
330
|
+
interpolate(alpha: number): void;
|
|
331
|
+
finish(): void;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Scene with zoom/magnification capability.
|
|
335
|
+
* Displays a zoomed view of a region in a separate window, using Mobject-based
|
|
336
|
+
* camera frame and display objects compatible with Manim animations.
|
|
337
|
+
*/
|
|
338
|
+
export declare class ZoomedScene extends Scene {
|
|
339
|
+
/** The zoomed camera with its frame */
|
|
340
|
+
readonly zoomedCamera: ZoomedCamera;
|
|
341
|
+
/** The zoomed display (texture + border) */
|
|
342
|
+
readonly zoomedDisplay: ZoomedDisplay;
|
|
343
|
+
/** Whether zooming is currently active */
|
|
344
|
+
private _zoomActive;
|
|
345
|
+
/** Render target for zoomed view */
|
|
346
|
+
private _zoomRenderTarget;
|
|
347
|
+
/** Default display position (for reset in clear()) */
|
|
348
|
+
private _displayDefaultPos;
|
|
349
|
+
constructor(container: HTMLElement, options?: ZoomedSceneOptions);
|
|
350
|
+
/** Check if zooming is active */
|
|
351
|
+
get isZoomActive(): boolean;
|
|
352
|
+
/**
|
|
353
|
+
* Activate zooming: adds camera frame and display to the scene.
|
|
354
|
+
*/
|
|
355
|
+
activateZooming(): this;
|
|
356
|
+
/**
|
|
357
|
+
* Deactivate zooming: removes camera frame and display from the scene.
|
|
358
|
+
*/
|
|
359
|
+
deactivateZooming(): this;
|
|
360
|
+
/**
|
|
361
|
+
* Get a pop-out animation that moves the zoomed display from the camera
|
|
362
|
+
* frame to its current position, mimicking Manim's
|
|
363
|
+
* get_zoomed_display_pop_out_animation().
|
|
364
|
+
*
|
|
365
|
+
* The animation starts by snapping the display onto the frame, then
|
|
366
|
+
* interpolates position and scale to the display's original state.
|
|
367
|
+
* Use { rateFunc: (t) => smooth(1 - t) } for a reverse pop-out.
|
|
368
|
+
*/
|
|
369
|
+
getZoomedDisplayPopOutAnimation(options?: AnimationOptions): Animation;
|
|
370
|
+
/**
|
|
371
|
+
* Override _render to include zoom view on every frame (including animation loop).
|
|
372
|
+
*/
|
|
373
|
+
protected _render(): void;
|
|
374
|
+
/**
|
|
375
|
+
* Override clear to reset zoom state.
|
|
376
|
+
*/
|
|
377
|
+
clear(): this;
|
|
378
|
+
/**
|
|
379
|
+
* Handle window resize.
|
|
380
|
+
*/
|
|
381
|
+
resize(width: number, height: number): this;
|
|
382
|
+
/**
|
|
383
|
+
* Clean up all resources.
|
|
384
|
+
*/
|
|
385
|
+
dispose(): void;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Options for configuring a VectorScene.
|
|
389
|
+
*/
|
|
390
|
+
export interface VectorSceneOptions extends SceneOptions {
|
|
391
|
+
/** Whether to show the coordinate plane by default. Defaults to true. */
|
|
392
|
+
showPlane?: boolean;
|
|
393
|
+
/** X-axis range as [min, max, step]. Defaults to [-5, 5, 1]. */
|
|
394
|
+
xRange?: [number, number, number];
|
|
395
|
+
/** Y-axis range as [min, max, step]. Defaults to [-3, 3, 1]. */
|
|
396
|
+
yRange?: [number, number, number];
|
|
397
|
+
/** Visual length of the x-axis. Defaults to 10. */
|
|
398
|
+
xLength?: number;
|
|
399
|
+
/** Visual length of the y-axis. Defaults to 6. */
|
|
400
|
+
yLength?: number;
|
|
401
|
+
/** Color for the i basis vector. Defaults to green. */
|
|
402
|
+
iColor?: string;
|
|
403
|
+
/** Color for the j basis vector. Defaults to red. */
|
|
404
|
+
jColor?: string;
|
|
405
|
+
/** Whether to show basis vectors on creation. Defaults to false. */
|
|
406
|
+
showBasisVectors?: boolean;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* Scene optimized for vector visualizations.
|
|
410
|
+
* Provides a coordinate plane by default with easy vector addition.
|
|
411
|
+
*/
|
|
412
|
+
export declare class VectorScene extends Scene {
|
|
413
|
+
private _plane;
|
|
414
|
+
private _planeVisible;
|
|
415
|
+
private _xRange;
|
|
416
|
+
private _yRange;
|
|
417
|
+
private _xLength;
|
|
418
|
+
private _yLength;
|
|
419
|
+
private _iColor;
|
|
420
|
+
private _jColor;
|
|
421
|
+
private _vectors;
|
|
422
|
+
private _basisVectorsShown;
|
|
423
|
+
/**
|
|
424
|
+
* Create a new vector scene.
|
|
425
|
+
* @param container - DOM element to render into
|
|
426
|
+
* @param options - Scene configuration options
|
|
427
|
+
*/
|
|
428
|
+
constructor(container: HTMLElement, options?: VectorSceneOptions);
|
|
429
|
+
/**
|
|
430
|
+
* Set up the coordinate plane.
|
|
431
|
+
*/
|
|
432
|
+
private _setupPlane;
|
|
433
|
+
/**
|
|
434
|
+
* Get the coordinate plane.
|
|
435
|
+
*/
|
|
436
|
+
get plane(): Mobject | null;
|
|
437
|
+
/**
|
|
438
|
+
* Convert graph coordinates to visual point coordinates.
|
|
439
|
+
* @param x - X coordinate in graph space
|
|
440
|
+
* @param y - Y coordinate in graph space
|
|
441
|
+
* @returns The visual point [x, y, z]
|
|
442
|
+
*/
|
|
443
|
+
coordsToPoint(x: number, y: number): Vector3Tuple;
|
|
444
|
+
/**
|
|
445
|
+
* Convert visual point to graph coordinates.
|
|
446
|
+
* @param point - Visual point [x, y, z]
|
|
447
|
+
* @returns Graph coordinates [x, y]
|
|
448
|
+
*/
|
|
449
|
+
pointToCoords(point: Vector3Tuple): [number, number];
|
|
450
|
+
/**
|
|
451
|
+
* Check if the plane is visible.
|
|
452
|
+
*/
|
|
453
|
+
get isPlaneVisible(): boolean;
|
|
454
|
+
/**
|
|
455
|
+
* Add a vector to the scene.
|
|
456
|
+
* @param vector - Vector coordinates [x, y] or [x, y, z]
|
|
457
|
+
* @param options - Optional configuration
|
|
458
|
+
* @returns The created vector mobject
|
|
459
|
+
*/
|
|
460
|
+
addVector(vector: [number, number] | Vector3Tuple, options?: {
|
|
461
|
+
color?: string;
|
|
462
|
+
name?: string;
|
|
463
|
+
startPoint?: Vector3Tuple;
|
|
464
|
+
}): Mobject;
|
|
465
|
+
/**
|
|
466
|
+
* Get a named vector.
|
|
467
|
+
* @param name - Name of the vector
|
|
468
|
+
* @returns The vector mobject or undefined
|
|
469
|
+
*/
|
|
470
|
+
getVector(name: string): Mobject | undefined;
|
|
471
|
+
/**
|
|
472
|
+
* Show the standard basis vectors i and j.
|
|
473
|
+
* @returns this for chaining
|
|
474
|
+
*/
|
|
475
|
+
showBasisVectors(): this;
|
|
476
|
+
/**
|
|
477
|
+
* Hide the basis vectors.
|
|
478
|
+
* @returns this for chaining
|
|
479
|
+
*/
|
|
480
|
+
hideBasisVectors(): this;
|
|
481
|
+
/**
|
|
482
|
+
* Get the origin point in visual coordinates.
|
|
483
|
+
*/
|
|
484
|
+
getOrigin(): Vector3Tuple;
|
|
485
|
+
/**
|
|
486
|
+
* Clean up all resources.
|
|
487
|
+
*/
|
|
488
|
+
dispose(): void;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* Options for configuring a LinearTransformationScene.
|
|
492
|
+
*/
|
|
493
|
+
export interface LinearTransformationSceneOptions extends SceneOptions {
|
|
494
|
+
/** X-axis range as [min, max, step]. Defaults to [-5, 5, 1]. */
|
|
495
|
+
xRange?: [number, number, number];
|
|
496
|
+
/** Y-axis range as [min, max, step]. Defaults to [-5, 5, 1]. */
|
|
497
|
+
yRange?: [number, number, number];
|
|
498
|
+
/** Visual length of the x-axis. Defaults to 10. */
|
|
499
|
+
xLength?: number;
|
|
500
|
+
/** Visual length of the y-axis. Defaults to 10. */
|
|
501
|
+
yLength?: number;
|
|
502
|
+
/** Color for the i basis vector. Defaults to green. */
|
|
503
|
+
iColor?: string;
|
|
504
|
+
/** Color for the j basis vector. Defaults to red. */
|
|
505
|
+
jColor?: string;
|
|
506
|
+
/** Whether to show basis vectors by default. Defaults to true. */
|
|
507
|
+
showBasisVectors?: boolean;
|
|
508
|
+
/** Color for background grid lines. Defaults to '#555555'. */
|
|
509
|
+
gridColor?: string;
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* Matrix type for 2D linear transformations.
|
|
513
|
+
* Represented as [[a, b], [c, d]] where the matrix is:
|
|
514
|
+
* | a b |
|
|
515
|
+
* | c d |
|
|
516
|
+
*/
|
|
517
|
+
export type Matrix2D = [[number, number], [number, number]];
|
|
518
|
+
/**
|
|
519
|
+
* Scene for linear algebra visualizations.
|
|
520
|
+
* Shows basis vectors and a grid that transforms with matrices.
|
|
521
|
+
*/
|
|
522
|
+
export declare class LinearTransformationScene extends Scene {
|
|
523
|
+
private _xRange;
|
|
524
|
+
private _yRange;
|
|
525
|
+
private _xLength;
|
|
526
|
+
private _yLength;
|
|
527
|
+
private _iColor;
|
|
528
|
+
private _jColor;
|
|
529
|
+
private _gridColor;
|
|
530
|
+
private _grid;
|
|
531
|
+
private _iVector;
|
|
532
|
+
private _jVector;
|
|
533
|
+
private _transformableObjects;
|
|
534
|
+
private _currentMatrix;
|
|
535
|
+
private _showBasisVectors;
|
|
536
|
+
/**
|
|
537
|
+
* Create a new linear transformation scene.
|
|
538
|
+
* @param container - DOM element to render into
|
|
539
|
+
* @param options - Scene configuration options
|
|
540
|
+
*/
|
|
541
|
+
constructor(container: HTMLElement, options?: LinearTransformationSceneOptions);
|
|
542
|
+
/**
|
|
543
|
+
* Set up the background grid.
|
|
544
|
+
*/
|
|
545
|
+
private _setupGrid;
|
|
546
|
+
/**
|
|
547
|
+
* Set up the basis vectors.
|
|
548
|
+
*/
|
|
549
|
+
private _setupBasisVectors;
|
|
550
|
+
/**
|
|
551
|
+
* Convert x coordinate to visual x position.
|
|
552
|
+
*/
|
|
553
|
+
private _coordToVisualX;
|
|
554
|
+
/**
|
|
555
|
+
* Convert y coordinate to visual y position.
|
|
556
|
+
*/
|
|
557
|
+
private _coordToVisualY;
|
|
558
|
+
/**
|
|
559
|
+
* Convert graph coordinates to visual point coordinates.
|
|
560
|
+
* @param x - X coordinate in graph space
|
|
561
|
+
* @param y - Y coordinate in graph space
|
|
562
|
+
* @returns The visual point [x, y, z]
|
|
563
|
+
*/
|
|
564
|
+
coordsToPoint(x: number, y: number): Vector3Tuple;
|
|
565
|
+
/**
|
|
566
|
+
* Convert visual point to graph coordinates.
|
|
567
|
+
* @param point - Visual point [x, y, z]
|
|
568
|
+
* @returns Graph coordinates [x, y]
|
|
569
|
+
*/
|
|
570
|
+
pointToCoords(point: Vector3Tuple): [number, number];
|
|
571
|
+
/**
|
|
572
|
+
* Get the i basis vector mobject.
|
|
573
|
+
*/
|
|
574
|
+
get iVector(): Mobject | null;
|
|
575
|
+
/**
|
|
576
|
+
* Get the j basis vector mobject.
|
|
577
|
+
*/
|
|
578
|
+
get jVector(): Mobject | null;
|
|
579
|
+
/**
|
|
580
|
+
* Get the background grid mobject.
|
|
581
|
+
*/
|
|
582
|
+
get grid(): Mobject | null;
|
|
583
|
+
/**
|
|
584
|
+
* Get the current transformation matrix.
|
|
585
|
+
*/
|
|
586
|
+
get currentMatrix(): Matrix2D;
|
|
587
|
+
/**
|
|
588
|
+
* Apply a matrix transformation to all transformable objects.
|
|
589
|
+
* @param matrix - 2D transformation matrix [[a, b], [c, d]]
|
|
590
|
+
* @returns this for chaining
|
|
591
|
+
*/
|
|
592
|
+
applyMatrix(matrix: Matrix2D): this;
|
|
593
|
+
/**
|
|
594
|
+
* Reset the transformation to identity.
|
|
595
|
+
* @returns this for chaining
|
|
596
|
+
*/
|
|
597
|
+
resetTransformation(): this;
|
|
598
|
+
/**
|
|
599
|
+
* Rebuild the scene from scratch.
|
|
600
|
+
*/
|
|
601
|
+
private _rebuildScene;
|
|
602
|
+
/**
|
|
603
|
+
* Add a vector to the scene that will transform with the matrix.
|
|
604
|
+
* @param vector - Vector coordinates [x, y]
|
|
605
|
+
* @param options - Optional configuration
|
|
606
|
+
* @returns The created vector mobject
|
|
607
|
+
*/
|
|
608
|
+
addVector(vector: [number, number], options?: {
|
|
609
|
+
color?: string;
|
|
610
|
+
addToTransformable?: boolean;
|
|
611
|
+
}): Mobject;
|
|
612
|
+
/**
|
|
613
|
+
* Add a mobject (such as a label or shape) that will transform with the matrix.
|
|
614
|
+
* Use this to add any mobject that should participate in linear transformations.
|
|
615
|
+
* @param mobject - The mobject to add
|
|
616
|
+
* @param position - Optional position [x, y] in graph coordinates
|
|
617
|
+
* @returns The added mobject
|
|
618
|
+
*/
|
|
619
|
+
addTransformableLabel(mobject: Mobject, position?: [number, number]): Mobject;
|
|
620
|
+
/**
|
|
621
|
+
* Get the origin point in visual coordinates.
|
|
622
|
+
*/
|
|
623
|
+
getOrigin(): Vector3Tuple;
|
|
624
|
+
/**
|
|
625
|
+
* Show the basis vectors if hidden.
|
|
626
|
+
* @returns this for chaining
|
|
627
|
+
*/
|
|
628
|
+
showBasisVectors(): this;
|
|
629
|
+
/**
|
|
630
|
+
* Hide the basis vectors.
|
|
631
|
+
* @returns this for chaining
|
|
632
|
+
*/
|
|
633
|
+
hideBasisVectors(): this;
|
|
634
|
+
/**
|
|
635
|
+
* Clean up all resources.
|
|
636
|
+
*/
|
|
637
|
+
dispose(): void;
|
|
638
|
+
}
|
|
639
|
+
export {};
|
|
640
|
+
//# sourceMappingURL=SceneExtensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SceneExtensions.d.ts","sourceRoot":"","sources":["../../src/core/SceneExtensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAmB,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAIlD,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAM3D,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD,uDAAuD;IACvD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAoE;IACpE,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,4CAA4C;IAC5C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,4DAA4D;IAC5D,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACpC,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,cAAc,CAA8B;IACpD,OAAO,CAAC,qBAAqB,C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