0.8.0 • Published 6 years ago

nativescript-rotate-3d v0.8.0

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
6 years ago

NativeScript Rotate3D

This is a nativescript plugin to add 3d rotaion (i.e around X, Y and Z).

Installation

tns plugin add nativescript-rotate-3d

Example

<Rotate3D rotate="40" axis="Y" cameraDistance="2000">
     /* Whatever you want */
</Rotate3D>

Usage

Since we're subclassing StackLayout, you can add <Rotate3D> to your view at any place where you'd otherwise use a StackLayout.

In addition to any properties you can already set on a StackLayout you should add:

ParamDescriptiondefault
rotateAxisthe axis whic the view will rotate around (X, Y, Z)Z
cameraDistancethe distance between the view and view camera2000

Next

  • implement rotaion in X, Y, Z.
  • handel animation using view animate method.
  • improve procpective relation between ios and android.

Contribute

if you want to help improve the plugin you can consider it yours and make as PRs as you want :)

Get Help

Please, use github issues strictly for reporting bugs or requesting features.

Contact

Twitter: hamdiwanis \ Email: hamdiwanis@hotmail.com