fix: 删除无用的方法

This commit is contained in:
parisma 2022-05-07 14:48:45 +08:00 committed by jia000
parent b1aae65182
commit 4f4ed9c61b

View File

@ -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();
}