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

Method _createElement

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

Source from the content-addressed store, hash-verified

958 this._refreshStyle(e3), this._dimensionsChanged && this._refreshXPosition(e3);
959 }
960 _createElement(e3) {
961 var _a;
962 const t3 = this._coreBrowserService.mainDocument.createElement("div");
963 t3.classList.add("xterm-decoration"), t3.classList.toggle("xterm-decoration-top-layer", "top" === ((_a = e3 == null ? void 0 : e3.options) == null ? void 0 : _a.layer)), t3.style.width = `${Math.round((e3.options.width || 1) * this._renderService.dimensions.css.cell.width)}px`, t3.style.height = (e3.options.height || 1) * this._renderService.dimensions.css.cell.height + "px", t3.style.top = (e3.marker.line - this._bufferService.buffers.active.ydisp) * this._renderService.dimensions.css.cell.height + "px", t3.style.lineHeight = `${this._renderService.dimensions.css.cell.height}px`;
964 const i3 = e3.options.x ?? 0;
965 return i3 && i3 > this._bufferService.cols && (t3.style.display = "none"), this._refreshXPosition(e3, t3), t3;
966 }
967 _refreshStyle(e3) {
968 const t3 = e3.marker.line - this._bufferService.buffers.active.ydisp;
969 if (t3 < 0 || t3 >= this._bufferService.rows) e3.element && (e3.element.style.display = "none", e3.onRenderEmitter.fire(e3.element));

Callers 1

_refreshStyleMethod · 0.80

Calls 3

toggleMethod · 0.80
_refreshXPositionMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected