mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +08:00
More chapter 5, plus some renaming fun
This commit is contained in:
@ -7,7 +7,7 @@ from helpers import *
|
||||
|
||||
class SVGMobject(VMobject):
|
||||
CONFIG = {
|
||||
"initial_scale_val" : 1,
|
||||
"initial_scale_factor" : 1,
|
||||
"should_center" : True,
|
||||
}
|
||||
def __init__(self, svg_file, **kwargs):
|
||||
@ -129,7 +129,7 @@ class SVGMobject(VMobject):
|
||||
def move_into_position(self):
|
||||
if self.should_center:
|
||||
self.center()
|
||||
self.scale_in_place(self.initial_scale_val)
|
||||
self.scale_in_place(self.initial_scale_factor)
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user