mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Commit addition of IO shapes immediately (#2750)
This commit is contained in:
parent
c828a2eb6f
commit
8e1105144a
2 changed files with 1 additions and 2 deletions
|
@ -4,7 +4,6 @@
|
|||
import { fabric } from "fabric";
|
||||
import type { PanZoom } from "panzoom";
|
||||
|
||||
import { emitChangeSignal } from "../MaskEditor.svelte";
|
||||
import { BORDER_COLOR, disableRotation, SHAPE_MASK_COLOR } from "./lib";
|
||||
import { undoStack } from "./tool-undo-redo";
|
||||
|
||||
|
@ -192,7 +191,6 @@ const generatePolygon = (canvas: fabric.Canvas, pointsList): void => {
|
|||
canvas.setActiveObject(polygon);
|
||||
// view undo redo tools
|
||||
undoStack.onObjectAdded(polygon.id);
|
||||
emitChangeSignal();
|
||||
}
|
||||
|
||||
polygon.on("modified", () => {
|
||||
|
|
|
@ -83,6 +83,7 @@ class UndoStack {
|
|||
this.push();
|
||||
}
|
||||
this.shapeIds.add(id);
|
||||
emitChangeSignal();
|
||||
}
|
||||
|
||||
onObjectModified(): void {
|
||||
|
|
Loading…
Reference in a new issue