Skip to content

Commit

Permalink
删除无用文件
Browse files Browse the repository at this point in the history
  • Loading branch information
more-strive committed Jul 3, 2024
1 parent c79a4d2 commit 46c8561
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 285 deletions.
9 changes: 0 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"fabric": "^6.0.0",
"file-saver": "^2.0.5",
"gifler": "^0.1.0",
"hammerjs": "^2.0.8",
"html-to-image": "^1.11.11",
"js-base64": "^3.7.7",
"jsbarcode": "^3.11.6",
Expand Down
5 changes: 0 additions & 5 deletions src/views/Canvas/useCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { defaultControls, textboxControls } from '@/app/fabricControls'
import { getObjectsBoundingBox } from '@/extension/util/common'
import { useTemplatesStore } from '@/store'
import useCommon from './useCommon'
import useHammer from './useHammer'



Expand Down Expand Up @@ -124,17 +123,13 @@ const initEvent = () => {
const initTemplate = async (templateId?: number) => {
if (!canvas) return
const { initCommon } = useCommon()
const { initHammer } = useHammer()
const templatesStore = useTemplatesStore()
const { currentTemplate } = storeToRefs(templatesStore)
if (templateId && Number(templateId) > 0) return
await canvas.loadFromJSON(currentTemplate.value)
setCanvasTransform()
initCommon()
initEvent()
if (isMobile()) {
initHammer()
}
}

export const initEditor = async (templateId?: number) => {
Expand Down
270 changes: 0 additions & 270 deletions src/views/Canvas/useHammer.ts

This file was deleted.

0 comments on commit 46c8561

Please sign in to comment.