深度画布键盘事件-撤回功能
This commit is contained in:
@@ -53,6 +53,17 @@ export class LayerManager {
|
||||
// 更新图层列表
|
||||
updateLayers() {
|
||||
this.layers.value = this.canvasManager.getObjects().filter((v: any) => !!v?.info?.id).reverse()
|
||||
window["layers"] = this.layers
|
||||
}
|
||||
// 更新图层参数
|
||||
updateLayerParams(layer, keys = []) {
|
||||
this.layers.value.forEach((item: any) => {
|
||||
if (item.info.id === layer.info.id) {
|
||||
keys.forEach((key: string) => {
|
||||
item.set(key, layer[key])
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/** 设置图层位置-不设置默认居中 */
|
||||
@@ -204,4 +215,5 @@ export class LayerManager {
|
||||
})
|
||||
})
|
||||
}
|
||||
dispose() {}
|
||||
}
|
||||
Reference in New Issue
Block a user