Grant Sanderson
3293f72adc
Move BulletedList, TexTextFromPresetString and Title to their own file
2022-12-20 14:48:54 -08:00
Grant Sanderson
e0725c111e
Allow MTex to accept multiple strings as an argument
2022-12-20 14:32:04 -08:00
Grant Sanderson
6176bcd45a
Add option for StringMobject to only render one svg
2022-12-20 14:32:04 -08:00
Grant Sanderson
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
Grant Sanderson
1a485ddd19
Ensure color_to_hex always returns 6 character hex codes
2022-12-20 14:31:17 -08:00
Grant Sanderson
d4417d3d07
Add t2c option to MTex
2022-12-20 14:31:17 -08:00
Grant Sanderson
dd662b0d12
Move Selector and Span to manimlib.typing
2022-12-20 14:29:17 -08:00
Grant Sanderson
623aef41f8
Rename get_camera_configuration -> get_camera_config
2022-12-20 09:36:07 -08:00
Grant Sanderson
9f71f87278
Refactor config.py
2022-12-20 09:31:02 -08:00
Grant Sanderson
a26fe605b3
Slight refactor for inserted_embed_line
2022-12-19 21:17:44 -08:00
Grant Sanderson
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
Grant Sanderson
c605ac1c83
Better height, width, unit_size behavior for CoordinateSystems
2022-12-19 20:34:42 -08:00
Grant Sanderson
d8deec8f81
Revert back from the needs_new_unit_normal change in favor of recomputation
2022-12-19 18:17:25 -08:00
Grant Sanderson
75a98a8936
Change color_to_hex implementation
2022-12-19 18:03:53 -08:00
Grant Sanderson
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
Grant Sanderson
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
Grant Sanderson
c2c8149627
Revert "Move display_during_exection associated with Latex rendering"
...
This reverts commit ab470c3ee5
.
2022-12-19 16:54:55 -08:00
Grant Sanderson
a53867d8a1
Fix TexText bug
2022-12-19 16:54:44 -08:00
Grant Sanderson
b2fd22c539
Small cleanups
2022-12-19 16:21:40 -08:00
Grant Sanderson
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
Grant Sanderson
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
Grant Sanderson
71c9144952
Use io.BytesIO rather than writing to a temp file
2022-12-19 16:03:16 -08:00
Grant Sanderson
8d05431b7b
Add points in reverse order to AngularSector
2022-12-19 14:43:57 -08:00
Grant Sanderson
96d9e41a35
Refresh unit normal on init of brace
2022-12-19 14:43:27 -08:00
Grant Sanderson
2c20a1509e
Remoe height defaults form __init__args of SingleStringTex and String
2022-12-19 14:43:10 -08:00
Grant Sanderson
ef64b90ed3
Allow for default height/width of SVGMobject specified as class variables
2022-12-19 14:42:04 -08:00
Grant Sanderson
f158d3e751
Give unit_normal refreshing the same behavior as triangulation
...
That is, don't actually compute it until it needs to be. This is necessary so that VMobject.append_points can refresh both of those, without effecting SVG initialization.
2022-12-19 14:41:06 -08:00
Grant Sanderson
d79e1d6ed8
Move shell instantiation to beginning of checkpoint_paste
2022-12-19 11:36:28 -08:00
Grant Sanderson
6615a912bd
Add default_camera_config class variable to Scene, likewise for window and file_writer configuration
2022-12-19 11:35:43 -08:00
Grant Sanderson
99fa3ee620
Refactor Scene.embed and checkpoint_paste
2022-12-19 10:51:26 -08:00
Grant Sanderson
c330dfddae
Add space
2022-12-19 10:38:06 -08:00
Grant Sanderson
ba93bd0cbf
Replace unit_size with get_unit_size()
2022-12-18 19:52:59 -08:00
Grant Sanderson
b1f363d5a9
Expand input type for AnimationGroup
2022-12-18 19:52:48 -08:00
Grant Sanderson
e5c13ba9d7
Use shell.run_cell instead of paste line magic
...
Because %paste -q line magic introduces issues with IPython 8.2 and above
2022-12-18 12:20:14 -08:00
Grant Sanderson
3c04ffc513
Better functionality for default axis configuration on coordinate systems
2022-12-18 12:19:26 -08:00
Grant Sanderson
4f6c387a03
Edit interact message
2022-12-18 12:01:33 -08:00
Grant Sanderson
38c4fd8770
Remove unnecessary save
2022-12-18 11:54:57 -08:00
Grant Sanderson
3e4b6a7fb0
Add show_progress and skip options to checkpoint_paste
2022-12-18 11:21:57 -08:00
Grant Sanderson
af471161ea
Fix 'Failed to get module" warning with Scene embed
2022-12-18 11:11:08 -08:00
Grant Sanderson
e728196814
Remove implicit string concatenation
2022-12-18 10:50:34 -08:00
Grant Sanderson
99dbf6b8c3
Edited insert_embed_line to write over existing file rather than creating a new one
...
Otherwise behavior of things like __file__ is not as expected.
2022-12-18 10:50:17 -08:00
Grant Sanderson
07feb33cbb
Merge pull request #1932 from 3b1b/kill-config
...
Kill config
2022-12-18 10:27:15 -08:00
Grant Sanderson
0433cd727c
Tweak type hints in matrix.py
2022-12-18 09:38:46 -08:00
Grant Sanderson
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
Grant Sanderson
903e140719
Add from __future__ import annotations
2022-12-18 09:13:11 -08:00
Grant Sanderson
f8b39f2ff1
Allow Scalable type to be any FloatArray
2022-12-18 09:11:16 -08:00
Grant Sanderson
6f0020950f
Make Scalable a Typevar
2022-12-17 22:28:53 -08:00
Grant Sanderson
7ac78f3dbb
Updating type hints for paths.py
2022-12-17 22:14:53 -08:00
Grant Sanderson
f53fad1a96
Avoid implicit string concatenation
2022-12-17 22:14:43 -08:00
Grant Sanderson
c96a698713
Remove unused drag_pixels
2022-12-17 22:14:30 -08:00