From 4f4ed9c61bf40f13ac55bb6bb711891b2714fbb4 Mon Sep 17 00:00:00 2001 From: parisma Date: Sat, 7 May 2022 14:48:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/stage/src/TargetCalibrate.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/packages/stage/src/TargetCalibrate.ts b/packages/stage/src/TargetCalibrate.ts index 6e01bce2..27d8a136 100644 --- a/packages/stage/src/TargetCalibrate.ts +++ b/packages/stage/src/TargetCalibrate.ts @@ -22,7 +22,7 @@ import { EventEmitter } from 'events'; import { Mode } from './const'; import StageDragResize from './StageDragResize'; import StageMask from './StageMask'; -import type { Offset, Rect, TargetCalibrateConfig } from './types'; +import type { Offset, TargetCalibrateConfig } from './types'; import { getMode } from './util'; /** @@ -60,18 +60,6 @@ export default class TargetCalibrate extends EventEmitter { return this.operationEl; } - /** - * 设置样式属性 - * @param rect 样式属性 - */ - public resetRect(rect: Rect): void { - this.operationEl.style.width = `${rect.width}px`; - this.operationEl.style.height = `${rect.height}px`; - Object.keys(rect).forEach((key: string) => { - this.operationEl.style[key] = `${rect[key]}px`; - }); - } - public destroy(): void { this.operationEl?.remove(); }