MCPcopy
hub / github.com/codeaashu/claude-code / f

Function f

src/server/web/public/terminal.js:7948–7953  ·  view source on GitHub ↗
(e3, t3, i3, s3)

Source from the content-addressed store, hash-verified

7946 }
7947 clear() {
7948 this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height), this.currentRow.x = 0, this.currentRow.y = 0, this.currentRow.height = 0, this.fixedRows.length = 0, this.version++;
7949 }
7950 }
7951 function f(e3, t3, i3, s3) {
7952 const r2 = t3.rgba >>> 24, o2 = t3.rgba >>> 16 & 255, n2 = t3.rgba >>> 8 & 255, a2 = i3.rgba >>> 24, h2 = i3.rgba >>> 16 & 255, l2 = i3.rgba >>> 8 & 255, c2 = Math.floor((Math.abs(r2 - a2) + Math.abs(o2 - h2) + Math.abs(n2 - l2)) / 12);
7953 let d2 = true;
7954 for (let t4 = 0; t4 < e3.data.length; t4 += 4) e3.data[t4] === r2 && e3.data[t4 + 1] === o2 && e3.data[t4 + 2] === n2 || s3 && Math.abs(e3.data[t4] - r2) + Math.abs(e3.data[t4 + 1] - o2) + Math.abs(e3.data[t4 + 2] - n2) < c2 ? e3.data[t4 + 3] = 0 : d2 = false;
7955 return d2;
7956 }

Callers 12

_drawToCacheMethod · 0.70
applyEditToFileFunction · 0.50
maybeFunction · 0.50
memoizedFunction · 0.50
REPLFunction · 0.50
withFixtureFunction · 0.50
withVCRFunction · 0.50
mapMessagesFunction · 0.50
mapValuesDeepFunction · 0.50
mapAssistantMessageFunction · 0.50
withStreamingVCRFunction · 0.50
withTokenCountVCRFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected