dgeoutils 2.4.3 → 2.4.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/cjs/DPolygon.js
CHANGED
|
@@ -68,10 +68,10 @@ var DPoint_1 = require("./DPoint");
|
|
|
68
68
|
var DLine_1 = require("./DLine");
|
|
69
69
|
var DCircle_1 = require("./DCircle");
|
|
70
70
|
var DNumbers_1 = require("./DNumbers");
|
|
71
|
-
var
|
|
71
|
+
var jsts_1 = require("jsts");
|
|
72
72
|
var DPolygonLoop_1 = require("./DPolygonLoop");
|
|
73
73
|
var utils_1 = require("./utils");
|
|
74
|
-
var _a =
|
|
74
|
+
var _a = jsts_1.operation.buffer.BufferParameters, CAP_ROUND = _a.CAP_ROUND, CAP_FLAT = _a.CAP_FLAT, CAP_SQUARE = _a.CAP_SQUARE;
|
|
75
75
|
exports.MIN_POINTS_IN_VALID_POLYGON = 3;
|
|
76
76
|
var APPROXIMATION_VALUE = 0.1;
|
|
77
77
|
var MAX_CONVEX_ITERATIONS = 100;
|
|
@@ -1283,7 +1283,7 @@ var DPolygon = (function () {
|
|
|
1283
1283
|
DPolygon.prototype.buffer = function (v, quadrantSegments, type) {
|
|
1284
1284
|
if (quadrantSegments === void 0) { quadrantSegments = 64; }
|
|
1285
1285
|
if (type === void 0) { type = DPolygon.CAP_ROUND; }
|
|
1286
|
-
var reader = new
|
|
1286
|
+
var reader = new jsts_1.io.WKTReader();
|
|
1287
1287
|
var _a = this, noHoles = _a.noHoles, closed = _a.closed;
|
|
1288
1288
|
var points = reader
|
|
1289
1289
|
.read(noHoles.toWKT(closed ? DPolygon.WKT_POLYGON : DPolygon.WKT_LINESTRING))
|
|
@@ -1415,7 +1415,7 @@ var DPolygon = (function () {
|
|
|
1415
1415
|
};
|
|
1416
1416
|
DPolygon.prototype.getJSTSGeometry = function (p, unionThis, unionThat) {
|
|
1417
1417
|
var unionOrIntersection = unionThat === unionThis;
|
|
1418
|
-
var reader = new
|
|
1418
|
+
var reader = new jsts_1.io.WKTReader();
|
|
1419
1419
|
var a = reader.read(this.noHoles.toWKT());
|
|
1420
1420
|
var b = reader.read(p.noHoles.toWKT());
|
|
1421
1421
|
if (!unionOrIntersection) {
|
package/dist/es2015/DPolygon.js
CHANGED
|
@@ -2,7 +2,7 @@ import { DPoint } from './DPoint';
|
|
|
2
2
|
import { DLine } from './DLine';
|
|
3
3
|
import { DCircle } from './DCircle';
|
|
4
4
|
import { DNumbers } from './DNumbers';
|
|
5
|
-
import { io as jstsIo, operation } from 'jsts
|
|
5
|
+
import { io as jstsIo, operation } from 'jsts';
|
|
6
6
|
import { DPolygonLoop } from './DPolygonLoop';
|
|
7
7
|
import { isDefAndNotNull } from './utils';
|
|
8
8
|
const { buffer: { BufferParameters: { CAP_ROUND, CAP_FLAT, CAP_SQUARE } } } = operation;
|
package/dist/esm/DPolygon.js
CHANGED
|
@@ -65,7 +65,7 @@ import { DPoint } from './DPoint';
|
|
|
65
65
|
import { DLine } from './DLine';
|
|
66
66
|
import { DCircle } from './DCircle';
|
|
67
67
|
import { DNumbers } from './DNumbers';
|
|
68
|
-
import { io as jstsIo, operation } from 'jsts
|
|
68
|
+
import { io as jstsIo, operation } from 'jsts';
|
|
69
69
|
import { DPolygonLoop } from './DPolygonLoop';
|
|
70
70
|
import { isDefAndNotNull } from './utils';
|
|
71
71
|
var _a = operation.buffer.BufferParameters, CAP_ROUND = _a.CAP_ROUND, CAP_FLAT = _a.CAP_FLAT, CAP_SQUARE = _a.CAP_SQUARE;
|