feat:add getLocationOnScreen
This commit is contained in:
parent
f0259d6c35
commit
5601dfd0ca
@ -297,6 +297,10 @@ export abstract class View implements Modeling, IView {
|
|||||||
return this.nativeChannel(context, 'getHeight')() as Promise<number>
|
return this.nativeChannel(context, 'getHeight')() as Promise<number>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getLocationOnScreen(context: BridgeContext) {
|
||||||
|
return this.nativeChannel(context, "getLocationOnScreen")() as Promise<{ x: number, y: number }>
|
||||||
|
}
|
||||||
|
|
||||||
/**++++++++++transform++++++++++*/
|
/**++++++++++transform++++++++++*/
|
||||||
@Property
|
@Property
|
||||||
translationX?: number
|
translationX?: number
|
||||||
|
Reference in New Issue
Block a user