A community-maintained Python framework for creating mathematical animations.
Get rid of propagate_style_to_family, since it is basically always true
Grant Sanderson24d6113bba8d
diff --git a/manimlib/for_3b1b_videos/pi_creature.py b/manimlib/for_3b1b_videos/pi_creature.pyindex e00244ea7..6f6b7c7f1 100644--- a/manimlib/for_3b1b_videos/pi_creature.py+++ b/manimlib/for_3b1b_videos/pi_creature.py@@ -38,7 +38,6 @@ class PiCreature(SVGMobject):"stroke_width": 0,"stroke_color": BLACK,"fill_opacity": 1.0,- "propagate_style_to_family": True,"height": 3,"corner_scale_factor": 0.75,"flip_at_start": False,diff --git a/manimlib/mobject/coordinate_systems.py b/manimlib/mobject/coordinate_systems.pyindex 60dc7f4c7..9e2b6191e 100644--- a/manimlib/mobject/coordinate_systems.py+++ b/manimlib/mobject/coordinate_systems.py@@ -17,7 +17,6 @@ from manimlib.utils.space_ops import angle_of_vectorclass Axes(VGroup):CONFIG = {- "propagate_style_to_family": True,"three_d": False,"number_line_config": {"color": LIGHT_GREY,diff --git a/manimlib/mobject/functions.py b/manimlib/mobject/functions.pyindex 2be48c9b3..2693009a2 100644--- a/manimlib/mobject/functions.py+++ b/manimlib/mobject/functions.py@@ -40,7 +40,6 @@ class ParametricFunction(VMobject):*(discontinuities + dt),]boundary_times.sort()- print(boundary_times)for t1, t2 in zip(boundary_times[0::2], boundary_times[1::2]):t_range = list(np.arange(t1, t2, step_size))if t_range[-1] != t2:diff --git a/manimlib/mobject/geometry.py b/manimlib/mobject/geometry.pyindex 583d8fe9a..3fdc27f72 100644--- a/manimlib/mobject/geometry.py+++ b/manimlib/mobject/geometry.py@@ -295,7 +295,6 @@ class Annulus(Circle):"stroke_width": 0,"color": WHITE,"mark_paths_closed": False,- "propagate_style_to_family": True}def generate_points(self):@@ -514,7 +513,6 @@ class Arrow(Line):"max_tip_length_to_length_ratio": 0.35,"max_stem_width_to_tip_width_ratio": 0.3,"buff": MED_SMALL_BUFF,- "propagate_style_to_family": False,"preserve_tip_size_when_scaling": True,"normal_vector": OUT,"use_rectangular_stem": True,diff --git a/manimlib/mobject/number_line.py b/manimlib/mobject/number_line.pyindex 40dd5c1ce..4eb86c95a 100644--- a/manimlib/mobject/number_line.py+++ b/manimlib/mobject/number_line.py@@ -29,7 +29,6 @@ class NumberLine(VMobject):"label_direction": DOWN,"line_to_number_buff": MED_SMALL_BUFF,"include_tip": False,- "propagate_style_to_family": True,"decimal_number_config": {"num_decimal_places": 0,}diff --git a/manimlib/mobject/svg/drawings.py b/manimlib/mobject/svg/drawings.pyindex ad94c09a7..93853c942 100644--- a/manimlib/mobject/svg/drawings.py+++ b/manimlib/mobject/svg/drawings.py@@ -177,7 +177,6 @@ class PartyHat(SVGMobject):"pi_creature": None,"stroke_width": 0,"fill_opacity": 1,- "propagate_style_to_family": True,"frills_colors": [MAROON_B, PURPLE],"cone_color": GREEN,"dots_colors": [YELLOW],@@ -284,7 +283,6 @@ class PatreonLogo(SVGMobject):"fill_opacity": 1,"stroke_width": 0,"width": 4,- "propagate_style_to_family": True}def __init__(self, **kwargs):@@ -345,9 +343,7 @@ class Headphones(SVGMobject):class Clock(VGroup):- CONFIG = {- "propagate_style_to_family": True,- }+ CONFIG = {}def __init__(self, **kwargs):circle = Circle()@@ -415,7 +411,6 @@ class Bubble(SVGMobject):"width": 8,"bubble_center_adjustment_factor": 1. / 8,"file_name": None,- "propagate_style_to_family": True,"fill_color": BLACK,"fill_opacity": 0.8,"stroke_color": WHITE,diff --git a/manimlib/mobject/svg/svg_mobject.py b/manimlib/mobject/svg/svg_mobject.pyindex bdea884dc..7384308d1 100644--- a/manimlib/mobject/svg/svg_mobject.py+++ b/manimlib/mobject/svg/svg_mobject.py@@ -38,7 +38,6 @@ class SVGMobject(VMobject):"stroke_width": 0,"fill_opacity": 1.0,# "fill_color" : LIGHT_GREY,- "propagate_style_to_family": True,}def __init__(self, file_name=None, **kwargs):diff --git a/manimlib/mobject/svg/tex_mobject.py b/manimlib/mobject/svg/tex_mobject.pyindex 6a33eb1bf..a69e677d4 100644--- a/manimlib/mobject/svg/tex_mobject.py+++ b/manimlib/mobject/svg/tex_mobject.py@@ -32,7 +32,6 @@ class SingleStringTexMobject(SVGMobject):"should_center": True,"height": None,"organize_left_to_right": False,- "propagate_style_to_family": True,"alignment": "",}diff --git a/manimlib/mobject/three_dimensions.py b/manimlib/mobject/three_dimensions.pyindex ef95c3ec1..8a30f4d6f 100644--- a/manimlib/mobject/three_dimensions.py+++ b/manimlib/mobject/three_dimensions.py@@ -128,7 +128,6 @@ class Cube(VGroup):"fill_opacity": 0.75,"fill_color": BLUE,"stroke_width": 0,- "propagate_style_to_family": True,"side_length": 2,}diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.pyindex e889dff62..f27eda8ed 100644--- a/manimlib/mobject/types/vectorized_mobject.py+++ b/manimlib/mobject/types/vectorized_mobject.py@@ -49,13 +49,13 @@ class VMobject(Mobject):# Indicates that it will not be displayed, but# that it should count in parent mobject's path"close_new_points": False,- "propagate_style_to_family": False,"pre_function_handle_to_anchor_scale_factor": 0.01,"make_smooth_after_applying_functions": False,"background_image_file": None,"shade_in_3d": False,# This is within a pixel- # TODO, what if you're rather zoomed in?+ # TODO, do we care about accounting for+ # varying zoom levels?"tolerance_for_point_equality": 1e-6,"n_points_per_cubic_curve": 4,}@@ -68,24 +68,20 @@ class VMobject(Mobject):self.set_fill(color=self.fill_color or self.color,opacity=self.fill_opacity,- family=self.propagate_style_to_family)self.set_stroke(color=self.stroke_color or self.color,width=self.stroke_width,opacity=self.stroke_opacity,- family=self.propagate_style_to_family)self.set_background_stroke(color=self.background_stroke_color,width=self.background_stroke_width,opacity=self.background_stroke_opacity,- family=self.propagate_style_to_family,)self.set_sheen(factor=self.sheen_factor,direction=self.sheen_direction,- family=self.propagate_style_to_family)return selfdiff --git a/manimlib/once_useful_constructs/fractals.py b/manimlib/once_useful_constructs/fractals.pyindex 0c40d1e1c..cd865e9bc 100644--- a/manimlib/once_useful_constructs/fractals.py+++ b/manimlib/once_useful_constructs/fractals.py@@ -78,7 +78,6 @@ class SelfSimilarFractal(VMobject):"colors": [RED, WHITE],"stroke_width": 1,"fill_opacity": 1,- "propagate_style_to_family": True,}def init_colors(self):@@ -314,7 +313,6 @@ class FractalCurve(VMobject):4: 2,5: 1,},- "propagate_style_to_family": True,}def generate_points(self):diff --git a/old_projects/borsuk.py b/old_projects/borsuk.pyindex d0325b42a..810ab14bd 100644--- a/old_projects/borsuk.py+++ b/old_projects/borsuk.py@@ -6,7 +6,6 @@ class Jewel(VMobject):"color" : WHITE,"fill_opacity" : 0.75,"stroke_width" : 0,- "propagate_style_to_family" : True,"height" : 0.5,"num_equator_points" : 5,"sun_vect" : OUT+LEFT+UP,diff --git a/old_projects/efvgt.py b/old_projects/efvgt.pyindex 03faf33e5..b4dcfb762 100644--- a/old_projects/efvgt.py+++ b/old_projects/efvgt.py@@ -3257,7 +3257,6 @@ class EmeraldLogo(SVGMobject):"file_name" : "emerald_logo","stroke_width" : 0,"fill_opacity" : 1,- "propagate_style_to_family" : True,# "helix_color" : "#439271","helix_color" : GREEN_E,}diff --git a/old_projects/fractal_dimension.py b/old_projects/fractal_dimension.pyindex 6aaf31876..801ee5d92 100644--- a/old_projects/fractal_dimension.py+++ b/old_projects/fractal_dimension.py@@ -14,7 +14,6 @@ class Britain(SVGMobject):"stroke_width" : 0,"fill_color" : BLUE_D,"fill_opacity" : 1,- "propagate_style_to_family" : True,"height" : 5,"mark_paths_closed" : True,}@@ -2862,7 +2861,6 @@ class AffirmLogo(SVGMobject):"fill_opacity" : 1,"stroke_color" : "#0FA0EA","stroke_width" : 0,- "propagate_style_to_family" : True,"file_name" : "affirm_logo","width" : 3,}diff --git a/old_projects/triangle_of_power/triangle.py b/old_projects/triangle_of_power/triangle.pyindex fabcb378c..18eefc0ac 100644--- a/old_projects/triangle_of_power/triangle.py+++ b/old_projects/triangle_of_power/triangle.py@@ -67,7 +67,6 @@ class TOP(VMobject):"triangle_height_to_number_height" : 3,"offset_multiple" : 1.5,"radius" : 1.5,- "propagate_style_to_family" : False,}def __init__(self, x = None, y = None, z = None, **kwargs):digest_config(self, kwargs, locals())