Lottie-Windows is a library (and related tools) for rendering Lottie animations on Windows 10.
Перейти к файлу
Simeon 11c75f8865
Fix some missing simplifications in Composition expressions. (#429)
* Fix some missing simplifications in Composition expressions.

The logic for determining whether an expression could be simplified was sometimes wrong because it ended up hitting an overridden equality operator which compared the already-simplified values.

Also fixed the test script to look at last write time when determining which is the latest build of LottieGen.exe to run. We were looking at creation time, but it turns out that when the compiler builds, it doesn't cause the creation time to be updated if the output file previously existed. Our test script could accidentally use a release build when the latest build was actually a debug build, resulting in the test running on an old build.

* Replace the IsAtomic bool with a more generalized Precedence concept.

Without this, it was getting unwieldy to handle all the cases of precedence. Now we're removing parentheses more aggressively, so the expressions will be more efficient to parse.

* Eliminate some unnecessary whitespace in Min and Max expression functions.
2021-03-05 14:05:00 -08:00
.github Remove individual code owners and replace with the Lottie group. (#257) 2020-05-13 09:18:46 -07:00
Lottie-Windows Create a project just for the animatables. (#413) 2021-01-27 13:10:48 -08:00
LottieGen Convert LottieGen to .NET 5 and create LottieGen.MsBuild package. 2021-02-08 11:36:30 -08:00
LottieViewer Show another decimal place on the LottieViewer tooltip. (#421) 2021-02-10 15:29:22 -08:00
build Pin a version of Cake to work around recent Cake change that broke the build. (#420) 2021-02-10 14:39:24 -08:00
dlls Create a project just for the animatables. (#413) 2021-01-27 13:10:48 -08:00
images README Updates (#65) 2019-02-19 11:27:27 -08:00
samples Fully enable nullables. (#363) 2020-10-13 10:21:17 -07:00
source Fix some missing simplifications in Composition expressions. (#429) 2021-03-05 14:05:00 -08:00
tests Fix some missing simplifications in Composition expressions. (#429) 2021-03-05 14:05:00 -08:00
.gitattributes Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
.gitignore Pin a version of Cake to work around recent Cake change that broke the build. (#420) 2021-02-10 14:39:24 -08:00
Directory.Build.props Code cleanup: take advantage of C# 8 features. (#370) 2020-10-19 17:38:40 -07:00
Directory.Build.targets Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
LICENSE.md Change capitalization of the LICENSE.md file to help GitHub recognize it. 2018-11-23 23:18:18 -08:00
Lottie-Windows.sln Convert LottieGen to .NET 5 and create LottieGen.MsBuild package. 2021-02-08 11:36:30 -08:00
README.md Merge the v6.1.0 release to master and start v7.0.0 (#292) 2020-06-15 12:56:22 -07:00
Toolkit.ruleset Prepare for gradients (#143) 2019-08-29 10:03:44 -07:00
VERSION_HISTORY.md Merge the v6.1.0 release to master and start v7.0.0 (#292) 2020-06-15 12:56:22 -07:00
azure-pipelines.yml Convert LottieGen to .NET 5 and create LottieGen.MsBuild package. 2021-02-08 11:36:30 -08:00
global.json Enable Arm64 builds (#179) 2019-11-01 11:42:52 -07:00
settings.xamlstyler Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
stylecop.json Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
toolkit.public.snk Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
toolkit.snk Initial commit of Lottie-Windows source. 2018-11-21 12:18:46 -08:00
version.json Revert "Start version 7.1. (#388)" (#389) 2020-11-17 16:40:09 -08:00

README.md

Lottie-Windows

Lottie-Windows is a library for rendering Adobe After Effects animations natively in your application. This project adds Windows to the Lottie family of tools also targeting Android, iOS, and Web.

Lottie simplifies the design-to-code workflow for bringing engaging, interactive vector animations to your Windows applications, with significant improvements in terms of performance, quality, and engineering efficiency over traditional approaches such as gifs, manually coded animations, etc. Lottie-Windows uses the Windows.UI.Composition APIs to provide smooth 60fps animations and resolution-independent vector graphics.

Lottie-Windows Gif

Lottie-Windows consists of 3 related products:

  • Lottie-Windows library for parsing and translating Bodymovin JSON files
  • LottieGen command-line tool for generating C# or C++ code to be used instead of JSON
  • Lottie Viewer application for previewing JSON and also generating code

This repo also contains source code for samples.

Supported SDKs

  • May 2019 Update (18362) and later

Getting Started

Build Status

Target Branch Status Recommended NuGet package
6.1.0 release master Build Status NuGet

Feedback and Requests

Please use GitHub Issues for bug reports and feature requests.

Principles

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

.NET Foundation

This project is supported by the .NET Foundation.