12345上山打老虎

This commit is contained in:
lzp
2026-03-27 09:29:29 +08:00
parent 2b34e45b2d
commit c4df014c03
7 changed files with 51 additions and 12 deletions

View File

@@ -136,10 +136,11 @@ export class LayerManager {
copyLayerById(id) {
const object = this.canvasManager.getObjectById(id)
if (!object) return console.warn('复制图层失败对象不存在ID:', id)
this.canvasManager.discardActiveObject()
cloneObjects([object]).then(objects => {
const newObject = objects[0]
const info = JSON.parse(JSON.stringify(newObject.info))
info.id = createId("image")
info.id = createId("copylayer")
// info.name = info.name
newObject.set({
top: newObject.top + 15,