2135 Commits

Author SHA1 Message Date
db52d0a73f Add type hints and @staticmethod decorators to wraps functions 2022-12-23 17:45:35 -07:00
580d57a45c Add type hints and @staticmethod decorators to wraps functions 2022-12-23 17:44:00 -07:00
453b863738 Be sure to align data in FadeTransform 2022-12-23 17:24:33 -07:00
7f203d1611 Remove triangulation cachine 2022-12-23 13:33:07 -07:00
dd2fb6ae74 Delete refresh_unit_normal 2022-12-23 10:23:57 -07:00
40bf1fd6a9 Stop tracking unit_normal in data
Track orientation of each curve instead
2022-12-23 10:08:23 -07:00
3878b8c077 Fix rotation_between_vectors 2022-12-23 10:04:27 -07:00
ef04b9eb01 Revert "Simplify get_unit_normal to always recompute"
This reverts commit 96d391d9fda4d692ba51cebc4ba4e802ec2d2ea0.
2022-12-22 18:07:46 -07:00
baf2690d77 In rotation_between_vectors, account for the case where vectors align 2022-12-22 17:57:47 -07:00
c36d178856 Trigger unit normal refresh for all bounding_box refreshes 2022-12-22 17:51:59 -07:00
96d391d9fd Simplify get_unit_normal to always recompute 2022-12-22 17:51:22 -07:00
8c5d4db411 Ensure VMobject.get_area_vector works with uneven number of points 2022-12-22 12:09:54 -07:00
b7d473ff43 Revert "Revert back from the needs_new_unit_normal change in favor of recomputation"
This reverts commit d8deec8f813166b9bf42960acb0f6da4349712e7.
2022-12-22 12:03:33 -07:00
fca7c0609a Factor out epsilon in earclip_triangulation 2022-12-22 11:53:14 -07:00
a4d47f64b0 Fix normalize_along_axis 2022-12-22 11:52:55 -07:00
5af4b9cc65 No need to refresh triangulation in flip 2022-12-22 11:52:30 -07:00
ff090c016f Use only anchors to compute area vector 2022-12-22 11:46:51 -07:00
33682b7199 MTex is the new Tex, Tex is now OldTex
Global replace
Tex -> OldTex
TexText -> OldTexText
MTex -> Tex
MTexText -> TexText
2022-12-21 13:18:20 -08:00
805236337e Remove stray import 2022-12-21 12:52:32 -08:00
958c34c705 Push functionality for selecting unisolated substrings up into StringMobject 2022-12-21 12:47:48 -08:00
10d53c82e1 Improved num_tex_symbols
Based on data gathered for tex commands
2022-12-21 12:47:18 -08:00
6277e28373 Have MTex.__getitem__ call MTex.select_parts 2022-12-20 22:37:23 -08:00
4b73140435 Have MTex.select_parts fall back on dirty_select with a warning 2022-12-20 22:37:01 -08:00
ef941b4040 Factor out num_tex_symbols 2022-12-20 22:35:41 -08:00
81e6ab5b1d Add MTex.dirty_select
A more general way to select subparts by tex. Not as reliable as select_parts, but useful in many cases.
2022-12-20 17:02:29 -08:00
e357885da0 Replace TexText with MTexText 2022-12-20 15:24:38 -08:00
6d5b980d4a Replace Tex and MTex throughout library 2022-12-20 15:22:34 -08:00
0d525baf29 Clean up special_tex contents, make each class use MTexText instead of TexText 2022-12-20 15:08:54 -08:00
3293f72adc Move BulletedList, TexTextFromPresetString and Title to their own file 2022-12-20 14:48:54 -08:00
e0725c111e Allow MTex to accept multiple strings as an argument 2022-12-20 14:32:04 -08:00
6176bcd45a Add option for StringMobject to only render one svg 2022-12-20 14:32:04 -08:00
9c106eb873 Add option for StringMobject to only render a single svg
Then set as the default behavior for MTex and Text
2022-12-20 14:31:17 -08:00
1a485ddd19 Ensure color_to_hex always returns 6 character hex codes 2022-12-20 14:31:17 -08:00
d4417d3d07 Add t2c option to MTex 2022-12-20 14:31:17 -08:00
dd662b0d12 Move Selector and Span to manimlib.typing 2022-12-20 14:29:17 -08:00
623aef41f8 Rename get_camera_configuration -> get_camera_config 2022-12-20 09:36:07 -08:00
9f71f87278 Refactor config.py 2022-12-20 09:31:02 -08:00
a26fe605b3 Slight refactor for inserted_embed_line 2022-12-19 21:17:44 -08:00
5c7caee902 Go back to writing a new file for insert_embed, but edit the module's __file__ attribute 2022-12-19 21:14:29 -08:00
c605ac1c83 Better height, width, unit_size behavior for CoordinateSystems 2022-12-19 20:34:42 -08:00
d8deec8f81 Revert back from the needs_new_unit_normal change in favor of recomputation 2022-12-19 18:17:25 -08:00
75a98a8936 Change color_to_hex implementation 2022-12-19 18:03:53 -08:00
073a62bf03 Factor rgb_to_hex, hex_to_int and int_to_hex away from StringMobject and to utils/color 2022-12-19 17:28:22 -08:00
e0e7e24351 Move display_during_execturion call
Such that it only gets called when a new svg needs to be written
2022-12-19 17:01:06 -08:00
c2c8149627 Revert "Move display_during_exection associated with Latex rendering"
This reverts commit ab470c3ee598e335c4f2252a8802d71a8cc59e93.
2022-12-19 16:54:55 -08:00
a53867d8a1 Fix TexText bug 2022-12-19 16:54:44 -08:00
b2fd22c539 Small cleanups 2022-12-19 16:21:40 -08:00
5c0232a5e0 Have LatexError show line of error and the next line
This is where undefined control sequence errors will show up.
2022-12-19 16:20:19 -08:00
ab470c3ee5 Move display_during_exection associated with Latex rendering
Only have it display when a new SVG is being written
2022-12-19 16:19:43 -08:00
71c9144952 Use io.BytesIO rather than writing to a temp file 2022-12-19 16:03:16 -08:00