File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 107
107
}
108
108
} ;
109
109
110
+ GridStackEngine . prototype . is_area_empty = function ( x , y , width , height ) {
111
+ var nn = { x : x || 0 , y : y || 0 , width : width || 1 , height : height || 1 } ;
112
+ var collision_node = _ . find ( this . nodes , function ( n ) {
113
+ return Utils . is_intercepted ( n , nn ) ;
114
+ } , this ) ;
115
+ return collision_node == null ;
116
+ } ;
117
+
110
118
GridStackEngine . prototype . _sort_nodes = function ( dir ) {
111
119
this . nodes = Utils . sort ( this . nodes , dir , this . width ) ;
112
120
} ;
831
839
this . _update_container_height ( )
832
840
} ;
833
841
842
+ GridStack . prototype . is_area_empty = function ( x , y , width , height ) {
843
+ return this . grid . is_area_empty ( x , y , width , height ) ;
844
+ } ;
845
+
834
846
scope . GridStackUI = GridStack ;
835
847
836
848
scope . GridStackUI . Utils = Utils ;
You can’t perform that action at this time.
0 commit comments