mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-04 23:29:57 +08:00
fix: 删除无用的方法
This commit is contained in:
parent
b1aae65182
commit
4f4ed9c61b
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user