Skip to content

Commit

Permalink
feat: 添加出血线和安全线
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhcc365 committed May 27, 2024
1 parent ff49f2d commit 097be6a
Show file tree
Hide file tree
Showing 2 changed files with 515 additions and 1 deletion.
21 changes: 21 additions & 0 deletions src/hooks/useCommon.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// import { useFabricStore, useTemplatesStore } from "@/store";
import { DefaultDPI, DefaultRatio } from "@/configs/size";
import { Padding } from "@/configs/background";
// import { storeToRefs } from "pinia"
import {
WorkSpaceClipType,
WorkSpaceDrawType,
WorkSpaceMaskType,
WorkSpaceSafeType,
WorkSpaceClipColor,
WorkSpaceSafeColor,
WorkSpaceMaskColor,
WorkSpaceThumbType,
WorkSpaceCommonOption,
} from "@/configs/canvas";
import { Line, Group, Rect, Path } from "fabric";
import { LineOption } from "@/types/canvas";
import { TransparentFill } from "@/configs/background";
// import useCanvas from "./useCanvas";
import { ReferenceLine } from "@/extension/object/ReferenceLine";
import { stores } from "@/pages/EditPage/store/main";
Loading

0 comments on commit 097be6a

Please sign in to comment.