MCPcopy Create free account

hub / github.com/RLabs-Inc/sveltui / functions

Functions174 in github.com/RLabs-Inc/sveltui

↓ 36 callersMethodwrite
* Add data to the buffer
src/utils/bun-output.ts:135
↓ 34 callersFunctionwriteStdout
(data: string | Uint8Array)
src/utils/bun-output.ts:16
↓ 19 callersMethodsetCell
(x: number, y: number, cell: Partial<Cell>, clipRect?: ClipRect)
src/core/render/renderer.svelte.ts:94
↓ 15 callersMethodsetPixel
* Set a pixel at (x, y) in pixel coordinates
src/canvas/PixelBuffer.ts:150
↓ 12 callersMethoderror
(message)
scripts/build.mjs:70
↓ 9 callersFunctiongetBorderSet
(style: number)
src/core/render/renderer.svelte.ts:117
↓ 8 callersFunctionmount
(rootComponent: any, options: MountOptions = {})
src/mount.svelte.ts:22
↓ 8 callersMethodtoString
* Get the current buffer content without clearing
src/utils/bun-output.ts:161
↓ 7 callersMethodget
* Get component index at a position
src/input/mouse.ts:67
↓ 6 callersFunctioncolorToHex
* Convert Color to 0xRRGGBB format
src/canvas/PixelBuffer.ts:51
↓ 5 callersMethodclear
* Clear the grid
src/input/mouse.ts:98
↓ 5 callersMethodinfo
(message)
scripts/build.mjs:58
↓ 5 callersFunctionmeasureText
(text: string)
src/utils/bun-text.ts:52
↓ 5 callersMethodset
* Set a component index at a position
src/input/mouse.ts:59
↓ 4 callersMethoddebug
(message)
scripts/build.mjs:74
↓ 4 callersMethodgetPixel
* Get a pixel at (x, y) in pixel coordinates
src/canvas/PixelBuffer.ts:163
↓ 4 callersFunctiongetStringWidth
(text: string, countAnsi = false)
src/utils/bun-text.ts:22
↓ 4 callersFunctionparseColor
(input: ColorInput)
src/utils/bun-color.ts:39
↓ 4 callersMethodsuccess
(message)
scripts/build.mjs:62
↓ 4 callersFunctiontoANSI
(color: ColorInput, background = false)
src/utils/bun-color.ts:104
↓ 3 callersMethodbuild
()
scripts/build.mjs:122
↓ 3 callersFunctioncolorDistanceSq
* Calculate squared color distance (faster than sqrt)
src/canvas/PixelBuffer.ts:58
↓ 3 callersMethodcompile
(files)
scripts/build.mjs:231
↓ 3 callersFunctiongetEngine
()
src/core/state/engine.svelte.ts:234
↓ 3 callersMethodheader
(message)
scripts/build.mjs:52
↓ 3 callersFunctionintersectClipRects
(a: ClipRect, b: ClipRect)
src/core/render/renderer.svelte.ts:235
↓ 3 callersMethodremoveHandlers
* Remove handlers for a component
src/input/mouse.ts:301
↓ 3 callersFunctiontoRGB
( color: ColorInput )
src/utils/bun-color.ts:156
↓ 2 callersFunctionapplyTerminalProps
( node: any, props: TerminalLayoutProps, Yoga: any )
src/core/layout/yoga-props.ts:65
↓ 2 callersFunctionaverageColors
* Average multiple colors
src/canvas/PixelBuffer.ts:75
↓ 2 callersFunctioncleanup
()
src/input/keyboard.svelte.ts:143
↓ 2 callersMethodclear
* Clear the buffer to background color
src/canvas/PixelBuffer.ts:137
↓ 2 callersMethodcompileSvelte
(filepath)
scripts/build.mjs:292
↓ 2 callersMethodcompileSvelteTS
(filepath)
scripts/build.mjs:328
↓ 2 callersMethodcompileTypeScript
(filepath)
scripts/build.mjs:371
↓ 2 callersMethodcopyJavaScript
(filepath)
scripts/build.mjs:400
↓ 2 callersMethodfixImports
()
scripts/build.mjs:414
↓ 2 callersMethodgetCell
(x: number, y: number)
src/core/render/renderer.svelte.ts:107
↓ 2 callersFunctiongetColorCode
( color: number | undefined, background: boolean )
src/utils/bun-color.ts:198
↓ 2 callersFunctionluminance
* Calculate luminance for a color
src/canvas/PixelBuffer.ts:68
↓ 2 callersFunctionmixColors
( color1: ColorInput, color2: ColorInput, ratio = 0.5 )
src/utils/bun-color.ts:253
↓ 2 callersFunctionon
(handler: KeyHandler)
src/input/keyboard.svelte.ts:190
↓ 2 callersMethodresize
* Resize the buffer (clears content)
src/canvas/PixelBuffer.ts:366
↓ 2 callersFunctionsetTerminalSize
(width: number, height: number)
src/core/state/engine.svelte.ts:221
↓ 2 callersMethodsetupKeyboardHandlers
()
src/components/base-component.svelte.ts:166
↓ 2 callersMethodsetupMouseHandlers
()
src/components/base-component.svelte.ts:120
↓ 2 callersFunctionstripANSI
(text: string)
src/utils/bun-text.ts:37
↓ 2 callersMethodupdateLayoutProps
()
src/components/base-component.svelte.ts:109
↓ 2 callersMethodupdateProps
(newProps: Partial<ComponentProps>)
src/components/base-component.svelte.ts:242
↓ 2 callersFunctionwrapText
(text: string, width: number)
src/utils/bun-text.ts:61
↓ 1 callersFunctionallocateIndex
(id: string)
src/core/state/engine.svelte.ts:137
↓ 1 callersFunctionbuild
()
scripts/build-app.mjs:16
↓ 1 callersFunctionbumpVersion
(version, type)
scripts/bump.mjs:65
↓ 1 callersFunctioncalculateLayout
()
src/core/layout/layout.svelte.ts:81
↓ 1 callersMethodclean
()
scripts/build.mjs:141
↓ 1 callersFunctioncleanup
()
src/mount.svelte.ts:133
↓ 1 callersFunctioncleanupComponent
(index: number)
src/utils/hierarchy.svelte.ts:57
↓ 1 callersMethodclear
()
src/core/render/renderer.svelte.ts:82
↓ 1 callersFunctioncreateDebugPanel
()
src/debug/debug-panel.svelte.ts:66
↓ 1 callersFunctioncreatePackage
()
scripts/package-source.mjs:14
↓ 1 callersMethoddestroy
()
src/components/base-component.svelte.ts:292
↓ 1 callersFunctiondestroyDebugPanel
()
src/debug/debug-panel.svelte.ts:160
↓ 1 callersMethoddiscover
()
scripts/build.mjs:152
↓ 1 callersMethodformatBytes
(bytes)
scripts/build.mjs:585
↓ 1 callersFunctiongenerateDiff
(prev: FrameBuffer | null, next: FrameBuffer)
src/core/render/renderer.svelte.ts:646
↓ 1 callersMethodgetCell
* Get a terminal cell at (cellX, cellY) in cell coordinates * This converts a 2x2 pixel block to a quadrant character
src/canvas/PixelBuffer.ts:278
↓ 1 callersFunctiongetLastEvent
* Get the last keyboard event (reactive) * Reading this in an effect or template will re-run when a key is pressed
src/input/keyboard.svelte.ts:167
↓ 1 callersFunctiongetLastKey
* Get the last key pressed (reactive) * Shorthand for keyboard.lastEvent?.key
src/input/keyboard.svelte.ts:176
↓ 1 callersFunctioninitialize
()
src/input/keyboard.svelte.ts:94
↓ 1 callersFunctioninitializeLayout
()
src/core/layout/layout.svelte.ts:211
↓ 1 callersFunctioninitializeRenderer
()
src/core/render/renderer.svelte.ts:752
↓ 1 callersFunctionmeasureText
(text: string)
src/core/layout/layout.svelte.ts:37
↓ 1 callersMethodparseButton
* Parse button from SGR button code
src/input/mouse.ts:209
↓ 1 callersMethodparseModifiers
* Parse modifiers from SGR button code
src/input/mouse.ts:230
↓ 1 callersMethodparseSequence
* Parse SGR mouse sequence * Format: \x1b[<button>;<x>;<y>M (press) or m (release)
src/input/mouse.ts:170
↓ 1 callersMethodprogress
(current, total, message)
scripts/build.mjs:80
↓ 1 callersFunctionreleaseIndex
(id: string)
src/core/state/engine.svelte.ts:162
↓ 1 callersFunctionrenderComponent
( buffer: FrameBuffer, index: number, parentClip?: ClipRect, parentScrollY = 0, parentScrollX = 0 )
src/core/render/renderer.svelte.ts:288
↓ 1 callersMethodreport
()
scripts/build.mjs:471
↓ 1 callersMethodresize
* Resize the grid
src/input/mouse.ts:105
↓ 1 callersMethodscanPattern
(pattern, root, fileMap)
scripts/build.mjs:213
↓ 1 callersMethodsetHandlers
* Set handlers for a component
src/input/mouse.ts:294
↓ 1 callersFunctionsetupComponent
( index: number, canHaveChildren: boolean = false )
src/utils/hierarchy.svelte.ts:13
↓ 1 callersFunctionsetupYogaNode
(index: number)
src/core/layout/layout.svelte.ts:49
↓ 1 callersMethodtiming
()
scripts/build.mjs:89
↓ 1 callersMethodwatch
()
scripts/build.mjs:594
FunctionTestApp
()
src/test/test-simple-layout.ts:11
FunctionansiColors
(fg?: ColorInput, bg?: ColorInput)
src/utils/bun-color.ts:305
FunctionansiReset
()
src/utils/bun-color.ts:298
FunctionborderStyleFromNumber
(style: number)
src/utils/borders.ts:234
FunctionborderStyleToNumber
(style: BorderStyle)
src/utils/borders.ts:251
FunctioncenterText
(text: string, width: number)
src/utils/bun-text.ts:193
Methodclear
* Clear the buffer without writing
src/utils/bun-output.ts:143
Methodclear
* Clear all state
src/input/mouse.ts:412
FunctionclearFocus
()
src/input/keyboard.svelte.ts:251
FunctionclearScreen
()
src/utils/bun-output.ts:40
Methodconstructor
(type: number, props: ComponentProps, canHaveChildren = false)
src/components/base-component.svelte.ts:79
Methodconstructor
(cellWidth: number, cellHeight: number)
src/canvas/PixelBuffer.ts:116
Methodconstructor
(width: number, height: number)
src/core/render/renderer.svelte.ts:75
Methodconstructor
(width: number, height: number)
src/input/mouse.ts:50
next →1–100 of 174, ranked by callers