feat:remove setRotation,change to just change the property Rotation
This commit is contained in:
parent
489ac668cc
commit
93bb374a94
@ -32,7 +32,7 @@ class RefreshableDemo extends Panel {
|
|||||||
log('stopAnimation')
|
log('stopAnimation')
|
||||||
},
|
},
|
||||||
setProgressRotation: (rotation: number) => {
|
setProgressRotation: (rotation: number) => {
|
||||||
refreshImage.setRotation(context, rotation)
|
refreshImage.rotation = rotation
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
content: (vlayout([
|
content: (vlayout([
|
||||||
|
@ -66,7 +66,7 @@ export function rotatedArrow(context: BridgeContext) {
|
|||||||
log('stopAnimation')
|
log('stopAnimation')
|
||||||
},
|
},
|
||||||
setProgressRotation: (rotation: number) => {
|
setProgressRotation: (rotation: number) => {
|
||||||
refreshImage.setRotation(context, rotation)
|
refreshImage.rotation = rotation
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
@ -297,21 +297,6 @@ export abstract class View implements Modeling, IView {
|
|||||||
return this.nativeChannel(context, 'getHeight')() as Promise<number>
|
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++++++++++*/
|
/**++++++++++transform++++++++++*/
|
||||||
@Property
|
@Property
|
||||||
translationX?: number
|
translationX?: number
|
||||||
|
Reference in New Issue
Block a user