Skip to content

Commit 5e5bfc3

Browse files
committed
Clarify conversion code
1 parent 5c8c74e commit 5e5bfc3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/compat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ This page describes breaking changes that have been introduced over time.
55
You'd need to check `v` from {ref-link:animation/animation} to see the
66
the lottie is so old to need to worry about these.
77

8+
The code examples are just for illustrative purposes and are not to be
9+
taken as a complete conversion code.
10+
811
## [0,255] Colors
912

1013
Until `v` 4.1.9.
@@ -37,6 +40,8 @@ Fix: For each {ref-link:shapes/path}, update all the keyframes
3740
(or the non-animated value) of `ks`.
3841
Do the same to fix `pt` in each {ref-link:helpers/mask}.
3942

43+
`shape.ks.k.c = shape.closed ? 1 : 0`
44+
4045
## Old keyframe style
4146

4247
Until `v` 5.0.0 (?).

0 commit comments

Comments
 (0)