@artstesh/maps 6.1.7 → 6.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm2022/map/helpers/text-style.helper.mjs +15 -7
- package/dist/esm2022/map/messages/commands/start-drawing.command.mjs +1 -1
- package/dist/esm2022/map/messages/executors/generate-draw.executor.mjs +1 -1
- package/dist/esm2022/map/messages/executors/get-geometry-length.executor.mjs +18 -0
- package/dist/esm2022/map/messages/index.mjs +2 -1
- package/dist/esm2022/map/models/drawing-type.enum.mjs +2 -1
- package/dist/esm2022/map/ol-proxy.mjs +4 -1
- package/dist/esm2022/map/services/drawing/drawing-generation.service.mjs +2 -2
- package/dist/esm2022/map/services/message-registrator.service.mjs +3 -1
- package/dist/esm2022/src/map/helpers/text-style.helper.mjs +15 -7
- package/dist/esm2022/src/map/messages/commands/start-drawing.command.mjs +1 -1
- package/dist/esm2022/src/map/messages/executors/generate-draw.executor.mjs +1 -1
- package/dist/esm2022/src/map/messages/executors/get-geometry-length.executor.mjs +18 -0
- package/dist/esm2022/src/map/messages/index.mjs +2 -1
- package/dist/esm2022/src/map/models/drawing-type.enum.mjs +2 -1
- package/dist/esm2022/src/map/ol-proxy.mjs +4 -1
- package/dist/esm2022/src/map/services/drawing/drawing-generation.service.mjs +2 -2
- package/dist/esm2022/src/map/services/message-registrator.service.mjs +3 -1
- package/dist/fesm2022/maps-components-src-map.mjs +43 -13
- package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2022/maps-components.mjs +43 -13
- package/dist/fesm2022/maps-components.mjs.map +1 -1
- package/dist/map/helpers/text-style.helper.d.ts +10 -6
- package/dist/map/messages/commands/start-drawing.command.d.ts +3 -3
- package/dist/map/messages/executors/generate-draw.executor.d.ts +3 -3
- package/dist/map/messages/executors/get-geometry-length.executor.d.ts +11 -0
- package/dist/map/messages/index.d.ts +1 -0
- package/dist/map/models/drawing-type.enum.d.ts +2 -1
- package/dist/map/ol-proxy.d.ts +4 -0
- package/dist/src/map/helpers/text-style.helper.d.ts +10 -6
- package/dist/src/map/messages/commands/start-drawing.command.d.ts +3 -3
- package/dist/src/map/messages/executors/generate-draw.executor.d.ts +3 -3
- package/dist/src/map/messages/executors/get-geometry-length.executor.d.ts +11 -0
- package/dist/src/map/messages/index.d.ts +1 -0
- package/dist/src/map/models/drawing-type.enum.d.ts +2 -1
- package/dist/src/map/ol-proxy.d.ts +4 -0
- package/package.json +1 -1
|
@@ -4,12 +4,16 @@ import { Text } from 'ol/style';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class TextStyleHelper {
|
|
6
6
|
/**
|
|
7
|
-
* Creates a new
|
|
7
|
+
* Creates and returns a new Text instance with specified styling properties.
|
|
8
8
|
*
|
|
9
|
-
* @param {string} text - The text content
|
|
10
|
-
* @param {string} font - The font style
|
|
11
|
-
* @param {string} color - The color of the
|
|
12
|
-
* @
|
|
9
|
+
* @param {string} text - The text content to display.
|
|
10
|
+
* @param {string} font - The font style to use for the text.
|
|
11
|
+
* @param {string} color - The color of the text.
|
|
12
|
+
* @param {string|null|undefined} [backColor] - The background color of the text. Optional.
|
|
13
|
+
* @param {number[]|null|undefined} [padding] - The padding around the text in pixels. Optional.
|
|
14
|
+
* @param {string|null|undefined} [textBaseline] - The text baseline alignment. Optional.
|
|
15
|
+
* @param {number|null|undefined} [offsetY] - The vertical offset for the text. Optional.
|
|
16
|
+
* @return {Text} A new Text instance configured with the specified properties.
|
|
13
17
|
*/
|
|
14
|
-
static get(text: string, font: string, color: string): Text;
|
|
18
|
+
static get(text: string, font: string, color: string, backColor?: string | null, padding?: number[] | null, textBaseline?: string | null, offsetY?: number | null): Text;
|
|
15
19
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PostboyCallbackMessage } from '@artstesh/postboy';
|
|
2
2
|
import { DrawingType, FeatureOutputFormat } from '../../models';
|
|
3
|
-
import
|
|
3
|
+
import { StyleLike } from 'ol/style/Style';
|
|
4
4
|
/**
|
|
5
5
|
* Represents a command to start a drawing operation.
|
|
6
6
|
*/
|
|
7
7
|
export declare class StartDrawingCommand extends PostboyCallbackMessage<string | null> {
|
|
8
8
|
type: DrawingType;
|
|
9
|
-
style:
|
|
9
|
+
style: StyleLike;
|
|
10
10
|
format: FeatureOutputFormat;
|
|
11
11
|
static readonly ID = "4407e9ee-d6c3-4e77-8000-c1aae7433fb6";
|
|
12
12
|
/**
|
|
@@ -16,5 +16,5 @@ export declare class StartDrawingCommand extends PostboyCallbackMessage<string |
|
|
|
16
16
|
* @param {Style} style - The style defining visual appearance of the drawing.
|
|
17
17
|
* @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The format of the feature output. Defaults to GeoJson.
|
|
18
18
|
*/
|
|
19
|
-
constructor(type: DrawingType, style:
|
|
19
|
+
constructor(type: DrawingType, style: StyleLike, format?: FeatureOutputFormat);
|
|
20
20
|
}
|
|
@@ -3,11 +3,11 @@ import { Vector as Layer } from 'ol/layer';
|
|
|
3
3
|
import VectorSource from 'ol/source/Vector';
|
|
4
4
|
import { Draw } from 'ol/interaction';
|
|
5
5
|
import { DrawingType } from '../../models';
|
|
6
|
-
import
|
|
6
|
+
import { StyleLike } from 'ol/style/Style';
|
|
7
7
|
export declare class GenerateDrawExecutor extends PostboyExecutor<Draw> {
|
|
8
8
|
layer: Layer<VectorSource<any>>;
|
|
9
|
-
style:
|
|
9
|
+
style: StyleLike;
|
|
10
10
|
type: DrawingType;
|
|
11
11
|
static readonly ID = "5d5f0737-ff70-461e-9a2e-bf6166c914cb";
|
|
12
|
-
constructor(layer: Layer<VectorSource<any>>, style:
|
|
12
|
+
constructor(layer: Layer<VectorSource<any>>, style: StyleLike, type: DrawingType);
|
|
13
13
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PostboyExecutor } from '@artstesh/postboy';
|
|
2
|
+
import { Geometry } from 'ol/geom';
|
|
3
|
+
export declare class GetGeometryLengthExecutor extends PostboyExecutor<number> {
|
|
4
|
+
geometry: Geometry;
|
|
5
|
+
projection: string;
|
|
6
|
+
static readonly ID = "763146df-6d93-4dc2-a532-0e9ba2b2d023";
|
|
7
|
+
constructor(geometry: Geometry, projection?: string);
|
|
8
|
+
}
|
|
9
|
+
export declare class GetGeometryLengthExecutorHandler {
|
|
10
|
+
handle(executor: GetGeometryLengthExecutor): number;
|
|
11
|
+
}
|
|
@@ -21,3 +21,4 @@ export * from './executors/polygon-self-intersection.executor';
|
|
|
21
21
|
export * from './queries/get-features-in-area.query';
|
|
22
22
|
export * from './queries/get-features-in-point.query';
|
|
23
23
|
export * from './commands/fit-to-features.command';
|
|
24
|
+
export { GetGeometryLengthExecutor } from './executors/get-geometry-length.executor';
|
package/dist/map/ol-proxy.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export { FeatureLike } from 'ol/Feature';
|
|
2
2
|
export { Feature } from 'ol';
|
|
3
3
|
export { Style } from 'ol/style';
|
|
4
|
+
export { Fill, RegularShape, Stroke, Text } from 'ol/style';
|
|
5
|
+
export { StyleLike } from 'ol/style/Style';
|
|
6
|
+
export { Geometry, LineString, Point } from 'ol/geom';
|
|
7
|
+
export * as CircleStyle from 'ol/style/Circle';
|
|
@@ -4,12 +4,16 @@ import { Text } from 'ol/style';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class TextStyleHelper {
|
|
6
6
|
/**
|
|
7
|
-
* Creates a new
|
|
7
|
+
* Creates and returns a new Text instance with specified styling properties.
|
|
8
8
|
*
|
|
9
|
-
* @param {string} text - The text content
|
|
10
|
-
* @param {string} font - The font style
|
|
11
|
-
* @param {string} color - The color of the
|
|
12
|
-
* @
|
|
9
|
+
* @param {string} text - The text content to display.
|
|
10
|
+
* @param {string} font - The font style to use for the text.
|
|
11
|
+
* @param {string} color - The color of the text.
|
|
12
|
+
* @param {string|null|undefined} [backColor] - The background color of the text. Optional.
|
|
13
|
+
* @param {number[]|null|undefined} [padding] - The padding around the text in pixels. Optional.
|
|
14
|
+
* @param {string|null|undefined} [textBaseline] - The text baseline alignment. Optional.
|
|
15
|
+
* @param {number|null|undefined} [offsetY] - The vertical offset for the text. Optional.
|
|
16
|
+
* @return {Text} A new Text instance configured with the specified properties.
|
|
13
17
|
*/
|
|
14
|
-
static get(text: string, font: string, color: string): Text;
|
|
18
|
+
static get(text: string, font: string, color: string, backColor?: string | null, padding?: number[] | null, textBaseline?: string | null, offsetY?: number | null): Text;
|
|
15
19
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PostboyCallbackMessage } from '@artstesh/postboy';
|
|
2
2
|
import { DrawingType, FeatureOutputFormat } from '../../models';
|
|
3
|
-
import
|
|
3
|
+
import { StyleLike } from 'ol/style/Style';
|
|
4
4
|
/**
|
|
5
5
|
* Represents a command to start a drawing operation.
|
|
6
6
|
*/
|
|
7
7
|
export declare class StartDrawingCommand extends PostboyCallbackMessage<string | null> {
|
|
8
8
|
type: DrawingType;
|
|
9
|
-
style:
|
|
9
|
+
style: StyleLike;
|
|
10
10
|
format: FeatureOutputFormat;
|
|
11
11
|
static readonly ID = "4407e9ee-d6c3-4e77-8000-c1aae7433fb6";
|
|
12
12
|
/**
|
|
@@ -16,5 +16,5 @@ export declare class StartDrawingCommand extends PostboyCallbackMessage<string |
|
|
|
16
16
|
* @param {Style} style - The style defining visual appearance of the drawing.
|
|
17
17
|
* @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The format of the feature output. Defaults to GeoJson.
|
|
18
18
|
*/
|
|
19
|
-
constructor(type: DrawingType, style:
|
|
19
|
+
constructor(type: DrawingType, style: StyleLike, format?: FeatureOutputFormat);
|
|
20
20
|
}
|
|
@@ -3,11 +3,11 @@ import { Vector as Layer } from 'ol/layer';
|
|
|
3
3
|
import VectorSource from 'ol/source/Vector';
|
|
4
4
|
import { Draw } from 'ol/interaction';
|
|
5
5
|
import { DrawingType } from '../../models';
|
|
6
|
-
import
|
|
6
|
+
import { StyleLike } from 'ol/style/Style';
|
|
7
7
|
export declare class GenerateDrawExecutor extends PostboyExecutor<Draw> {
|
|
8
8
|
layer: Layer<VectorSource<any>>;
|
|
9
|
-
style:
|
|
9
|
+
style: StyleLike;
|
|
10
10
|
type: DrawingType;
|
|
11
11
|
static readonly ID = "5d5f0737-ff70-461e-9a2e-bf6166c914cb";
|
|
12
|
-
constructor(layer: Layer<VectorSource<any>>, style:
|
|
12
|
+
constructor(layer: Layer<VectorSource<any>>, style: StyleLike, type: DrawingType);
|
|
13
13
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PostboyExecutor } from '@artstesh/postboy';
|
|
2
|
+
import { Geometry } from 'ol/geom';
|
|
3
|
+
export declare class GetGeometryLengthExecutor extends PostboyExecutor<number> {
|
|
4
|
+
geometry: Geometry;
|
|
5
|
+
projection: string;
|
|
6
|
+
static readonly ID = "763146df-6d93-4dc2-a532-0e9ba2b2d023";
|
|
7
|
+
constructor(geometry: Geometry, projection?: string);
|
|
8
|
+
}
|
|
9
|
+
export declare class GetGeometryLengthExecutorHandler {
|
|
10
|
+
handle(executor: GetGeometryLengthExecutor): number;
|
|
11
|
+
}
|
|
@@ -21,3 +21,4 @@ export * from './executors/polygon-self-intersection.executor';
|
|
|
21
21
|
export * from './queries/get-features-in-area.query';
|
|
22
22
|
export * from './queries/get-features-in-point.query';
|
|
23
23
|
export * from './commands/fit-to-features.command';
|
|
24
|
+
export { GetGeometryLengthExecutor } from './executors/get-geometry-length.executor';
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export { FeatureLike } from 'ol/Feature';
|
|
2
2
|
export { Feature } from 'ol';
|
|
3
3
|
export { Style } from 'ol/style';
|
|
4
|
+
export { Fill, RegularShape, Stroke, Text } from 'ol/style';
|
|
5
|
+
export { StyleLike } from 'ol/style/Style';
|
|
6
|
+
export { Geometry, LineString, Point } from 'ol/geom';
|
|
7
|
+
export * as CircleStyle from 'ol/style/Circle';
|