MCPcopy Create free account
hub / github.com/melonjs/melonJS / _syncPosition

Method _syncPosition

packages/debug-plugin/src/index.js:262–268  ·  view source on GitHub ↗

@private

()

Source from the content-addressed store, hash-verified

260
261 /** @private */
262 _syncPosition() {
263 const rect = video.renderer.getCanvas().getBoundingClientRect();
264 const s = this.panelWrap.style;
265 s.top = `${rect.top}px`;
266 s.left = `${rect.left}px`;
267 s.width = `${rect.width}px`;
268 }
269
270 /** @private */
271 _updatePanel() {

Callers 3

constructorMethod · 0.95
_buildPanelMethod · 0.95
showMethod · 0.95

Calls 1

getCanvasMethod · 0.80

Tested by

no test coverage detected