Add latest feature/fixes from Lottie-Android (#209)

- Added support for rounded corners on shapes and rects
- Add support for text in dynamic properties (ValueDelegate)
- Improve stroke with offset
- Add support for reversed polystar paths
- Enforce order of operations to avoid rounding errors
This commit is contained in:
Xavier H
2022-04-14 22:20:22 +02:00
committed by GitHub
parent 08d7da747a
commit bc3eb4621b
49 changed files with 9689 additions and 104 deletions

View File

@ -3,8 +3,19 @@ import '../model/document_data.dart';
import 'json_utils.dart';
import 'moshi/json_reader.dart';
final JsonReaderOptions _names = JsonReaderOptions.of(
['t', 'f', 's', 'j', 'tr', 'lh', 'ls', 'fc', 'sc', 'sw', 'of']);
final JsonReaderOptions _names = JsonReaderOptions.of([
't', // 0
'f', // 1
's', // 2
'j', // 3
'tr', // 4
'lh', // 5
'ls', // 6
'fc', // 7
'sc', // 8
'sw', // 9
'of', // 10
]);
DocumentData documentDataParser(JsonReader reader, {required double scale}) {
String? text;