@evergis/sgis
Advanced tools
Comparing version 0.5.0-alpha.29 to 0.5.0-alpha.30
@@ -63,4 +63,4 @@ import { PolyControl } from "./controls/PolyControl"; | ||
export { Control } from "./controls/Control"; | ||
export declare const version = "0.5.0-alpha.29"; | ||
export declare const releaseDate = "23.08.2022"; | ||
export declare const version = "0.5.0-alpha.30"; | ||
export declare const releaseDate = "29.08.2022"; | ||
export declare const controls: { | ||
@@ -67,0 +67,0 @@ Circle: typeof Circle; |
@@ -36,9 +36,6 @@ import { debounce } from '../utils/utils'; | ||
let clickEvent = event; | ||
const snappingResult = this._snap(clickEvent.point.position, clickEvent.browserEvent.altKey); | ||
Promise.resolve(snappingResult).then((point) => { | ||
let feature = new PointFeature(point || clickEvent.point.position, { crs: this.map.crs, symbol: this.symbol }); | ||
if (this.activeLayer) | ||
this.activeLayer.add(feature); | ||
this.fire(new DrawingFinishEvent(feature, clickEvent.browserEvent)); | ||
}); | ||
let feature = new PointFeature(clickEvent.point.position, { crs: this.map.crs, symbol: this.symbol }); | ||
if (this.activeLayer) | ||
this.activeLayer.add(feature); | ||
this.fire(new DrawingFinishEvent(feature, clickEvent.browserEvent)); | ||
} | ||
@@ -45,0 +42,0 @@ _handleMouseMove(event) { |
@@ -53,9 +53,3 @@ import { debounce } from '../utils/utils'; | ||
else { | ||
const snappingResult = this._snap(clickEvent.point.position, clickEvent.browserEvent.altKey); | ||
Promise.resolve(snappingResult).then((point) => { | ||
this._activeFeature.addPoint(point, this._activeFeature.rings.length - 1); | ||
this.fire(new PointAddEvent()); | ||
if (this._tempLayer) | ||
this._tempLayer.redraw(); | ||
}); | ||
this._activeFeature.addPoint(clickEvent.point.position, this._activeFeature.rings.length - 1); | ||
return; | ||
@@ -62,0 +56,0 @@ } |
@@ -63,4 +63,4 @@ import { PolyControl } from "./controls/PolyControl"; | ||
export { Control } from "./controls/Control"; | ||
export declare const version = "0.5.0-alpha.29"; | ||
export declare const releaseDate = "23.08.2022"; | ||
export declare const version = "0.5.0-alpha.30"; | ||
export declare const releaseDate = "29.08.2022"; | ||
export declare const controls: { | ||
@@ -67,0 +67,0 @@ Circle: typeof Circle; |
@@ -65,4 +65,4 @@ import { PolyControl } from "./controls/PolyControl"; | ||
export { Control } from "./controls/Control"; | ||
export const version = "0.5.0-alpha.29"; | ||
export const releaseDate = "23.08.2022"; | ||
export const version = "0.5.0-alpha.30"; | ||
export const releaseDate = "29.08.2022"; | ||
let utilsModulesExt = {}; | ||
@@ -69,0 +69,0 @@ Object.assign(utilsModulesExt, utilsModule, { Color: Color }); |
{ | ||
"name": "@evergis/sgis", | ||
"version": "0.5.0-alpha.29", | ||
"version": "0.5.0-alpha.30", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/sGis_bundle.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2929927
36297