fix: 修复多个已知问题

This commit is contained in:
bighuixiang
2025-06-29 23:29:47 +08:00
parent 6fc2a8fc57
commit 4a95f27966
41 changed files with 2266 additions and 351 deletions

View File

@@ -248,6 +248,23 @@ export function loadImageUrlToLayer(
...options,
});
if (options.imageMode) {
imageModeHandler({
imageMode: options.imageMode,
newImage: fabricImage,
canvasWidth: maxWidth,
canvasHeight: maxHeight,
});
// 默认居中
fabricImage.set({
originX: "center",
originY: "center",
left: canvas.width / 2,
top: canvas.height / 2,
});
}
// 创建图片图层
const layerId = await createImageLayer({
layerManager,