125 Commits

Author SHA1 Message Date
c96734ace0 Remove get_downloads_dir reference from register_font 2024-12-05 15:14:37 -06:00
4251ff436a No longer any need for custom hash_seeds in Tex and Text 2024-12-05 15:05:26 -06:00
85f8456228 If it's worth caching to disk, then might as well do so in memory too during development 2024-12-05 14:56:35 -06:00
e0031c63bc Minor clean up 2024-12-05 14:55:28 -06:00
3b9ef57b22 Remove utils/customization.py 2024-12-05 11:59:01 -06:00
43821ab2ba Make caching on disk a decorator, and update implementations for Tex and Text mobjects 2024-12-05 10:09:15 -06:00
0c385e820f Get rid of get_tex_dir and get_text_dir 2024-12-04 20:33:43 -06:00
129e512b0c Add caching functionality, and have Tex and Text both use it for saved svg strings 2024-12-04 19:51:01 -06:00
88370d4d5d Have StringMobject work with svg strings rather than necessarily writing to file
Change SVGMobject to allow taking in a string of svg code as an input
2024-12-04 19:11:21 -06:00
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
f0edc6628b Push default of use_simple_quadratic_approx being True to Text 2023-01-12 21:24:03 -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
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
8db20cc460 Small fix 2022-12-16 20:59:14 -08:00
43fd5e1aea Move custom type to manimlib.typing 2022-12-16 20:19:18 -08:00
b21f5bad00 Fix small t2c issue 2022-12-16 11:41:42 -08:00
3b5181d1a3 Kill CONFIG in StringMobject and Text 2022-12-15 13:35:13 -08:00
958002152e Define ManimColor type in constants 2022-12-14 10:55:32 -08:00
4dfe8aff86 refactor: refactor StringMobject 2022-08-22 21:52:48 +08:00
8bd01d60e4 fix: add protect attribute to hash_seed 2022-08-22 17:08:58 +08:00
c2a75e15cc refactor: refactor StringMobject 2022-08-22 16:55:46 +08:00
19c757ec90 refactor: refactor StringMobject 2022-08-20 13:01:59 +08:00
7ffc7b33f7 Refactor StringMobject and relevant classes 2022-08-07 23:57:54 +08:00
28e4240475 Refactor StringMobject and relevant classes 2022-08-07 11:29:31 +08:00
f434eb93e2 Refactor StringMobject and relevant classes 2022-08-07 00:50:29 +08:00
093af347aa Refactor LabelledString and relevant classes 2022-06-11 15:15:39 +08:00
f0447d7739 Small refactors on StringMobject and relevant classes 2022-05-28 21:43:37 +08:00
59eba943e5 Resolve conflicts 2022-05-28 12:43:53 +08:00
83b4aa6b88 Let defaullt text alignment be decided in default_config 2022-05-24 15:16:59 -07:00
f0984487ea Construct TexTemplate class to convert tex to svg 2022-05-21 15:56:03 +08:00
cdadaf8a8c Rename LabelledString to StringMobject 2022-05-06 22:09:58 +08:00
7cf0e0ba10 Refactor LabelledString and relevant classes 2022-05-06 17:56:27 +08:00
b509f62010 Refactor LabelledString and relevant classes 2022-05-06 16:43:20 +08:00
642602155d [WIP] Refactor LabelledString and relevant classes 2022-05-05 23:03:02 +08:00
511a3aab3d [WIP] Remove comments 2022-05-04 22:18:19 +08:00
1cb7401141 [WIP] Refactor LabelledString and relevant classes 2022-05-04 21:56:13 +08:00
ab8f78f40f [WIP] Refactor LabelledString and relevant classes 2022-05-03 23:39:37 +08:00
03cb42ba15 [WIP] Refactor LabelledString and relevant classes 2022-05-02 22:40:06 +08:00
065900c6ac Some refactors 2022-04-27 23:04:24 +08:00
e085c2e214 Refactor LabelledString and relevant classes 2022-04-23 17:17:43 +08:00
12bfe88f40 Some refactors 2022-04-11 23:44:33 +08:00
e23f667c3d Fix bug when handling multi-line tex 2022-04-10 08:36:13 +08:00
3550108ff7 Handle out-of-bound spans 2022-04-07 09:48:44 +08:00
557707ea75 Support substring and case_sensitive parameters 2022-04-07 00:46:41 +08:00
93f8d3f1ca Some refactors on LabelledString 2022-04-06 22:38:33 +08:00
7f616987a3 Fix typo 2022-04-05 14:01:07 +08:00
974d9d5ab0 Avoid empty spans 2022-04-04 14:53:40 +08:00
3c3264d7d6 Support passing in spans directly 2022-04-02 22:42:19 +08:00