Shorter module paths for default exports

This commit is contained in:
Frederic Junod
2018-05-09 10:45:35 +02:00
parent bae2ac4f0f
commit af1f6836af
50 changed files with 99 additions and 101 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ const DragBox = function(opt_options) {
const options = opt_options ? opt_options : {};
/**
* @type {module:ol/render/Box~Box}
* @type {module:ol/render/Box}
* @private
*/
this.box_ = new RenderBox(options.className || 'ol-dragbox');
+1 -1
View File
@@ -388,7 +388,7 @@ const Draw = function(options) {
/**
* Draw overlay where our sketch features are drawn.
* @type {module:ol/layer/Vector~Vector}
* @type {module:ol/layer/Vector}
* @private
*/
this.overlay_ = new VectorLayer({
+2 -2
View File
@@ -142,7 +142,7 @@ const ExtentInteraction = function(opt_options) {
/**
* Layer for the extentFeature
* @type {module:ol/layer/Vector~Vector}
* @type {module:ol/layer/Vector}
* @private
*/
this.extentOverlay_ = new VectorLayer({
@@ -157,7 +157,7 @@ const ExtentInteraction = function(opt_options) {
/**
* Layer for the vertexFeature
* @type {module:ol/layer/Vector~Vector}
* @type {module:ol/layer/Vector}
* @private
*/
this.vertexOverlay_ = new VectorLayer({
+1 -1
View File
@@ -249,7 +249,7 @@ const Modify = function(options) {
/**
* Draw overlay where sketch features are drawn.
* @type {module:ol/layer/Vector~Vector}
* @type {module:ol/layer/Vector}
* @private
*/
this.overlay_ = new VectorLayer({
+3 -3
View File
@@ -220,7 +220,7 @@ const Select = function(opt_options) {
/**
* @private
* @type {module:ol/layer/Vector~Vector}
* @type {module:ol/layer/Vector}
*/
this.featureOverlay_ = featureOverlay;
@@ -301,13 +301,13 @@ Select.prototype.getHitTolerance = function() {
* programmatic method like pushing features to
* {@link module:ol/interaction/Select~Select#getFeatures collection}.
* @param {module:ol/Feature|module:ol/render/Feature} feature Feature
* @return {module:ol/layer/Vector~Vector} Layer.
* @return {module:ol/layer/Vector} Layer.
* @api
*/
Select.prototype.getLayer = function(feature) {
const key = getUid(feature);
return (
/** @type {module:ol/layer/Vector~Vector} */ (this.featureLayerAssociation_[key])
/** @type {module:ol/layer/Vector} */ (this.featureLayerAssociation_[key])
);
};