You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,6 +128,7 @@ Here are some properties for your convenience (not all):
128
128
|onDragStartBegin |function |OPTIONAL. Fired when the user clicks in the area. This callback gets the event object. Executed **before** DragSelect function code runs |
129
129
|onDragStart |function |OPTIONAL. Fired when the user clicks in the area. This callback gets the event object. Executed after DragSelect function code ran, befor the setup of event listeners |
130
130
|onDragMove |function |OPTIONAL. Fired when the user drags. This callback gets the event object. Executed before DragSelect function code ran, after getting the current mouse position |
131
+
|onDragEnd |function |OPTIONAL. Fired when the user ends drag interaction. This callback gets the event object. Executed after DragSelect function code ran |
131
132
|onElementSelect |function |OPTIONAL. Fired every time an element is selected. This callback gets a property which is the selected node |
132
133
|onElementUnselect |function |OPTIONAL. Fired every time an element is de-selected. This callback gets a property which is the de-selected node |
133
134
|callback |function |OPTIONAL. Callback function that gets fired when the selection is released. This callback gets a property which is an array that holds all selected nodes |
console.warn("[DragSelect] DEPRECATION warning: this method signature is changing. From isCursorNearEdge(event, area) to isCursorNearEdge(area, event). Please use area as first argument and event as second. It will still work for now but functionality be removed soon")
755
-
const_event=event
756
-
const_area=area
757
-
area=_event
758
-
event=_area
759
-
}
760
-
761
753
varcursorPosition=this._getCursorPos(area,event);
762
754
varareaRect=this._getAreaRect(area);
763
755
@@ -1223,18 +1215,6 @@ class DragSelect {
1223
1215
};
1224
1216
}
1225
1217
1226
-
/**
1227
-
* Returns the current x, y scroll value of a container
1228
-
* If container has no scroll it will return 0
1229
-
* @param {(HTMLElement|SVGElement)} [area]
1230
-
* @return {{x:number,y:number}} scroll X/Y
1231
-
* @deprecated
1232
-
*/
1233
-
getScroll(area){
1234
-
console.warn('[DragSelect]: .getScroll is being deprecated soon. Please do not use it any longer. If you have a real use-case for this, please let us know at https://github.com/ThibaultJanBeyer/DragSelect')
1235
-
returnthis._getScroll(area)
1236
-
}
1237
-
1238
1218
/**
1239
1219
* Returns the current x, y scroll value of a container
1240
1220
* If container has no scroll it will return 0
@@ -1262,19 +1242,6 @@ class DragSelect {
1262
1242
returnscroll;
1263
1243
}
1264
1244
1265
-
/**
1266
-
* Returns the top/left/bottom/right/width/height
1267
-
* values of a node. If Area is document then everything
console.warn('[DragSelect]: .getAreaRect is being deprecated soon. Please do not use it any longer. If you have a real use-case for this, please let us know at https://github.com/ThibaultJanBeyer/DragSelect')
1275
-
returnthis._getAreaRect(area)
1276
-
}
1277
-
1278
1245
/**
1279
1246
* Returns the top/left/bottom/right/width/height
1280
1247
* values of a node. If Area is document then everything
0 commit comments