22 Commits

Author SHA1 Message Date
96d44bd560 Video work (#2284)
* Comment tweak

* Directly print traceback

Since the shell.showtraceback is giving some issues

* Make InteracrtiveSceneEmbed into a class

This way it can keep track of it's internal shell; use of get_ipython has a finicky relationship with reloading.

* Move remaining checkpoint_paste logic into scene_embed.py

This involved making a few context managers for Scene: temp_record, temp_skip, temp_progress_bar, which seem useful in and of themselves.

* Change null key to be the empty string

* Ensure temporary svg paths for Text are deleted

* Remove unused dict_ops.py functions

* Remove break_into_partial_movies from file_writer configuration

* Rewrite guarantee_existence using Path

* Clean up SceneFileWriter

It had a number of vestigial functions no longer used, and some setup that could be made more organized.

* Remove --save_pngs CLI arg (which did nothing)

* Add --subdivide CLI arg

* Remove add_extension_if_not_present

* Remove get_sorted_integer_files

* Have find_file return Path

* Minor clean up

* Clean up num_tex_symbols

* Fix find_file

* Minor cleanup for extract_scene.py

* Add preview_frame_while_skipping option to scene config

* Use shell.showtraceback function

* Move keybindings to config, instead of in-place constants

* Replace DEGREES -> DEG

* Add arg to clear the cache

* Separate out full_tex_to_svg from tex_to_svg

And only cache to disk the results of full_tex_to_svg.  Otherwise, making edits to the tex_templates would not show up without clearing the cache.

* Bug fix in handling BlankScene

* Make checkpoint_states an instance variable of CheckpointManager

As per https://github.com/3b1b/manim/issues/2272

* Move resizing out of Window.focus, and into Window.init_for_scene

* Make default output directory "." instead of ""

To address https://github.com/3b1b/manim/issues/2261

* Remove input_file_path arg from SceneFileWriter

* Use Dict syntax in place of dict for config more consistently across config.py

* Simplify get_output_directory

* Swap order of preamble and additional preamble

* Minor stylistic tweak

* Have UnitInterval pass on kwargs to NumberLine

* Add simple get_dist function

* Have TracedPath always update to the stroke configuration passed in

* Have Mobject.match_points apply to all parts of data in pointlike_data_key

* Always call Mobject.update upon adding an updater

* Add Surface.uv_to_point

* Make sure Surface.set_opacity takes in a recurse option

* Update num_tex_symbols to account for \{ and \}
2024-12-26 09:35:34 -08:00
4223bb6320 Small cleanup on TracedPath 2024-08-06 10:23:46 -05:00
5aeb457bb1 Hot fix for Traicing Tail 2024-07-31 15:32:17 +02:00
ab6a7df4af Use typing_extensions to import Self for python versions <3.11 2023-02-02 10:54:47 -08:00
d8c21ff7aa Add Self type to changing.py 2023-01-31 14:08:12 -08:00
dec11a4b17 Rename np_vector type to Vect3 or Vect4 to make context clearer 2022-12-16 20:35:26 -08:00
43fd5e1aea Move custom type to manimlib.typing 2022-12-16 20:19:18 -08:00
57875875c1 Kill CONFIG in changing.py 2022-12-15 15:40:56 -08:00
9ef9961d0e Sort imports 2022-04-12 19:19:59 +08:00
4c16bfc2c0 chore: add type hints to manimlib.mobject 2022-02-15 14:37:15 +08:00
4ce123be44 (Maybe temporary?) upates to Tracers 2021-08-26 11:44:45 -07:00
f3e3a7c56f Improve TracingTaill 2021-08-21 17:05:40 -07:00
a35dd5a3cb Add TracingTail 2021-08-21 10:36:59 -07:00
1543450a4f Update changing.py
To fix the error of "AttributeError: 'TracedPath' object has no attribute 'n_points_per_cubic_curve'" (because in the CONFIG dictionary of VMobject class, the n_points_per_cubic_curve dose not exist, and now 'n_points_per_curve' is used instead)
2021-02-13 21:07:00 +08:00
7b67f4556b Reorganize Mobject methods and remove ones that are not longer needed 2021-01-14 14:15:58 -10:00
ddfc3a6567 Replace lingering .points references 2021-01-12 07:27:32 -10:00
985ef4518f Bug fix 2019-07-03 11:07:55 -07:00
6214ea7a01 Added TracedPath 2019-06-13 09:26:03 -07:00
043e3986f6 Changes to AnimatedBoundary 2019-04-02 17:42:50 -07:00
5337dc5ee4 Fixed name conflict for AnimatedBoundary 2019-03-28 16:19:25 -07:00
5ffa41f675 Extend AnimatedBoundary to work on families 2019-03-22 15:12:21 -07:00
54cd60bef7 AnimatedBoundary. Perhaps a better name is in order, but this is meant to add a little visual interest to things like a framing rectangle. 2019-03-22 11:50:02 -07:00