File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 7
7
ObjectType ,
8
8
gridSize ,
9
9
gridCircleRadius ,
10
+ minAreaSize ,
10
11
} from "../../data/constants" ;
11
12
import { Toast } from "@douyinfe/semi-ui" ;
12
13
import Table from "./Table" ;
@@ -376,6 +377,8 @@ export default function Canvas() {
376
377
break ;
377
378
}
378
379
380
+ if ( newDims . width < minAreaSize || newDims . height < minAreaSize ) return ;
381
+
379
382
updateArea ( areaResize . id , { ...newDims } ) ;
380
383
return ;
381
384
}
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export const gridCircleRadius = 0.85;
23
23
export const tableFieldHeight = 36 ;
24
24
export const tableColorStripHeight = 7 ;
25
25
export const pngExportPixelRatio = 4 ;
26
+ export const minAreaSize = 120 ;
26
27
27
28
export const Cardinality = {
28
29
ONE_TO_ONE : "one_to_one" ,
You can’t perform that action at this time.
0 commit comments