Skip to content

Commit

Permalink
Merge pull request viveknigam3003#67 from viveknigam3003/fix-multiplier
Browse files Browse the repository at this point in the history
removed multiplier
  • Loading branch information
akram-r authored Feb 28, 2024
2 parents 730129e + 237ae97 commit 33429b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 33429b2

Please sign in to comment.