ae99c8cd2e
Go back to use_simple_quadratic_approx being set at the Text level
2023-01-13 14:08:29 -08:00
108bb3da44
Have SVGs default to use_simple_quadratic_approx
2023-01-13 08:16:46 -08:00
c8a77a352f
Fix Piano
2023-01-13 00:24:19 -08:00
2c6e8692ce
Add condition for calling subdivide_intersections
2023-01-12 23:45:26 -08:00
f39fd92e9e
Add condition to account for end of string
2023-01-12 21:24:27 -08:00
f0edc6628b
Push default of use_simple_quadratic_approx being True to Text
2023-01-12 21:24:03 -08:00
9f1ab09749
Make usage of simpler quadratic approximations an option for VMobject
2023-01-12 21:06:35 -08:00
9778c3e085
Remove no-longer necessary correction for path ends
2023-01-12 18:29:44 -08:00
64578df603
Don't save SVG Path data to file
...
It's more trouble than it's worth
2023-01-12 13:23:48 -08:00
86b756ab1f
No need for subdividing sharp curves
2023-01-11 14:20:20 -08:00
3aa9eb6372
Add String.get_symbol_substrings and Tex.get_symbol_substrings
2022-12-30 15:07:41 -08:00
7895a2cfee
No need to immediately compute triangulation for SVG paths
2022-12-29 20:51:00 -08:00
0f9adbf91c
Add Tex.make_number_changable
2022-12-29 18:52:00 -08:00
2dbb9367c4
Default to removing null curves
2022-12-29 15:40:32 -08:00
4bc7e3a8f2
Remove redundant long_line specification
2022-12-29 15:40:18 -08:00
13fc8daba9
Extend StringMobject.select_unisolated_substring to work for regular expressions
2022-12-29 14:18:46 -08:00
c7ba775845
In StringMobject.select_parts, default to using select_unisolated_substring if substring was not explicitly isolated
2022-12-28 13:39:13 -08:00
49d4472e7e
Add StringMobject.get_specified_substrings
2022-12-27 19:13:09 -08:00
3bf5ce5776
Fix TexMobject.select_unisolated_substring for substrings with escape characters
2022-12-26 09:02:00 -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
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
958c34c705
Push functionality for selecting unisolated substrings up into StringMobject
2022-12-21 12:47:48 -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
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
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
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
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
96d9e41a35
Refresh unit normal on init of brace
2022-12-19 14:43:27 -08:00
2c20a1509e
Remoe height defaults form __init__args of SingleStringTex and String
2022-12-19 14:43:10 -08:00
ef64b90ed3
Allow for default height/width of SVGMobject specified as class variables
2022-12-19 14:42:04 -08:00
c96cdf43a1
Make sure mutability of dict arguments won't cause problems
...
One could argue that a pattern of "arg: dict | None = None" followed by "self.param = arg or dict()" is better, but that would make for an inconsistent pattern in cases where the default argument is not None.
2022-12-18 09:38:28 -08:00
1f0427d685
Add height as attribute to SVGMobject
2022-12-17 13:17:12 -08:00
8db20cc460
Small fix
2022-12-16 20:59:14 -08:00
5625f63ca2
Clean up SVG.__Init__ and fix style issue
2022-12-16 20:59:02 -08:00
dec11a4b17
Rename np_vector type to Vect3 or Vect4 to make context clearer
2022-12-16 20:35:26 -08:00