tsur / canvasjs

39 stars 40 forks source link

devicePixelBackingStoreRatio missing #13

Open Toolika11 opened 6 years ago

Toolika11 commented 6 years ago

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

emiel187 commented 6 years ago

Having the same issue here

Hectopascals commented 5 years ago

Was anyone able to resolve this issue?

msavitskiy commented 5 years ago

+1

harshit777 commented 5 years ago

Same issue

swordwielder commented 4 years ago

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

Same issue.

matthewdschulman commented 4 years ago

+1

scrajesh commented 4 years ago

+1

PodaruDragos commented 4 years ago

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

tsur commented 4 years ago

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

PodaruDragos commented 4 years ago

@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.