@artstesh/maps 6.2.0 → 6.2.1
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/README.md +7 -0
- package/dist/esm2022/map/messages/executors/calculate-area.executor.mjs +1 -1
- package/dist/esm2022/map/services/map-state.service.mjs +2 -2
- package/dist/esm2022/src/map/messages/executors/calculate-area.executor.mjs +1 -1
- package/dist/esm2022/src/map/services/map-state.service.mjs +2 -2
- package/dist/fesm2022/maps-components-src-map.mjs +1 -1
- package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2022/maps-components.mjs +1 -1
- package/dist/fesm2022/maps-components.mjs.map +1 -1
- package/dist/map/messages/executors/calculate-area.executor.d.ts +1 -3
- package/dist/src/map/messages/executors/calculate-area.executor.d.ts +1 -3
- package/package.json +1 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { PostboyExecutor } from '@artstesh/postboy';
|
|
2
|
-
import { Feature } from 'ol';
|
|
3
|
-
import { Geometry } from 'ol/geom';
|
|
4
2
|
import { PolygonModel } from '../../models';
|
|
5
3
|
/**
|
|
6
4
|
* An executor responsible for calculating the area of a given polygon.
|
|
@@ -9,7 +7,7 @@ import { PolygonModel } from '../../models';
|
|
|
9
7
|
*
|
|
10
8
|
* @return {number} - the spherical area (in square meters)
|
|
11
9
|
*/
|
|
12
|
-
export declare class CalculateAreaExecutor extends PostboyExecutor<
|
|
10
|
+
export declare class CalculateAreaExecutor extends PostboyExecutor<number> {
|
|
13
11
|
polygon: PolygonModel;
|
|
14
12
|
static readonly ID = "82347b8c-7635-45ec-85ef-75aaf43bc34c";
|
|
15
13
|
constructor(polygon: PolygonModel);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { PostboyExecutor } from '@artstesh/postboy';
|
|
2
|
-
import { Feature } from 'ol';
|
|
3
|
-
import { Geometry } from 'ol/geom';
|
|
4
2
|
import { PolygonModel } from '../../models';
|
|
5
3
|
/**
|
|
6
4
|
* An executor responsible for calculating the area of a given polygon.
|
|
@@ -9,7 +7,7 @@ import { PolygonModel } from '../../models';
|
|
|
9
7
|
*
|
|
10
8
|
* @return {number} - the spherical area (in square meters)
|
|
11
9
|
*/
|
|
12
|
-
export declare class CalculateAreaExecutor extends PostboyExecutor<
|
|
10
|
+
export declare class CalculateAreaExecutor extends PostboyExecutor<number> {
|
|
13
11
|
polygon: PolygonModel;
|
|
14
12
|
static readonly ID = "82347b8c-7635-45ec-85ef-75aaf43bc34c";
|
|
15
13
|
constructor(polygon: PolygonModel);
|