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,560 @@
|
|
|
1
|
+
import { defineComponent as d, ref as n, watch as l, provide as T, h as A, shallowRef as s, onMounted as p, onUnmounted as c, inject as _ } from "vue";
|
|
2
|
+
import { Scene as u } from "../index.js";
|
|
3
|
+
import { AddTextLetterByLetter as O, Angle as b, Animation as y, AnimationGroup as B, AnnularSector as C, Annulus as U, ApplyPointwiseFunction as I, ApplyWave as x, Arc as N, ArcBetweenPoints as w, ArcBrace as V, ArcPolygon as W, Arrow as H, Arrow3D as k, AudioManager as j, Axes as Y, BLACK as K, BLUE as z, BLUE_A as J, BLUE_B as Z, BLUE_C as Q, BLUE_D as X, BLUE_E as $, BackgroundRectangle as q, BezierRenderer as ee, BooleanResult as ae, Box3D as te, Brace as re, BraceBetweenPoints as oe, BraceLabel as ne, BraceText as le, Broadcast as ie, Camera2D as ue, Camera2DFrame as ce, Camera3D as se, CameraAnimateProxy as me, CameraFrame as Ee, Circle as de, Circumscribe as Te, Clickable as Ae, ComplexHomotopy as pe, ComplexValueTracker as _e, Cone as ge, Controls as he, ConvexHull as Re, Create as Le, Cross as De, Cube as Fe, CubicBezier as fe, CurvedArrow as ve, CurvedDoubleArrow as Pe, Cutout as Ge, Cylinder as Se, DARKER_GRAY as Me, DARK_BLUE as Oe, DARK_BROWN as be, DARK_GRAY as ye, DEFAULT_ANIMATION_DURATION as Be, DEFAULT_ASPECT_RATIO as Ce, DEFAULT_FONT_SIZE as Ue, DEFAULT_FPS as Ie, DEFAULT_FRAME_HEIGHT as xe, DEFAULT_FRAME_WIDTH as Ne, DEFAULT_MOBJECT_TO_EDGE_BUFFER as we, DEFAULT_MOBJECT_TO_MOBJECT_BUFFER as Ve, DEFAULT_PIXEL_HEIGHT as We, DEFAULT_PIXEL_WIDTH as He, DEFAULT_STROKE_WIDTH as ke, DL as je, DOWN as Ye, DR as Ke, DashedLine as ze, DashedVMobject as Je, DecimalMatrix as Ze, DecimalNumber as Qe, DecimalTable as Xe, DiGraph as $e, DiceFace as qe, Difference as ea, Dot as aa, DoubleArrow as ta, Draggable as ra, DrawBorderThenFill as oa, Elbow as na, Ellipse as la, Exclusion as ia, FadeIn as ua, FadeOut as ca, FadeToColor as sa, Flash as ma, FocusOn as Ea, FrameTimeTracker as da, FullScreenFadeRectangle as Ta, FullScreenRectangle as Aa, FunctionGraph as pa, GOLD as _a, GOLD_A as ga, GOLD_B as ha, GOLD_C as Ra, GOLD_D as La, GOLD_E as Da, GRAY as Fa, GRAY_A as fa, GRAY_B as va, GRAY_C as Pa, GRAY_D as Ga, GRAY_E as Sa, GREEN as Ma, GREEN_A as Oa, GREEN_B as ba, GREEN_C as ya, GREEN_D as Ba, GREEN_E as Ca, GenericGraph as Ua, GifExporter as Ia, GlyphVMobject as xa, Graph as Na, Group as wa, GrowFromCenter as Va, Hexagon as Wa, Homotopy as Ha, Hoverable as ka, IN as ja, ImageMobject as Ya, ImplicitFunction as Ka, Indicate as za, Integer as Ja, IntegerMatrix as Za, IntegerTable as Qa, InteractiveScene as Xa, Intersection as $a, LARGE_BUFF as qa, LEFT as et, LIGHTER_GRAY as at, LIGHT_BROWN as tt, LIGHT_GRAY as rt, LIGHT_PINK as ot, LaggedStart as nt, LargeDot as lt, Lighting as it, Line as ut, Line3D as ct, MANIM_BACKGROUND as st, MAROON as mt, MAROON_A as Et, MAROON_B as dt, MAROON_C as Tt, MAROON_D as At, MAROON_E as pt, MED_LARGE_BUFF as _t, MED_SMALL_BUFF as gt, MandelbrotSet as ht, MarkupText as Rt, MathTable as Lt, MathTex as Dt, Matrix as Ft, Mobject as ft, MobjectMatrix as vt, MobjectTable as Pt, MoveAlongPath as Gt, MoveToTarget as St, MoveToTargetPosition as Mt, NewtonFractal as Ot, NumberLine as bt, NumberPlane as yt, ORANGE as Bt, ORIGIN as Ct, OUT as Ut, OrbitControls as It, PGroup as xt, PINK as Nt, PMobject as wt, PURE_BLUE as Vt, PURE_GREEN as Wt, PURE_RED as Ht, PURPLE as kt, PURPLE_A as jt, PURPLE_B as Yt, PURPLE_C as Kt, PURPLE_D as zt, PURPLE_E as Jt, Paragraph as Zt, ParametricFunction as Qt, ParametricSurface as Xt, Pentagon as $t, PerformanceMonitor as qt, PhaseFlow as er, PlaybackControls as ar, PointCloudDot as tr, PointMobject as rr, Polygon as or, Pulse as nr, RED as lr, RED_A as ir, RED_B as ur, RED_C as cr, RED_D as sr, RED_E as mr, RIGHT as Er, Rectangle as dr, RegularPolygon as Tr, RegularPolygram as Ar, RemoveTextLetterByLetter as pr, Renderer as _r, ReplacementTransform as gr, Restore as hr, RightAngle as Rr, Rotate as Lr, Rotating as Dr, RoundedRectangle as Fr, SMALL_BUFF as fr, SVGMobject as vr, SampleSpace as Pr, Scale as Gr, ScaleInPlace as Sr, SceneStateManager as Mr, ScreenRectangle as Or, Sector as br, SelectionManager as yr, Shift as Br, ShowCreationThenDestruction as Cr, ShowPassingFlash as Ur, SmallDot as Ir, SmoothedVectorizedHomotopy as xr, Sphere as Nr, Square as wr, Star as Vr, Succession as Wr, Surface3D as Hr, SurfacePresets as kr, SurroundingRectangle as jr, TEAL as Yr, TEAL_A as Kr, TEAL_B as zr, TEAL_C as Jr, TEAL_D as Zr, TEAL_E as Qr, Table as Xr, TangentLine as $r, TangentialArc as qr, Tex as eo, Text as ao, TextGlyphGroup as to, TexturedSurface as ro, ThreeDAxes as oo, ThreeDScene as no, Timeline as lo, Torus as io, Transform as uo, Triangle as co, UL as so, UP as mo, UR as Eo, Uncreate as To, Underline as Ao, Union as po, Unwrite as _o, UpdateFromAlphaFunc as go, UpdateFromFunc as ho, VDict as Ro, VGroup as Lo, VMobject as Do, VMobjectFromSVGPath as Fo, ValueTracker as fo, Variable as vo, Vector as Po, Vector3D as Go, VectorFieldVector as So, VectorizedPoint as Mo, VideoExporter as Oo, WHITE as bo, Wiggle as yo, WiggleOutThenIn as Bo, Write as Co, YELLOW as Uo, YELLOW_A as Io, YELLOW_B as xo, YELLOW_C as No, YELLOW_D as wo, YELLOW_E as Vo, ZoomDisplayPopOut as Wo, ZoomedScene as Ho, addTextLetterByLetter as ko, addVec as jo, animationGroup as Yo, applyPointwiseFunction as Ko, applyWave as zo, areKatexStylesLoaded as Jo, binaryTree as Zo, bipartiteGraph as Qo, broadcast as Xo, circumscribe as $o, completeGraph as qo, complexHomotopy as en, complexValueTracker as an, compose as tn, create as rn, createBezierShaderMaterial as on, createDiceRow as nn, createFadeToBlack as ln, createFadeToWhite as un, createFrameTimeTracker as cn, createGifExporter as sn, createPerformanceMonitor as mn, createVideoExporter as En, cycleGraph as dn, deserializeMobject as Tn, doubleSmooth as An, drawBorderThenFill as pn, easeIn as _n, easeInBounce as gn, easeInExpo as hn, easeInOut as Rn, easeInQuad as Ln, easeOut as Dn, easeOutBounce as Fn, easeOutExpo as fn, easeOutQuad as vn, ensureCCW as Pn, ensureCW as Gn, ensureKatexStyles as Sn, fadeIn as Mn, fadeOut as On, fadeToColor as bn, flash as yn, flowPoint as Bn, flowPointTrajectory as Cn, focusOn as Un, getFeatureFlags as In, gridGraph as xn, growFromCenter as Nn, homotopy as wn, hungarian as Vn, hungarianFromSimilarity as Wn, indicate as Hn, isFeatureEnabled as kn, isMathJaxLoaded as jn, katexCanRender as Yn, laggedStart as Kn, linear as zn, linspace as Jn, maintainPositionRelativeTo as Zn, makeClickable as Qn, makeDraggable as Xn, makeHoverable as $n, moveAlongPath as qn, moveToTarget as el, moveToTargetPosition as al, parseSVGPathData as tl, pathGraph as rl, phaseFlow as ol, preloadMathJax as nl, pulse as ll, removeTextLetterByLetter as il, renderLatexToSVG as ul, replacementTransform as cl, resetFeatureFlags as sl, restore as ml, restoreMobjectState as El, reverse as dl, rk4Step as Tl, rotate as Al, rotating as pl, rushFrom as _l, rushInto as gl, saveMobjectState as hl, scale as Rl, scaleVec as Ll, serializeMobject as Dl, setFeatureFlags as Fl, shift as fl, showCreationThenDestruction as vl, showPassingFlash as Pl, signedArea2D as Gl, skeletonizeGlyph as Sl, smooth as Ml, smoothedVectorizedHomotopy as Ol, snapshotFromJSON as bl, snapshotToJSON as yl, solveIVP as Bl, starGraph as Cl, stateFromJSON as Ul, stateToJSON as Il, stepFunction as xl, subVec as Nl, succession as wl, svgMobject as Vl, svgToVMobjects as Wl, texturedSphere as Hl, thereAndBack as kl, transform as jl, triangulatePolygon as Yl, triangulatePolygonPositions as Kl, uncreate as zl, unwrite as Jl, updateBezierMaterialResolution as Zl, updateFromAlphaFunc as Ql, updateFromFunc as Xl, valueTracker as $l, wiggle as ql, wiggleOutThenIn as ei, write as ai } from "../index.js";
|
|
4
|
+
import "three";
|
|
5
|
+
function g(e, t) {
|
|
6
|
+
const a = s(null), r = n(!1);
|
|
7
|
+
return p(() => {
|
|
8
|
+
e.value && (a.value = new u(e.value, t), r.value = !0);
|
|
9
|
+
}), c(() => {
|
|
10
|
+
a.value && (a.value.dispose(), a.value = null, r.value = !1);
|
|
11
|
+
}), l(e, (o, i) => {
|
|
12
|
+
i && a.value && (a.value.dispose(), a.value = null, r.value = !1), o && (a.value = new u(o, t), r.value = !0);
|
|
13
|
+
}), {
|
|
14
|
+
scene: a,
|
|
15
|
+
isReady: r
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function D(e, t) {
|
|
19
|
+
const a = s(null);
|
|
20
|
+
return l(
|
|
21
|
+
e,
|
|
22
|
+
(r, o) => {
|
|
23
|
+
o && a.value && o.remove(a.value), r && (a.value || (a.value = t()), r.add(a.value));
|
|
24
|
+
},
|
|
25
|
+
{ immediate: !0 }
|
|
26
|
+
), c(() => {
|
|
27
|
+
e.value && a.value && e.value.remove(a.value), a.value = null;
|
|
28
|
+
}), a;
|
|
29
|
+
}
|
|
30
|
+
function F(e) {
|
|
31
|
+
const t = n(!1);
|
|
32
|
+
return {
|
|
33
|
+
play: async (...o) => {
|
|
34
|
+
if (e.value) {
|
|
35
|
+
t.value = !0;
|
|
36
|
+
try {
|
|
37
|
+
await e.value.play(...o);
|
|
38
|
+
} finally {
|
|
39
|
+
t.value = !1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
playAll: async (...o) => {
|
|
44
|
+
if (e.value) {
|
|
45
|
+
t.value = !0;
|
|
46
|
+
try {
|
|
47
|
+
await e.value.playAll(...o);
|
|
48
|
+
} finally {
|
|
49
|
+
t.value = !1;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
isPlaying: t
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function f(e, t) {
|
|
57
|
+
l(
|
|
58
|
+
e,
|
|
59
|
+
(a, r) => {
|
|
60
|
+
r && r.removeUpdater(t), a && a.addUpdater(t);
|
|
61
|
+
},
|
|
62
|
+
{ immediate: !0 }
|
|
63
|
+
), c(() => {
|
|
64
|
+
e.value && e.value.removeUpdater(t);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
const m = /* @__PURE__ */ Symbol("manimweb-scene"), v = d({
|
|
68
|
+
name: "ManimScene",
|
|
69
|
+
props: {
|
|
70
|
+
/**
|
|
71
|
+
* Canvas width in pixels.
|
|
72
|
+
* @default 800
|
|
73
|
+
*/
|
|
74
|
+
width: {
|
|
75
|
+
type: Number,
|
|
76
|
+
default: 800
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* Canvas height in pixels.
|
|
80
|
+
* @default 450
|
|
81
|
+
*/
|
|
82
|
+
height: {
|
|
83
|
+
type: Number,
|
|
84
|
+
default: 450
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* Background color as CSS color string.
|
|
88
|
+
* @default '#1a1a2e'
|
|
89
|
+
*/
|
|
90
|
+
backgroundColor: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: "#1a1a2e"
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* Frame width in world units (Manim standard is 14).
|
|
96
|
+
* @default 14
|
|
97
|
+
*/
|
|
98
|
+
frameWidth: {
|
|
99
|
+
type: Number,
|
|
100
|
+
default: 14
|
|
101
|
+
},
|
|
102
|
+
/**
|
|
103
|
+
* Frame height in world units (Manim standard is 8).
|
|
104
|
+
* @default 8
|
|
105
|
+
*/
|
|
106
|
+
frameHeight: {
|
|
107
|
+
type: Number,
|
|
108
|
+
default: 8
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
emits: {
|
|
112
|
+
/**
|
|
113
|
+
* Emitted when the scene is ready to use.
|
|
114
|
+
* @param scene - The Scene instance
|
|
115
|
+
*/
|
|
116
|
+
ready: (e) => e instanceof u
|
|
117
|
+
},
|
|
118
|
+
setup(e, { emit: t, slots: a }) {
|
|
119
|
+
const r = n(null), { scene: o, isReady: i } = g(r, {
|
|
120
|
+
width: e.width,
|
|
121
|
+
height: e.height,
|
|
122
|
+
backgroundColor: e.backgroundColor,
|
|
123
|
+
frameWidth: e.frameWidth,
|
|
124
|
+
frameHeight: e.frameHeight
|
|
125
|
+
});
|
|
126
|
+
return l(i, (E) => {
|
|
127
|
+
E && o.value && t("ready", o.value);
|
|
128
|
+
}), T(m, o), () => A(
|
|
129
|
+
"div",
|
|
130
|
+
{
|
|
131
|
+
ref: r,
|
|
132
|
+
style: {
|
|
133
|
+
width: `${e.width}px`,
|
|
134
|
+
height: `${e.height}px`,
|
|
135
|
+
position: "relative"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
a.default?.()
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
function P() {
|
|
143
|
+
return _(m, n(null));
|
|
144
|
+
}
|
|
145
|
+
const G = {
|
|
146
|
+
install(e) {
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
export {
|
|
150
|
+
O as AddTextLetterByLetter,
|
|
151
|
+
b as Angle,
|
|
152
|
+
y as Animation,
|
|
153
|
+
B as AnimationGroup,
|
|
154
|
+
C as AnnularSector,
|
|
155
|
+
U as Annulus,
|
|
156
|
+
I as ApplyPointwiseFunction,
|
|
157
|
+
x as ApplyWave,
|
|
158
|
+
N as Arc,
|
|
159
|
+
w as ArcBetweenPoints,
|
|
160
|
+
V as ArcBrace,
|
|
161
|
+
W as ArcPolygon,
|
|
162
|
+
H as Arrow,
|
|
163
|
+
k as Arrow3D,
|
|
164
|
+
j as AudioManager,
|
|
165
|
+
Y as Axes,
|
|
166
|
+
K as BLACK,
|
|
167
|
+
z as BLUE,
|
|
168
|
+
J as BLUE_A,
|
|
169
|
+
Z as BLUE_B,
|
|
170
|
+
Q as BLUE_C,
|
|
171
|
+
X as BLUE_D,
|
|
172
|
+
$ as BLUE_E,
|
|
173
|
+
q as BackgroundRectangle,
|
|
174
|
+
ee as BezierRenderer,
|
|
175
|
+
ae as BooleanResult,
|
|
176
|
+
te as Box3D,
|
|
177
|
+
re as Brace,
|
|
178
|
+
oe as BraceBetweenPoints,
|
|
179
|
+
ne as BraceLabel,
|
|
180
|
+
le as BraceText,
|
|
181
|
+
ie as Broadcast,
|
|
182
|
+
ue as Camera2D,
|
|
183
|
+
ce as Camera2DFrame,
|
|
184
|
+
se as Camera3D,
|
|
185
|
+
me as CameraAnimateProxy,
|
|
186
|
+
Ee as CameraFrame,
|
|
187
|
+
de as Circle,
|
|
188
|
+
Te as Circumscribe,
|
|
189
|
+
Ae as Clickable,
|
|
190
|
+
pe as ComplexHomotopy,
|
|
191
|
+
_e as ComplexValueTracker,
|
|
192
|
+
ge as Cone,
|
|
193
|
+
he as Controls,
|
|
194
|
+
Re as ConvexHull,
|
|
195
|
+
Le as Create,
|
|
196
|
+
De as Cross,
|
|
197
|
+
Fe as Cube,
|
|
198
|
+
fe as CubicBezier,
|
|
199
|
+
ve as CurvedArrow,
|
|
200
|
+
Pe as CurvedDoubleArrow,
|
|
201
|
+
Ge as Cutout,
|
|
202
|
+
Se as Cylinder,
|
|
203
|
+
Me as DARKER_GRAY,
|
|
204
|
+
Oe as DARK_BLUE,
|
|
205
|
+
be as DARK_BROWN,
|
|
206
|
+
ye as DARK_GRAY,
|
|
207
|
+
Be as DEFAULT_ANIMATION_DURATION,
|
|
208
|
+
Ce as DEFAULT_ASPECT_RATIO,
|
|
209
|
+
Ue as DEFAULT_FONT_SIZE,
|
|
210
|
+
Ie as DEFAULT_FPS,
|
|
211
|
+
xe as DEFAULT_FRAME_HEIGHT,
|
|
212
|
+
Ne as DEFAULT_FRAME_WIDTH,
|
|
213
|
+
we as DEFAULT_MOBJECT_TO_EDGE_BUFFER,
|
|
214
|
+
Ve as DEFAULT_MOBJECT_TO_MOBJECT_BUFFER,
|
|
215
|
+
We as DEFAULT_PIXEL_HEIGHT,
|
|
216
|
+
He as DEFAULT_PIXEL_WIDTH,
|
|
217
|
+
ke as DEFAULT_STROKE_WIDTH,
|
|
218
|
+
je as DL,
|
|
219
|
+
Ye as DOWN,
|
|
220
|
+
Ke as DR,
|
|
221
|
+
ze as DashedLine,
|
|
222
|
+
Je as DashedVMobject,
|
|
223
|
+
Ze as DecimalMatrix,
|
|
224
|
+
Qe as DecimalNumber,
|
|
225
|
+
Xe as DecimalTable,
|
|
226
|
+
$e as DiGraph,
|
|
227
|
+
qe as DiceFace,
|
|
228
|
+
ea as Difference,
|
|
229
|
+
aa as Dot,
|
|
230
|
+
ta as DoubleArrow,
|
|
231
|
+
ra as Draggable,
|
|
232
|
+
oa as DrawBorderThenFill,
|
|
233
|
+
na as Elbow,
|
|
234
|
+
la as Ellipse,
|
|
235
|
+
ia as Exclusion,
|
|
236
|
+
ua as FadeIn,
|
|
237
|
+
ca as FadeOut,
|
|
238
|
+
sa as FadeToColor,
|
|
239
|
+
ma as Flash,
|
|
240
|
+
Ea as FocusOn,
|
|
241
|
+
da as FrameTimeTracker,
|
|
242
|
+
Ta as FullScreenFadeRectangle,
|
|
243
|
+
Aa as FullScreenRectangle,
|
|
244
|
+
pa as FunctionGraph,
|
|
245
|
+
_a as GOLD,
|
|
246
|
+
ga as GOLD_A,
|
|
247
|
+
ha as GOLD_B,
|
|
248
|
+
Ra as GOLD_C,
|
|
249
|
+
La as GOLD_D,
|
|
250
|
+
Da as GOLD_E,
|
|
251
|
+
Fa as GRAY,
|
|
252
|
+
fa as GRAY_A,
|
|
253
|
+
va as GRAY_B,
|
|
254
|
+
Pa as GRAY_C,
|
|
255
|
+
Ga as GRAY_D,
|
|
256
|
+
Sa as GRAY_E,
|
|
257
|
+
Ma as GREEN,
|
|
258
|
+
Oa as GREEN_A,
|
|
259
|
+
ba as GREEN_B,
|
|
260
|
+
ya as GREEN_C,
|
|
261
|
+
Ba as GREEN_D,
|
|
262
|
+
Ca as GREEN_E,
|
|
263
|
+
Ua as GenericGraph,
|
|
264
|
+
Ia as GifExporter,
|
|
265
|
+
xa as GlyphVMobject,
|
|
266
|
+
Na as Graph,
|
|
267
|
+
wa as Group,
|
|
268
|
+
Va as GrowFromCenter,
|
|
269
|
+
Wa as Hexagon,
|
|
270
|
+
Ha as Homotopy,
|
|
271
|
+
ka as Hoverable,
|
|
272
|
+
ja as IN,
|
|
273
|
+
Ya as ImageMobject,
|
|
274
|
+
Ka as ImplicitFunction,
|
|
275
|
+
za as Indicate,
|
|
276
|
+
Ja as Integer,
|
|
277
|
+
Za as IntegerMatrix,
|
|
278
|
+
Qa as IntegerTable,
|
|
279
|
+
Xa as InteractiveScene,
|
|
280
|
+
$a as Intersection,
|
|
281
|
+
qa as LARGE_BUFF,
|
|
282
|
+
et as LEFT,
|
|
283
|
+
at as LIGHTER_GRAY,
|
|
284
|
+
tt as LIGHT_BROWN,
|
|
285
|
+
rt as LIGHT_GRAY,
|
|
286
|
+
ot as LIGHT_PINK,
|
|
287
|
+
nt as LaggedStart,
|
|
288
|
+
lt as LargeDot,
|
|
289
|
+
it as Lighting,
|
|
290
|
+
ut as Line,
|
|
291
|
+
ct as Line3D,
|
|
292
|
+
st as MANIM_BACKGROUND,
|
|
293
|
+
mt as MAROON,
|
|
294
|
+
Et as MAROON_A,
|
|
295
|
+
dt as MAROON_B,
|
|
296
|
+
Tt as MAROON_C,
|
|
297
|
+
At as MAROON_D,
|
|
298
|
+
pt as MAROON_E,
|
|
299
|
+
_t as MED_LARGE_BUFF,
|
|
300
|
+
gt as MED_SMALL_BUFF,
|
|
301
|
+
ht as MandelbrotSet,
|
|
302
|
+
v as ManimScene,
|
|
303
|
+
G as ManimWebPlugin,
|
|
304
|
+
Rt as MarkupText,
|
|
305
|
+
Lt as MathTable,
|
|
306
|
+
Dt as MathTex,
|
|
307
|
+
Ft as Matrix,
|
|
308
|
+
ft as Mobject,
|
|
309
|
+
vt as MobjectMatrix,
|
|
310
|
+
Pt as MobjectTable,
|
|
311
|
+
Gt as MoveAlongPath,
|
|
312
|
+
St as MoveToTarget,
|
|
313
|
+
Mt as MoveToTargetPosition,
|
|
314
|
+
Ot as NewtonFractal,
|
|
315
|
+
bt as NumberLine,
|
|
316
|
+
yt as NumberPlane,
|
|
317
|
+
Bt as ORANGE,
|
|
318
|
+
Ct as ORIGIN,
|
|
319
|
+
Ut as OUT,
|
|
320
|
+
It as OrbitControls,
|
|
321
|
+
xt as PGroup,
|
|
322
|
+
Nt as PINK,
|
|
323
|
+
wt as PMobject,
|
|
324
|
+
Vt as PURE_BLUE,
|
|
325
|
+
Wt as PURE_GREEN,
|
|
326
|
+
Ht as PURE_RED,
|
|
327
|
+
kt as PURPLE,
|
|
328
|
+
jt as PURPLE_A,
|
|
329
|
+
Yt as PURPLE_B,
|
|
330
|
+
Kt as PURPLE_C,
|
|
331
|
+
zt as PURPLE_D,
|
|
332
|
+
Jt as PURPLE_E,
|
|
333
|
+
Zt as Paragraph,
|
|
334
|
+
Qt as ParametricFunction,
|
|
335
|
+
Xt as ParametricSurface,
|
|
336
|
+
$t as Pentagon,
|
|
337
|
+
qt as PerformanceMonitor,
|
|
338
|
+
er as PhaseFlow,
|
|
339
|
+
ar as PlaybackControls,
|
|
340
|
+
tr as PointCloudDot,
|
|
341
|
+
rr as PointMobject,
|
|
342
|
+
or as Polygon,
|
|
343
|
+
nr as Pulse,
|
|
344
|
+
lr as RED,
|
|
345
|
+
ir as RED_A,
|
|
346
|
+
ur as RED_B,
|
|
347
|
+
cr as RED_C,
|
|
348
|
+
sr as RED_D,
|
|
349
|
+
mr as RED_E,
|
|
350
|
+
Er as RIGHT,
|
|
351
|
+
dr as Rectangle,
|
|
352
|
+
Tr as RegularPolygon,
|
|
353
|
+
Ar as RegularPolygram,
|
|
354
|
+
pr as RemoveTextLetterByLetter,
|
|
355
|
+
_r as Renderer,
|
|
356
|
+
gr as ReplacementTransform,
|
|
357
|
+
hr as Restore,
|
|
358
|
+
Rr as RightAngle,
|
|
359
|
+
Lr as Rotate,
|
|
360
|
+
Dr as Rotating,
|
|
361
|
+
Fr as RoundedRectangle,
|
|
362
|
+
fr as SMALL_BUFF,
|
|
363
|
+
vr as SVGMobject,
|
|
364
|
+
Pr as SampleSpace,
|
|
365
|
+
Gr as Scale,
|
|
366
|
+
Sr as ScaleInPlace,
|
|
367
|
+
u as Scene,
|
|
368
|
+
Mr as SceneStateManager,
|
|
369
|
+
Or as ScreenRectangle,
|
|
370
|
+
br as Sector,
|
|
371
|
+
yr as SelectionManager,
|
|
372
|
+
Br as Shift,
|
|
373
|
+
Cr as ShowCreationThenDestruction,
|
|
374
|
+
Ur as ShowPassingFlash,
|
|
375
|
+
Ir as SmallDot,
|
|
376
|
+
xr as SmoothedVectorizedHomotopy,
|
|
377
|
+
Nr as Sphere,
|
|
378
|
+
wr as Square,
|
|
379
|
+
Vr as Star,
|
|
380
|
+
Wr as Succession,
|
|
381
|
+
Hr as Surface3D,
|
|
382
|
+
kr as SurfacePresets,
|
|
383
|
+
jr as SurroundingRectangle,
|
|
384
|
+
Yr as TEAL,
|
|
385
|
+
Kr as TEAL_A,
|
|
386
|
+
zr as TEAL_B,
|
|
387
|
+
Jr as TEAL_C,
|
|
388
|
+
Zr as TEAL_D,
|
|
389
|
+
Qr as TEAL_E,
|
|
390
|
+
Xr as Table,
|
|
391
|
+
$r as TangentLine,
|
|
392
|
+
qr as TangentialArc,
|
|
393
|
+
eo as Tex,
|
|
394
|
+
ao as Text,
|
|
395
|
+
to as TextGlyphGroup,
|
|
396
|
+
ro as TexturedSurface,
|
|
397
|
+
oo as ThreeDAxes,
|
|
398
|
+
no as ThreeDScene,
|
|
399
|
+
lo as Timeline,
|
|
400
|
+
io as Torus,
|
|
401
|
+
uo as Transform,
|
|
402
|
+
co as Triangle,
|
|
403
|
+
so as UL,
|
|
404
|
+
mo as UP,
|
|
405
|
+
Eo as UR,
|
|
406
|
+
To as Uncreate,
|
|
407
|
+
Ao as Underline,
|
|
408
|
+
po as Union,
|
|
409
|
+
_o as Unwrite,
|
|
410
|
+
go as UpdateFromAlphaFunc,
|
|
411
|
+
ho as UpdateFromFunc,
|
|
412
|
+
Ro as VDict,
|
|
413
|
+
Lo as VGroup,
|
|
414
|
+
Do as VMobject,
|
|
415
|
+
Fo as VMobjectFromSVGPath,
|
|
416
|
+
fo as ValueTracker,
|
|
417
|
+
vo as Variable,
|
|
418
|
+
Po as Vector,
|
|
419
|
+
Go as Vector3D,
|
|
420
|
+
So as VectorFieldVector,
|
|
421
|
+
Mo as VectorizedPoint,
|
|
422
|
+
Oo as VideoExporter,
|
|
423
|
+
bo as WHITE,
|
|
424
|
+
yo as Wiggle,
|
|
425
|
+
Bo as WiggleOutThenIn,
|
|
426
|
+
Co as Write,
|
|
427
|
+
Uo as YELLOW,
|
|
428
|
+
Io as YELLOW_A,
|
|
429
|
+
xo as YELLOW_B,
|
|
430
|
+
No as YELLOW_C,
|
|
431
|
+
wo as YELLOW_D,
|
|
432
|
+
Vo as YELLOW_E,
|
|
433
|
+
Wo as ZoomDisplayPopOut,
|
|
434
|
+
Ho as ZoomedScene,
|
|
435
|
+
ko as addTextLetterByLetter,
|
|
436
|
+
jo as addVec,
|
|
437
|
+
Yo as animationGroup,
|
|
438
|
+
Ko as applyPointwiseFunction,
|
|
439
|
+
zo as applyWave,
|
|
440
|
+
Jo as areKatexStylesLoaded,
|
|
441
|
+
Zo as binaryTree,
|
|
442
|
+
Qo as bipartiteGraph,
|
|
443
|
+
Xo as broadcast,
|
|
444
|
+
$o as circumscribe,
|
|
445
|
+
qo as completeGraph,
|
|
446
|
+
en as complexHomotopy,
|
|
447
|
+
an as complexValueTracker,
|
|
448
|
+
tn as compose,
|
|
449
|
+
rn as create,
|
|
450
|
+
on as createBezierShaderMaterial,
|
|
451
|
+
nn as createDiceRow,
|
|
452
|
+
ln as createFadeToBlack,
|
|
453
|
+
un as createFadeToWhite,
|
|
454
|
+
cn as createFrameTimeTracker,
|
|
455
|
+
sn as createGifExporter,
|
|
456
|
+
mn as createPerformanceMonitor,
|
|
457
|
+
En as createVideoExporter,
|
|
458
|
+
dn as cycleGraph,
|
|
459
|
+
Tn as deserializeMobject,
|
|
460
|
+
An as doubleSmooth,
|
|
461
|
+
pn as drawBorderThenFill,
|
|
462
|
+
_n as easeIn,
|
|
463
|
+
gn as easeInBounce,
|
|
464
|
+
hn as easeInExpo,
|
|
465
|
+
Rn as easeInOut,
|
|
466
|
+
Ln as easeInQuad,
|
|
467
|
+
Dn as easeOut,
|
|
468
|
+
Fn as easeOutBounce,
|
|
469
|
+
fn as easeOutExpo,
|
|
470
|
+
vn as easeOutQuad,
|
|
471
|
+
Pn as ensureCCW,
|
|
472
|
+
Gn as ensureCW,
|
|
473
|
+
Sn as ensureKatexStyles,
|
|
474
|
+
Mn as fadeIn,
|
|
475
|
+
On as fadeOut,
|
|
476
|
+
bn as fadeToColor,
|
|
477
|
+
yn as flash,
|
|
478
|
+
Bn as flowPoint,
|
|
479
|
+
Cn as flowPointTrajectory,
|
|
480
|
+
Un as focusOn,
|
|
481
|
+
In as getFeatureFlags,
|
|
482
|
+
xn as gridGraph,
|
|
483
|
+
Nn as growFromCenter,
|
|
484
|
+
wn as homotopy,
|
|
485
|
+
Vn as hungarian,
|
|
486
|
+
Wn as hungarianFromSimilarity,
|
|
487
|
+
Hn as indicate,
|
|
488
|
+
kn as isFeatureEnabled,
|
|
489
|
+
jn as isMathJaxLoaded,
|
|
490
|
+
Yn as katexCanRender,
|
|
491
|
+
Kn as laggedStart,
|
|
492
|
+
zn as linear,
|
|
493
|
+
Jn as linspace,
|
|
494
|
+
Zn as maintainPositionRelativeTo,
|
|
495
|
+
Qn as makeClickable,
|
|
496
|
+
Xn as makeDraggable,
|
|
497
|
+
$n as makeHoverable,
|
|
498
|
+
qn as moveAlongPath,
|
|
499
|
+
el as moveToTarget,
|
|
500
|
+
al as moveToTargetPosition,
|
|
501
|
+
tl as parseSVGPathData,
|
|
502
|
+
rl as pathGraph,
|
|
503
|
+
ol as phaseFlow,
|
|
504
|
+
nl as preloadMathJax,
|
|
505
|
+
ll as pulse,
|
|
506
|
+
il as removeTextLetterByLetter,
|
|
507
|
+
ul as renderLatexToSVG,
|
|
508
|
+
cl as replacementTransform,
|
|
509
|
+
sl as resetFeatureFlags,
|
|
510
|
+
ml as restore,
|
|
511
|
+
El as restoreMobjectState,
|
|
512
|
+
dl as reverse,
|
|
513
|
+
Tl as rk4Step,
|
|
514
|
+
Al as rotate,
|
|
515
|
+
pl as rotating,
|
|
516
|
+
_l as rushFrom,
|
|
517
|
+
gl as rushInto,
|
|
518
|
+
hl as saveMobjectState,
|
|
519
|
+
Rl as scale,
|
|
520
|
+
Ll as scaleVec,
|
|
521
|
+
Dl as serializeMobject,
|
|
522
|
+
Fl as setFeatureFlags,
|
|
523
|
+
fl as shift,
|
|
524
|
+
vl as showCreationThenDestruction,
|
|
525
|
+
Pl as showPassingFlash,
|
|
526
|
+
Gl as signedArea2D,
|
|
527
|
+
Sl as skeletonizeGlyph,
|
|
528
|
+
Ml as smooth,
|
|
529
|
+
Ol as smoothedVectorizedHomotopy,
|
|
530
|
+
bl as snapshotFromJSON,
|
|
531
|
+
yl as snapshotToJSON,
|
|
532
|
+
Bl as solveIVP,
|
|
533
|
+
Cl as starGraph,
|
|
534
|
+
Ul as stateFromJSON,
|
|
535
|
+
Il as stateToJSON,
|
|
536
|
+
xl as stepFunction,
|
|
537
|
+
Nl as subVec,
|
|
538
|
+
wl as succession,
|
|
539
|
+
Vl as svgMobject,
|
|
540
|
+
Wl as svgToVMobjects,
|
|
541
|
+
Hl as texturedSphere,
|
|
542
|
+
kl as thereAndBack,
|
|
543
|
+
jl as transform,
|
|
544
|
+
Yl as triangulatePolygon,
|
|
545
|
+
Kl as triangulatePolygonPositions,
|
|
546
|
+
zl as uncreate,
|
|
547
|
+
Jl as unwrite,
|
|
548
|
+
Zl as updateBezierMaterialResolution,
|
|
549
|
+
Ql as updateFromAlphaFunc,
|
|
550
|
+
Xl as updateFromFunc,
|
|
551
|
+
F as useAnimation,
|
|
552
|
+
P as useInjectedScene,
|
|
553
|
+
D as useMobject,
|
|
554
|
+
g as useScene,
|
|
555
|
+
f as useUpdater,
|
|
556
|
+
$l as valueTracker,
|
|
557
|
+
ql as wiggle,
|
|
558
|
+
ei as wiggleOutThenIn,
|
|
559
|
+
ai as write
|
|
560
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Mobject } from '../core/Mobject';
|
|
2
|
+
import { Scene } from '../core/Scene';
|
|
3
|
+
/**
|
|
4
|
+
* Options for configuring clickable behavior.
|
|
5
|
+
*/
|
|
6
|
+
export interface ClickableOptions {
|
|
7
|
+
/** Callback when the mobject is clicked */
|
|
8
|
+
onClick: (mobject: Mobject, event: MouseEvent) => void;
|
|
9
|
+
/** Callback when the mobject is double-clicked */
|
|
10
|
+
onDoubleClick?: (mobject: Mobject, event: MouseEvent) => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Adds click detection to a mobject.
|
|
14
|
+
*/
|
|
15
|
+
export declare class Clickable {
|
|
16
|
+
private _mobject;
|
|
17
|
+
private _scene;
|
|
18
|
+
private _options;
|
|
19
|
+
private _enabled;
|
|
20
|
+
private _onClick;
|
|
21
|
+
private _onDblClick;
|
|
22
|
+
private _onTouchEnd;
|
|
23
|
+
private _touchStartTime;
|
|
24
|
+
private _touchStartPos;
|
|
25
|
+
private _onTouchStart;
|
|
26
|
+
private _lastTapTime;
|
|
27
|
+
private _doubleTapDelay;
|
|
28
|
+
/**
|
|
29
|
+
* Create a new Clickable behavior.
|
|
30
|
+
* @param mobject - The mobject to make clickable
|
|
31
|
+
* @param scene - The scene containing the mobject
|
|
32
|
+
* @param options - Clickable configuration options
|
|
33
|
+
*/
|
|
34
|
+
constructor(mobject: Mobject, scene: Scene, options: ClickableOptions);
|
|
35
|
+
/**
|
|
36
|
+
* Get whether clicking is enabled.
|
|
37
|
+
*/
|
|
38
|
+
get isEnabled(): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Get the mobject this clickable is attached to.
|
|
41
|
+
*/
|
|
42
|
+
get mobject(): Mobject;
|
|
43
|
+
private _setupEventListeners;
|
|
44
|
+
private _handleClick;
|
|
45
|
+
private _handleDblClick;
|
|
46
|
+
private _handleTouchStart;
|
|
47
|
+
private _handleTouchEnd;
|
|
48
|
+
private _screenToWorld;
|
|
49
|
+
private _hitTest;
|
|
50
|
+
/**
|
|
51
|
+
* Enable clicking.
|
|
52
|
+
*/
|
|
53
|
+
enable(): void;
|
|
54
|
+
/**
|
|
55
|
+
* Disable clicking.
|
|
56
|
+
*/
|
|
57
|
+
disable(): void;
|
|
58
|
+
/**
|
|
59
|
+
* Clean up event listeners.
|
|
60
|
+
*/
|
|
61
|
+
dispose(): void;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Factory function to make a mobject clickable.
|
|
65
|
+
* @param mobject - The mobject to make clickable
|
|
66
|
+
* @param scene - The scene containing the mobject
|
|
67
|
+
* @param options - Clickable configuration options
|
|
68
|
+
* @returns A new Clickable instance
|
|
69
|
+
*/
|
|
70
|
+
export declare function makeClickable(mobject: Mobject, scene: Scene, options: ClickableOptions): Clickable;
|
|
71
|
+
//# sourceMappingURL=Clickable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Clickable.d.ts","sourceRoot":"","sources":["../../src/interaction/Clickable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,2CAA2C;IAC3C,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACvD,kDAAkD;IAClD,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CAC/D;AAED;;GAEG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAU;IAC1B,OAAO,CAAC,MAAM,CAAQ;IACtB,OAAO,CAAC,QAAQ,CAAmB;IACnC,OAAO,CAAC,QAAQ,CAAiB;IAGjC,OAAO,CAAC,QAAQ,CAA0B;IAC1C,OAAO,CAAC,WAAW,CAA0B;IAC7C,OAAO,CAAC,WAAW,CAA0B;IAG7C,OAAO,CAAC,eAAe,CAAa;IACpC,OAAO,CAAC,cAAc,CAAyC;IAC/D,OAAO,CAAC,aAAa,CAA0B;IAG/C,OAAO,CAAC,YAAY,CAAa;IACjC,OAAO,CAAC,eAAe,CAAe;IAEtC;;;;;OAKG;gBACS,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,gBAAgB;IAcrE;;OAEG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,oBAAoB;IAS5B,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,eAAe;IAgDvB,OAAO,CAAC,cAAc;IAgBtB,OAAO,CAAC,QAAQ;IAShB;;OAEG;IACH,MAAM,IAAI,IAAI;IAId;;OAEG;IACH,OAAO,IAAI,IAAI;IAIf;;OAEG;IACH,OAAO,IAAI,IAAI;CAOhB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,gBAAgB,GAAG,SAAS,CAElG"}
|