MCPcopy Create free account
hub / github.com/AmazingAng/PolyWorld / parsePx

Function parsePx

src/hooks/usePanelDrag.ts:110–113  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

108}
109
110function parsePx(value: string) {
111 const parsed = Number.parseFloat(value);
112 return Number.isFinite(parsed) ? parsed : 0;
113}
114
115function buildContainerMetrics(container: HTMLElement, maxCols: number): ContainerMetrics {
116 const rect = container.getBoundingClientRect();

Callers 1

buildContainerMetricsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected