@evergis/sgis
Advanced tools
Comparing version 0.5.0-alpha.66 to 0.5.0-alpha.67
@@ -80,3 +80,3 @@ import { Coordinates } from "../baseTypes"; | ||
setupRenderCoordinates(domPainter: DomPainter): void; | ||
setupRender(ctx: CanvasRenderingContext2D, domPainter: DomPainter): void; | ||
setupRender(ctx: CanvasRenderingContext2D, domPainter?: DomPainter): void; | ||
renderObject(ctx: CanvasRenderingContext2D | Path2D): void; | ||
@@ -83,0 +83,0 @@ private renderAsArc; |
@@ -37,4 +37,4 @@ import { Coordinates } from "../baseTypes"; | ||
get coordinates(): Coordinates; | ||
setupRender(ctx: CanvasRenderingContext2D, domPainter: DomPainter): void; | ||
setupRender(ctx: CanvasRenderingContext2D, domPainter?: DomPainter): void; | ||
renderObject(ctx: CanvasRenderingContext2D, domPainter: DomPainter): void; | ||
} |
@@ -110,3 +110,3 @@ import { DomPainter } from '../painters/DomPainter/DomPainter'; | ||
contains(position: Coordinates): boolean; | ||
setupRender(ctx: CanvasRenderingContext2D, domPainter: DomPainter): void; | ||
setupRender(ctx: CanvasRenderingContext2D, domPainter?: DomPainter): void; | ||
private _drawLines; | ||
@@ -113,0 +113,0 @@ private _resetShadow; |
@@ -65,4 +65,4 @@ import { PolyControl } from "./controls/PolyControl"; | ||
export { Control } from "./controls/Control"; | ||
export declare const version = "0.5.0-alpha.66"; | ||
export declare const releaseDate = "27.03.2024"; | ||
export declare const version = "0.5.0-alpha.67"; | ||
export declare const releaseDate = "08.04.2024"; | ||
export declare const controls: { | ||
@@ -69,0 +69,0 @@ Circle: typeof Circle; |
@@ -70,2 +70,4 @@ import { debounce } from '../utils/utils'; | ||
Promise.resolve(snappingResult).then((point) => { | ||
if (!this._activeFeature) | ||
return; | ||
this._activeFeature.position = point || event.point.position; | ||
@@ -72,0 +74,0 @@ if (this.activeLayer) |
@@ -98,2 +98,5 @@ import { debounce } from '../utils/utils'; | ||
Promise.resolve(snappingResult).then((point) => { | ||
if (!this._activeFeature) { | ||
return; | ||
} | ||
this._activeFeature.rings[ringIndex][pointIndex] = point || event.point.position; | ||
@@ -100,0 +103,0 @@ this._activeFeature.redraw(); |
@@ -172,2 +172,5 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
Promise.resolve(snappingResult).then((point) => { | ||
if (!this._activeFeature) { | ||
return; | ||
} | ||
this._activeFeature.setPoint(activeRing, activeIndex, point || event.point.position); | ||
@@ -174,0 +177,0 @@ this._activeFeature.redraw(); |
@@ -80,3 +80,3 @@ import { Coordinates } from "../baseTypes"; | ||
setupRenderCoordinates(domPainter: DomPainter): void; | ||
setupRender(ctx: CanvasRenderingContext2D, domPainter: DomPainter): void; | ||
setupRender(ctx: CanvasRenderingContext2D, domPainter?: DomPainter): void; | ||
renderObject(ctx: CanvasRenderingContext2D | Path2D): void; | ||
@@ -83,0 +83,0 @@ private renderAsArc; |
@@ -65,3 +65,5 @@ import { VectorRender } from "./Render"; | ||
setupRender(ctx, domPainter) { | ||
this.setupRenderCoordinates(domPainter); | ||
if (domPainter) { | ||
this.setupRenderCoordinates(domPainter); | ||
} | ||
ctx.lineWidth = this.strokeWidth; | ||
@@ -68,0 +70,0 @@ ctx.strokeStyle = this.strokeColor; |
@@ -37,4 +37,4 @@ import { Coordinates } from "../baseTypes"; | ||
get coordinates(): Coordinates; | ||
setupRender(ctx: CanvasRenderingContext2D, domPainter: DomPainter): void; | ||
setupRender(ctx: CanvasRenderingContext2D, domPainter?: DomPainter): void; | ||
renderObject(ctx: CanvasRenderingContext2D, domPainter: DomPainter): void; | ||
} |
@@ -34,3 +34,3 @@ import { VectorRender } from "./Render"; | ||
setupRender(ctx, domPainter) { | ||
if (this.mapCoordinates) { | ||
if (this.mapCoordinates && domPainter) { | ||
const xScale = domPainter.getXScale(); | ||
@@ -37,0 +37,0 @@ const yScale = domPainter.getYScale(); |
@@ -110,3 +110,3 @@ import { DomPainter } from '../painters/DomPainter/DomPainter'; | ||
contains(position: Coordinates): boolean; | ||
setupRender(ctx: CanvasRenderingContext2D, domPainter: DomPainter): void; | ||
setupRender(ctx: CanvasRenderingContext2D, domPainter?: DomPainter): void; | ||
private _drawLines; | ||
@@ -113,0 +113,0 @@ private _resetShadow; |
@@ -83,3 +83,3 @@ import { simplifyCoordinates } from '../utils/math'; | ||
setupRender(ctx, domPainter) { | ||
if (this.mapCoordinates) { | ||
if (this.mapCoordinates && domPainter) { | ||
const xScale = domPainter.getXScale(); | ||
@@ -86,0 +86,0 @@ const yScale = domPainter.getYScale(); |
@@ -65,4 +65,4 @@ import { PolyControl } from "./controls/PolyControl"; | ||
export { Control } from "./controls/Control"; | ||
export declare const version = "0.5.0-alpha.66"; | ||
export declare const releaseDate = "27.03.2024"; | ||
export declare const version = "0.5.0-alpha.67"; | ||
export declare const releaseDate = "08.04.2024"; | ||
export declare const controls: { | ||
@@ -69,0 +69,0 @@ Circle: typeof Circle; |
@@ -67,4 +67,4 @@ import { PolyControl } from "./controls/PolyControl"; | ||
export { Control } from "./controls/Control"; | ||
export const version = "0.5.0-alpha.66"; | ||
export const releaseDate = "27.03.2024"; | ||
export const version = "0.5.0-alpha.67"; | ||
export const releaseDate = "08.04.2024"; | ||
let utilsModulesExt = {}; | ||
@@ -71,0 +71,0 @@ Object.assign(utilsModulesExt, utilsModule, { Color: Color }); |
@@ -36,2 +36,3 @@ import { registerSymbol } from "../serializers/symbolSerializer"; | ||
fillColor: this.fillColor, | ||
mapCoordinates: feature.rings, | ||
})]; | ||
@@ -38,0 +39,0 @@ } |
@@ -35,5 +35,5 @@ import { Symbol } from "../Symbol"; | ||
enclosed: false, | ||
fillStyle: FillStyle.None | ||
fillStyle: FillStyle.None, | ||
})]; | ||
} | ||
} |
@@ -49,3 +49,4 @@ import { registerSymbol } from "../../serializers/symbolSerializer"; | ||
strokeWidth: this.strokeWidth, | ||
radius: this.size / 2 | ||
radius: this.size / 2, | ||
mapCoordinates: feature.position | ||
})]; | ||
@@ -52,0 +53,0 @@ } |
@@ -55,2 +55,3 @@ import { registerSymbol } from "../../serializers/symbolSerializer"; | ||
isInsideStroke: this.isInsideStroke, | ||
mapCoordinates: feature.rings, | ||
})]; | ||
@@ -57,0 +58,0 @@ } |
@@ -46,2 +46,3 @@ import { Action, Poly } from '../features/Poly'; | ||
miterLimit: this.miterLimit, | ||
mapCoordinates: feature.rings, | ||
})]; | ||
@@ -48,0 +49,0 @@ } |
{ | ||
"name": "@evergis/sgis", | ||
"version": "0.5.0-alpha.66", | ||
"version": "0.5.0-alpha.67", | ||
"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
3994562
46618