diff --git a/package.json b/package.json index 9d1328b..47de295 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fabritor-web", - "version": "2.1.0", + "version": "3.0.0", "description": "fabritor-web", "dependencies": { "@ant-design/icons": "^5.2.6", diff --git a/src/editor/objects/rect.ts b/src/editor/objects/rect.ts index e2e97e9..89b6cad 100644 --- a/src/editor/objects/rect.ts +++ b/src/editor/objects/rect.ts @@ -3,7 +3,7 @@ import { uuid } from '@/utils'; import { getGlobalEditor } from '@/utils/global'; export default function createRect (options) { - const { width = 200, height = 200, left, top, ...rest } = options || {}; + const { width = 200, height = 200, ...rest } = options || {}; const editor = getGlobalEditor(); const { canvas } = editor; const rect = new fabric.Rect({ diff --git a/src/utils/constants.tsx b/src/utils/constants.tsx index 4415dc0..f5e817f 100644 --- a/src/utils/constants.tsx +++ b/src/utils/constants.tsx @@ -1,6 +1,6 @@ export const APP_NAME = 'fabritor'; -export const APP_VERSION = '2.0.0'; -export const SCHEMA_VERSION = 2; +export const APP_VERSION = '3.0.0'; +export const SCHEMA_VERSION = 3; export const SCHEMA_VERSION_KEY = 'fabritor_schema_version'; export const LOG_PREFIX = `${APP_NAME}_logļ¼š`;