This commit is contained in:
李志鹏
2026-04-08 11:06:31 +08:00
parent 6f0780ac2e
commit 41e530d33d
5 changed files with 55 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import { canvasConfig } from "../config/canvasConfig";
export const createCanvas = (elementId, options = {}) => {
// Create the canvas instance
const canvas = new fabric.Canvas(elementId, {
controlsAboveOverlay: true,// 控制面板在图层之上
enableRetinaScaling: canvasConfig.enableRetinaScaling,
renderOnAddRemove: false,
preserveObjectStacking: true, // 保持对象堆叠顺序