Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Jan 30, 2024
1 parent 0cff41b commit fe845cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -137,7 +137,7 @@ export default class AreaSelectSpatialInputAction {
}
store.query(
{
geometry: {$intersects: point}
geometry: { $intersects: point }
},
{
fields: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
* 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,
unit: "meters",
minBuffer: 0,
maxBuffer: 1000,
stepSize: 1

});

0 comments on commit fe845cf

Please sign in to comment.