MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _nodeLabel

Method _nodeLabel

web/observatory/js/main.js:306–309  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

304 // else auto-layout — spread the N reporting nodes evenly around the room so
305 // they don't overlap. Hardware-agnostic; only node id matters.
306 _nodeRoomPos(id, idx, total) {
307 const tag = this.settings.nodePositions && this.settings.nodePositions[id];
308 if (tag && Number.isFinite(+tag.x) && Number.isFinite(+tag.y)) {
309 return { x: +tag.x, y: +tag.y, z: Number.isFinite(+tag.z) ? +tag.z : 1 };
310 }
311 return this._autoLayoutPos(idx, total);
312 }

Callers 1

_makeNodeMarkerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected