Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[android] support rotateZ (#2593)
Browse files Browse the repository at this point in the history
  • Loading branch information
zshshr authored and YorkShen committed Jun 20, 2019
1 parent 8ea92bd commit 44e9592
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public class TransformParser {
public final static String WX_ROTATE = "rotate";
public final static String WX_ROTATE_X ="rotateX";
public final static String WX_ROTATE_Y ="rotateY";
public final static String WX_ROTATE_Z ="rotateZ";
public final static String WX_SCALE = "scale";
public final static String WX_SCALE_X = "scaleX";
public final static String WX_SCALE_Y = "scaleY";
Expand All @@ -83,6 +84,7 @@ public class TransformParser {
wxToAndroidMap.put(WX_TRANSLATE_X, Collections.singletonList(View.TRANSLATION_X));
wxToAndroidMap.put(WX_TRANSLATE_Y, Collections.singletonList(View.TRANSLATION_Y));
wxToAndroidMap.put(WX_ROTATE, Collections.singletonList(View.ROTATION));
wxToAndroidMap.put(WX_ROTATE_Z, Collections.singletonList(View.ROTATION));
wxToAndroidMap.put(WX_ROTATE_X, Collections.singletonList(View.ROTATION_X));
wxToAndroidMap.put(WX_ROTATE_Y, Collections.singletonList(View.ROTATION_Y));
wxToAndroidMap.put(WX_SCALE, Arrays.asList(View.SCALE_X, View.SCALE_Y));
Expand Down

0 comments on commit 44e9592

Please sign in to comment.