Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SawyerHood/draw-a-ui
/ functions
Functions
21 in github.com/SawyerHood/draw-a-ui
⨍
Functions
21
◇
Types & classes
4
↓ 2 callers
Method
findChunk
(view: DataView, type: string)
lib/png.ts:142
↓ 1 callers
Function
blobToBase64
(blob: Blob)
lib/blobToBase64.ts:1
↓ 1 callers
Function
calculateBrowserCanvasMaxSize
()
lib/getBrowserCanvasMaxSize.ts:19
↓ 1 callers
Function
crc
(current, previous)
lib/png.ts:58
↓ 1 callers
Function
getBrowserCanvasMaxSize
()
lib/getBrowserCanvasMaxSize.ts:11
↓ 1 callers
Method
getChunkType
(view: DataView, offset: number)
lib/png.ts:89
↓ 1 callers
Function
getSvgAsDataUrl
(svg: SVGElement)
lib/getSvgAsImage.ts:102
↓ 1 callers
Function
getSvgAsDataUrlSync
(node: SVGElement)
lib/getSvgAsImage.ts:127
↓ 1 callers
Function
getSvgAsImage
( svg: SVGElement, options: { type: TLCopyType | TLExportType; quality: number; scale: number;
lib/getSvgAsImage.ts:10
↓ 1 callers
Function
highlight
()
components/PreviewModal.tsx:19
↓ 1 callers
Method
isPng
(view: DataView, offset: number)
lib/png.ts:73
↓ 1 callers
Method
readChunks
(view: DataView, offset = 0)
lib/png.ts:98
↓ 1 callers
Method
setPhysChunk
(view: DataView, dpr = 1, options?: BlobPropertyBag)
lib/png.ts:147
Function
ExportButton
({ setHtml }: { setHtml: (html: string) => void })
app/page.tsx:54
Function
Home
()
app/page.tsx:16
Function
POST
(request: Request)
app/api/toHtml/route.ts:8
Function
PreviewModal
({ html, setHtml, }: { html: string | null; setHtml: (html: string | null) => void; })
components/PreviewModal.tsx:9
Function
RootLayout
({ children, }: { children: React.ReactNode; })
app/layout.tsx:12
Function
TabButton
({ active, ...buttonProps }: TabButtonProps)
components/PreviewModal.tsx:99
Function
listener
(e: KeyboardEvent)
app/page.tsx:20
Method
parsePhys
(view: DataView, offset: number)
lib/png.ts:134