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

Method constructor

src/ink/output.ts:210–220  ·  view source on GitHub ↗
(options: Options)

Source from the content-addressed store, hash-verified

208 private charCache: Map<string, ClusteredChar[]>
209
210 constructor(options: Options) {
211 const { width, height, stylePool, screen } = options
212
213 this.width = width
214 this.height = height
215 this.stylePool = stylePool
216 this.screen = screen
217 this.charCache = getSharedCharCache(stylePool)
218
219 resetScreen(screen, width, height)
220 }
221
222 /**
223 * Reuse this Output for a new frame. Zeroes the screen buffer, clears

Callers

nothing calls this directly

Calls 2

getSharedCharCacheFunction · 0.85
resetScreenFunction · 0.85

Tested by

no test coverage detected