Fix comments indentation
This commit is contained in:
@@ -120,15 +120,15 @@ class DragBox extends PointerInteraction {
|
|||||||
const options = opt_options ? opt_options : {};
|
const options = opt_options ? opt_options : {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {import("../render/Box.js").default}
|
* @type {import("../render/Box.js").default}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.box_ = new RenderBox(options.className || 'ol-dragbox');
|
this.box_ = new RenderBox(options.className || 'ol-dragbox');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {number}
|
* @type {number}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.minArea_ = options.minArea !== undefined ? options.minArea : 64;
|
this.minArea_ = options.minArea !== undefined ? options.minArea : 64;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -139,21 +139,21 @@ class DragBox extends PointerInteraction {
|
|||||||
this.onBoxEnd_ = options.onBoxEnd ? options.onBoxEnd : VOID;
|
this.onBoxEnd_ = options.onBoxEnd ? options.onBoxEnd : VOID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {import("../pixel.js").Pixel}
|
* @type {import("../pixel.js").Pixel}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.startPixel_ = null;
|
this.startPixel_ = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {import("../events/condition.js").Condition}
|
* @type {import("../events/condition.js").Condition}
|
||||||
*/
|
*/
|
||||||
this.condition_ = options.condition ? options.condition : always;
|
this.condition_ = options.condition ? options.condition : always;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {EndCondition}
|
* @type {EndCondition}
|
||||||
*/
|
*/
|
||||||
this.boxEndCondition_ = options.boxEndCondition ?
|
this.boxEndCondition_ = options.boxEndCondition ?
|
||||||
options.boxEndCondition : this.defaultBoxEndCondition;
|
options.boxEndCondition : this.defaultBoxEndCondition;
|
||||||
}
|
}
|
||||||
@@ -174,10 +174,10 @@ class DragBox extends PointerInteraction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns geometry of last drawn box.
|
* Returns geometry of last drawn box.
|
||||||
* @return {import("../geom/Polygon.js").default} Geometry.
|
* @return {import("../geom/Polygon.js").default} Geometry.
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
getGeometry() {
|
getGeometry() {
|
||||||
return this.box_.getGeometry();
|
return this.box_.getGeometry();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,41 +124,41 @@ class VectorTileLayer extends BaseVectorLayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the level as number to which we will preload tiles up to.
|
* Return the level as number to which we will preload tiles up to.
|
||||||
* @return {number} The level to preload tiles up to.
|
* @return {number} The level to preload tiles up to.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
getPreload() {
|
getPreload() {
|
||||||
return /** @type {number} */ (this.get(TileProperty.PRELOAD));
|
return /** @type {number} */ (this.get(TileProperty.PRELOAD));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether we use interim tiles on error.
|
* Whether we use interim tiles on error.
|
||||||
* @return {boolean} Use interim tiles on error.
|
* @return {boolean} Use interim tiles on error.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
getUseInterimTilesOnError() {
|
getUseInterimTilesOnError() {
|
||||||
return /** @type {boolean} */ (this.get(TileProperty.USE_INTERIM_TILES_ON_ERROR));
|
return /** @type {boolean} */ (this.get(TileProperty.USE_INTERIM_TILES_ON_ERROR));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the level as number to which we will preload tiles up to.
|
* Set the level as number to which we will preload tiles up to.
|
||||||
* @param {number} preload The level to preload tiles up to.
|
* @param {number} preload The level to preload tiles up to.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
setPreload(preload) {
|
setPreload(preload) {
|
||||||
this.set(TileProperty.PRELOAD, preload);
|
this.set(TileProperty.PRELOAD, preload);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set whether we use interim tiles on error.
|
* Set whether we use interim tiles on error.
|
||||||
* @param {boolean} useInterimTilesOnError Use interim tiles on error.
|
* @param {boolean} useInterimTilesOnError Use interim tiles on error.
|
||||||
* @observable
|
* @observable
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
setUseInterimTilesOnError(useInterimTilesOnError) {
|
setUseInterimTilesOnError(useInterimTilesOnError) {
|
||||||
this.set(TileProperty.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError);
|
this.set(TileProperty.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user