MCPcopy
hub / github.com/opentrace/opentrace / labelInvScale

Method labelInvScale

ui/src/components/pixi/PixiRenderer.ts:818–820  ·  view source on GitHub ↗

* Inverse-scale for labels only — always fully cancels viewport zoom * (equivalent to exponent=1) so labels stay at constant screen-pixel size. * The separate labelScaleMultiplier controls user-adjustable sizing.

()

Source from the content-addressed store, hash-verified

816 * The separate labelScaleMultiplier controls user-adjustable sizing.
817 */
818 private labelInvScale(): number {
819 return 1 / this.vp.scale;
820 }
821
822 /**
823 * World-space gap from a node's sprite center to the left edge of its

Callers 6

applyCounterScaleMethod · 0.95
setNodeVisibilityMethod · 0.95
applyVisualsMethod · 0.95
createLabelMethod · 0.95
runLabelCullMethod · 0.95
update3DMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected