amcharts / export

Apache License 2.0
56 stars 33 forks source link

Error: canvas area exceeds the maximum limit initial Retina Scaling #61

Closed kby799 closed 7 years ago

kby799 commented 7 years ago

I keep getting white screen when try to download PNG with iPhone7 and mobile simulators, chrome devtool has pointed _initRetinaDisplay(). Would you be able to have a look at it please?

Version that I am using is 1.6.2

kby799 commented 7 years ago

I have similar problem to #3152 from kangax/fabric.js.

My work around is to comment out these lines;

this.lowerCanvasEl.setAttribute('width', this.width * fabric.devicePixelRatio);
this.lowerCanvasEl.setAttribute('height', this.height * fabric.devicePixelRatio);

The function _initRetinaScaling called twice and on the second time the function being called, the width and height had scaled up from first time by fabric.devicePixelRatio.

maertz commented 7 years ago

I've updated the plugin, please use the most recent version of the plugin and it's dependencies. I had to ignore the "multiplier" option from fabricJS for IOS devices which has the same effect as yours. My tests were fine, let me know if it works on your side.

kby799 commented 7 years ago

@maertz Thanks Bny, it worked great on the simulators and iPhone 6. Now just waiting for our tester's comment.

maertz commented 7 years ago

Any news?

kby799 commented 7 years ago

Sorry, things are keeping pile up. Anyway our tester got back and it was working. Thank you.