MCPcopy Index your code
hub / github.com/NikLever/ThreeJS-PathEditor / scalePathValueToScreen

Method scalePathValueToScreen

graph.js:352–356  ·  view source on GitHub ↗
( value )

Source from the content-addressed store, hash-verified

350 }
351
352 scalePathValueToScreen( value ){
353 const xOrg = this.canvas.width * this.config.yAxis;
354 const scale = (this.canvas.width * 0.95 - xOrg)/ this.config.xMax;
355 return value * scale;
356 }
357
358 render( nodes, activeNode, activeCtrl, ghosts ){
359 this.context.clearRect( 0, 0, this.canvas.width, this.canvas.height );

Callers 2

drawNodeMethod · 0.95
drawGhostsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected