Commit graph

1941 commits

Author SHA1 Message Date
YishiMichael
065900c6ac
Some refactors 2022-04-27 23:04:24 +08:00
YishiMichael
69db53d612
Merge branch '3b1b:master' into refactor 2022-04-26 10:07:40 +08:00
Grant Sanderson
b920e7be7b Rewrite remove_list_redundancies based on (ordered) dicts 2022-04-25 10:45:35 -07:00
Grant Sanderson
4c1210b3ab Add smarter default radius to round_corners 2022-04-25 10:26:29 -07:00
Grant Sanderson
aaea3f40f6 Don't copy Mobject attrs which are mobject but not family members 2022-04-25 10:26:07 -07:00
Grant Sanderson
d6bf9f00a1 Slight tweaks 2022-04-25 10:25:35 -07:00
Grant Sanderson
42d1f48c60 Only leave wait notes in presenter mode 2022-04-25 09:55:49 -07:00
Grant Sanderson
01f0dd30d0 Have Scene.remove look at extended ancestry 2022-04-25 09:55:00 -07:00
Grant Sanderson
40b432a29b Add extended option to Mobject.get_ancestors 2022-04-25 09:54:32 -07: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
e49e4b8373 Speed-ups to Mobject.copy 2022-04-24 13:24:20 -07:00
Grant Sanderson
66f695a1ed Ensure ShaderWrapper.copy copies uniforms which are numpy arrays 2022-04-24 13:23:30 -07:00
Grant Sanderson
cc8922155d Make sure Scene.remove clears internal mobject list of family members of args 2022-04-24 13:23:02 -07:00
Grant Sanderson
6310e2fb64 Clean up Scene.remove function, delete restructure_list_to_exclude_certain_family_members 2022-04-24 10:29:31 -07:00
Grant Sanderson
db884b0a67 Add Mobject.get_ancestors 2022-04-24 10:29:02 -07:00
Grant Sanderson
efe051b8e1 Revert to -e to create a new temporary file, rather than writing over the original 2022-04-24 10:28:53 -07:00
Grant Sanderson
205116b8ce Fix refresh_selection_highlight 2022-04-23 18:52:44 -07:00
Grant Sanderson
bd2dce0830 When scene saves state, have it only copy mobjects which have changed 2022-04-23 18:52:26 -07:00
Grant Sanderson
3ae0a4e81b Add equality for ShaderWrapper 2022-04-23 18:51:03 -07:00
Grant Sanderson
c3c5717dde Add Mobject.looks_identical 2022-04-23 18:50:45 -07:00
YishiMichael
97edc2d6cf
Merge branch 'master' into refactor 2022-04-24 08:26:22 +08:00
Grant Sanderson
d9475a6860 Remove unnecessary imports 2022-04-23 10:16:48 -07:00
Grant Sanderson
902c2c002d Slight copy refactor 2022-04-23 10:16:35 -07:00
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