mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Remove Transform.__str__
This commit is contained in:
parent
814c9d1252
commit
d9fcbea823
1 changed files with 2 additions and 8 deletions
|
@ -5,7 +5,7 @@ import numpy as np
|
|||
from manimlib.animation.animation import Animation
|
||||
from manimlib.constants import DEFAULT_POINTWISE_FUNCTION_RUN_TIME
|
||||
from manimlib.constants import OUT
|
||||
from manimlib.constants import PI
|
||||
from manimlib.constants import DEGREES
|
||||
from manimlib.mobject.mobject import Group
|
||||
from manimlib.mobject.mobject import Mobject
|
||||
from manimlib.utils.config_ops import digest_config
|
||||
|
@ -28,12 +28,6 @@ class Transform(Animation):
|
|||
self.target_mobject = target_mobject
|
||||
self.init_path_func()
|
||||
|
||||
def __str__(self):
|
||||
return "{}To{}".format(
|
||||
super().__str__(),
|
||||
str(self.target_mobject)
|
||||
)
|
||||
|
||||
def init_path_func(self):
|
||||
if self.path_func is not None:
|
||||
return
|
||||
|
@ -275,7 +269,7 @@ class ApplyComplexFunction(ApplyMethod):
|
|||
|
||||
class CyclicReplace(Transform):
|
||||
CONFIG = {
|
||||
"path_arc": PI / 2,
|
||||
"path_arc": 90 * DEGREES,
|
||||
}
|
||||
|
||||
def __init__(self, *mobjects, **kwargs):
|
||||
|
|
Loading…
Add table
Reference in a new issue