Skip to content

Commit 026ee3e

Browse files
committed
ver 1.1
1 parent d795e4a commit 026ee3e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

android/src/main/java/com/jjlf/rnclippath/ClipPathView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ protected void onSizeChanged(int w, int h, int oldw, int oldh) {
7171
private final RectF mBounds = new RectF();
7272
private final Matrix mMatrix = new Matrix();
7373
private String mD = "";
74-
private final RectF mRectVb = new RectF();
75-
private final RectF mRectVbDensity = new RectF();
74+
private final RectF mRectVb = new RectF(0f,0f,-1f,-1f);
75+
private final RectF mRectVbDensity = new RectF(0f,0f,-1f,-1f);
7676
private String mAlign = "xMidYMid";
7777
private int mAspect = SVGViewBox.MOS_MEET;
7878
private final ClipPathTransform mTransform = new ClipPathTransform();

android/src/main/java/com/jjlf/rnclippath/ClipPathViewNone.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ protected void onSizeChanged(int w, int h, int oldw, int oldh) {
8585
private final RectF mBounds = new RectF();
8686
private final Matrix mMatrix = new Matrix();
8787
private String mD = "";
88-
private final RectF mRectVb = new RectF();
89-
private final RectF mRectVbDensity = new RectF();
88+
private final RectF mRectVb = new RectF(0f,0f,-1f,-1f);
89+
private final RectF mRectVbDensity = new RectF(0f,0f,-1f,-1f);
9090
private String mAlign = "xMidYMid";
9191
private int mAspect = SVGViewBox.MOS_MEET;
9292
private final ClipPathTransform mTransform = new ClipPathTransform();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-clippathview",
33
"title": "React Native ClipPath",
4-
"version": "1.0.9",
4+
"version": "1.1.0",
55
"description": "ClipPath Android Web IOS",
66
"main": "index.js",
77
"files": [

0 commit comments

Comments
 (0)