This commit is contained in:
李志鹏
2026-01-30 14:12:17 +08:00
parent 8588c74ffd
commit 0e0eed2566
3 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import { fabric } from "fabric-with-all";
import { traceImageContour, imageToCanvas } from "../utils/helper";
import { OperationType } from "../utils/layerHelper";
import { OperationType, SpecialLayerId } from "../utils/layerHelper";
import { LassoCutoutCommand } from "../commands/LassoCutoutCommand";
import addIcon from "@/assets/images/canvas/add.png";
import removeIcon from "@/assets/images/canvas/remove.png";
@@ -72,7 +72,7 @@ export class PartManager {
this.activeTool = this.toolManager.activeTool;
this.rgba = { r: 0, g: 255, b: 0, a: 200 };
this.partId = "part_selector";
this.partId = SpecialLayerId.PART_SELECTOR;
this.partGroup = null; // 当前选区对象
this.partCanvas = null;// 选区画布
this.rectangleObject = null; // 矩形对象