Commit graph

1917 commits

Author SHA1 Message Date
Grant Sanderson
587bc4d0bd Add necessary import 2022-04-23 10:16:23 -07:00
Grant Sanderson
d733687834 Have -e write over original source file, then correct 2022-04-23 10:16:11 -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
YishiMichael
e085c2e214
Refactor LabelledString and relevant classes 2022-04-23 17:17:43 +08:00
Grant Sanderson
f70e91348c Remove Mobject.interaction_allowed, in favor of using _is_animating for multiple purposes 2022-04-22 23:14:57 -07:00
Grant Sanderson
754316bf58 Factor out event handling 2022-04-22 23:14:19 -07:00
Grant Sanderson
04bca6cafb Refresh static mobjects on undo's and redo's 2022-04-22 23:14:00 -07:00
Grant Sanderson
62289045cc Fix animating Mobject.restore bug 2022-04-22 19:42:47 -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
59506b89cc Revert to original copying scheme 2022-04-22 19:02:44 -07:00
Grant Sanderson
71c14969df Refactor -e flag hackiness 2022-04-22 15:41:23 -07:00
Grant Sanderson
b2e0aee93e Get rid of ctrl + shift + e embed option 2022-04-22 11:46:18 -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
4d8698a0e8 Add Mobject.deserialize 2022-04-22 11:42:26 -07:00
Grant Sanderson
b9751e9d06 Add cursor location label 2022-04-22 10:17:29 -07:00
Grant Sanderson
bb7fa2c8aa Update behavior of -e flag to take in (optional) strings as inputs 2022-04-22 10:17:15 -07:00
Grant Sanderson
e0f5686d66 Fix bug with trying to close window during embed 2022-04-22 10:16:43 -07:00
Grant Sanderson
581228b08f Have scene keep track of a map from mobject ids to mobjects for all it's ever seen 2022-04-22 08:33:57 -07:00
Grant Sanderson
2737d9a736 Have BlankScene inherit from InteractiveScene 2022-04-22 08:33:18 -07:00
Grant Sanderson
c96bdc243e Update Scene.embed to play nicely with gui interactions 2022-04-22 08:16:17 -07:00
Grant Sanderson
5927f6a1cd Default to "" for scene_file_writer output dir 2022-04-22 08:14:29 -07:00
Grant Sanderson
1b2460f02a Remove refresh_shader_wrapper_id from Mobject.become 2022-04-22 08:14:05 -07:00
YishiMichael
37075590b5
Sort imports 2022-04-22 16:42:45 +08:00
YishiMichael
bf5cec7dba
Revert some files 2022-04-22 15:41:57 +08:00
YishiMichael
f8c8a399c9
Revert some files 2022-04-22 15:31:13 +08:00
YishiMichael
f226aa7314
Merge branch '3b1b:master' into master 2022-04-22 15:02:59 +08:00
Grant Sanderson
b4b72d1b68 Allow stretched-resizing 2022-04-21 15:31:46 -07:00
Grant Sanderson
78a7078772 Move saved mobject directory logic to scene_file_writer.py 2022-04-21 15:02:11 -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
9d5e2b32fa Add VHighlight 2022-04-21 14:32:39 -07:00
Grant Sanderson
fe3e10acd2 Updates to copying based on pickle serializing 2022-04-21 14:32:27 -07:00
Grant Sanderson
c04615c4e9 In Mobject.set_uniforms, copy uniforms that are numpy arrays 2022-04-21 14:30:39 -07:00
Grant Sanderson
6474e25fcd A few small updates to InteractiveScene 2022-04-21 00:28:37 -07:00
Grant Sanderson
996d71c49e Add fallback for Mobject copying for unpicklable objects 2022-04-20 22:53:49 -07:00
Grant Sanderson
d24b8ff48f
Merge branch 'master' into master 2022-04-20 22:40:11 -07:00
Grant Sanderson
485a4ca33a
Merge pull request #1794 from 3b1b/video-work
InteractiveScene, etc.
2022-04-20 22:22:09 -07:00
Grant Sanderson
cc563bf5e2
Merge pull request #1787 from lakscastro/patch-1
Remove unused import
2022-04-20 22:19:17 -07:00
Grant Sanderson
1b009a4b03 Simplify Mobject.copy to just use pickle serialization 2022-04-20 22:07:10 -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
Grant Sanderson
4f2e3456e2 Raise Specific exception type when running into latex errors 2022-04-20 21:53:05 -07:00
Grant Sanderson
47636686cb Cleanup extract_mobject_family_members 2022-04-20 21:51:56 -07:00
Grant Sanderson
eae7dbbe6e Change default transparent background codec to be prores 2022-04-20 21:51:36 -07:00
Grant Sanderson
a3579eab41 Have SceneFileWriter handle a location for saved mobjects 2022-04-20 21:51:18 -07:00
Grant Sanderson
5a34ca1fba Add MANIM_COLORS 2022-04-20 21:50:44 -07:00
Grant Sanderson
68e2909af1 Mild cleanup to Scene interactivity 2022-04-20 21:50:37 -07:00
Grant Sanderson
777b6d3778 Allow for saving and loading mobjects from file at the Scene level 2022-04-20 21:49:57 -07:00