mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
refactor: refactor util calc
This commit is contained in:
parent
3aba19d564
commit
dcc3432249
1 changed files with 2 additions and 2 deletions
|
|
@ -134,8 +134,8 @@ export class BoardWatcher extends EventEmitter<BoardWatcherEventMap> {
|
|||
}
|
||||
|
||||
private _isVaildPoint(p: Point): boolean {
|
||||
const viewSizeInfo = this._opts.sharer.getActiveViewSizeInfo();
|
||||
const { width, height } = viewSizeInfo;
|
||||
const viewSize = this._opts.sharer.getActiveViewSizeInfo();
|
||||
const { width, height } = viewSize;
|
||||
if (isBoardAvailableNum(p.x) && isBoardAvailableNum(p.y) && p.x <= width && p.y <= height) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue