@artstesh/maps 6.1.3 → 6.1.4
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/messages/executors/polygon-self-intersection.executor.mjs +10 -0
- package/dist/esm2022/map/messages/index.mjs +2 -1
- package/dist/esm2022/map/services/feature.service.mjs +53 -2
- package/dist/esm2022/map/services/message-registrator.service.mjs +3 -2
- package/dist/esm2022/src/map/messages/executors/polygon-self-intersection.executor.mjs +10 -0
- package/dist/esm2022/src/map/messages/index.mjs +2 -1
- package/dist/esm2022/src/map/services/feature.service.mjs +53 -2
- package/dist/esm2022/src/map/services/message-registrator.service.mjs +3 -2
- package/dist/fesm2022/maps-components-src-map.mjs +63 -2
- package/dist/fesm2022/maps-components-src-map.mjs.map +1 -1
- package/dist/fesm2022/maps-components.mjs +63 -2
- package/dist/fesm2022/maps-components.mjs.map +1 -1
- package/dist/map/messages/executors/polygon-self-intersection.executor.d.ts +7 -0
- package/dist/map/messages/index.d.ts +1 -0
- package/dist/map/services/feature.service.d.ts +5 -0
- package/dist/src/map/messages/executors/polygon-self-intersection.executor.d.ts +7 -0
- package/dist/src/map/messages/index.d.ts +1 -0
- package/dist/src/map/services/feature.service.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PostboyGenericMessage } from '@artstesh/postboy';
|
|
2
|
+
import { PolygonModel } from '../../models';
|
|
3
|
+
export declare class PolygonSelfIntersectionExecutor extends PostboyGenericMessage {
|
|
4
|
+
polygon: PolygonModel;
|
|
5
|
+
static readonly ID = "a4ef116d-fe40-4e92-9d4a-653f8b398c62";
|
|
6
|
+
constructor(polygon: PolygonModel);
|
|
7
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from './executors/filter-features-in-point.executor';
|
|
|
17
17
|
export * from './executors/filter-features-in-area.executor';
|
|
18
18
|
export * from './executors/calculate-area.executor';
|
|
19
19
|
export * from './executors/get-map-position.executor';
|
|
20
|
+
export * from './executors/polygon-self-intersection.executor';
|
|
20
21
|
export * from './queries/get-features-in-area.query';
|
|
21
22
|
export * from './queries/get-features-in-point.query';
|
|
22
23
|
export * from './commands/fit-to-features.command';
|
|
@@ -7,5 +7,10 @@ export declare class FeatureService {
|
|
|
7
7
|
static filterFeaturesInArea(query: FilterFeaturesInAreaExecutor): Feature<Geometry>[];
|
|
8
8
|
static filterFeaturesInPoint(query: FilterFeaturesInPointExecutor): Feature<Geometry>[];
|
|
9
9
|
static calculateArea(g: Geometry | undefined): number;
|
|
10
|
+
static polygonSelfIntersects(feature: Feature<Geometry>): boolean;
|
|
10
11
|
private static booleanIntersects;
|
|
12
|
+
private static getSegmentsFromCoordinates;
|
|
13
|
+
private static segmentIntersection;
|
|
14
|
+
private static orientation;
|
|
15
|
+
private static onSegment;
|
|
11
16
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PostboyGenericMessage } from '@artstesh/postboy';
|
|
2
|
+
import { PolygonModel } from '../../models';
|
|
3
|
+
export declare class PolygonSelfIntersectionExecutor extends PostboyGenericMessage {
|
|
4
|
+
polygon: PolygonModel;
|
|
5
|
+
static readonly ID = "a4ef116d-fe40-4e92-9d4a-653f8b398c62";
|
|
6
|
+
constructor(polygon: PolygonModel);
|
|
7
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from './executors/filter-features-in-point.executor';
|
|
|
17
17
|
export * from './executors/filter-features-in-area.executor';
|
|
18
18
|
export * from './executors/calculate-area.executor';
|
|
19
19
|
export * from './executors/get-map-position.executor';
|
|
20
|
+
export * from './executors/polygon-self-intersection.executor';
|
|
20
21
|
export * from './queries/get-features-in-area.query';
|
|
21
22
|
export * from './queries/get-features-in-point.query';
|
|
22
23
|
export * from './commands/fit-to-features.command';
|
|
@@ -7,5 +7,10 @@ export declare class FeatureService {
|
|
|
7
7
|
static filterFeaturesInArea(query: FilterFeaturesInAreaExecutor): Feature<Geometry>[];
|
|
8
8
|
static filterFeaturesInPoint(query: FilterFeaturesInPointExecutor): Feature<Geometry>[];
|
|
9
9
|
static calculateArea(g: Geometry | undefined): number;
|
|
10
|
+
static polygonSelfIntersects(feature: Feature<Geometry>): boolean;
|
|
10
11
|
private static booleanIntersects;
|
|
12
|
+
private static getSegmentsFromCoordinates;
|
|
13
|
+
private static segmentIntersection;
|
|
14
|
+
private static orientation;
|
|
15
|
+
private static onSegment;
|
|
11
16
|
}
|