MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / inside

Function inside

graph-ui/src/ui/tooltip/tooltip-model.ts:220–224  ·  view source on GitHub ↗
(candidate: HintRect)

Source from the content-addressed store, hash-verified

218 const covers = (candidate: HintRect): number =>
219 protect.reduce((sum, rect) => sum + overlapArea(candidate, rect), 0);
220 const inside = (candidate: HintRect): boolean =>
221 candidate.x >= margin
222 && candidate.y >= margin
223 && candidate.x + candidate.width <= viewport.width - margin
224 && candidate.y + candidate.height <= viewport.height - margin;
225
226 const tries: HintRect[] = [];
227 for (const rect of protect) {

Callers 1

slideClearFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected