dgeoutils 2.4.41 → 2.4.44

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.
Files changed (52) hide show
  1. package/package.json +1 -4
  2. package/dist/cjs/DCircle.d.ts +0 -18
  3. package/dist/cjs/DCircle.js +0 -102
  4. package/dist/cjs/DLine.d.ts +0 -39
  5. package/dist/cjs/DLine.js +0 -343
  6. package/dist/cjs/DNumbers.d.ts +0 -8
  7. package/dist/cjs/DNumbers.js +0 -30
  8. package/dist/cjs/DPlane.d.ts +0 -25
  9. package/dist/cjs/DPlane.js +0 -132
  10. package/dist/cjs/DPoint.d.ts +0 -138
  11. package/dist/cjs/DPoint.js +0 -803
  12. package/dist/cjs/DPolygon.d.ts +0 -137
  13. package/dist/cjs/DPolygon.js +0 -1745
  14. package/dist/cjs/DPolygonLoop.d.ts +0 -60
  15. package/dist/cjs/DPolygonLoop.js +0 -439
  16. package/dist/cjs/FastSearch.d.ts +0 -6
  17. package/dist/cjs/FastSearch.js +0 -53
  18. package/dist/cjs/InterpolationMatrix.d.ts +0 -24
  19. package/dist/cjs/InterpolationMatrix.js +0 -173
  20. package/dist/cjs/TraceMatrix.d.ts +0 -22
  21. package/dist/cjs/TraceMatrix.js +0 -285
  22. package/dist/cjs/index.d.ts +0 -11
  23. package/dist/cjs/index.js +0 -37
  24. package/dist/cjs/utils.d.ts +0 -49
  25. package/dist/cjs/utils.js +0 -280
  26. package/dist/es2015/DCircle.js +0 -87
  27. package/dist/es2015/DLine.js +0 -290
  28. package/dist/es2015/DNumbers.js +0 -22
  29. package/dist/es2015/DPlane.js +0 -105
  30. package/dist/es2015/DPoint.js +0 -676
  31. package/dist/es2015/DPolygon.js +0 -1193
  32. package/dist/es2015/DPolygonLoop.js +0 -430
  33. package/dist/es2015/FastSearch.js +0 -25
  34. package/dist/es2015/InterpolationMatrix.js +0 -128
  35. package/dist/es2015/TraceMatrix.js +0 -229
  36. package/dist/es2015/index.js +0 -11
  37. package/dist/es2015/utils.js +0 -207
  38. package/dist/esm/DCircle.js +0 -99
  39. package/dist/esm/DLine.js +0 -340
  40. package/dist/esm/DNumbers.js +0 -27
  41. package/dist/esm/DPlane.js +0 -129
  42. package/dist/esm/DPoint.js +0 -800
  43. package/dist/esm/DPolygon.js +0 -1742
  44. package/dist/esm/DPolygonLoop.js +0 -436
  45. package/dist/esm/FastSearch.js +0 -50
  46. package/dist/esm/InterpolationMatrix.js +0 -170
  47. package/dist/esm/TraceMatrix.js +0 -282
  48. package/dist/esm/index.js +0 -11
  49. package/dist/esm/utils.js +0 -265
  50. package/dist/umd/dgeoutils.js +0 -4347
  51. package/dist/umd/dgeoutils.min.js +0 -1
  52. package/dist/umd/dgeoutils.min.js.map +0 -1
@@ -1,137 +0,0 @@
1
- /// <reference types="offscreencanvas" />
2
- import { DCoord, DPoint, LatLng, XYZ } from './DPoint';
3
- import { DLine } from './DLine';
4
- import { DPolygonLoop } from './DPolygonLoop';
5
- import { True } from './utils';
6
- import { LineString, Polygon, Geometry as GeoJsonGeometry, Feature, FeatureCollection } from 'geojson';
7
- interface DeepArray<T> extends Array<T | DeepArray<T>> {
8
- }
9
- export declare const MIN_POINTS_IN_VALID_POLYGON = 3;
10
- declare type SetterFunction<T> = (t: DPolygon) => T;
11
- export declare class DPolygon {
12
- private pPoints;
13
- properties: Record<string, any>;
14
- holes: DPolygon[];
15
- private searchStore;
16
- constructor(pPoints?: DPoint[]);
17
- static CAP_ROUND: number;
18
- static CAP_FLAT: number;
19
- static CAP_SQUARE: number;
20
- static arrayOfTrianglesToVertices(triangles: DPolygon[], height?: number): number[];
21
- static minAreaRectangleSize(poly: DPolygon): DPoint;
22
- static toDash(poly: DPolygon): DPolygon[];
23
- static minAreaRectangleDirection(poly: DPolygon): number;
24
- static parseFromWKT(wkt: string): DPolygon;
25
- static createSquareBySize(size: DPoint): DPolygon;
26
- loop(): DPolygonLoop;
27
- set points(p: DPoint[]);
28
- get points(): DPoint[];
29
- get maxX(): number;
30
- get minX(): number;
31
- get maxY(): number;
32
- get minY(): number;
33
- get innerCenter(): DPoint;
34
- get center(): DPoint;
35
- get h(): number;
36
- get w(): number;
37
- get dY(): number;
38
- get dX(): number;
39
- get extend(): DPolygon;
40
- get size(): DPoint;
41
- get leftTop(): DPoint;
42
- get minPoint(): DPoint;
43
- get rightBottom(): DPoint;
44
- get maxPoint(): DPoint;
45
- get length(): number;
46
- get fullLength(): number;
47
- get perimeter(): number;
48
- get area(): number;
49
- get filledDeintersection(): DPolygon;
50
- get deintersection(): DPolygon;
51
- get valid(): boolean;
52
- get first(): DPoint;
53
- get second(): DPoint;
54
- get last(): DPoint;
55
- get minAreaRectangle(): DPolygon;
56
- get convex(): DPolygon;
57
- get isClockwise(): boolean;
58
- get clockWise(): DPolygon;
59
- get noHoles(): DPolygon;
60
- reduce<T>(f: (a: T, p: DPoint) => T, v: T): T;
61
- reduce<T>(f: (a: T, p: DPoint, index: number) => T, v: T): T;
62
- intersection(l: DLine, includeOnly?: boolean): DPoint[];
63
- setCenter(newCenter: DPoint): DPolygon;
64
- static WKT_LINESTRING: string;
65
- static WKT_POLYGON: string;
66
- toWKT(type?: string, withZ?: boolean): string;
67
- filter(f: (p: DPoint) => boolean): DPolygon;
68
- map(f: (r: DPoint) => DPoint): DPolygon;
69
- map(f: (r: DPoint, index: number) => DPoint): DPolygon;
70
- mapArray<T>(f: (r: DPoint) => T): T[];
71
- mapArray<T>(f: (r: DPoint, index: number) => T): T[];
72
- sort(f: (a: DPoint, b: DPoint) => number): DPolygon;
73
- at(index: number): DPoint;
74
- pop(): DPoint;
75
- push(...args: DPoint[]): number;
76
- shift(): DPoint;
77
- unshift(...args: DPoint[]): number;
78
- reverse(): DPolygon;
79
- getValue(): string;
80
- toString(): string;
81
- close(): DPolygon;
82
- open(): DPolygon;
83
- add(poly: DPolygon): DPolygon;
84
- has(p: DPoint): boolean;
85
- clone(): DPolygon;
86
- equal(p: DPolygon | null): boolean;
87
- same(p: DPolygon): boolean;
88
- findIndex(p: DPoint): number;
89
- findIndex(f: (p: DPoint) => boolean): number;
90
- findIndex(f: (p: DPoint, index: number) => boolean): number;
91
- approximation(e?: number): DPolygon;
92
- insertAfter(index: number, ...points: DPoint[]): void;
93
- removePart(index: number, count: number): DPoint[];
94
- hasSimpleIntersection(p: DPolygon): boolean;
95
- simpleInclude(p: DPoint): boolean;
96
- drawPolygonOnCanvas(canvas: HTMLCanvasElement | OffscreenCanvas, fillColor?: string, strokeColor?: string, shadowColor?: string, lineWidth?: number, steps?: number): DPolygon;
97
- clearPolygonOnCanvas(canvas: HTMLCanvasElement | OffscreenCanvas): void;
98
- contain(p: DPoint, isBorderInside?: boolean): boolean;
99
- onBorder(p: DPoint): boolean;
100
- nextStart(): DPolygon;
101
- removeDuplicates(): DPolygon;
102
- static toGeoJSONFeatureCollection(polygons: DPolygon[], format?: string): FeatureCollection<LineString | Polygon>;
103
- static parse(a: LatLng[], format?: string): DPolygon;
104
- static parse(a: number[][], format?: string): DPolygon;
105
- static parse(a: DCoord[], format?: string): DPolygon;
106
- static parse(a: XYZ[], format?: string): DPolygon;
107
- static parse(a: GeoJsonGeometry | Feature | FeatureCollection<LineString | Polygon>, format?: string): DPolygon | DeepArray<DPolygon>;
108
- toArrayOfCoords(format?: string): DCoord[];
109
- toGeoJSONFeature(format?: string): Feature<LineString | Polygon>;
110
- toGeoJSON(format?: string): LineString | Polygon;
111
- divideToPieces(piecesCount: number, withAltitude?: boolean): DPolygon;
112
- prepareToFastSearch(): void;
113
- fastHas({ x, y, z }: DPoint): boolean;
114
- get growingPiecesGenerator(): () => Generator<DPolygon, DPolygon>;
115
- simpleUnion(p: DPolygon): DPolygon | null;
116
- simpleIntersection(p: DPolygon): DPolygon | null | DPolygon[];
117
- simpleDifference(p: DPolygon): DPolygon | null | DPolygon[];
118
- smartUnion(p: DPolygon): DPolygon | null;
119
- toTriangles(): DPolygon[];
120
- getTrianglesPointIndexes(): number[];
121
- get closed(): boolean;
122
- buffer(v: number, quadrantSegments?: number, type?: number): DPolygon;
123
- sideBuffers(v: number, quadrantSegments?: number): [DPolygon, DPolygon];
124
- setProperties(v: SetterFunction<Record<string, any>> | Record<string, any>): DPolygon;
125
- bezier(step?: number): DPolygon;
126
- setGrowingHeight(from: number, to: number): DPolygon;
127
- loopPointsGenerator(): () => Generator<[DPoint, DPoint, undefined, number]>;
128
- loopPointsGenerator(withLine: True): () => Generator<[DPoint, DPoint, DLine, number]>;
129
- private getBezierPoint;
130
- private simpleIncludeX;
131
- private simpleIncludeY;
132
- private douglasPeucker;
133
- private goByPath;
134
- private getJSTSGeometry;
135
- private simpleLogicFunction;
136
- }
137
- export {};