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,79 @@
|
|
|
1
|
+
import { Mobject } from '../../core/Mobject';
|
|
2
|
+
import { Animation, AnimationOptions } from '../Animation';
|
|
3
|
+
export interface FocusOnOptions extends AnimationOptions {
|
|
4
|
+
/** Color of the focus effect. Default: GRAY */
|
|
5
|
+
color?: string;
|
|
6
|
+
/** Starting radius. Default: 2 */
|
|
7
|
+
startRadius?: number;
|
|
8
|
+
/** Ending radius (shrinks down to this). Default: 0 */
|
|
9
|
+
endRadius?: number;
|
|
10
|
+
/** Number of rings. Default: 5 */
|
|
11
|
+
numRings?: number;
|
|
12
|
+
/** Stroke width. Default: DEFAULT_STROKE_WIDTH */
|
|
13
|
+
strokeWidth?: number;
|
|
14
|
+
/** Opacity of the rings. Default: 0.5 */
|
|
15
|
+
opacity?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare class FocusOn extends Animation {
|
|
18
|
+
/** Focus color */
|
|
19
|
+
readonly focusColor: string;
|
|
20
|
+
/** Starting radius */
|
|
21
|
+
readonly startRadius: number;
|
|
22
|
+
/** Ending radius */
|
|
23
|
+
readonly endRadius: number;
|
|
24
|
+
/** Number of rings */
|
|
25
|
+
readonly numRings: number;
|
|
26
|
+
/** Stroke width */
|
|
27
|
+
readonly strokeWidth: number;
|
|
28
|
+
/** Ring opacity */
|
|
29
|
+
readonly ringOpacity: number;
|
|
30
|
+
/** Focus rings group */
|
|
31
|
+
private _ringsGroup;
|
|
32
|
+
/** Parent object */
|
|
33
|
+
private _parentObject;
|
|
34
|
+
/** Center point */
|
|
35
|
+
private _center;
|
|
36
|
+
constructor(mobject: Mobject, options?: FocusOnOptions);
|
|
37
|
+
begin(): void;
|
|
38
|
+
private _createRing;
|
|
39
|
+
private _updateRing;
|
|
40
|
+
interpolate(alpha: number): void;
|
|
41
|
+
finish(): void;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Create a FocusOn animation for a mobject.
|
|
45
|
+
* Creates converging rings that focus attention on the mobject.
|
|
46
|
+
* @param mobject The mobject to focus on
|
|
47
|
+
* @param options FocusOn options (color, startRadius, endRadius, numRings, strokeWidth, opacity)
|
|
48
|
+
*/
|
|
49
|
+
export declare function focusOn(mobject: Mobject, options?: FocusOnOptions): FocusOn;
|
|
50
|
+
/**
|
|
51
|
+
* Pulse animation - makes a mobject pulse (scale up and down) once.
|
|
52
|
+
* A simpler variant of FocusOn that just affects the mobject itself.
|
|
53
|
+
*/
|
|
54
|
+
export interface PulseOptions extends AnimationOptions {
|
|
55
|
+
/** Scale factor at peak. Default: 1.2 */
|
|
56
|
+
scaleFactor?: number;
|
|
57
|
+
/** Number of pulses. Default: 1 */
|
|
58
|
+
nPulses?: number;
|
|
59
|
+
}
|
|
60
|
+
export declare class Pulse extends Animation {
|
|
61
|
+
/** Scale factor at peak */
|
|
62
|
+
readonly scaleFactor: number;
|
|
63
|
+
/** Number of pulses */
|
|
64
|
+
readonly nPulses: number;
|
|
65
|
+
/** Original scale */
|
|
66
|
+
private _originalScale;
|
|
67
|
+
constructor(mobject: Mobject, options?: PulseOptions);
|
|
68
|
+
begin(): void;
|
|
69
|
+
interpolate(alpha: number): void;
|
|
70
|
+
finish(): void;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Create a Pulse animation for a mobject.
|
|
74
|
+
* Makes the mobject pulse (scale up and down).
|
|
75
|
+
* @param mobject The mobject to pulse
|
|
76
|
+
* @param options Pulse options (scaleFactor, nPulses)
|
|
77
|
+
*/
|
|
78
|
+
export declare function pulse(mobject: Mobject, options?: PulseOptions): Pulse;
|
|
79
|
+
//# sourceMappingURL=FocusOn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FocusOn.d.ts","sourceRoot":"","sources":["../../../src/animation/indication/FocusOn.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,EAAE,OAAO,EAAgB,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAI3D,MAAM,WAAW,cAAe,SAAQ,gBAAgB;IACtD,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,OAAQ,SAAQ,SAAS;IACpC,kBAAkB;IAClB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B,sBAAsB;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,oBAAoB;IACpB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,sBAAsB;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,mBAAmB;IACnB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,mBAAmB;IACnB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,wBAAwB;IACxB,OAAO,CAAC,WAAW,CAA4B;IAE/C,oBAAoB;IACpB,OAAO,CAAC,aAAa,CAA+B;IAEpD,mBAAmB;IACnB,OAAO,CAAC,OAAO,CAA2B;gBAE9B,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,cAAmB;IAajD,KAAK,IAAI,IAAI;IAuBtB,OAAO,CAAC,WAAW;IA6BnB,OAAO,CAAC,WAAW;IA2BnB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IA6BvB,MAAM,IAAI,IAAI;CAiBxB;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAE3E;AAED;;;GAGG;AACH,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,KAAM,SAAQ,SAAS;IAClC,2BAA2B;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,uBAAuB;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,qBAAqB;IACrB,OAAO,CAAC,cAAc,CAAsC;gBAEhD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,YAAiB;IAS/C,KAAK,IAAI,IAAI;IAKtB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAkBvB,MAAM,IAAI,IAAI;CAMxB;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,KAAK,CAErE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Mobject } from '../../core/Mobject';
|
|
2
|
+
import { Animation, AnimationOptions } from '../Animation';
|
|
3
|
+
export interface IndicateOptions extends AnimationOptions {
|
|
4
|
+
/** Scale factor at peak of indication. Default: 1.2 */
|
|
5
|
+
scaleFactor?: number;
|
|
6
|
+
/** Color to use for indication highlight. Default: YELLOW */
|
|
7
|
+
color?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class Indicate extends Animation {
|
|
10
|
+
/** Scale factor at peak */
|
|
11
|
+
readonly scaleFactor: number;
|
|
12
|
+
/** Highlight color */
|
|
13
|
+
readonly indicateColor: string;
|
|
14
|
+
/** Original scale */
|
|
15
|
+
private _originalScale;
|
|
16
|
+
/** Original color */
|
|
17
|
+
private _originalColor;
|
|
18
|
+
constructor(mobject: Mobject, options?: IndicateOptions);
|
|
19
|
+
begin(): void;
|
|
20
|
+
interpolate(alpha: number): void;
|
|
21
|
+
finish(): void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Create an Indicate animation for a mobject.
|
|
25
|
+
* Draws attention by scaling up and changing color, then returning to original.
|
|
26
|
+
* @param mobject The mobject to indicate
|
|
27
|
+
* @param options Indicate options (scaleFactor, color, duration, rateFunc)
|
|
28
|
+
*/
|
|
29
|
+
export declare function indicate(mobject: Mobject, options?: IndicateOptions): Indicate;
|
|
30
|
+
//# sourceMappingURL=Indicate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Indicate.d.ts","sourceRoot":"","sources":["../../../src/animation/indication/Indicate.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAI3D,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,QAAS,SAAQ,SAAS;IACrC,2BAA2B;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,sBAAsB;IACtB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B,qBAAqB;IACrB,OAAO,CAAC,cAAc,CAAsC;IAE5D,qBAAqB;IACrB,OAAO,CAAC,cAAc,CAAc;gBAExB,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,eAAoB;IAUlD,KAAK,IAAI,IAAI;IAMtB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAkBvB,MAAM,IAAI,IAAI;CAOxB;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,QAAQ,CAE9E"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Mobject } from '../../core/Mobject';
|
|
2
|
+
import { Animation, AnimationOptions } from '../Animation';
|
|
3
|
+
export interface ShowCreationThenDestructionOptions extends AnimationOptions {
|
|
4
|
+
}
|
|
5
|
+
export declare class ShowCreationThenDestruction extends Animation {
|
|
6
|
+
/** Total path length for dash-based reveal */
|
|
7
|
+
private _totalLength;
|
|
8
|
+
/** Whether to use dash-based reveal (needs Line2 children) */
|
|
9
|
+
private _useDashReveal;
|
|
10
|
+
constructor(mobject: Mobject, options?: ShowCreationThenDestructionOptions);
|
|
11
|
+
/**
|
|
12
|
+
* Check if the mobject has Line2 children for dash-based reveal
|
|
13
|
+
*/
|
|
14
|
+
private _hasLine2Children;
|
|
15
|
+
begin(): void;
|
|
16
|
+
interpolate(alpha: number): void;
|
|
17
|
+
finish(): void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Create a ShowCreationThenDestruction animation for a mobject.
|
|
21
|
+
* First half draws the stroke progressively; second half erases it.
|
|
22
|
+
* @param mobject The mobject to animate (should be a VMobject for best effect)
|
|
23
|
+
* @param options Animation options (duration, rateFunc)
|
|
24
|
+
*/
|
|
25
|
+
export declare function showCreationThenDestruction(mobject: Mobject, options?: ShowCreationThenDestructionOptions): ShowCreationThenDestruction;
|
|
26
|
+
//# sourceMappingURL=ShowCreationThenDestruction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShowCreationThenDestruction.d.ts","sourceRoot":"","sources":["../../../src/animation/indication/ShowCreationThenDestruction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAK3D,MAAM,WAAW,kCAAmC,SAAQ,gBAAgB;CAE3E;AAED,qBAAa,2BAA4B,SAAQ,SAAS;IACxD,8CAA8C;IAC9C,OAAO,CAAC,YAAY,CAAa;IACjC,8DAA8D;IAC9D,OAAO,CAAC,cAAc,CAAkB;gBAE5B,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,kCAAuC;IAO9E;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAQhB,KAAK,IAAI,IAAI;IAqCtB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IA0BvB,MAAM,IAAI,IAAI;CAiBxB;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,2BAA2B,CAE7B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Mobject } from '../../core/Mobject';
|
|
2
|
+
import { Animation, AnimationOptions } from '../Animation';
|
|
3
|
+
/**
|
|
4
|
+
* ShowPassingFlash animation - creates a flash of light traveling along a path.
|
|
5
|
+
*
|
|
6
|
+
* This mimics Manim's ShowPassingFlash animation, which shows a highlighted
|
|
7
|
+
* portion of a VMobject's stroke traveling along its path.
|
|
8
|
+
*/
|
|
9
|
+
import * as THREE from 'three';
|
|
10
|
+
export interface ShowPassingFlashOptions extends AnimationOptions {
|
|
11
|
+
/** Color of the flash. Default: YELLOW */
|
|
12
|
+
color?: string;
|
|
13
|
+
/** Width of the flash as a proportion of the path (0-1). Default: 0.2 */
|
|
14
|
+
timeWidth?: number;
|
|
15
|
+
/** Stroke width of the flash. Default: DEFAULT_STROKE_WIDTH * 1.5 */
|
|
16
|
+
strokeWidth?: number;
|
|
17
|
+
}
|
|
18
|
+
export declare class ShowPassingFlash extends Animation {
|
|
19
|
+
/** Flash color */
|
|
20
|
+
readonly flashColor: string;
|
|
21
|
+
/** Width of flash as proportion of path */
|
|
22
|
+
readonly timeWidth: number;
|
|
23
|
+
/** Flash stroke width */
|
|
24
|
+
readonly flashStrokeWidth: number;
|
|
25
|
+
/** Flash line group */
|
|
26
|
+
protected _flashGroup: THREE.Group | null;
|
|
27
|
+
/** Parent object */
|
|
28
|
+
protected _parentObject: THREE.Object3D | null;
|
|
29
|
+
/** Path points (sampled from VMobject) */
|
|
30
|
+
protected _pathPoints: number[][];
|
|
31
|
+
/** Whether mobject is a VMobject */
|
|
32
|
+
protected _isVMobject: boolean;
|
|
33
|
+
constructor(mobject: Mobject, options?: ShowPassingFlashOptions);
|
|
34
|
+
begin(): void;
|
|
35
|
+
protected _samplePath(points: number[][]): number[][];
|
|
36
|
+
protected _distance(a: number[], b: number[]): number;
|
|
37
|
+
interpolate(alpha: number): void;
|
|
38
|
+
finish(): void;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Create a ShowPassingFlash animation for a mobject.
|
|
42
|
+
* Shows a highlighted flash traveling along the mobject's path.
|
|
43
|
+
* @param mobject The mobject (preferably VMobject) to show flash on
|
|
44
|
+
* @param options ShowPassingFlash options (color, timeWidth, strokeWidth)
|
|
45
|
+
*/
|
|
46
|
+
export declare function showPassingFlash(mobject: Mobject, options?: ShowPassingFlashOptions): ShowPassingFlash;
|
|
47
|
+
//# sourceMappingURL=ShowPassingFlash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShowPassingFlash.d.ts","sourceRoot":"","sources":["../../../src/animation/indication/ShowPassingFlash.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAK3D,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC/D,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,kBAAkB;IAClB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B,2CAA2C;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,yBAAyB;IACzB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAElC,uBAAuB;IACvB,SAAS,CAAC,WAAW,EAAE,KAAK,CAAC,KAAK,GAAG,IAAI,CAAQ;IAEjD,oBAAoB;IACpB,SAAS,CAAC,aAAa,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAQ;IAEtD,0CAA0C;IAC1C,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,EAAE,CAAM;IAEvC,oCAAoC;IACpC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAS;gBAE3B,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,uBAA4B;IAW1D,KAAK,IAAI,IAAI;IAoCtB,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,EAAE;IAyBrD,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM;IAOrD,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IA0DvB,MAAM,IAAI,IAAI;CAiBxB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,gBAAgB,CAEtG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Mobject } from '../../core/Mobject';
|
|
2
|
+
import { ShowPassingFlash, ShowPassingFlashOptions } from './ShowPassingFlash';
|
|
3
|
+
export interface ShowPassingFlashWithThinningStrokeWidthOptions extends ShowPassingFlashOptions {
|
|
4
|
+
/** Minimum stroke width at the tail (proportion of strokeWidth). Default: 0.1 */
|
|
5
|
+
minStrokeWidthRatio?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class ShowPassingFlashWithThinningStrokeWidth extends ShowPassingFlash {
|
|
8
|
+
/** Minimum stroke width ratio (tail) */
|
|
9
|
+
readonly minStrokeWidthRatio: number;
|
|
10
|
+
constructor(mobject: Mobject, options?: ShowPassingFlashWithThinningStrokeWidthOptions);
|
|
11
|
+
interpolate(alpha: number): void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Create a ShowPassingFlashWithThinningStrokeWidth animation for a mobject.
|
|
15
|
+
* Shows a highlighted flash traveling along the mobject's path with stroke
|
|
16
|
+
* width that tapers from full width at the head to thin at the tail.
|
|
17
|
+
* @param mobject The mobject (preferably VMobject) to show flash on
|
|
18
|
+
* @param options Animation options (color, timeWidth, strokeWidth, minStrokeWidthRatio)
|
|
19
|
+
*/
|
|
20
|
+
export declare function showPassingFlashWithThinningStrokeWidth(mobject: Mobject, options?: ShowPassingFlashWithThinningStrokeWidthOptions): ShowPassingFlashWithThinningStrokeWidth;
|
|
21
|
+
//# sourceMappingURL=ShowPassingFlashWithThinningStrokeWidth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShowPassingFlashWithThinningStrokeWidth.d.ts","sourceRoot":"","sources":["../../../src/animation/indication/ShowPassingFlashWithThinningStrokeWidth.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE/E,MAAM,WAAW,8CAA+C,SAAQ,uBAAuB;IAC7F,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,qBAAa,uCAAwC,SAAQ,gBAAgB;IAC3E,wCAAwC;IACxC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;gBAEzB,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,8CAAmD;IAKjF,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;CAoF1C;AAED;;;;;;GAMG;AACH,wBAAgB,uCAAuC,CACrD,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,8CAA8C,GACvD,uCAAuC,CAEzC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Mobject, Vector3Tuple } from '../../core/Mobject';
|
|
2
|
+
import { Animation, AnimationOptions } from '../Animation';
|
|
3
|
+
export interface WiggleOptions extends AnimationOptions {
|
|
4
|
+
/** Maximum rotation angle in radians. Default: PI/12 (15 degrees) */
|
|
5
|
+
rotationAngle?: number;
|
|
6
|
+
/** Number of wiggles. Default: 6 */
|
|
7
|
+
nWiggles?: number;
|
|
8
|
+
/** Scale factor at peak of wiggle. Default: 1.1 */
|
|
9
|
+
scaleFactor?: number;
|
|
10
|
+
/** Axis to rotate about. Default: [0, 0, 1] (Z axis) */
|
|
11
|
+
rotationAxis?: Vector3Tuple;
|
|
12
|
+
/** Point to wiggle about. Default: mobject center */
|
|
13
|
+
aboutPoint?: Vector3Tuple;
|
|
14
|
+
}
|
|
15
|
+
export declare class Wiggle extends Animation {
|
|
16
|
+
/** Maximum rotation angle */
|
|
17
|
+
readonly rotationAngle: number;
|
|
18
|
+
/** Number of wiggles */
|
|
19
|
+
readonly nWiggles: number;
|
|
20
|
+
/** Scale factor */
|
|
21
|
+
readonly scaleFactor: number;
|
|
22
|
+
/** Rotation axis */
|
|
23
|
+
readonly rotationAxis: Vector3Tuple;
|
|
24
|
+
/** Point to wiggle about */
|
|
25
|
+
readonly aboutPoint: Vector3Tuple | null;
|
|
26
|
+
/** Initial rotation quaternion */
|
|
27
|
+
private _initialQuaternion;
|
|
28
|
+
/** Initial scale */
|
|
29
|
+
private _initialScale;
|
|
30
|
+
/** Initial position */
|
|
31
|
+
private _initialPosition;
|
|
32
|
+
/** About point as Vector3 */
|
|
33
|
+
private _aboutPointVector;
|
|
34
|
+
/** Rotation axis as Vector3 */
|
|
35
|
+
private _axisVector;
|
|
36
|
+
constructor(mobject: Mobject, options?: WiggleOptions);
|
|
37
|
+
begin(): void;
|
|
38
|
+
interpolate(alpha: number): void;
|
|
39
|
+
finish(): void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Create a Wiggle animation for a mobject.
|
|
43
|
+
* Makes the mobject wiggle back and forth with rotation and optional scaling.
|
|
44
|
+
* @param mobject The mobject to wiggle
|
|
45
|
+
* @param options Wiggle options (rotationAngle, nWiggles, scaleFactor, rotationAxis, aboutPoint)
|
|
46
|
+
*/
|
|
47
|
+
export declare function wiggle(mobject: Mobject, options?: WiggleOptions): Wiggle;
|
|
48
|
+
//# sourceMappingURL=Wiggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Wiggle.d.ts","sourceRoot":"","sources":["../../../src/animation/indication/Wiggle.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAG3D,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACrD,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,qDAAqD;IACrD,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAED,qBAAa,MAAO,SAAQ,SAAS;IACnC,6BAA6B;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B,wBAAwB;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,mBAAmB;IACnB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,oBAAoB;IACpB,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAEpC,4BAA4B;IAC5B,QAAQ,CAAC,UAAU,EAAE,YAAY,GAAG,IAAI,CAAC;IAEzC,kCAAkC;IAClC,OAAO,CAAC,kBAAkB,CAA4C;IAEtE,oBAAoB;IACpB,OAAO,CAAC,aAAa,CAAsC;IAE3D,uBAAuB;IACvB,OAAO,CAAC,gBAAgB,CAAsC;IAE9D,6BAA6B;IAC7B,OAAO,CAAC,iBAAiB,CAA8B;IAEvD,+BAA+B;IAC/B,OAAO,CAAC,WAAW,CAAsC;gBAE7C,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,aAAkB;IAYhD,KAAK,IAAI,IAAI;IA4BtB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IA2CvB,MAAM,IAAI,IAAI;CAQxB;AAED;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,MAAM,CAExE"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Mobject, Vector3Tuple } from '../../core/Mobject';
|
|
2
|
+
import { Animation, AnimationOptions } from '../Animation';
|
|
3
|
+
export interface WiggleOutThenInOptions extends AnimationOptions {
|
|
4
|
+
/** Peak scale factor. Default: 1.1 */
|
|
5
|
+
scaleValue?: number;
|
|
6
|
+
/** Maximum rotation angle in radians. Default: 0.01 * TAU (~3.6 degrees) */
|
|
7
|
+
rotationAngle?: number;
|
|
8
|
+
/** Number of rotation oscillations. Default: 6 */
|
|
9
|
+
nWiggles?: number;
|
|
10
|
+
/** Axis to rotate about. Default: [0, 0, 1] (Z axis) */
|
|
11
|
+
rotationAxis?: Vector3Tuple;
|
|
12
|
+
}
|
|
13
|
+
export declare class WiggleOutThenIn extends Animation {
|
|
14
|
+
/** Peak scale factor */
|
|
15
|
+
readonly scaleValue: number;
|
|
16
|
+
/** Maximum rotation angle */
|
|
17
|
+
readonly rotationAngle: number;
|
|
18
|
+
/** Number of oscillations */
|
|
19
|
+
readonly nWiggles: number;
|
|
20
|
+
/** Rotation axis */
|
|
21
|
+
readonly rotationAxis: Vector3Tuple;
|
|
22
|
+
/** Initial rotation quaternion */
|
|
23
|
+
private _initialQuaternion;
|
|
24
|
+
/** Initial scale */
|
|
25
|
+
private _initialScale;
|
|
26
|
+
/** Initial position */
|
|
27
|
+
private _initialPosition;
|
|
28
|
+
/** Rotation axis as Vector3 */
|
|
29
|
+
private _axisVector;
|
|
30
|
+
/** About point (center of mobject) */
|
|
31
|
+
private _aboutPoint;
|
|
32
|
+
constructor(mobject: Mobject, options?: WiggleOutThenInOptions);
|
|
33
|
+
begin(): void;
|
|
34
|
+
interpolate(alpha: number): void;
|
|
35
|
+
finish(): void;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Create a WiggleOutThenIn animation for a mobject.
|
|
39
|
+
* Scales the mobject outward while oscillating rotation, then returns to original.
|
|
40
|
+
* @param mobject The mobject to wiggle
|
|
41
|
+
* @param options WiggleOutThenIn options (scaleValue, rotationAngle, nWiggles, rotationAxis)
|
|
42
|
+
*/
|
|
43
|
+
export declare function wiggleOutThenIn(mobject: Mobject, options?: WiggleOutThenInOptions): WiggleOutThenIn;
|
|
44
|
+
//# sourceMappingURL=WiggleOutThenIn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WiggleOutThenIn.d.ts","sourceRoot":"","sources":["../../../src/animation/indication/WiggleOutThenIn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAO3D,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D,sCAAsC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAyBD,qBAAa,eAAgB,SAAQ,SAAS;IAC5C,wBAAwB;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B,6BAA6B;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B,6BAA6B;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,oBAAoB;IACpB,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAEpC,kCAAkC;IAClC,OAAO,CAAC,kBAAkB,CAA4C;IAEtE,oBAAoB;IACpB,OAAO,CAAC,aAAa,CAAsC;IAE3D,uBAAuB;IACvB,OAAO,CAAC,gBAAgB,CAAsC;IAE9D,+BAA+B;IAC/B,OAAO,CAAC,WAAW,CAAsC;IAEzD,sCAAsC;IACtC,OAAO,CAAC,WAAW,CAAsC;gBAE7C,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,sBAA2B;IAWzD,KAAK,IAAI,IAAI;IAoBtB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAqCvB,MAAM,IAAI,IAAI;CAQxB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,eAAe,CAEjB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Indication animations module.
|
|
3
|
+
*
|
|
4
|
+
* These animations are used to draw attention to specific mobjects
|
|
5
|
+
* without fundamentally changing them. They include effects like
|
|
6
|
+
* scaling, flashing, circumscribing, wiggling, and focusing.
|
|
7
|
+
*/
|
|
8
|
+
export { Indicate, indicate, type IndicateOptions } from './Indicate';
|
|
9
|
+
export { Flash, flash, type FlashOptions } from './Flash';
|
|
10
|
+
export { Circumscribe, circumscribe, type CircumscribeOptions, type CircumscribeShape, } from './Circumscribe';
|
|
11
|
+
export { Wiggle, wiggle, type WiggleOptions } from './Wiggle';
|
|
12
|
+
export { ShowPassingFlash, showPassingFlash, type ShowPassingFlashOptions, } from './ShowPassingFlash';
|
|
13
|
+
export { ApplyWave, applyWave, type ApplyWaveOptions, type WaveDirection, } from './ApplyWave';
|
|
14
|
+
export { FocusOn, focusOn, type FocusOnOptions } from './FocusOn';
|
|
15
|
+
export { Pulse, pulse, type PulseOptions } from './FocusOn';
|
|
16
|
+
export { ShowPassingFlashWithThinningStrokeWidth, showPassingFlashWithThinningStrokeWidth, type ShowPassingFlashWithThinningStrokeWidthOptions, } from './ShowPassingFlashWithThinningStrokeWidth';
|
|
17
|
+
export { Blink, blink, type BlinkOptions } from './Blink';
|
|
18
|
+
export { ShowCreationThenDestruction, showCreationThenDestruction, type ShowCreationThenDestructionOptions, } from './ShowCreationThenDestruction';
|
|
19
|
+
export { WiggleOutThenIn, wiggleOutThenIn, type WiggleOutThenInOptions, } from './WiggleOutThenIn';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/animation/indication/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAGtE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAG1D,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9D,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,uBAAuB,GAC7B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,SAAS,EACT,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAGlE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAG5D,OAAO,EACL,uCAAuC,EACvC,uCAAuC,EACvC,KAAK,8CAA8C,GACpD,MAAM,2CAA2C,CAAC;AAGnD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAG1D,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,KAAK,kCAAkC,GACxC,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EACL,eAAe,EACf,eAAe,EACf,KAAK,sBAAsB,GAC5B,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { Mobject } from '../../core/Mobject';
|
|
2
|
+
import { VMobject } from '../../core/VMobject';
|
|
3
|
+
import { Animation, AnimationOptions } from '../Animation';
|
|
4
|
+
/**
|
|
5
|
+
* Type for a 3D homotopy function
|
|
6
|
+
* @param x - X coordinate of the point
|
|
7
|
+
* @param y - Y coordinate of the point
|
|
8
|
+
* @param z - Z coordinate of the point
|
|
9
|
+
* @param t - Time parameter from 0 to 1
|
|
10
|
+
* @returns Transformed point as [x', y', z']
|
|
11
|
+
*/
|
|
12
|
+
export type HomotopyFunction = (x: number, y: number, z: number, t: number) => [number, number, number];
|
|
13
|
+
/**
|
|
14
|
+
* Complex number representation for complex homotopy
|
|
15
|
+
*/
|
|
16
|
+
export interface Complex {
|
|
17
|
+
re: number;
|
|
18
|
+
im: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Type for a complex plane homotopy function
|
|
22
|
+
* @param z - Complex number (x + iy)
|
|
23
|
+
* @param t - Time parameter from 0 to 1
|
|
24
|
+
* @returns Transformed complex number
|
|
25
|
+
*/
|
|
26
|
+
export type ComplexHomotopyFunction = (z: Complex, t: number) => Complex;
|
|
27
|
+
/**
|
|
28
|
+
* Type for a vector field function
|
|
29
|
+
* @param point - Point in 3D space [x, y, z]
|
|
30
|
+
* @returns Vector at that point [vx, vy, vz]
|
|
31
|
+
*/
|
|
32
|
+
export type VectorFieldFunction = (point: [number, number, number]) => [number, number, number];
|
|
33
|
+
export interface HomotopyOptions extends AnimationOptions {
|
|
34
|
+
/** The homotopy function to apply */
|
|
35
|
+
homotopyFunc: HomotopyFunction;
|
|
36
|
+
}
|
|
37
|
+
export interface ComplexHomotopyOptions extends AnimationOptions {
|
|
38
|
+
/** The complex homotopy function to apply */
|
|
39
|
+
complexFunc: ComplexHomotopyFunction;
|
|
40
|
+
}
|
|
41
|
+
export interface SmoothedVectorizedHomotopyOptions extends AnimationOptions {
|
|
42
|
+
/** The homotopy function to apply */
|
|
43
|
+
homotopyFunc: HomotopyFunction;
|
|
44
|
+
}
|
|
45
|
+
export interface PhaseFlowOptions extends AnimationOptions {
|
|
46
|
+
/** The vector field function defining the flow */
|
|
47
|
+
vectorField: VectorFieldFunction;
|
|
48
|
+
/** Virtual time to flow through (default: 1) */
|
|
49
|
+
virtualTime?: number;
|
|
50
|
+
/** Number of RK4 integration steps per unit of virtual time (default: 100) */
|
|
51
|
+
integrationSteps?: number;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* General homotopy animation that transforms every point on a mobject
|
|
55
|
+
* using a function f(x, y, z, t) => [x', y', z'] where t goes from 0 to 1.
|
|
56
|
+
*/
|
|
57
|
+
export declare class Homotopy extends Animation {
|
|
58
|
+
/** The homotopy function */
|
|
59
|
+
readonly homotopyFunc: HomotopyFunction;
|
|
60
|
+
/** Original points stored at animation start */
|
|
61
|
+
private _originalPoints;
|
|
62
|
+
/** Whether the mobject is a VMobject */
|
|
63
|
+
private _isVMobject;
|
|
64
|
+
constructor(mobject: Mobject, options: HomotopyOptions);
|
|
65
|
+
/**
|
|
66
|
+
* Store the original points at animation start
|
|
67
|
+
*/
|
|
68
|
+
begin(): void;
|
|
69
|
+
/**
|
|
70
|
+
* Apply the homotopy at the given progress value
|
|
71
|
+
*/
|
|
72
|
+
interpolate(alpha: number): void;
|
|
73
|
+
/**
|
|
74
|
+
* Ensure the final state is exact
|
|
75
|
+
*/
|
|
76
|
+
finish(): void;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Homotopy in the complex plane where points are treated as complex numbers.
|
|
80
|
+
* The function operates on z = x + iy and returns a new complex number.
|
|
81
|
+
*/
|
|
82
|
+
export declare class ComplexHomotopy extends Animation {
|
|
83
|
+
/** The complex homotopy function */
|
|
84
|
+
readonly complexFunc: ComplexHomotopyFunction;
|
|
85
|
+
/** Original points stored at animation start */
|
|
86
|
+
private _originalPoints;
|
|
87
|
+
/** Whether the mobject is a VMobject */
|
|
88
|
+
private _isVMobject;
|
|
89
|
+
constructor(mobject: Mobject, options: ComplexHomotopyOptions);
|
|
90
|
+
/**
|
|
91
|
+
* Store the original points at animation start
|
|
92
|
+
*/
|
|
93
|
+
begin(): void;
|
|
94
|
+
/**
|
|
95
|
+
* Apply the complex homotopy at the given progress value
|
|
96
|
+
*/
|
|
97
|
+
interpolate(alpha: number): void;
|
|
98
|
+
/**
|
|
99
|
+
* Ensure the final state is exact
|
|
100
|
+
*/
|
|
101
|
+
finish(): void;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* A homotopy animation that maintains the smoothness of Bezier curves.
|
|
105
|
+
* This is better suited for VMobject transformations as it properly
|
|
106
|
+
* handles control points to preserve curve continuity.
|
|
107
|
+
*/
|
|
108
|
+
export declare class SmoothedVectorizedHomotopy extends Animation {
|
|
109
|
+
/** The homotopy function */
|
|
110
|
+
readonly homotopyFunc: HomotopyFunction;
|
|
111
|
+
/** Original points stored at animation start */
|
|
112
|
+
private _originalPoints;
|
|
113
|
+
/** Cached anchor indices for faster lookups */
|
|
114
|
+
private _anchorIndices;
|
|
115
|
+
constructor(mobject: VMobject, options: SmoothedVectorizedHomotopyOptions);
|
|
116
|
+
/**
|
|
117
|
+
* Store the original points and compute anchor indices
|
|
118
|
+
*/
|
|
119
|
+
begin(): void;
|
|
120
|
+
/**
|
|
121
|
+
* Apply the homotopy while maintaining Bezier curve smoothness.
|
|
122
|
+
* Anchors are transformed directly, and handles are adjusted
|
|
123
|
+
* to maintain relative positions to their anchors.
|
|
124
|
+
*/
|
|
125
|
+
interpolate(alpha: number): void;
|
|
126
|
+
/**
|
|
127
|
+
* Ensure the final state is exact
|
|
128
|
+
*/
|
|
129
|
+
finish(): void;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Animation that flows a mobject along a vector field.
|
|
133
|
+
* The mobject follows the flow lines defined by the vector field function.
|
|
134
|
+
*
|
|
135
|
+
* Uses the RK4 ODE solver from `utils/ode` for accurate numerical integration.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```typescript
|
|
139
|
+
* // Circular flow
|
|
140
|
+
* const flow = new PhaseFlow(dots, {
|
|
141
|
+
* vectorField: ([x, y, z]) => [-y, x, 0],
|
|
142
|
+
* virtualTime: 2,
|
|
143
|
+
* duration: 3,
|
|
144
|
+
* });
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
export declare class PhaseFlow extends Animation {
|
|
148
|
+
/** The vector field function */
|
|
149
|
+
readonly vectorField: VectorFieldFunction;
|
|
150
|
+
/** Virtual time to flow through */
|
|
151
|
+
readonly virtualTime: number;
|
|
152
|
+
/** Original points stored at animation start */
|
|
153
|
+
private _originalPoints;
|
|
154
|
+
/** Original position for non-VMobject mobjects */
|
|
155
|
+
private _originalPosition;
|
|
156
|
+
/** Whether the mobject is a VMobject */
|
|
157
|
+
private _isVMobject;
|
|
158
|
+
/** Number of integration steps per unit of virtual time */
|
|
159
|
+
private readonly _integrationSteps;
|
|
160
|
+
constructor(mobject: Mobject, options: PhaseFlowOptions);
|
|
161
|
+
/**
|
|
162
|
+
* Store the original points at animation start
|
|
163
|
+
*/
|
|
164
|
+
begin(): void;
|
|
165
|
+
/**
|
|
166
|
+
* Apply the phase flow at the given progress value.
|
|
167
|
+
* Each point is flowed from its original position for alpha * virtualTime
|
|
168
|
+
* using RK4 integration from the ODE solver utility.
|
|
169
|
+
*/
|
|
170
|
+
interpolate(alpha: number): void;
|
|
171
|
+
/**
|
|
172
|
+
* Ensure the final state is exact
|
|
173
|
+
*/
|
|
174
|
+
finish(): void;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Create a Homotopy animation for a mobject.
|
|
178
|
+
* @param mobject The mobject to transform
|
|
179
|
+
* @param homotopyFunc The homotopy function (x, y, z, t) => [x', y', z']
|
|
180
|
+
* @param options Animation options (duration, rateFunc)
|
|
181
|
+
*/
|
|
182
|
+
export declare function homotopy(mobject: Mobject, homotopyFunc: HomotopyFunction, options?: Omit<HomotopyOptions, 'homotopyFunc'>): Homotopy;
|
|
183
|
+
/**
|
|
184
|
+
* Create a ComplexHomotopy animation for a mobject.
|
|
185
|
+
* @param mobject The mobject to transform
|
|
186
|
+
* @param complexFunc The complex homotopy function (z, t) => z'
|
|
187
|
+
* @param options Animation options (duration, rateFunc)
|
|
188
|
+
*/
|
|
189
|
+
export declare function complexHomotopy(mobject: Mobject, complexFunc: ComplexHomotopyFunction, options?: Omit<ComplexHomotopyOptions, 'complexFunc'>): ComplexHomotopy;
|
|
190
|
+
/**
|
|
191
|
+
* Create a SmoothedVectorizedHomotopy animation for a VMobject.
|
|
192
|
+
* @param mobject The VMobject to transform
|
|
193
|
+
* @param homotopyFunc The homotopy function (x, y, z, t) => [x', y', z']
|
|
194
|
+
* @param options Animation options (duration, rateFunc)
|
|
195
|
+
*/
|
|
196
|
+
export declare function smoothedVectorizedHomotopy(mobject: VMobject, homotopyFunc: HomotopyFunction, options?: Omit<SmoothedVectorizedHomotopyOptions, 'homotopyFunc'>): SmoothedVectorizedHomotopy;
|
|
197
|
+
/**
|
|
198
|
+
* Create a PhaseFlow animation for a mobject.
|
|
199
|
+
* @param mobject The mobject to flow
|
|
200
|
+
* @param vectorField The vector field function defining the flow
|
|
201
|
+
* @param options Animation options (duration, rateFunc, virtualTime)
|
|
202
|
+
*/
|
|
203
|
+
export declare function phaseFlow(mobject: Mobject, vectorField: VectorFieldFunction, options?: Omit<PhaseFlowOptions, 'vectorField'>): PhaseFlow;
|
|
204
|
+
//# sourceMappingURL=Homotopy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Homotopy.d.ts","sourceRoot":"","sources":["../../../src/animation/movement/Homotopy.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAG3D;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAExG;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;AAEzE;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhG,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,qCAAqC;IACrC,YAAY,EAAE,gBAAgB,CAAC;CAChC;AAED,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D,6CAA6C;IAC7C,WAAW,EAAE,uBAAuB,CAAC;CACtC;AAED,MAAM,WAAW,iCAAkC,SAAQ,gBAAgB;IACzE,qCAAqC;IACrC,YAAY,EAAE,gBAAgB,CAAC;CAChC;AAED,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACxD,kDAAkD;IAClD,WAAW,EAAE,mBAAmB,CAAC;IACjC,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,qBAAa,QAAS,SAAQ,SAAS;IACrC,4BAA4B;IAC5B,QAAQ,CAAC,YAAY,EAAE,gBAAgB,CAAC;IAExC,gDAAgD;IAChD,OAAO,CAAC,eAAe,CAA2B;IAElD,wCAAwC;IACxC,OAAO,CAAC,WAAW,CAAkB;gBAEzB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe;IAKtD;;OAEG;IACM,KAAK,IAAI,IAAI;IAYtB;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAsBhC;;OAEG;IACM,MAAM,IAAI,IAAI;CAIxB;AAED;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,SAAS;IAC5C,oCAAoC;IACpC,QAAQ,CAAC,WAAW,EAAE,uBAAuB,CAAC;IAE9C,gDAAgD;IAChD,OAAO,CAAC,eAAe,CAA2B;IAElD,wCAAwC;IACxC,OAAO,CAAC,WAAW,CAAkB;gBAEzB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,sBAAsB;IAK7D;;OAEG;IACM,KAAK,IAAI,IAAI;IAYtB;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAwBhC;;OAEG;IACM,MAAM,IAAI,IAAI;CAIxB;AAED;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,SAAS;IACvD,4BAA4B;IAC5B,QAAQ,CAAC,YAAY,EAAE,gBAAgB,CAAC;IAExC,gDAAgD;IAChD,OAAO,CAAC,eAAe,CAA2B;IAElD,+CAA+C;IAC/C,OAAO,CAAC,cAAc,CAAgB;gBAE1B,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,iCAAiC;IAKzE;;OAEG;IACM,KAAK,IAAI,IAAI;IAmBtB;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAmHhC;;OAEG;IACM,MAAM,IAAI,IAAI;CAIxB;AAED;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,SAAU,SAAQ,SAAS;IACtC,gCAAgC;IAChC,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAC;IAE1C,mCAAmC;IACnC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,gDAAgD;IAChD,OAAO,CAAC,eAAe,CAA2B;IAElD,kDAAkD;IAClD,OAAO,CAAC,iBAAiB,CAAyC;IAElE,wCAAwC;IACxC,OAAO,CAAC,WAAW,CAAkB;IAErC,2DAA2D;IAC3D,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAS;gBAE/B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB;IAOvD;;OAEG;IACM,KAAK,IAAI,IAAI;IActB;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAsChC;;OAEG;IACM,MAAM,IAAI,IAAI;CAIxB;AAID;;;;;GAKG;AACH,wBAAgB,QAAQ,CACtB,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,gBAAgB,EAC9B,OAAO,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,cAAc,CAAC,GAC9C,QAAQ,CAEV;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,uBAAuB,EACpC,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,aAAa,CAAC,GACpD,eAAe,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,QAAQ,EACjB,YAAY,EAAE,gBAAgB,EAC9B,OAAO,CAAC,EAAE,IAAI,CAAC,iCAAiC,EAAE,cAAc,CAAC,GAChE,0BAA0B,CAE5B;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,mBAAmB,EAChC,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,aAAa,CAAC,GAC9C,SAAS,CAEX"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Mobject } from '../../core/Mobject';
|
|
2
|
+
import { VMobject } from '../../core/VMobject';
|
|
3
|
+
import { Animation, AnimationOptions } from '../Animation';
|
|
4
|
+
export interface MoveAlongPathOptions extends AnimationOptions {
|
|
5
|
+
/** The path to follow (VMobject) */
|
|
6
|
+
path: VMobject;
|
|
7
|
+
/** Whether to orient the mobject tangent to the path, default false */
|
|
8
|
+
rotateAlongPath?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class MoveAlongPath extends Animation {
|
|
11
|
+
/** The path to follow */
|
|
12
|
+
readonly path: VMobject;
|
|
13
|
+
/** Whether to orient tangent to the path */
|
|
14
|
+
readonly rotateAlongPath: boolean;
|
|
15
|
+
/** Path points (Bezier control points) */
|
|
16
|
+
private _pathPoints;
|
|
17
|
+
/** Number of curve segments */
|
|
18
|
+
private _numSegments;
|
|
19
|
+
/** Initial rotation */
|
|
20
|
+
private _initialRotation;
|
|
21
|
+
/** Offset from mobject.position to mobject.getCenter() (accounts for geometry offset, e.g. Dot) */
|
|
22
|
+
private _centerOffset;
|
|
23
|
+
constructor(mobject: Mobject, options: MoveAlongPathOptions);
|
|
24
|
+
/**
|
|
25
|
+
* Set up the animation - compute path data
|
|
26
|
+
*/
|
|
27
|
+
begin(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Get position and tangent at alpha (0 to 1) along the path
|
|
30
|
+
*/
|
|
31
|
+
private _getPositionAndTangent;
|
|
32
|
+
/**
|
|
33
|
+
* Interpolate the position (and optionally rotation) at the given alpha
|
|
34
|
+
*/
|
|
35
|
+
interpolate(alpha: number): void;
|
|
36
|
+
/**
|
|
37
|
+
* Ensure the position is exact at the end
|
|
38
|
+
*/
|
|
39
|
+
finish(): void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Create a MoveAlongPath animation for a mobject.
|
|
43
|
+
* @param mobject The mobject to move along the path
|
|
44
|
+
* @param path The VMobject path to follow
|
|
45
|
+
* @param options Animation options (duration, rateFunc, rotateAlongPath)
|
|
46
|
+
*/
|
|
47
|
+
export declare function moveAlongPath(mobject: Mobject, path: VMobject, options?: Omit<MoveAlongPathOptions, 'path'>): MoveAlongPath;
|
|
48
|
+
//# sourceMappingURL=MoveAlongPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoveAlongPath.d.ts","sourceRoot":"","sources":["../../../src/animation/movement/MoveAlongPath.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,oCAAoC;IACpC,IAAI,EAAE,QAAQ,CAAC;IACf,uEAAuE;IACvE,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AA8CD,qBAAa,aAAc,SAAQ,SAAS;IAC1C,yBAAyB;IACzB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAExB,4CAA4C;IAC5C,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAElC,0CAA0C;IAC1C,OAAO,CAAC,WAAW,CAAkB;IAErC,+BAA+B;IAC/B,OAAO,CAAC,YAAY,CAAa;IAEjC,uBAAuB;IACvB,OAAO,CAAC,gBAAgB,CAAkC;IAE1D,mGAAmG;IACnG,OAAO,CAAC,aAAa,CAAuB;gBAEhC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,oBAAoB;IAM3D;;OAEG;IACM,KAAK,IAAI,IAAI;IA+BtB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IA+B9B;;OAEG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IA8BhC;;OAEG;IACM,MAAM,IAAI,IAAI;CAIxB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,QAAQ,EACd,OAAO,CAAC,EAAE,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,GAC3C,aAAa,CAEf"}
|