-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
Description
Since devicePixelRatio is not defined for Web Workers, it results in an error when enabled.
I suggest removing this option and providing a new one that accepts a scale factor number. If a number is not provided, it should fall back to the current value of 1 + ((window.devicePixelRatio - 1) * 0.75). In environments where DPR is not defined, it is simply 1. I would name it something like scaleFactor, renderScale or canvasScale (debatable).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status