MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / getViewportSize

Function getViewportSize

src/hooks/useModalDrag.ts:57–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57function getViewportSize(): { width: number; height: number } {
58 return typeof window !== 'undefined'
59 ? { width: window.innerWidth, height: window.innerHeight }
60 : VIEWPORT_FALLBACK;
61}
62
63export function getEstimatedModalPosition({
64 estimatedWidth,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected