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

Function overlap

graph-ui/tools/lib/readability.mjs:800–804  ·  view source on GitHub ↗
(other)

Source from the content-addressed store, hash-verified

798 }
799 const trigger = document.querySelector(`[data-hint-index="${at}"]`);
800 const overlap = (other) => {
801 const width = Math.min(rect.right, other.right) - Math.max(rect.left, other.left);
802 const height = Math.min(rect.bottom, other.bottom) - Math.max(rect.top, other.top);
803 return width > 1 && height > 1 ? Math.round(width * height) : 0;
804 };
805 const covers = [];
806 const candidates = [...document.querySelectorAll(protectSelector)];
807 if (trigger !== null) {

Callers 1

tooltipCoverFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected