MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / left

Function left

apps/automated/src/ui/layouts/layout-tests-helper.ts:9–11  ·  view source on GitHub ↗
(view: View)

Source from the content-addressed store, hash-verified

7const EPS = 1;
8
9export function left(view: View): number {
10 return round(dipToDp(view.getLocationInWindow().x));
11}
12export function top(view: View): number {
13 return round(dipToDp(view.getLocationInWindow().y));
14}

Calls 2

roundFunction · 0.50
getLocationInWindowMethod · 0.45

Tested by

no test coverage detected