mirror of
https://github.com/xvrh/lottie-flutter.git
synced 2025-08-06 16:39:36 +08:00
Breaking change: Remove window.devicePixelRatio from the parser (#240)
This commit is contained in:
@ -27,8 +27,8 @@ class AnimatablePathValueParser {
|
||||
reader.endArray();
|
||||
KeyframesParser.setEndFrames(keyframes);
|
||||
} else {
|
||||
keyframes.add(Keyframe<Offset>.nonAnimated(
|
||||
JsonUtils.jsonToPoint(reader, window.devicePixelRatio)));
|
||||
keyframes
|
||||
.add(Keyframe<Offset>.nonAnimated(JsonUtils.jsonToPoint(reader)));
|
||||
}
|
||||
return AnimatablePathValue.fromKeyframes(keyframes);
|
||||
}
|
||||
|
Reference in New Issue
Block a user