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,208 @@
|
|
|
1
|
+
import { Mobject, Vector3Tuple } from '../../core/Mobject';
|
|
2
|
+
import { Surface3D } from './Surface3D';
|
|
3
|
+
import * as THREE from 'three';
|
|
4
|
+
/**
|
|
5
|
+
* Options for creating a TexturedSurface
|
|
6
|
+
*/
|
|
7
|
+
export interface TexturedSurfaceOptions {
|
|
8
|
+
/** The parametric surface to apply the texture to */
|
|
9
|
+
surface: Surface3D;
|
|
10
|
+
/** URL of the primary texture image */
|
|
11
|
+
textureUrl: string;
|
|
12
|
+
/** Optional URL of a secondary (dark/night) texture for day/night blending */
|
|
13
|
+
darkTextureUrl?: string;
|
|
14
|
+
/** Light direction vector for day/night blending. Default: [1, 0, 0] (from +X) */
|
|
15
|
+
lightDirection?: Vector3Tuple;
|
|
16
|
+
/** Opacity from 0 to 1. Default: 1 */
|
|
17
|
+
opacity?: number;
|
|
18
|
+
/** Texture repeat in [u, v]. Default: [1, 1] */
|
|
19
|
+
textureRepeat?: [number, number];
|
|
20
|
+
/** Texture offset in [u, v]. Default: [0, 0] */
|
|
21
|
+
textureOffset?: [number, number];
|
|
22
|
+
/** Whether to render both sides. Default: true */
|
|
23
|
+
doubleSided?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Options for the texturedSphere convenience factory
|
|
27
|
+
*/
|
|
28
|
+
export interface TexturedSphereOptions {
|
|
29
|
+
/** URL of the primary texture image */
|
|
30
|
+
textureUrl: string;
|
|
31
|
+
/** Optional URL of a secondary (dark/night) texture */
|
|
32
|
+
darkTextureUrl?: string;
|
|
33
|
+
/** Radius of the sphere. Default: 1 */
|
|
34
|
+
radius?: number;
|
|
35
|
+
/** Center position [x, y, z]. Default: [0, 0, 0] */
|
|
36
|
+
center?: Vector3Tuple;
|
|
37
|
+
/** Number of segments in each direction. Default: 64 */
|
|
38
|
+
resolution?: number;
|
|
39
|
+
/** Opacity from 0 to 1. Default: 1 */
|
|
40
|
+
opacity?: number;
|
|
41
|
+
/** Light direction for day/night blending. Default: [1, 0, 0] */
|
|
42
|
+
lightDirection?: Vector3Tuple;
|
|
43
|
+
/** Texture repeat in [u, v]. Default: [1, 1] */
|
|
44
|
+
textureRepeat?: [number, number];
|
|
45
|
+
/** Texture offset in [u, v]. Default: [0, 0] */
|
|
46
|
+
textureOffset?: [number, number];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* TexturedSurface - Apply texture images to 3D parametric surfaces
|
|
50
|
+
*
|
|
51
|
+
* Wraps a Surface3D and applies one or two textures using Three.js texture
|
|
52
|
+
* mapping. UV coordinates are derived from the surface's parametric (u, v)
|
|
53
|
+
* parameters, so the texture maps naturally to the surface shape.
|
|
54
|
+
*
|
|
55
|
+
* Supports single-texture mode (one image mapped to the surface) and
|
|
56
|
+
* day/night mode (blending between two textures based on a light direction).
|
|
57
|
+
*
|
|
58
|
+
* The surface is displayed immediately with a placeholder color; textures
|
|
59
|
+
* are applied asynchronously once loaded.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```typescript
|
|
63
|
+
* // Single texture on a sphere
|
|
64
|
+
* const sphere = SurfacePresets.sphere(2);
|
|
65
|
+
* const earth = new TexturedSurface({
|
|
66
|
+
* surface: sphere,
|
|
67
|
+
* textureUrl: '/textures/earth_day.jpg',
|
|
68
|
+
* });
|
|
69
|
+
*
|
|
70
|
+
* // Day/night blending
|
|
71
|
+
* const earthDayNight = new TexturedSurface({
|
|
72
|
+
* surface: sphere,
|
|
73
|
+
* textureUrl: '/textures/earth_day.jpg',
|
|
74
|
+
* darkTextureUrl: '/textures/earth_night.jpg',
|
|
75
|
+
* lightDirection: [1, 0.5, 0],
|
|
76
|
+
* });
|
|
77
|
+
*
|
|
78
|
+
* // Convenience factory
|
|
79
|
+
* const globe = texturedSphere({
|
|
80
|
+
* textureUrl: '/textures/earth_day.jpg',
|
|
81
|
+
* radius: 2,
|
|
82
|
+
* });
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
export declare class TexturedSurface extends Mobject {
|
|
86
|
+
/** The underlying parametric surface providing geometry */
|
|
87
|
+
private _surface;
|
|
88
|
+
/** Primary texture URL */
|
|
89
|
+
private _textureUrl;
|
|
90
|
+
/** Secondary (dark/night) texture URL */
|
|
91
|
+
private _darkTextureUrl;
|
|
92
|
+
/** Light direction for day/night blending (normalized) */
|
|
93
|
+
private _lightDirection;
|
|
94
|
+
/** Whether double-sided rendering is enabled */
|
|
95
|
+
private _doubleSided;
|
|
96
|
+
/** Texture repeat factors */
|
|
97
|
+
private _textureRepeat;
|
|
98
|
+
/** Texture offset */
|
|
99
|
+
private _textureOffset;
|
|
100
|
+
/** Loaded primary texture (null until loaded) */
|
|
101
|
+
private _texture;
|
|
102
|
+
/** Loaded dark texture (null until loaded) */
|
|
103
|
+
private _darkTexture;
|
|
104
|
+
/** Whether textures have finished loading */
|
|
105
|
+
private _texturesLoaded;
|
|
106
|
+
/** Custom shader material for day/night blending */
|
|
107
|
+
private _dayNightMaterial;
|
|
108
|
+
constructor(options: TexturedSurfaceOptions);
|
|
109
|
+
/**
|
|
110
|
+
* Load texture images asynchronously. The surface is shown with a
|
|
111
|
+
* placeholder material until loading completes.
|
|
112
|
+
*/
|
|
113
|
+
private _loadTextures;
|
|
114
|
+
/**
|
|
115
|
+
* Apply loaded textures to the mesh material. Called once textures finish
|
|
116
|
+
* loading. Replaces the placeholder material with either a standard
|
|
117
|
+
* textured material or a day/night shader material.
|
|
118
|
+
*/
|
|
119
|
+
private _applyTextures;
|
|
120
|
+
/**
|
|
121
|
+
* Create a ShaderMaterial that blends between a day and night texture
|
|
122
|
+
* based on the dot product of surface normals with a light direction.
|
|
123
|
+
*/
|
|
124
|
+
private _createDayNightMaterial;
|
|
125
|
+
/**
|
|
126
|
+
* Build the Three.js mesh. Reuses the surface's parametric function to
|
|
127
|
+
* create geometry with proper UV mapping, and starts with a placeholder
|
|
128
|
+
* material until textures are loaded.
|
|
129
|
+
*/
|
|
130
|
+
protected _createThreeObject(): THREE.Object3D;
|
|
131
|
+
/**
|
|
132
|
+
* Sync material properties to the Three.js object
|
|
133
|
+
*/
|
|
134
|
+
protected _syncMaterialToThree(): void;
|
|
135
|
+
/**
|
|
136
|
+
* Get the underlying parametric surface
|
|
137
|
+
*/
|
|
138
|
+
getSurface(): Surface3D;
|
|
139
|
+
/**
|
|
140
|
+
* Get the primary texture URL
|
|
141
|
+
*/
|
|
142
|
+
getTextureUrl(): string;
|
|
143
|
+
/**
|
|
144
|
+
* Get whether textures have finished loading
|
|
145
|
+
*/
|
|
146
|
+
isTextureLoaded(): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Set the light direction for day/night blending
|
|
149
|
+
*/
|
|
150
|
+
setLightDirection(dir: Vector3Tuple): this;
|
|
151
|
+
/**
|
|
152
|
+
* Get the light direction as a tuple
|
|
153
|
+
*/
|
|
154
|
+
getLightDirection(): Vector3Tuple;
|
|
155
|
+
/**
|
|
156
|
+
* Set texture repeat
|
|
157
|
+
*/
|
|
158
|
+
setTextureRepeat(repeat: [number, number]): this;
|
|
159
|
+
/**
|
|
160
|
+
* Get the texture repeat
|
|
161
|
+
*/
|
|
162
|
+
getTextureRepeat(): [number, number];
|
|
163
|
+
/**
|
|
164
|
+
* Set texture offset
|
|
165
|
+
*/
|
|
166
|
+
setTextureOffset(offset: [number, number]): this;
|
|
167
|
+
/**
|
|
168
|
+
* Get the texture offset
|
|
169
|
+
*/
|
|
170
|
+
getTextureOffset(): [number, number];
|
|
171
|
+
/**
|
|
172
|
+
* Set whether to render both sides of the surface
|
|
173
|
+
*/
|
|
174
|
+
setDoubleSided(value: boolean): this;
|
|
175
|
+
/**
|
|
176
|
+
* Get whether double-sided rendering is enabled
|
|
177
|
+
*/
|
|
178
|
+
isDoubleSided(): boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Dispose of loaded textures and materials to free GPU memory
|
|
181
|
+
*/
|
|
182
|
+
dispose(): void;
|
|
183
|
+
/**
|
|
184
|
+
* Create a copy of this TexturedSurface.
|
|
185
|
+
* Note: The copy will reload textures independently.
|
|
186
|
+
*/
|
|
187
|
+
protected _createCopy(): TexturedSurface;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Create a textured sphere -- a common use case for Earth, Moon, etc.
|
|
191
|
+
*
|
|
192
|
+
* This builds a ParametricSurface sphere internally and wraps it with a
|
|
193
|
+
* TexturedSurface, returning the ready-to-use mobject.
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```typescript
|
|
197
|
+
* const earth = texturedSphere({
|
|
198
|
+
* textureUrl: '/textures/earth_day.jpg',
|
|
199
|
+
* darkTextureUrl: '/textures/earth_night.jpg',
|
|
200
|
+
* radius: 2,
|
|
201
|
+
* lightDirection: [1, 0.5, 0],
|
|
202
|
+
* });
|
|
203
|
+
* scene.add(earth);
|
|
204
|
+
* ```
|
|
205
|
+
*/
|
|
206
|
+
export declare function texturedSphere(options: TexturedSphereOptions): TexturedSurface;
|
|
207
|
+
export default TexturedSurface;
|
|
208
|
+
//# sourceMappingURL=TexturedSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TexturedSurface.d.ts","sourceRoot":"","sources":["../../../src/mobjects/three-d/TexturedSurface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,qDAAqD;IACrD,OAAO,EAAE,SAAS,CAAC;IACnB,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kFAAkF;IAClF,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CA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
|
|
3
|
+
import { Arrow3D } from './Arrow3D';
|
|
4
|
+
/**
|
|
5
|
+
* Options for creating ThreeDAxes
|
|
6
|
+
*/
|
|
7
|
+
export interface ThreeDAxesOptions {
|
|
8
|
+
/** X-axis range as [min, max, step]. Default: [-5, 5, 1] */
|
|
9
|
+
xRange?: [number, number, number];
|
|
10
|
+
/** Y-axis range as [min, max, step]. Default: [-5, 5, 1] */
|
|
11
|
+
yRange?: [number, number, number];
|
|
12
|
+
/** Z-axis range as [min, max, step]. Default: [-5, 5, 1] */
|
|
13
|
+
zRange?: [number, number, number];
|
|
14
|
+
/** Visual length of the x-axis. Default: 10 */
|
|
15
|
+
xLength?: number;
|
|
16
|
+
/** Visual length of the y-axis. Default: 10 */
|
|
17
|
+
yLength?: number;
|
|
18
|
+
/** Visual length of the z-axis. Default: 10 */
|
|
19
|
+
zLength?: number;
|
|
20
|
+
/** Default color for all axes. Default: '#ffffff' */
|
|
21
|
+
axisColor?: string;
|
|
22
|
+
/** Color for x-axis (overrides axisColor). Default: same as axisColor */
|
|
23
|
+
xColor?: string;
|
|
24
|
+
/** Color for y-axis (overrides axisColor). Default: same as axisColor */
|
|
25
|
+
yColor?: string;
|
|
26
|
+
/** Color for z-axis (overrides axisColor). Default: same as axisColor */
|
|
27
|
+
zColor?: string;
|
|
28
|
+
/** Whether to show axis labels (X, Y, Z). Default: false */
|
|
29
|
+
showLabels?: boolean;
|
|
30
|
+
/** Whether to show tick marks. Default: true */
|
|
31
|
+
showTicks?: boolean;
|
|
32
|
+
/** Length of tick marks. Default: 0.15 */
|
|
33
|
+
tickLength?: number;
|
|
34
|
+
/** Tip length for arrows. Default: 0.2 */
|
|
35
|
+
tipLength?: number;
|
|
36
|
+
/** Tip radius for arrows. Default: 0.08 */
|
|
37
|
+
tipRadius?: number;
|
|
38
|
+
/** Shaft radius for arrows. Default: 0.01 */
|
|
39
|
+
shaftRadius?: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* ThreeDAxes - A 3D coordinate system with x, y, and z axes
|
|
43
|
+
*
|
|
44
|
+
* Creates a 3D coordinate system with configurable ranges, colors,
|
|
45
|
+
* and styling. Supports coordinate transformations between graph
|
|
46
|
+
* space and visual space.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```typescript
|
|
50
|
+
* // Create default 3D axes
|
|
51
|
+
* const axes = new ThreeDAxes();
|
|
52
|
+
*
|
|
53
|
+
* // Create axes with custom ranges
|
|
54
|
+
* const customAxes = new ThreeDAxes({
|
|
55
|
+
* xRange: [0, 10, 1],
|
|
56
|
+
* yRange: [-1, 1, 0.5],
|
|
57
|
+
* zRange: [0, 5, 1]
|
|
58
|
+
* });
|
|
59
|
+
*
|
|
60
|
+
* // Get a point in visual coordinates
|
|
61
|
+
* const point = axes.coordsToPoint(3, 2, 1);
|
|
62
|
+
*
|
|
63
|
+
* // Create colored axes
|
|
64
|
+
* const coloredAxes = new ThreeDAxes({
|
|
65
|
+
* xColor: '#ff0000',
|
|
66
|
+
* yColor: '#00ff00',
|
|
67
|
+
* zColor: '#0000ff'
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export declare class ThreeDAxes extends Group {
|
|
72
|
+
private _xAxis;
|
|
73
|
+
private _yAxis;
|
|
74
|
+
private _zAxis;
|
|
75
|
+
private _xRange;
|
|
76
|
+
private _yRange;
|
|
77
|
+
private _zRange;
|
|
78
|
+
private _xLength;
|
|
79
|
+
private _yLength;
|
|
80
|
+
private _zLength;
|
|
81
|
+
private _showTicks;
|
|
82
|
+
private _tickLength;
|
|
83
|
+
private _ticks;
|
|
84
|
+
constructor(options?: ThreeDAxesOptions);
|
|
85
|
+
/**
|
|
86
|
+
* Convert Manim coordinates (mx, my, mz) to THREE.js coordinates.
|
|
87
|
+
* Manim: X right, Y forward, Z up → THREE.js: X right, Y up, Z backward
|
|
88
|
+
*/
|
|
89
|
+
private _m2t;
|
|
90
|
+
/**
|
|
91
|
+
* Create tick marks for all axes using Manim→THREE.js coordinate mapping
|
|
92
|
+
*/
|
|
93
|
+
private _createTicks;
|
|
94
|
+
/**
|
|
95
|
+
* Map a value from graph coordinates to visual coordinates
|
|
96
|
+
*/
|
|
97
|
+
private _mapToVisual;
|
|
98
|
+
/**
|
|
99
|
+
* Convert graph coordinates (Manim space) to visual point coordinates (THREE.js space).
|
|
100
|
+
* Applies Manim→THREE.js mapping: (mx, my, mz) → (mx, mz, -my)
|
|
101
|
+
* @param x X coordinate in graph space (Manim X)
|
|
102
|
+
* @param y Y coordinate in graph space (Manim Y)
|
|
103
|
+
* @param z Z coordinate in graph space (Manim Z)
|
|
104
|
+
* @returns The visual point [x, y, z] in THREE.js space
|
|
105
|
+
*/
|
|
106
|
+
coordsToPoint(x: number, y: number, z: number): Vector3Tuple;
|
|
107
|
+
/**
|
|
108
|
+
* Convert visual point coordinates (THREE.js space) to graph coordinates (Manim space).
|
|
109
|
+
* Applies inverse THREE.js→Manim mapping: (tx, ty, tz) → (tx, -tz, ty)
|
|
110
|
+
* @param point Visual point [x, y, z] in THREE.js space
|
|
111
|
+
* @returns The graph coordinates [x, y, z] in Manim space
|
|
112
|
+
*/
|
|
113
|
+
pointToCoords(point: Vector3Tuple): Vector3Tuple;
|
|
114
|
+
/**
|
|
115
|
+
* Get the X-axis arrow
|
|
116
|
+
*/
|
|
117
|
+
getXAxis(): Arrow3D;
|
|
118
|
+
/**
|
|
119
|
+
* Get the Y-axis arrow
|
|
120
|
+
*/
|
|
121
|
+
getYAxis(): Arrow3D;
|
|
122
|
+
/**
|
|
123
|
+
* Get the Z-axis arrow
|
|
124
|
+
*/
|
|
125
|
+
getZAxis(): Arrow3D;
|
|
126
|
+
/**
|
|
127
|
+
* Get the X range
|
|
128
|
+
*/
|
|
129
|
+
getXRange(): [number, number, number];
|
|
130
|
+
/**
|
|
131
|
+
* Get the Y range
|
|
132
|
+
*/
|
|
133
|
+
getYRange(): [number, number, number];
|
|
134
|
+
/**
|
|
135
|
+
* Get the Z range
|
|
136
|
+
*/
|
|
137
|
+
getZRange(): [number, number, number];
|
|
138
|
+
/**
|
|
139
|
+
* Get the visual X length
|
|
140
|
+
*/
|
|
141
|
+
getXLength(): number;
|
|
142
|
+
/**
|
|
143
|
+
* Get the visual Y length
|
|
144
|
+
*/
|
|
145
|
+
getYLength(): number;
|
|
146
|
+
/**
|
|
147
|
+
* Get the visual Z length
|
|
148
|
+
*/
|
|
149
|
+
getZLength(): number;
|
|
150
|
+
/**
|
|
151
|
+
* Get the origin point in visual coordinates
|
|
152
|
+
*/
|
|
153
|
+
getOrigin(): Vector3Tuple;
|
|
154
|
+
/**
|
|
155
|
+
* Convert an x coordinate to visual x position
|
|
156
|
+
*/
|
|
157
|
+
c2pX(x: number): number;
|
|
158
|
+
/**
|
|
159
|
+
* Convert a y coordinate to visual y position
|
|
160
|
+
*/
|
|
161
|
+
c2pY(y: number): number;
|
|
162
|
+
/**
|
|
163
|
+
* Convert a z coordinate to visual z position
|
|
164
|
+
*/
|
|
165
|
+
c2pZ(z: number): number;
|
|
166
|
+
/**
|
|
167
|
+
* Create a copy of this ThreeDAxes
|
|
168
|
+
*/
|
|
169
|
+
protected _createCopy(): ThreeDAxes;
|
|
170
|
+
}
|
|
171
|
+
export default ThreeDAxes;
|
|
172
|
+
//# sourceMappingURL=ThreeDAxes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThreeDAxes.d.ts","sourceRoot":"","sources":["../../../src/mobjects/three-d/ThreeDAxes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC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