feat:remove setRotation,change to just change the property Rotation

This commit is contained in:
pengfei.zhou 2019-12-02 19:15:43 +08:00
parent 489ac668cc
commit 93bb374a94
3 changed files with 2 additions and 17 deletions

View File

@ -32,7 +32,7 @@ class RefreshableDemo extends Panel {
log('stopAnimation')
},
setProgressRotation: (rotation: number) => {
refreshImage.setRotation(context, rotation)
refreshImage.rotation = rotation
},
}),
content: (vlayout([

View File

@ -66,7 +66,7 @@ export function rotatedArrow(context: BridgeContext) {
log('stopAnimation')
},
setProgressRotation: (rotation: number) => {
refreshImage.setRotation(context, rotation)
refreshImage.rotation = rotation
},
})
}

View File

@ -297,21 +297,6 @@ export abstract class View implements Modeling, IView {
return this.nativeChannel(context, 'getHeight')() as Promise<number>
}
/**
*
* @param rotation [0..1]
*/
setRotation(context: BridgeContext, rotation: number) {
return this.nativeChannel(context, 'setRotation')(rotation)
}
/**
*
* @return rotation [0..1]
*/
getRotation(context: BridgeContext) {
return this.nativeChannel(context, 'getRotation')() as Promise<number>
}
/**++++++++++transform++++++++++*/
@Property
translationX?: number