From 1517819b56dc13de11e5447933177b44e15606fc Mon Sep 17 00:00:00 2001 From: AliceLanniste <1399789151@qq.com> Date: Thu, 6 Jun 2024 16:30:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=20(#421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typings/env.d.ts | 9 +-------- typings/extends.d.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/typings/env.d.ts b/typings/env.d.ts index 1424a176..504e329e 100644 --- a/typings/env.d.ts +++ b/typings/env.d.ts @@ -10,14 +10,7 @@ declare module '*.vue' { } declare global { - declare module 'fabric/fabric-impl' { - interface IObjectOptions { - /** - * 标识 - */ - id?: string | undefined; - } - } + declare module 'fabric/fabric-impl' {} } export as namespace vfe; diff --git a/typings/extends.d.ts b/typings/extends.d.ts index dc50b0dd..2f17ba01 100644 --- a/typings/extends.d.ts +++ b/typings/extends.d.ts @@ -19,6 +19,20 @@ declare namespace fabric { rotate: number; } + export interface IObjectOptions { + /** + * 标识 + */ + id?: string | undefined; + } + + export interface IUtil { + findScaleToFit: ( + source: Record | fabric.Object, + destination: Record | fabric.Object + ) => number; + } + function ControlMouseEventHandler( eventData: MouseEvent, transformData: Transform,