Skip to content

Commit

Permalink
fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
akram-r committed Feb 28, 2024
1 parent 406a115 commit 237ae97
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 237ae97

Please sign in to comment.