Change onBoxEnd property in DragBox options to optional

This commit is contained in:
Frederic Junod
2018-12-07 09:17:34 +01:00
parent 4ce5379a4b
commit bade38ecc8

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.
*/