feat: 添加笔刷指示器功能,支持动态显示当前笔刷大小和颜色;更新图层可擦除状态逻辑
This commit is contained in:
@@ -225,10 +225,11 @@ export class LayerManager {
|
||||
|
||||
// 图层状态决定交互性
|
||||
if (layer.isBackground || obj.isBackground || layer.isFixed) {
|
||||
//|| layer.isFixed
|
||||
// 背景层永远不可选择和擦除
|
||||
obj.selectable = false;
|
||||
obj.evented = false;
|
||||
obj.erasable = false;
|
||||
obj.erasable = !layer.locked;
|
||||
} else if (layer.locked) {
|
||||
// 锁定图层不可交互和擦除
|
||||
obj.selectable = false;
|
||||
|
||||
Reference in New Issue
Block a user