mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 11:57:44 +00:00
Add getter and setter for joint_type
This commit is contained in:
parent
0610f331a4
commit
2a7a7ac518
1 changed files with 8 additions and 0 deletions
|
|
@ -341,6 +341,14 @@ class VMobject(Mobject):
|
|||
def get_flat_stroke(self) -> bool:
|
||||
return self.flat_stroke
|
||||
|
||||
def set_joint_type(self, joint_type: str, recurse: bool = True):
|
||||
for mob in self.get_family(recurse):
|
||||
mob.joint_type = joint_type
|
||||
return self
|
||||
|
||||
def get_joint_type(self) -> str:
|
||||
return self.joint_type
|
||||
|
||||
# Points
|
||||
def set_anchors_and_handles(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue