Add this jsdoc tag to ol.interaction.DragBox.defaultBoxEndCondition

This commit is contained in:
Frederic Junod
2017-04-10 09:08:09 +02:00
parent fc1a0c6c3d
commit 5e84d806d7

View File

@@ -78,6 +78,7 @@ ol.inherits(ol.interaction.DragBox, ol.interaction.Pointer);
* @param {ol.Pixel} startPixel The starting pixel of the box.
* @param {ol.Pixel} endPixel The end pixel of the box.
* @return {boolean} Whether or not the boxend condition should be fired.
* @this {ol.interaction.DragBox}
*/
ol.interaction.DragBox.defaultBoxEndCondition = function(mapBrowserEvent, startPixel, endPixel) {
var width = endPixel[0] - startPixel[0];