修改图层选择激活对象方法
This commit is contained in:
@@ -1219,6 +1219,10 @@ export class LayerManager {
|
||||
}
|
||||
// 切换到选择模式
|
||||
this?.toolManager?.setTool(OperationType.SELECT);
|
||||
if(objects.length === 1) {
|
||||
this.canvas.setActiveObject(objects[0]);
|
||||
return objects[0];
|
||||
}
|
||||
// 创建一个新的活动选择组
|
||||
const activeSelection = new fabric.ActiveSelection(objects, {
|
||||
canvas: this.canvas,
|
||||
|
||||
Reference in New Issue
Block a user