MCPcopy Create free account
hub / github.com/adobe/react-spectrum / corner

Function corner

packages/@react-spectrum/ai/src/loader/react.tsx:363–363  ·  view source on GitHub ↗
(a, b, diag)

Source from the content-addressed store, hash-verified

361 let bottomLeft = matrix[y + 1]?.[x - 1];
362 let bottomRight = matrix[y + 1]?.[x + 1];
363 let corner = (a, b, diag) => (!a && !b && !diag ? '1px' : '0px');
364
365 // Adjust position for outer cells on high DPI displays.
366 let xPx = x * cellSize + offset + (isHighDPI ? (c.adjustX ?? 0) : 0);

Callers 1

PixelLoaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected