diff --git a/src/main/js/bundles/dn_selectionactions/actions/AreaSelectSpatialInputAction.js b/src/main/js/bundles/dn_selectionactions/actions/AreaSelectSpatialInputAction.js index e732458..74a8378 100644 --- a/src/main/js/bundles/dn_selectionactions/actions/AreaSelectSpatialInputAction.js +++ b/src/main/js/bundles/dn_selectionactions/actions/AreaSelectSpatialInputAction.js @@ -19,7 +19,7 @@ import Vue from "apprt-vue/Vue"; import VueDijit from "apprt-vue/VueDijit"; import Binding from "apprt-binding/Binding"; import ServiceResolver from "apprt/ServiceResolver"; -import{buffer} from "esri/geometry/geometryEngine"; +import { buffer } from "esri/geometry/geometryEngine"; export default class AreaSelectSpatialInputAction { @@ -91,7 +91,7 @@ export default class AreaSelectSpatialInputAction { clickHandle.remove(); // prevent popup evt.stopPropagation(); - const point = view.toMap({x: evt.x, y: evt.y}); + const point = view.toMap({ x: evt.x, y: evt.y }); this.getFeature(point).then((featureGeometry) => { if (!featureGeometry) { resolve(null); @@ -137,7 +137,7 @@ export default class AreaSelectSpatialInputAction { } store.query( { - geometry: {$intersects: point} + geometry: { $intersects: point } }, { fields: { diff --git a/src/main/js/bundles/dn_selectionactions/actions/GraphicSpatialInputAction.js b/src/main/js/bundles/dn_selectionactions/actions/GraphicSpatialInputAction.js index 16cd17d..3d42c61 100644 --- a/src/main/js/bundles/dn_selectionactions/actions/GraphicSpatialInputAction.js +++ b/src/main/js/bundles/dn_selectionactions/actions/GraphicSpatialInputAction.js @@ -99,7 +99,7 @@ export default class { const geometry = graphic.geometry; if (geometry) { let geometry = graphic.geometry; - if(model.buffer > 0) { + if (model.buffer > 0) { geometry = buffer(geometry, model.buffer, model.unit); } this.addGraphicToView(geometry); diff --git a/src/main/js/bundles/dn_selectionactions/widgets/GraphicSpatialInputWidgetModel.js b/src/main/js/bundles/dn_selectionactions/widgets/GraphicSpatialInputWidgetModel.js index 1d638de..65c93f3 100644 --- a/src/main/js/bundles/dn_selectionactions/widgets/GraphicSpatialInputWidgetModel.js +++ b/src/main/js/bundles/dn_selectionactions/widgets/GraphicSpatialInputWidgetModel.js @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {declare} from "apprt-core/Mutable"; +import { declare } from "apprt-core/Mutable"; export default declare({ buffer: 0, @@ -21,5 +21,4 @@ export default declare({ minBuffer: 0, maxBuffer: 1000, stepSize: 1 - });