feat:add getLocationOnScreen

This commit is contained in:
pengfei.zhou 2019-12-12 17:31:09 +08:00
parent f0259d6c35
commit 5601dfd0ca

View File

@ -297,6 +297,10 @@ export abstract class View implements Modeling, IView {
return this.nativeChannel(context, 'getHeight')() as Promise<number>
}
getLocationOnScreen(context: BridgeContext) {
return this.nativeChannel(context, "getLocationOnScreen")() as Promise<{ x: number, y: number }>
}
/**++++++++++transform++++++++++*/
@Property
translationX?: number