66 Commits

Author SHA1 Message Date
db421e3981 Video work (#2318)
* Only use -no-pdf for xelatex rendering

* Instead of tracking du and dv points on surface, track points off the surface in the normal direction

This means that surface shading will not necessarily work well for arbitrary transformations of the surface. But the existing solution was flimsy anyway, and caused annoying issues with singularity points.

* Have density of anchor points on arcs depend on arc length

* Allow for specifying true normals and orientation of Sphere

* Change miter threshold on stroke shader

* Add get_start_and_end to DashedLine

* Add min_total_width option to DecimalNumber

* Have BackgroundRectangle.set_style absorb (and ignore) added configuration

Note, this feels suboptimal

* Add LineBrace

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