1
0
Fork 0

cutting layout renders at the most basic level

This commit is contained in:
Enoch Riese 2023-02-16 15:21:55 -06:00
parent 150b9f49d2
commit 6dbe15a862
7 changed files with 76 additions and 7 deletions

View file

@ -18,7 +18,7 @@ export const Draft = (props) => {
const svgRef = useRef(null)
if (!patternProps) return null
// keep a fresh copy of the layout because we might manipulate it without saving to the gist
let layout = draft.settings[0].layouts?.printingLayout || {
let layout = draft.settings[0].layouts?.[layoutType] || {
...patternProps.autoLayout,
width: patternProps.width,
height: patternProps.height,