From 05adeb05e717306274cc47a29245626a1e1d423c Mon Sep 17 00:00:00 2001 From: Masaya Nakamura Date: Thu, 9 Feb 2017 22:36:52 +0900 Subject: [PATCH 1/2] Fix typo: use -> us --- components/sections/whatis/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/sections/whatis/index.js b/components/sections/whatis/index.js index 11593167..8a1ff9ce 100644 --- a/components/sections/whatis/index.js +++ b/components/sections/whatis/index.js @@ -146,7 +146,7 @@ var Whatis = React.createClass({

So let's look at that in action: the following graphic is interactive in that you can use your up and down arrow keys to increase or decrease the interpolation ratio, to see what happens. We start - with three points, which gives us two lines. Linear interpolation over those lines gives use two + with three points, which gives us two lines. Linear interpolation over those lines gives us two points, between which we can again perform linear interpolation, yielding a single point. And that point —and all points we can form in this way for all ratios taken together— form our Bézier curve:

From 8e8d09e8258111258abdf986fbf13d1dfcdfab7e Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Sat, 11 Feb 2017 18:36:12 -0500 Subject: [PATCH 2/2] Make bezier canvases HiDPI-aware. (#47) * Make bezier canvases HiDPI-aware. * Fix HiDPI bugs and linting issues. * Address review comments. --- components/Graphic.jsx | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/components/Graphic.jsx b/components/Graphic.jsx index 06af4b53..5349e0fa 100644 --- a/components/Graphic.jsx +++ b/components/Graphic.jsx @@ -16,6 +16,7 @@ var Graphic = React.createClass({ defaultWidth: 275, defaultHeight: 275, + panelCount: 1, Bezier: Bezier, utils: Bezier.getUtils(), @@ -53,6 +54,10 @@ var Graphic = React.createClass({
{ image.loaded = true; - this.ctx.drawImage(image,offset.x,offset.y); + this.ctx.drawImage(image,offset.x,offset.y, image.width/dpr, image.height/dpr); }; } },