)
}
diff --git a/sites/shared/components/workbench/layout/draft/index.mjs b/sites/shared/components/workbench/layout/draft/index.mjs
index 3f01508dba0..8e353305bce 100644
--- a/sites/shared/components/workbench/layout/draft/index.mjs
+++ b/sites/shared/components/workbench/layout/draft/index.mjs
@@ -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,
diff --git a/sites/shared/components/workbench/layout/print/plugin.mjs b/sites/shared/components/workbench/layout/layout-part-plugin.mjs
similarity index 98%
rename from sites/shared/components/workbench/layout/print/plugin.mjs
rename to sites/shared/components/workbench/layout/layout-part-plugin.mjs
index e3ab04139d4..b6403818a03 100644
--- a/sites/shared/components/workbench/layout/print/plugin.mjs
+++ b/sites/shared/components/workbench/layout/layout-part-plugin.mjs
@@ -50,6 +50,14 @@ export const pagesPlugin = ({ size = 'a4', ...settings }) => {
return basePlugin({ ...settings, sheetWidth, sheetHeight })
}
+export const fabricPlugin = (settings) => {
+ return basePlugin({
+ ...settings,
+ partName: 'fabric',
+ responsiveColumns: false,
+ })
+}
+
/** check if there is anything to render on the given section of the svg so that we can skip empty pages */
const doScanForBlanks = (stacks, layout, x, y, w, h) => {
let hasContent = false
@@ -92,7 +100,7 @@ const doScanForBlanks = (stacks, layout, x, y, w, h) => {
* sheetHeight: the height of the helper part
* boundary: should the helper part calculate its boundary?
* responsiveColumns: should the part make more columns if the pattern exceed its width? (for pages you want this, for fabric you don't)
- * printStyle: hould the pages be rendered for printing or for screen viewing?
+ * printStyle: should the pages be rendered for printing or for screen viewing?
* */
const basePlugin = ({
sheetWidth,
diff --git a/sites/shared/components/workbench/layout/print/index.mjs b/sites/shared/components/workbench/layout/print/index.mjs
index 8ec25143dfe..3c5412649e7 100644
--- a/sites/shared/components/workbench/layout/print/index.mjs
+++ b/sites/shared/components/workbench/layout/print/index.mjs
@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'
import { useTranslation } from 'next-i18next'
import { PrintLayoutSettings } from './settings.mjs'
import { Draft } from '../draft/index.mjs'
-import { pagesPlugin } from './plugin.mjs'
+import { pagesPlugin } from '../layout-part-plugin.mjs'
import {
handleExport,
defaultPdfSettings,
diff --git a/sites/shared/components/wrappers/workbench.mjs b/sites/shared/components/wrappers/workbench.mjs
index ed84760bf76..1339e4ce37f 100644
--- a/sites/shared/components/wrappers/workbench.mjs
+++ b/sites/shared/components/wrappers/workbench.mjs
@@ -119,7 +119,9 @@ export const WorkbenchWrapper = ({
// Generate the draft here so we can pass it down to both the view and the options menu
let draft = false
- if (['draft', 'logs', 'test', 'printingLayout'].indexOf(gist._state?.view) !== -1) {
+ if (
+ ['draft', 'logs', 'test', 'printingLayout', 'cuttingLayout'].indexOf(gist._state?.view) !== -1
+ ) {
gist.embed = true
// get the appropriate layout for the view
const layout = gist.layouts?.[gist._state.view] || gist.layout || true