cutting layout renders at the most basic level
This commit is contained in:
parent
150b9f49d2
commit
6dbe15a862
7 changed files with 76 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue