24 Commits

Author SHA1 Message Date
Grant Sanderson
9da66250ee Allow option for BulletedList to be numbered 2025-10-20 10:03:31 -07:00
Grant Sanderson
bca82da8a8 Merge branch 'master' of github.com:3b1b/manim into video-work 2025-10-14 09:17:27 -05:00
Grant Sanderson
30303e0ab1 Add \mathcal to tex_to_symbol_count 2025-10-14 09:11:46 -05:00
Grant Sanderson
b39b3e6256 Add VMobject. set_color_by_proportion 2025-10-14 09:11:36 -05:00
Grant Sanderson
b54f0659b7 Add Surface. color_by_uv_function 2025-10-14 09:11:26 -05:00
Grant Sanderson
15f9bfff6f Fix num_decimal_places config in Tex.make_number_changeable 2025-10-14 09:11:01 -05:00
Grant Sanderson
cf168b415c Set self.svg_string property for SVGMobject 2025-10-14 09:10:20 -05:00
Grant Sanderson
13054d6c3c Have z-index apply recursively 2025-10-14 09:09:58 -05:00
Grant Sanderson
69f09615b1 Swap priority of matched_keys vs key_map is TransformMatchingStrings 2025-10-14 09:09:49 -05:00
Grant Sanderson
f4c04244c7 Put interp_by_hsl option in various color interpretation functions 2025-09-22 13:06:42 -05:00
Grant Sanderson
043a0273ef Add \minus option for Tex to give shorter negative sign 2025-09-22 13:05:32 -05:00
Grant Sanderson
e2cc6cd56e Add Slider 2025-09-22 13:04:50 -05:00
Grant Sanderson
d301c5037f Add put_start_on and put_end_on 2025-09-22 13:04:40 -05:00
Grant Sanderson
0c245d5e09 Allow ComplexPlane.n2p to take in array of complex numbers 2025-09-22 13:04:30 -05:00
Grant Sanderson
828cbec384 Fix CoordinateSystem.get_area_under_graph 2025-09-22 13:04:14 -05:00
Grant Sanderson
91bbd5566d Clearer init for points in TracingTail 2025-09-22 13:03:44 -05:00
Grant Sanderson
75a789f37e Fix interplay between time_span and alpha in Animation 2025-09-22 13:02:23 -05:00
Grant Sanderson
db3bde18ba Move pre-calculated traced points to TracingTail 2025-07-01 15:01:25 -05:00
Grant Sanderson
30763084f1 Add CLAUDE.md to gitignore 2025-06-30 14:29:25 -05:00
Grant Sanderson
7839e1d6b3 Add remembered stroke_config to TracedPath 2025-06-30 13:42:19 -05:00
Grant Sanderson
22fa38fab9 Validate syntax before reloading 2025-06-30 13:06:05 -05:00
Grant Sanderson
057900ef8b Add option hide_zero_components_on_complex to DecimalNumber 2025-06-30 10:00:08 -05:00
Grant Sanderson
60772ccfdc Change faded line in NumberPlane initialization to be more explicit, and lower opacity 2025-06-30 09:59:45 -05:00
Grant Sanderson
b13498ab31 Bug fix for TransformMatchingStrings with incompatible lengths 2025-06-30 09:59:06 -05:00

View File

@@ -21,13 +21,15 @@ class BulletedList(VGroup):
*items: str,
buff: float = MED_LARGE_BUFF,
aligned_edge: Vect3 = LEFT,
numbered: bool = False,
**kwargs
):
labelled_content = [R"\item " + item for item in items]
enum_str = "enumerate" if numbered else "itemize"
tex_string = "\n".join([
R"\begin{itemize}",
fR"\begin{{{enum_str}}}",
*labelled_content,
R"\end{itemize}"
fR"\end{{{enum_str}}}"
])
tex_text = TexText(tex_string, isolate=labelled_content, **kwargs)
lines = (tex_text.select_part(part) for part in labelled_content)