MCPcopy Create free account
hub / github.com/Noumena-Network/code / snapshotFrame

Function snapshotFrame

src/ink/renderTrace.ts:92–99  ·  view source on GitHub ↗
(frame: Frame)

Source from the content-addressed store, hash-verified

90}
91
92function snapshotFrame(frame: Frame): FrameSnapshot {
93 return {
94 height: frame.screen.height,
95 width: frame.screen.width,
96 cursor: { x: frame.cursor.x, y: frame.cursor.y },
97 viewportHeight: frame.viewport.height,
98 }
99}
100
101export function serializeOptimizedToAnsiForTesting(diff: Diff): string {
102 let buf = ''

Callers 1

captureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected