From 406a1151b73d9af48fc49d980c2d61855fa4859c Mon Sep 17 00:00:00 2001 From: akram-r <143160180+akram-r@users.noreply.github.com> Date: Wed, 28 Feb 2024 18:35:08 +0530 Subject: [PATCH 1/2] removed multiplier --- src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index a2bb895..76f4910 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -447,10 +447,10 @@ function App() { }; offscreenCanvas.loadFromJSON(adjustedStateJSON, () => { offscreenCanvas.renderAll(); - const multiplier = getMultiplierFor4K(artboardDimensions.width, artboardDimensions.height); + // const multiplier = getMultiplierFor4K(artboardDimensions.width, artboardDimensions.height); const config = { format: 'png', - multiplier, + // multiplier, }; // render the offscreen canvas to a dataURL const dataURL = offscreenCanvas.toDataURL(config); From 237ae97c170098f4d9afb4cc2eb8ffed1195fd73 Mon Sep 17 00:00:00 2001 From: akram Date: Wed, 28 Feb 2024 18:39:54 +0530 Subject: [PATCH 2/2] fixed build --- src/App.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 76f4910..04c9a95 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -67,7 +67,7 @@ import ZoomMenu from './modules/zoom'; import store from './store'; import { RootState } from './store/rootReducer'; import { Artboard, FixedArray, colorSpaceType, guidesRefType } from './types'; -import { generateId, getMultiplierFor4K } from './utils'; +import { generateId } from './utils'; // lazy load demo json import workflows from './data/workflows.json'; import WorkflowComponent from './modules/workflows'; @@ -447,10 +447,8 @@ function App() { }; offscreenCanvas.loadFromJSON(adjustedStateJSON, () => { offscreenCanvas.renderAll(); - // const multiplier = getMultiplierFor4K(artboardDimensions.width, artboardDimensions.height); const config = { format: 'png', - // multiplier, }; // render the offscreen canvas to a dataURL const dataURL = offscreenCanvas.toDataURL(config);