Varniex
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
Grant Sanderson
5b88d2347c
Allow for LaTeX in DecimalNumber, e.g. for units
2024-11-25 11:01:38 -07:00
Grant Sanderson
87ca6e56aa
Don't treat font size as a uniform
2024-08-20 10:00:07 -05:00
Grant Sanderson
ccc84f4ab1
Give Numbers a default border width
2024-08-16 15:21:29 -05:00
Grant Sanderson
c531e56a2f
Fix DecimalNumber.set_value font size issue
2024-02-08 14:55:12 -06:00
Grant Sanderson
8417369da1
Performance improvement for DecimalNumber.set_value
2024-02-08 14:42:46 -06:00
Grant Sanderson
cde709fcfa
Replace fix_in_frame matching for DecimalNumber.set_value to general uniform matching
2024-01-19 17:42:52 -06:00
Grant Sanderson
7ff45b4637
Having changing decimal match fixed_in_frame status
2023-06-23 10:57:57 -07:00
Grant Sanderson
0d415036a9
Ensure exact integers are displays for large values in Integer
2023-03-14 10:34:33 -07:00
Grant Sanderson
ab6a7df4af
Use typing_extensions to import Self for python versions <3.11
2023-02-02 10:54:47 -08:00
Grant Sanderson
576d8c996b
Add Self type to numbers.py
2023-01-31 14:16:15 -08:00
Grant Sanderson
93f3c6535f
Have DecimalMobject save pre-generated characters
2023-01-19 09:55:56 -08:00
Grant Sanderson
8ef93b0f9d
Treat font_size as a float
2023-01-16 13:43:48 -08:00
Grant Sanderson
ea943de557
Store font size in uniforms not data
2023-01-15 09:50:52 -08:00
Grant Sanderson
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
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
dec11a4b17
Rename np_vector type to Vect3 or Vect4 to make context clearer
2022-12-16 20:35:26 -08:00
Grant Sanderson
43fd5e1aea
Move custom type to manimlib.typing
2022-12-16 20:19:18 -08:00
Grant Sanderson
ae52f19a4a
Remove stray CONFIG vestiges
2022-12-16 10:02:03 -08:00
Grant Sanderson
7e46c87fc5
Kill CONFIG in numbers.py
2022-12-15 20:33:58 -08:00
Grant Sanderson
ad58a9e6c1
Tiny refactor
2022-05-23 11:07:39 -07:00
Grant Sanderson
4fdaeb1547
Fix(?) issue with numbers forgetting style info when resetting value
2022-05-11 12:45:51 -07:00
Grant Sanderson
48689c8c7b
Add DecimalNumber.get_tex
2022-05-11 12:45:27 -07:00
Grant Sanderson
a4b38fd420
Clean up DecimalNumber constructor
2022-04-28 12:14:36 -06:00
YishiMichael
4c324767bd
Recover Mobject.scale method
2022-04-15 00:55:02 +08:00
YishiMichael
9ef9961d0e
Sort imports
2022-04-12 19:19:59 +08:00
YishiMichael
93f8d3f1ca
Some refactors on LabelledString
2022-04-06 22:38:33 +08:00
TonyCrane
9f3b404df6
resolve conflict and add type hints for it
2022-02-16 11:46:55 +08:00
Bill Xi
0bb9216c14
Update hash_obj method
2022-02-15 21:50:14 +08:00
TonyCrane
4c16bfc2c0
chore: add type hints to manimlib.mobject
2022-02-15 14:37:15 +08:00
Bill Xi
aef02bfcf9
changed hashing
2022-02-15 11:45:17 +08:00
Bill Xi
9d04e287d7
Removed init_colors
2022-02-15 10:20:06 +08:00
Bill Xi
97c0f4857b
Update numbers.py
...
Added config passing for text
2022-02-15 09:35:10 +08:00
Grant Sanderson
5f878a2c1a
Fix match_style
2021-10-03 10:27:06 -07:00
Grant Sanderson
d19b386415
Fix dots
2021-10-01 12:31:16 -07:00
Grant Sanderson
e151334675
Alternate fix to Decimal scaling issue
2021-08-09 16:06:19 -07:00
Grant Sanderson
d3e61b962b
Have DecimalNumber match full family style when setting a new value
2021-03-27 11:56:36 -07:00
Grant Sanderson
e3b74ffd7a
Remove unecessary lines
2021-01-30 22:11:23 -08:00
Grant Sanderson
c292046913
Have DecimalMobject use Text instead of Tex
2021-01-30 18:13:38 -08:00
Grant Sanderson
f91c81dd6a
Rename TexMobject -> Tex and TextMobject -> TexText
2021-01-18 08:20:14 -10:00
Grant Sanderson
9f5f682351
Factor out get_num_string
2021-01-13 11:11:25 -10:00
Grant Sanderson
8cc484943e
Remove note
2021-01-13 09:21:00 -10:00
Grant Sanderson
bf3571c103
Have DecimalMobject look to the same cache that TexMobjects do
2021-01-13 00:24:40 -10:00
Grant Sanderson
20593d8fa8
Change how DecimalNumber.set_value works so that it's not creating new instances each time
2021-01-13 00:12:08 -10:00
Grant Sanderson
7af100489b
Include font_size in data
2021-01-12 13:08:24 -10:00
Grant Sanderson
ddfc3a6567
Replace lingering .points references
2021-01-12 07:27:32 -10:00
Grant Sanderson
572383f541
Have buff between Decimal digits change with font size
2021-01-03 12:03:39 -08:00
Grant Sanderson
c2b16d768e
Have decimal remember and match font size, not height
2021-01-03 11:44:53 -08:00
Grant Sanderson
df6ea06f89
Have DecimalNumber take in a font size
2020-12-17 15:59:02 -08:00
Grant Sanderson
feb6a33135
Account for fixed_in_frame in set_value
2020-06-29 18:15:40 -07:00