导出印花等所有信息

This commit is contained in:
李志鹏
2026-01-06 14:17:04 +08:00
parent 73aca07391
commit 466d278b29
12 changed files with 301 additions and 111 deletions

View File

@@ -1009,6 +1009,7 @@ defineExpose({
exportImage: ({
isContainBg = false, // 是否包含背景图层
isContainFixed = false, // 是否包含固定图层
isContainFixedOther = false, // 是否包含其他固定图层
isCropByBg = false, // 是否使用背景大小裁剪 // 如果为true则导出时裁剪到背景图层大小
layerId = "", // 导出具体图层ID
layerIdArray = [], // 导出多个图层ID数组
@@ -1018,6 +1019,7 @@ defineExpose({
return canvasManager.exportImage({
isContainBg,
isContainFixed,
isContainFixedOther,
isCropByBg,
layerId,
layerIdArray,
@@ -1047,6 +1049,14 @@ defineExpose({
return result;
},
/**
* 导出所有信息
* @returns {Object} 包含所有图层信息的对象
*/
exportAllInfo: () => {
return canvasManager.exportAllInfo();
},
/**
* 拖拽排序图层
* @param {number} oldIndex 原索引