canvasjs icon indicating copy to clipboard operation
canvasjs copied to clipboard

devicePixelBackingStoreRatio missing

Open Toolika11 opened this issue 7 years ago • 10 comments

../helpers/utils' does not contain an export named 'devicePixelBackingStoreRatio here -> https://github.com/tsur/canvasjs/blob/master/src/core/charts.js#L32

Toolika11 avatar Oct 23 '18 06:10 Toolika11

Having the same issue here

emiel187 avatar Oct 24 '18 16:10 emiel187

Was anyone able to resolve this issue?

Hectopascals avatar Dec 10 '18 20:12 Hectopascals

+1

savimcio avatar Oct 14 '19 18:10 savimcio

Same issue

harshit777 avatar Oct 21 '19 10:10 harshit777

Attempted import error: 'devicePixelBackingStoreRatio' is not exported from '../helpers/utils'.

Same issue.

swordwielder avatar Nov 13 '19 16:11 swordwielder

+1

matthewdschulman avatar Nov 30 '19 01:11 matthewdschulman

+1

scrajesh avatar Dec 02 '19 12:12 scrajesh

this is really easy to fix.. just export the devicePixelBackingStoreRatio like

export var devicePixelBackingStoreRatio = optimizeForHiDPI ? devicePixelRatio / backingStoreRatio : 1;

this line https://github.com/tsur/canvasjs/blob/master/src/helpers/utils.js#L716

PodaruDragos avatar Dec 05 '19 10:12 PodaruDragos

on latest version 1.8.3 the import error should be gone 😅, thanks!

tsur avatar Dec 05 '19 20:12 tsur

@tsur what exactly is this library ? .. is this the initial library before the comercial canvasjs was launched ?

Do you plan to add features to this ? I am willing to help if that's the case.

PodaruDragos avatar Dec 06 '19 13:12 PodaruDragos