added multiplication by device pixel ratio to render #258

Merged
franknoirot merged 2 commits from franknoirot/239 into main 2021-03-17 09:45:05 +01:00
Showing only changes of commit 8efae75699 - Show all commits

View File

@@ -7,7 +7,6 @@ let lastCameraSettings = 'INIT'
export const render = async ({ code, settings }) => {
const pixelRatio = window.devicePixelRatio || 1
console.log({ pixelRatio })
const size = settings.viewerSize
? {
x: Math.round(settings.viewerSize?.width * pixelRatio),