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

Method forEachDecorationAtCell

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

Source from the content-addressed store, hash-verified

5579 }
5580 *getDecorationsAtCell(e3, t3, i3) {
5581 let s3 = 0, r2 = 0;
5582 for (const n2 of this._decorations.getKeyIterator(t3)) s3 = n2.options.x ?? 0, r2 = s3 + (n2.options.width ?? 1), e3 >= s3 && e3 < r2 && (!i3 || (n2.options.layer ?? "bottom") === i3) && (yield n2);
5583 }
5584 forEachDecorationAtCell(e3, t3, i3, s3) {
5585 this._decorations.forEachByKey(t3, ((t4) => {
5586 a = t4.options.x ?? 0, h = a + (t4.options.width ?? 1), e3 >= a && e3 < h && (!i3 || (t4.options.layer ?? "bottom") === i3) && s3(t4);
5587 }));
5588 }

Callers 2

createRowMethod · 0.80
resolveMethod · 0.80

Calls 1

forEachByKeyMethod · 0.80

Tested by

no test coverage detected