mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-04 23:54:53 +00:00
Fix path parser spec conformance
https://www.w3.org/TR/SVG/paths.html#PathDataMovetoCommands The "moveto" commands (M or m) must establish a new initial point and a new current point.
This commit is contained in:
@@ -399,8 +399,8 @@ class PropHelper {
|
||||
}
|
||||
|
||||
private void moveTo(float x, float y) {
|
||||
mPivotX = mPenX = x;
|
||||
mPivotY = mPenY = y;
|
||||
mPenDownX = mPivotX = mPenX = x;
|
||||
mPenDownY = mPivotY = mPenY = y;
|
||||
mPath.moveTo(x * mScale, y * mScale);
|
||||
|
||||
mLastStartPoint = getPointMap(x ,y);
|
||||
|
||||
Reference in New Issue
Block a user