Transformed types
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e): jscodeshift --transform ts.js src
This commit is contained in:
@@ -11,7 +11,7 @@ import DragBox from '../interaction/DragBox.js';
|
||||
* @typedef {Object} Options
|
||||
* @property {string} [className='ol-dragzoom'] CSS class name for styling the
|
||||
* box.
|
||||
* @property {module:ol/events/condition~Condition} [condition] A function that
|
||||
* @property {import("../events/condition.js").Condition} [condition] A function that
|
||||
* takes an {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
||||
* boolean to indicate whether that event should be handled.
|
||||
* Default is {@link module:ol/events/condition~shiftKeyOnly}.
|
||||
@@ -32,7 +32,7 @@ import DragBox from '../interaction/DragBox.js';
|
||||
*/
|
||||
class DragZoom extends DragBox {
|
||||
/**
|
||||
* @param {module:ol/interaction/DragZoom~Options=} opt_options Options.
|
||||
* @param {Options=} opt_options Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
const options = opt_options ? opt_options : {};
|
||||
@@ -61,12 +61,12 @@ class DragZoom extends DragBox {
|
||||
|
||||
|
||||
/**
|
||||
* @this {module:ol/interaction/DragZoom}
|
||||
* @this {import("./DragZoom.js").default}
|
||||
*/
|
||||
function onBoxEnd() {
|
||||
const map = this.getMap();
|
||||
const view = /** @type {!module:ol/View} */ (map.getView());
|
||||
const size = /** @type {!module:ol/size~Size} */ (map.getSize());
|
||||
const view = /** @type {!import("../View.js").default} */ (map.getView());
|
||||
const size = /** @type {!import("../size.js").Size} */ (map.getSize());
|
||||
let extent = this.getGeometry().getExtent();
|
||||
|
||||
if (this.out_) {
|
||||
|
||||
Reference in New Issue
Block a user