From 72cbd4990dd55706664f1cc9c185f3f514e32181 Mon Sep 17 00:00:00 2001 From: Brandon Tilley Date: Mon, 23 Dec 2013 15:02:27 -0800 Subject: [PATCH] Update rotating example --- site/public/examples/basic.ejs | 9 +++++---- site/public/examples/basic.js | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) 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); })();