mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-28 13:03:12 +00:00
Merge branch 'percentage-props-refactor'
This commit is contained in:
@@ -411,12 +411,6 @@ class PropHelper {
|
||||
mPivotX = c2x;
|
||||
mPivotY = c2y;
|
||||
cubicTo(c1x, c1y, c2x, c2y, ex, ey);
|
||||
|
||||
WritableArray points = Arguments.createArray();
|
||||
points.pushMap(getPointMap(c1x, c1y));
|
||||
points.pushMap(getPointMap(c2x, c2y));
|
||||
points.pushMap(getPointMap(ex, ey));
|
||||
mBezierCurves.pushArray(points);
|
||||
}
|
||||
|
||||
private void cubicTo(float c1x, float c1y, float c2x, float c2y, float ex, float ey) {
|
||||
@@ -424,6 +418,12 @@ class PropHelper {
|
||||
mPenX = ex;
|
||||
mPenY = ey;
|
||||
mPath.cubicTo(c1x * mScale, c1y * mScale, c2x * mScale, c2y * mScale, ex * mScale, ey * mScale);
|
||||
|
||||
WritableArray points = Arguments.createArray();
|
||||
points.pushMap(getPointMap(c1x, c1y));
|
||||
points.pushMap(getPointMap(c2x, c2y));
|
||||
points.pushMap(getPointMap(ex, ey));
|
||||
mBezierCurves.pushArray(points);
|
||||
}
|
||||
|
||||
private void smoothCurve(float c1x, float c1y, float ex, float ey) {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "5.0.1",
|
||||
"version": "5.0.2",
|
||||
"name": "react-native-svg",
|
||||
"description": "SVG library for react-native",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user