You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -99,26 +99,25 @@ Defaults to `0`.
99
99
100
100
How many times should animation loops. `0` means Infinity Loop.
101
101
102
-
#### clearsAfterStop: Boolean
102
+
#### ~~clearsAfterStop: Boolean~~
103
103
104
-
Defaults to `true`.
105
-
106
-
Clears canvas after animation stop.
104
+
Defaults to `true`.When the animation is finished, whether to clear the canvas and the internal data of SVGAVideoEntity.
105
+
It is no longer recommended. Developers can control resource release through clearAfterDetached, or manually control resource release through SVGAVideoEntity#clear
107
106
108
107
#### clearsAfterDetached: Boolean
109
108
110
-
Defaults to `true`.
111
-
112
-
Clears canvas after SVGAImageView detached.
109
+
Defaults to `false`.Clears canvas and the internal data of SVGAVideoEntity after SVGAImageView detached.
113
110
114
111
#### fillMode: String
115
112
116
-
Defaults to `Forward`. Could be `Forward`, `Backward`.
113
+
Defaults to `Forward`. Could be `Forward`, `Backward`, `Clear`.
117
114
118
115
`Forward` means animation will pause on last frame after finished.
119
116
120
117
`Backward` means animation will pause on first frame after finished.
121
118
119
+
'Clear' after the animation is played, all the canvas content is cleared, but it is only the canvas and does not involve the internal data of SVGAVideoEntity.
0 commit comments