456 Commits

Author SHA1 Message Date
0b350e248b Change global_attrs back to global_config in Text 2024-12-11 10:18:05 -06:00
fce92347fa Replace get_global_config() with manim_config, and make it an addict Dict 2024-12-11 09:50:17 -06:00
4a6a125739 Change "style" in default config to "text" 2024-12-11 08:30:31 -06:00
d5c36de3c5 DEFAULT_MOBJECT_TO_MOBJECT_BUFFER -> DEFAULT_MOBJECT_TO_MOBJECT_BUFF
And likewise DEFAULT_MOBJECT_TO_MOBJECT_BUFFER -> DEFAULT_MOBJECT_TO_MOBJECT_BUFF
2024-12-10 19:23:15 -06:00
c51a84a6ee Fixing a Cairo Bug (Windows OS) 2024-12-11 00:10:06 +05:30
94f6f0aa96 Cleaner local caching of Tex/Text data, and partially cleaned up configuration (#2259)
* Remove print("Reloading...")

* Change where exception mode is set, to be quieter

* Add default fallback monitor for when no monitors are detected

* 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

* Add caching functionality, and have Tex and Text both use it for saved svg strings

* Clean up tex_file_writing

* Get rid of get_tex_dir and get_text_dir

* Allow for a configurable cache location

* Make caching on disk a decorator, and update implementations for Tex and Text mobjects

* Remove stray prints

* Clean up how configuration is handled

In principle, all we need here is that manim looks to the default_config.yaml file, and updates it based on any local configuration files, whether in the current working directory or as specified by a CLI argument.

* Make the default size for hash_string an option

* Remove utils/customization.py

* Remove stray prints

* Consolidate camera configuration

This is still not optimal, but at least makes clearer the way that importing from constants.py kicks off some of the configuration code.

* Factor out configuration to be passed into a scene vs. that used to run a scene

* Use newer extract_scene.main interface

* Add clarifying message to note what exactly is being reloaded

* Minor clean up

* Minor clean up

* If it's worth caching to disk, then might as well do so in memory too during development

* No longer any need for custom hash_seeds in Tex and Text

* Remove display_during_execution

* Get rid of (no longer used) mobject_data directory reference

* Remove get_downloads_dir reference from register_font

* Update where downloads go

* Easier use of subdirectories in configuration

* Add new pip requirements
2024-12-05 14:51:14 -08:00
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
e19ceaaff0 Have TexMobject keep track of font_size 2024-11-25 11:02:54 -07:00
bddd9c35ea Tiny formatting 2024-10-01 13:04:50 -05:00
499803159c Remove methods and tracking associated with triangulation and non-winding fill 2024-08-23 14:08:56 -05:00
487c714d9b Remove stray new line 2024-08-23 13:56:16 -05:00
eea8416d57 Default to allowing null lines, except for SVGPaths 2024-08-21 14:44:33 -05:00
b288d5301e Get rid of cached _has_stroke and _has_fill parameters 2024-08-19 17:27:47 -05:00
7565e936fa Better bubble flipping 2024-03-25 19:10:16 -03:00
1d6aa47933 Reimplement SpeechBubble and ThoughtBubble 2024-03-21 14:36:17 -03:00
7e6a37d499 Typo fix: make_number_changable -> make_number_changeable 2024-03-21 10:03:41 -03:00
712fa30174 Ensure Brace.get_tex uses buff key word arg 2024-02-21 12:25:43 -08:00
246a010799 Add default border width to StringMobject 2023-11-06 12:33:56 -05:00
63f6e9d84f Add Dartboard 2023-06-10 09:21:57 -07:00
de8e9e5ec1 Fix error with setting bubble direction 2023-03-14 10:35:04 -07:00
a79d4a862f Keep track of dots in DieFace 2023-02-24 08:22:24 -05:00
0cf9a35367 Have SVG subdivide intersections if winding fill is not a default 2023-02-02 11:28:20 -08:00
f2d71e6521 Don't rotate Laptop into place 2023-01-31 09:20:05 -08:00
68255b1c9a Remove references to no-longer-need path_string_config 2023-01-28 17:53:40 -08:00
31b937a7f1 Remove no-longer necessary PathString configuration 2023-01-28 13:19:06 -08:00
8d72340501 Remove some references to triangulation 2023-01-28 12:43:56 -08:00
ab57b0acf0 Ensure positive orientation on all SVG, not just PathStrings 2023-01-26 21:00:07 -08:00
05dd399270 Ensure svgs have positive orientation by default 2023-01-26 12:04:58 -08:00
346d252451 Don't save triangulation, but do orient svg paths positively 2023-01-24 21:33:00 -08:00
8ce5dc7e84 Add DieFace to drawings.py 2023-01-23 11:53:30 -08:00
c3cd64f68c Package reflectiveness, gloss and shadow into a single uniform "shading" 2023-01-16 19:33:57 -08: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
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