Get rid of propagate_style_to_family, since it is basically always true

This commit is contained in:
Grant Sanderson 2019-02-06 16:25:03 -08:00
parent 47f6d6ba38
commit 24d6113bba
15 changed files with 3 additions and 28 deletions

View file

@ -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,

View file

@ -17,7 +17,6 @@ from manimlib.utils.space_ops import angle_of_vector
class Axes(VGroup):
CONFIG = {
"propagate_style_to_family": True,
"three_d": False,
"number_line_config": {
"color": LIGHT_GREY,

View file

@ -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:

View file

@ -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,

View file

@ -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,
}

View file

@ -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,

View file

@ -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):

View file

@ -32,7 +32,6 @@ class SingleStringTexMobject(SVGMobject):
"should_center": True,
"height": None,
"organize_left_to_right": False,
"propagate_style_to_family": True,
"alignment": "",
}

View file

@ -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,
}

View file

@ -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 self

View file

@ -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):

View file

@ -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,

View file

@ -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,
}

View file

@ -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,
}

View file

@ -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())