Add rotationX and rotationY

This commit is contained in:
pengfei.zhou
2020-06-02 20:43:27 +08:00
committed by osborn
parent b81c1d824b
commit c14ec1954e
13 changed files with 230 additions and 23 deletions

View File

@@ -103,8 +103,19 @@ export declare abstract class View implements Modeling {
pivotY?: number;
/**
* rotation*PI
* In Z
*/
rotation?: number;
/**
* rotation*PI
* In X
*/
rotationX?: number;
/**
* rotation*PI
* In Y
*/
rotationY?: number;
/**----------transform----------*/
/**
* Only affected when its superview or itself is FlexLayout.

View File

@@ -267,6 +267,14 @@ let View = /** @class */ (() => {
Property,
__metadata("design:type", Number)
], View.prototype, "rotation", void 0);
__decorate([
Property,
__metadata("design:type", Number)
], View.prototype, "rotationX", void 0);
__decorate([
Property,
__metadata("design:type", Number)
], View.prototype, "rotationY", void 0);
__decorate([
Property,
__metadata("design:type", Object)