trigger save after modifying object

This commit is contained in:
llama 2025-05-20 12:12:00 +08:00
parent 31d877f20d
commit b2816dae23
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3

View file

@ -4,7 +4,7 @@
import { fabric } from "fabric";
import { get } from "svelte/store";
import { opacityStateStore } from "../store";
import { opacityStateStore, saveNeededStore } from "../store";
import type { Size } from "../types";
export const SHAPE_MASK_COLOR = "#ffeba2";
@ -244,6 +244,7 @@ const setShapePosition = (
}
object.setCoords();
saveNeededStore.set(true);
};
export function enableUniformScaling(canvas: fabric.Canvas, obj: fabric.Object): void {