mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat: Add 3d rotaion (#126)
* feat: Add 3d rotaion * feat: add 3d rotation * feat: add 3d rotation
This commit is contained in:
committed by
Alexander Vakrilov
parent
5f34a5871f
commit
549aaa8218
@@ -465,6 +465,26 @@ public class ViewHelper {
|
||||
view.setRotation(value);
|
||||
}
|
||||
|
||||
public static float getRotateX(android.view.View view) {
|
||||
return view.getRotationX();
|
||||
}
|
||||
|
||||
public static void setRotateX(android.view.View view, float value) {
|
||||
view.setRotationX(value);
|
||||
}
|
||||
|
||||
public static float getRotateY(android.view.View view) {
|
||||
return view.getRotationY();
|
||||
}
|
||||
|
||||
public static void setRotateY(android.view.View view, float value) {
|
||||
view.setRotationY(value);
|
||||
}
|
||||
|
||||
public static void setPerspective(android.view.View view, float value) {
|
||||
view.setCameraDistance(value);
|
||||
}
|
||||
|
||||
public static float getScaleX(android.view.View view) {
|
||||
return view.getScaleX();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user