Breaking change: Remove window.devicePixelRatio from the parser (#240)

This commit is contained in:
Xavier H
2022-11-09 14:38:50 +01:00
committed by GitHub
parent fc450a88f4
commit 8ce429cdf4
389 changed files with 222 additions and 195 deletions

View File

@ -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);
}