MCPcopy Index your code
hub / github.com/codeaashu/claude-code / updateCompositionElements

Method updateCompositionElements

src/server/web/public/terminal.js:1161–1171  ·  view source on GitHub ↗
(e3)

Source from the content-addressed store, hash-verified

1159 }), 0);
1160 }
1161 updateCompositionElements(e3) {
1162 if (this._isComposing) {
1163 if (this._bufferService.buffer.isCursorInViewport) {
1164 const e4 = Math.min(this._bufferService.buffer.x, this._bufferService.cols - 1), t3 = this._renderService.dimensions.css.cell.height, i3 = this._bufferService.buffer.y * this._renderService.dimensions.css.cell.height, s3 = e4 * this._renderService.dimensions.css.cell.width;
1165 this._compositionView.style.left = s3 + "px", this._compositionView.style.top = i3 + "px", this._compositionView.style.height = t3 + "px", this._compositionView.style.lineHeight = t3 + "px", this._compositionView.style.fontFamily = this._optionsService.rawOptions.fontFamily, this._compositionView.style.fontSize = this._optionsService.rawOptions.fontSize + "px";
1166 const r2 = this._compositionView.getBoundingClientRect();
1167 this._textarea.style.left = s3 + "px", this._textarea.style.top = i3 + "px", this._textarea.style.width = Math.max(r2.width, 1) + "px", this._textarea.style.height = Math.max(r2.height, 1) + "px", this._textarea.style.lineHeight = r2.height + "px";
1168 }
1169 e3 || setTimeout((() => this.updateCompositionElements(true)), 0);
1170 }
1171 }
1172 };
1173 t2.CompositionHelper = h = s2([r(2, o.IBufferService), r(3, o.IOptionsService), r(4, o.ICoreService), r(5, n.IRenderService)], h);
1174 }, 9806: (e2, t2) => {

Callers 2

_bindKeysMethod · 0.80
compositionupdateMethod · 0.80

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected