diff --git a/site/public/examples/basic.ejs b/site/public/examples/basic.ejs index c744a30..5405e5c 100644 --- a/site/public/examples/basic.ejs +++ b/site/public/examples/basic.ejs @@ -19,10 +19,11 @@ planet.loadPlugin(planetaryjs.plugins.earth({ topojson: { file: '/world-110m.json' } })); - // Scale the planet's radius to half the canvas' size... - planet.projection.scale(canvas.width / 2); - // ...and move the planet to the center of the canvas. - planet.projection.translate([canvas.width / 2, canvas.height / 2]); + // Scale the planet's radius to half the canvas' size + // and move it to the center of the canvas. + planet.projection + .scale(canvas.width / 2) + .translate([canvas.width / 2, canvas.height / 2]); planet.draw(canvas); })(); diff --git a/site/public/examples/basic.js b/site/public/examples/basic.js index afe452a..93dd1e5 100644 --- a/site/public/examples/basic.js +++ b/site/public/examples/basic.js @@ -6,9 +6,10 @@ planet.loadPlugin(planetaryjs.plugins.earth({ topojson: { file: '/world-110m.json' } })); - // Scale the planet's radius to half the canvas' size... - planet.projection.scale(canvas.width / 2); - // ...and move the planet to the center of the canvas. - planet.projection.translate([canvas.width / 2, canvas.height / 2]); + // Scale the planet's radius to half the canvas' size + // and move it to the center of the canvas. + planet.projection + .scale(canvas.width / 2) + .translate([canvas.width / 2, canvas.height / 2]); planet.draw(canvas); })();