Skip to content

Commit

Permalink
Clarify conversion code
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasaglia committed Jun 20, 2024
1 parent 5c8c74e commit 5e5bfc3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/compat.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ This page describes breaking changes that have been introduced over time.
You'd need to check `v` from {ref-link:animation/animation} to see the
the lottie is so old to need to worry about these.

The code examples are just for illustrative purposes and are not to be
taken as a complete conversion code.

## [0,255] Colors

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

`shape.ks.k.c = shape.closed ? 1 : 0`

## Old keyframe style

Until `v` 5.0.0 (?).
Expand Down

0 comments on commit 5e5bfc3

Please sign in to comment.