Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2c18c7e

Browse files
Zoom frame out once if multiple branches are needed
1 parent 5407e92 commit 2c18c7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎git_story/git_story.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def __init__(self, args):
99
self.commits = []
1010
self.children = {}
1111
self.childChainLength = 0
12+
self.zoomOuts = 0
1213

1314
if ( self.args.light_mode ):
1415
self.fontColor = BLACK
@@ -132,6 +133,9 @@ def parseCommits(self, commit, i, prevCircle, toFadeOut):
132133
while ( any((circle.get_center() == c).all() for c in self.getCenters()) ):
133134
circle.next_to(circle, DOWN, buff=3.5)
134135
offset += 1
136+
if ( self.zoomOuts == 0 ):
137+
self.play(self.camera.frame.animate.scale(1.5))
138+
self.zoomOuts += 1
135139

136140
isNewCommit = commit.hexsha not in self.drawnCommits
137141

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /