MCPcopy Create free account
hub / github.com/rough-stuff/wired-elements / _didRender

Method _didRender

packages/wired-input/wired-input.js:146–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144 }
145
146 _didRender() {
147 const svg = this.shadowRoot.getElementById('svg');
148 this._clearNode(svg);
149 const s = this.getBoundingClientRect();
150 svg.setAttribute("width", s.width);
151 svg.setAttribute("height", s.height);
152 wired.rectangle(svg, 0, 0, s.width, s.height);
153 this.classList.remove('pending');
154 if (typeof this._value !== 'undefined') {
155 this.input.value = this._value;
156 delete this._value;
157 }
158 }
159}
160customElements.define('wired-input', WiredInput);

Callers

nothing calls this directly

Calls 2

_clearNodeMethod · 0.95
rectangleMethod · 0.80

Tested by

no test coverage detected