MCPcopy Create free account
hub / github.com/nodejs/node / _update

Method _update

deps/v8/tools/system-analyzer/view/tool-tip.mjs:36–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 _update() {
37 if (!this._targetNode || this._isHidden) return;
38 if (!this._targetNode.parentNode) return;
39 const rect = this._targetNode.getBoundingClientRect();
40 rect.x += rect.width / 2;
41 let atRight = this._useRight(rect.x);
42 let atBottom = this._useBottom(rect.y);
43 if (atBottom) rect.y += rect.height;
44 this._setPosition(rect, atRight, atBottom);
45 this.requestUpdate(true);
46 }
47
48 set data({content, positionOrTargetNode, immediate}) {
49 if (immediate) {

Callers

nothing calls this directly

Calls 4

_useRightMethod · 0.95
_useBottomMethod · 0.95
_setPositionMethod · 0.95
requestUpdateMethod · 0.45

Tested by

no test coverage detected