zhengyiming
5 天以前 f3d746181155c223bccdafcbbc45041e944e5eaa
src/fabric-editor/index.vue
@@ -72,6 +72,7 @@
import './plugin/fabric-history';
import { MyHistoryPlugin } from './plugin/MyHistoryPlugin';
import { TemplateParamExtensionKey } from './customObject';
import { CanvasHeight, CanvasWidth } from './constants';
const route = useRoute();
const id = (route.params.id as string) ?? '';
@@ -109,8 +110,8 @@
    controlsAboveOverlay: true, // 超出clipPath后仍然展示控制条
    // imageSmoothingEnabled: false, // 解决文字导出后不清晰问题
    preserveObjectStacking: true, // 当选择画布中的对象时,让对象不在顶层。
    width: 595,
    height: 842,
    width: CanvasWidth,
    height: CanvasHeight,
  });
  console.log('canvas: ', canvas);