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); }; } },