2.0.0-beta02
Pre-release
Pre-release
alexzhirkevich
released this
10 Jul 07:18
·
97 commits
to standalone-main
since this release
Changes since 2.0.0-beta01:
Highlights
- Added support for AE expressions (#10).
After Effects Expressions are JS scripts that you can use together with keyframes and dynamic properties to animate objects.
Compottie now has it's own lightweight ECMAScript / JS interpreter and supports most of commonly-used After Effects expressions (such as math, random, wiggle, looping, properties, time manipulation, etc).
Expressions are enabled by default under the enableExpressions
LottiePainter feature flag . You can disable it if your animation doesn't work as expected or displays warnings.
Fixes
- Fixed a bug when animations with precompositions would not display without assets manager provided (#8)
LottieImage
was renamed toLottieImageSpec
(to matchLottieFontSpec
). It may affect you if you were implementing customLottieAssetsManager
- Improved content scale for LottiePainter. It is now correctly scaled when you use
ContentScale
likeFillBounds
,FillWidth
,FillHeight
forImage
that draws the painter.
Features
- LottiePainter now has extra parameter called
enableTextGrouping
. It allows to correctly render words in some unusual/RTL locales such as Arabic, but adds some limitations. Text positioning may become broken