MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript /

Class

code/draw_layout.js:82–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80// that the circles drawn around nodes’ center points don't get cut off.
81
82class Scale {
83 constructor(layout, width, height) {
84 let xs = layout.map(node => node.x);
85 let ys = layout.map(node => node.y);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected