Merge pull request #9042 from openlayers/opt_onBoxEnd

Change onBoxEnd property in DragBox options to optional
This commit is contained in:
Frédéric Junod
2018-12-07 09:36:27 +01:00
committed by GitHub

View File

@@ -28,7 +28,7 @@ import RenderBox from '../render/Box.js';
* @property {EndCondition} [boxEndCondition] A function that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and two
* {@link module:ol/pixel~Pixel}s to indicate whether a `boxend` event should be fired.
* Default is `true` if the area of the box is bigger than the `minArea` option.
* @property {function(this:DragBox, import("../MapBrowserEvent.js").default)} onBoxEnd Code to execute just
* @property {function(this:DragBox, import("../MapBrowserEvent.js").default)} [onBoxEnd] Code to execute just
* before `boxend` is fired.
*/