Commit graph

50 commits

Author SHA1 Message Date
Grant Sanderson
744e695340
Misc. clean up (#2269)
* 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
2024-12-12 08:39:54 -08:00
Grant Sanderson
9fcdd0de5f Use pyglet.window.key for key constant values 2024-12-10 20:00:03 -06:00
Grant Sanderson
9f785a5fba Move key to int constants to interactive_scene.py 2024-12-10 19:42:53 -06:00
Grant Sanderson
7a69807ce6 Remove mobject.save_to_file
This simply didn't work, and had no resilience to changes to the library. For cases where this might be useful, it's likely much better deliberately save specific data which is time-consuming to generate on the fly.
2024-12-09 16:24:50 -06:00
Varniex
5d3f730824
Cleaning up some imports + Minor Bug fixed in VectorField (#2253)
* cleaning up imports

* sample_points -> sample_coords
2024-12-05 14:42:46 -08:00
Mitko Nikov
dc731f8bf2 Properly check modifier keys. 2024-10-25 00:01:30 +02:00
Grant Sanderson
cf37f34e1f Add copy cursor position option 2024-10-01 13:05:00 -05:00
Grant Sanderson
a7765dcac3 Change copy frame position command 2024-07-31 15:24:25 +02:00
Grant Sanderson
dfa96c2047 Update copy_frame_positioning 2024-02-03 18:49:04 -06:00
Grant Sanderson
9cadfa1818 Make it so that copying a mobject will copy its name, if applicable 2023-02-02 14:46:07 -08:00
Grant Sanderson
b9d37a9f7e Add copy_frame_anim_call 2023-02-02 14:46:07 -08:00
Grant Sanderson
3c0d682efc Change clicking behavior in InteractiveScene 2023-02-02 14:46:07 -08:00
Grant Sanderson
09900456f7 Clean up pixel_coords_to_space_coords to work better in 3d 2023-01-28 22:30:46 -08:00
Grant Sanderson
3c8e3792e7 Remove references to refresh_static_mobjects 2023-01-25 19:20:11 -08:00
Grant Sanderson
aa6c321a0a Change InteractiveScene dot config 2023-01-24 14:25:02 -08:00
Grant Sanderson
24864a3d61 Small tweak 2023-01-21 11:13:22 -08:00
Grant Sanderson
8e1fdd5a79 Change crosshair style 2023-01-20 21:38:36 -08:00
Grant Sanderson
599f74c749 Refresh bounding boxes after selection 2023-01-13 14:59:53 -08:00
Grant Sanderson
73a894c136 Set selection animating status after adding mobjects 2023-01-13 13:07:29 -08:00
Grant Sanderson
5fac213fee Change crosshair initialization 2023-01-11 19:27:34 -08:00
Grant Sanderson
c0fba529d9 Update crosshair for new path structure 2023-01-11 14:20:33 -08:00
Grant Sanderson
8cc7616271 Bind 'u' to unselection 2022-11-18 09:12:12 -08:00
Grant Sanderson
117a34dc67 Change crosshair behavior 2022-05-23 11:08:08 -07:00
Grant Sanderson
cece830349 Merge branch 'master' of github.com:3b1b/manim into video-work 2022-05-17 09:19:47 -07:00
Grant Sanderson
cef7c383a5 Add scene time to information that can be displayed with the appropriate key press 2022-05-11 12:46:56 -07:00
Grant Sanderson
d662971559 Larger cursor location label 2022-05-04 21:22:00 -07:00
Grant Sanderson
a09c440281 Slight tweaks to crosshair 2022-05-02 11:13:05 -07:00
Grant Sanderson
c019210015 Have InteractiveScene ignore state of crosshair and selection_highlight 2022-05-02 11:12:04 -07:00
Grant Sanderson
33ffd4863a Add crosshair 2022-05-01 15:31:07 -04:00
Grant Sanderson
6a664ece78 Rename InteractiveScene.colors -> InteractiveScene.palette_colors 2022-04-28 19:16:11 -04:00
Grant Sanderson
ac08963fef Have selection_highlight refresh with an updater 2022-04-28 11:59:21 -06:00
Grant Sanderson
7c233123a1 Tweaks and fixes to InteractiveScene 2022-04-27 09:55:46 -07:00
YishiMichael
065900c6ac
Some refactors 2022-04-27 23:04:24 +08:00
Grant Sanderson
d43b5c9bdc Fix shift + s gather selection bug 2022-04-24 13:32:26 -07:00
Grant Sanderson
f2b4245c13 Slight speed-up to InteractiveScene.gather_selection 2022-04-24 13:24:55 -07:00
Grant Sanderson
205116b8ce Fix refresh_selection_highlight 2022-04-23 18:52:44 -07:00
Grant Sanderson
0fd8491c51 Move Command + z and Command + shift + z behavior to Scene 2022-04-23 09:20:44 -07:00
Grant Sanderson
2ba9243067 Merge branch 'master' of github.com:3b1b/manim into video-work 2022-04-23 09:03:53 -07:00
Grant Sanderson
754316bf58 Factor out event handling 2022-04-22 23:14:19 -07:00
Grant Sanderson
3961005fd7 Rename is_movable to interaction_allowed 2022-04-22 19:17:39 -07:00
Grant Sanderson
7b342a2759 Remove unnecessary lines 2022-04-22 19:03:00 -07:00
Grant Sanderson
cf466006fa Add undo and redo stacks for scene, together with Command + Z functionality 2022-04-22 11:44:28 -07:00
Grant Sanderson
b9751e9d06 Add cursor location label 2022-04-22 10:17:29 -07:00
YishiMichael
37075590b5
Sort imports 2022-04-22 16:42:45 +08:00
Grant Sanderson
b4b72d1b68 Allow stretched-resizing 2022-04-21 15:31:46 -07:00
Grant Sanderson
4caa033323 Allow for sweeping selection 2022-04-21 15:01:54 -07:00
Grant Sanderson
3a60ab144b Remove saved mobject directory logic from InteractiveScene 2022-04-21 15:01:30 -07:00
Grant Sanderson
f53f202dcd A few small cleanups 2022-04-21 15:00:58 -07:00
Grant Sanderson
6474e25fcd A few small updates to InteractiveScene 2022-04-21 00:28:37 -07:00
Grant Sanderson
c3afc84bfe Add a rudimentary InteractiveScene to allow for Mobject editing in a GUI fashion 2022-04-20 21:54:16 -07:00