MCPcopy Index your code
hub / github.com/massCodeIO/massCode / readDimension

Function readDimension

src/main/windowBounds.ts:22–26  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

20}
21
22function readDimension(value: unknown) {
23 const number = readNumber(value)
24
25 return number && number > 0 ? number : undefined
26}
27
28function hasVisibleIntersection(bounds: Rectangle, workArea: Rectangle) {
29 const overlapWidth

Callers 1

normalizeWindowBoundsFunction · 0.85

Calls 1

readNumberFunction · 0.70

Tested by

no test coverage detected