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

Function captureOverlaySnapshot

src/ink/overlayInvalidation.ts:16–32  ·  view source on GitHub ↗
(
  selection: SelectionState,
  searchQuery: string,
)

Source from the content-addressed store, hash-verified

14}
15
16export function captureOverlaySnapshot(
17 selection: SelectionState,
18 searchQuery: string,
19): OverlaySnapshot {
20 const bounds = selectionBounds(selection)
21 return {
22 selection: bounds
23 ? {
24 startCol: bounds.start.col,
25 startRow: bounds.start.row,
26 endCol: bounds.end.col,
27 endRow: bounds.end.row,
28 }
29 : null,
30 searchQuery,
31 }
32}
33
34function containsSelection(
35 outer: OverlaySelectionBounds | null,

Callers 3

createSelectionSnapshotFunction · 0.85
onRenderMethod · 0.85

Calls 1

selectionBoundsFunction · 0.85

Tested by 1

createSelectionSnapshotFunction · 0.68