MCPcopy Create free account

hub / github.com/SawyerHood/draw-a-ui / functions

Functions21 in github.com/SawyerHood/draw-a-ui

↓ 2 callersMethodfindChunk
(view: DataView, type: string)
lib/png.ts:142
↓ 1 callersFunctionblobToBase64
(blob: Blob)
lib/blobToBase64.ts:1
↓ 1 callersFunctioncalculateBrowserCanvasMaxSize
()
lib/getBrowserCanvasMaxSize.ts:19
↓ 1 callersFunctioncrc
(current, previous)
lib/png.ts:58
↓ 1 callersFunctiongetBrowserCanvasMaxSize
()
lib/getBrowserCanvasMaxSize.ts:11
↓ 1 callersMethodgetChunkType
(view: DataView, offset: number)
lib/png.ts:89
↓ 1 callersFunctiongetSvgAsDataUrl
(svg: SVGElement)
lib/getSvgAsImage.ts:102
↓ 1 callersFunctiongetSvgAsDataUrlSync
(node: SVGElement)
lib/getSvgAsImage.ts:127
↓ 1 callersFunctiongetSvgAsImage
( svg: SVGElement, options: { type: TLCopyType | TLExportType; quality: number; scale: number;
lib/getSvgAsImage.ts:10
↓ 1 callersFunctionhighlight
()
components/PreviewModal.tsx:19
↓ 1 callersMethodisPng
(view: DataView, offset: number)
lib/png.ts:73
↓ 1 callersMethodreadChunks
(view: DataView, offset = 0)
lib/png.ts:98
↓ 1 callersMethodsetPhysChunk
(view: DataView, dpr = 1, options?: BlobPropertyBag)
lib/png.ts:147
FunctionExportButton
({ setHtml }: { setHtml: (html: string) => void })
app/page.tsx:54
FunctionHome
()
app/page.tsx:16
FunctionPOST
(request: Request)
app/api/toHtml/route.ts:8
FunctionPreviewModal
({ html, setHtml, }: { html: string | null; setHtml: (html: string | null) => void; })
components/PreviewModal.tsx:9
FunctionRootLayout
({ children, }: { children: React.ReactNode; })
app/layout.tsx:12
FunctionTabButton
({ active, ...buttonProps }: TabButtonProps)
components/PreviewModal.tsx:99
Functionlistener
(e: KeyboardEvent)
app/page.tsx:20
MethodparsePhys
(view: DataView, offset: number)
lib/png.ts:134