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

Function createSelectionSnapshot

src/ink/overlayInvalidation.test.ts:13–23  ·  view source on GitHub ↗
(
  startCol: number,
  startRow: number,
  endCol: number,
  endRow: number,
)

Source from the content-addressed store, hash-verified

11} from './selection.js'
12
13function createSelectionSnapshot(
14 startCol: number,
15 startRow: number,
16 endCol: number,
17 endRow: number,
18) {
19 const selection = createSelectionState()
20 startSelection(selection, startCol, startRow)
21 updateSelection(selection, endCol, endRow)
22 return captureOverlaySnapshot(selection, '')
23}
24
25describe('shouldInvalidateOverlayFrame', () => {
26 it('does not invalidate when a selection first appears', () => {

Callers 1

Calls 4

createSelectionStateFunction · 0.85
startSelectionFunction · 0.85
updateSelectionFunction · 0.85
captureOverlaySnapshotFunction · 0.85

Tested by

no test coverage detected