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
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
Grant Sanderson
1e996dcd27
Fix Arrow.set_perpendicular_to_camera
2024-08-28 11:56:25 -05:00
Grant Sanderson
e85a1ce1b7
Add Arrow.set_perpendicular_to_camera
2024-08-28 10:50:51 -05:00
Grant Sanderson
ceac4fbe1a
Fix up FillArrow
2024-08-21 15:58:57 -05:00
Grant Sanderson
22ee13a884
Have FillArrow take the place of StrokeArrow as the main Arrow
2024-08-21 14:52:54 -05:00
Grant Sanderson
eea8416d57
Default to allowing null lines, except for SVGPaths
2024-08-21 14:44:33 -05:00
Grant Sanderson
b3386ad7a7
Add an option for VMobject.add_line to add a null line
2024-08-21 14:29:40 -05:00
Grant Sanderson
7474ae17b0
Change default to flat stroke, except in 3d situations
2024-08-20 11:52:05 -05:00
Grant Sanderson
c20ce8d633
Have arrows default to flat stroke
2024-08-16 15:10:40 -05:00
Grant Sanderson
17cd597904
Have Arrow track what stroke width it was set to
2023-11-06 12:33:26 -05:00
Grant Sanderson
a8b1791ff5
Small tweaks to arrow tip implementation
2023-09-04 21:16:36 -07:00
Grant Sanderson
b53ab02675
Simplify initialization of Line with path arc
2023-09-04 20:49:51 -04:00
Grant Sanderson
60a4f0e167
Factor out Arc.create_quadratic_bezier_points to quadratic_bezier_points_for_arc
2023-09-04 19:08:13 -04:00
Grant Sanderson
87e4a71ca3
Add surround method for Rectangles and SurroundingRectangles
2023-09-04 18:46:11 -04:00
Grant Sanderson
d21b05ae0d
Arrow fix
2023-08-15 20:37:54 -07:00
Grant Sanderson
fc522e5278
Change width_to_tip_len -> tip_len_to_width
2023-08-15 20:37:13 -07:00
Grant Sanderson
ab6a7df4af
Use typing_extensions to import Self for python versions <3.11
2023-02-02 10:54:47 -08:00
Grant Sanderson
6a42ef846a
Add Self type to geometry.py
2023-01-31 14:12:41 -08:00
Grant Sanderson
8d72340501
Remove some references to triangulation
2023-01-28 12:43:56 -08:00
Grant Sanderson
746b52cda5
Okay, actually fix Arrow
2023-01-26 23:51:05 -08:00
Grant Sanderson
79039bde61
Fix Arrow
2023-01-26 23:42:03 -08:00
Grant Sanderson
1367e31439
Fix bug with polygon start angle = 0
2023-01-19 09:50:41 -08:00
Grant Sanderson
b16f0981f6
No need to set flat stroke defaults in Polygon/Polyline
2023-01-17 11:37:06 -08:00
Grant Sanderson
90ac1fc0bf
Rename 'points' -> 'point'
2023-01-15 18:23:41 -08:00
Grant Sanderson
da2b13aee9
Fix triangulation issue for Annulus
2023-01-13 13:22:26 -08:00
Grant Sanderson
1f04ba92fb
Fix Polygon.round_corners
2023-01-11 20:47:04 -08:00
Grant Sanderson
ed26fdfab8
Have Polyline default to flat stroke
2023-01-11 20:31:38 -08:00
Grant Sanderson
8c435d6181
Default to flat stroke for polygons
2023-01-11 20:27:17 -08:00
Grant Sanderson
31715ec98a
Fix Arrow
2023-01-11 20:09:28 -08:00
Grant Sanderson
a17a57825e
Fix Annulus and sector
2023-01-11 20:01:54 -08:00
Grant Sanderson
8a08b62f7c
Remove n_points_per_curve reference
2023-01-11 19:52:33 -08:00
Grant Sanderson
6a18a05a3b
Fix arrow for new path behavior
2023-01-11 19:40:15 -08:00
Grant Sanderson
55bc8464b9
Update Arc to make sense with new path structure
2023-01-11 14:19:57 -08:00
Grant Sanderson
a2bdf54025
Remove unused parameter
2022-12-26 07:58:30 -07:00
Grant Sanderson
8d05431b7b
Add points in reverse order to AngularSector
2022-12-19 14:43:57 -08:00
Grant Sanderson
c330dfddae
Add space
2022-12-19 10:38:06 -08:00
Grant Sanderson
d4a29df99c
Remove needless data["points"] reference
2022-12-17 19:48:47 -08:00
Grant Sanderson
97f28b34f3
Distinguish Vect3 from Vect3Array types
2022-12-17 13:16:48 -08:00
Grant Sanderson
dec11a4b17
Rename np_vector type to Vect3 or Vect4 to make context clearer
2022-12-16 20:35:26 -08:00
Grant Sanderson
43fd5e1aea
Move custom type to manimlib.typing
2022-12-16 20:19:18 -08:00
Grant Sanderson
afab37c2d2
Remove stray digest_config references
2022-12-16 11:00:59 -08:00
Grant Sanderson
9e077b29db
Specify fill_color/stroke_color instead of color
2022-12-16 09:55:50 -08:00
Grant Sanderson
2a645b27f8
Kill CONFIG in geometry.py
2022-12-15 18:19:09 -08:00
Grant Sanderson
a901704b31
Return self in Circle.surround
2022-12-14 14:39:57 -08:00
Grant Sanderson
958002152e
Define ManimColor type in constants
2022-12-14 10:55:32 -08:00
Grant Sanderson
8adf99b8a7
Fix Circle.point_at_angle
...
https://github.com/3b1b/manim/issues/1875
2022-11-03 16:48:30 -07:00
Grant Sanderson
07a8274cb1
Merge pull request #1821 from 3b1b/video-work
...
Video work
2022-05-24 15:20:07 -07:00
YishiMichael
49723f54cb
Add necessary imports ( #1804 )
...
* Add necessary imports
* Add necessary imports
* Add necessary imports
* Add `from __future__ import annotations`
2022-05-19 22:07:06 +08:00
Grant Sanderson
5d59f945ca
FillArrow tweak
2022-04-28 11:59:38 -06:00