@maptiler/geocoding-control 0.0.52 → 0.0.53
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/leaflet.js +171 -171
- package/dist/leaflet.umd.js +3 -3
- package/dist/maplibregl.js +171 -171
- package/dist/maplibregl.umd.js +3 -3
- package/package.json +2 -2
- package/src/lib/GeocodingControl.svelte +11 -9
package/dist/maplibregl.js
CHANGED
|
@@ -672,15 +672,15 @@ function Fl(r, t, e) {
|
|
|
672
672
|
return r === n && e ? r : ((r - i) % o + o) % o + i;
|
|
673
673
|
}
|
|
674
674
|
function Bl(r, t, e) {
|
|
675
|
-
let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { mapController: a = void 0 } = t, { apiKey: u } = t, { debounceSearch: l = 200 } = t, { placeholder: c = "Search" } = t, { errorMessage: f = "Searching failed" } = t, { noResultsMessage: h = "No results found" } = t, { proximity: g = void 0 } = t, { bbox: p = void 0 } = t, { trackProximity: v = !0 } = t, { minLength: y = 2 } = t, { language: m = void 0 } = t, { showResultsWhileTyping: E = !0 } = t, { zoom: N = 16 } = t, { flyTo: C = !0 } = t, { collapsed: L = !1 } = t, { clearOnBlur: w = !1 } = t, { enableReverse: D = !1 } = t, { reverseButtonTitle: T = "toggle reverse geocoding" } = t, { clearButtonTitle: F = "clear" } = t, { filter: j = () => !0 } = t, { searchValue: k = "" } = t, { reverseActive: O = D === "always" } = t, { showPlaceType: Y = !1 } = t, { showFullGeometry: P = !0 } = t, { limit: X = void 0 } = t, { fuzzyMatch: ut = !0 } = t, { country: yt = void 0 } = t, { types:
|
|
675
|
+
let n, { $$slots: i = {}, $$scope: o } = t, { class: s = void 0 } = t, { mapController: a = void 0 } = t, { apiKey: u } = t, { debounceSearch: l = 200 } = t, { placeholder: c = "Search" } = t, { errorMessage: f = "Searching failed" } = t, { noResultsMessage: h = "No results found" } = t, { proximity: g = void 0 } = t, { bbox: p = void 0 } = t, { trackProximity: v = !0 } = t, { minLength: y = 2 } = t, { language: m = void 0 } = t, { showResultsWhileTyping: E = !0 } = t, { zoom: N = 16 } = t, { flyTo: C = !0 } = t, { collapsed: L = !1 } = t, { clearOnBlur: w = !1 } = t, { enableReverse: D = !1 } = t, { reverseButtonTitle: T = "toggle reverse geocoding" } = t, { clearButtonTitle: F = "clear" } = t, { filter: j = () => !0 } = t, { searchValue: k = "" } = t, { reverseActive: O = D === "always" } = t, { showPlaceType: Y = !1 } = t, { showFullGeometry: P = !0 } = t, { limit: X = void 0 } = t, { fuzzyMatch: ut = !0 } = t, { country: yt = void 0 } = t, { types: Xt = void 0 } = t;
|
|
676
676
|
function we() {
|
|
677
677
|
An.focus();
|
|
678
678
|
}
|
|
679
679
|
function Mr() {
|
|
680
680
|
An.blur();
|
|
681
681
|
}
|
|
682
|
-
function Ze(x,
|
|
683
|
-
e(0, k = x),
|
|
682
|
+
function Ze(x, Ft = !0) {
|
|
683
|
+
e(0, k = x), Ft ? (e(13, At = -1), Qs()) : (ss(), setTimeout(() => {
|
|
684
684
|
An.focus(), An.select();
|
|
685
685
|
}));
|
|
686
686
|
}
|
|
@@ -693,28 +693,28 @@ function Bl(r, t, e) {
|
|
|
693
693
|
if (oi && (clearTimeout(oi), oi = void 0), At > -1 && J)
|
|
694
694
|
e(44, it = J[At]), e(0, k = it.place_name.replace(/,.*/, "")), e(16, hr = void 0), e(43, Mt = void 0), e(13, At = -1);
|
|
695
695
|
else if (k) {
|
|
696
|
-
const
|
|
696
|
+
const Ft = x || !Js();
|
|
697
697
|
os(k, { exact: !0 }).then(() => {
|
|
698
|
-
e(43, Mt = J), e(44, it = void 0),
|
|
698
|
+
e(43, Mt = J), e(44, it = void 0), Ft && Xu();
|
|
699
699
|
}).catch((Fn) => e(16, hr = Fn));
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
function Js() {
|
|
703
703
|
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(k);
|
|
704
704
|
}
|
|
705
|
-
async function os(x, { byId:
|
|
705
|
+
async function os(x, { byId: Ft = !1, exact: Fn = !1 } = {}) {
|
|
706
706
|
e(16, hr = void 0);
|
|
707
707
|
const zi = Js(), Ge = new URLSearchParams();
|
|
708
|
-
m && Ge.set("language", Array.isArray(m) ? m.join(",") : m), yt && Ge.set("country", Array.isArray(yt) ? yt.join(",") : yt),
|
|
708
|
+
m && Ge.set("language", Array.isArray(m) ? m.join(",") : m), yt && Ge.set("country", Array.isArray(yt) ? yt.join(",") : yt), Xt && Ge.set("types", Xt.join(",")), zi || (p && Ge.set("bbox", p.map((Br) => Br.toFixed(6)).join(",")), Ft || (g && Ge.set("proximity", g.map((Br) => Br.toFixed(6)).join(",")), (Fn || !E) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(ut)))), X !== void 0 && Ge.set("limit", String(X)), Ge.set("key", u);
|
|
709
709
|
const Fr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(x) + ".json?" + Ge.toString();
|
|
710
710
|
if (Fr === Ks) {
|
|
711
|
-
|
|
711
|
+
Ft ? (e(12, J = void 0), e(44, it = _o[0])) : e(12, J = _o);
|
|
712
712
|
return;
|
|
713
713
|
}
|
|
714
714
|
Ks = Fr, Ar == null || Ar.abort(), e(17, Ar = new AbortController());
|
|
715
715
|
let ve;
|
|
716
716
|
try {
|
|
717
|
-
ve = await fetch(Fr, { signal: Ar.signal }).finally(() => {
|
|
717
|
+
console.log("FFFFFFF"), ve = await fetch(Fr, { signal: Ar.signal }).finally(() => {
|
|
718
718
|
e(17, Ar = void 0);
|
|
719
719
|
});
|
|
720
720
|
} catch (Br) {
|
|
@@ -725,15 +725,15 @@ function Bl(r, t, e) {
|
|
|
725
725
|
if (!ve.ok)
|
|
726
726
|
throw new Error();
|
|
727
727
|
const us = await ve.json();
|
|
728
|
-
gr("response", { url: Fr, featureCollection: us }),
|
|
728
|
+
gr("response", { url: Fr, featureCollection: us }), Ft ? (e(12, J = void 0), e(44, it = us.features[0]), _o = [it]) : (e(12, J = us.features.filter(j)), _o = J, zi && An.focus());
|
|
729
729
|
}
|
|
730
730
|
function Xu() {
|
|
731
731
|
var Fn, zi, Ge, Fr;
|
|
732
732
|
if (!(Mt != null && Mt.length) || !C)
|
|
733
733
|
return;
|
|
734
|
-
const x = [180, 90, -180, -90],
|
|
734
|
+
const x = [180, 90, -180, -90], Ft = !Mt.some((ve) => !ve.matching_text);
|
|
735
735
|
for (const ve of Mt)
|
|
736
|
-
(
|
|
736
|
+
(Ft || !ve.matching_text) && (x[0] = Math.min(x[0], ((Fn = ve.bbox) == null ? void 0 : Fn[0]) ?? ve.center[0]), x[1] = Math.min(x[1], ((zi = ve.bbox) == null ? void 0 : zi[1]) ?? ve.center[1]), x[2] = Math.max(x[2], ((Ge = ve.bbox) == null ? void 0 : Ge[2]) ?? ve.center[0]), x[3] = Math.max(x[3], ((Fr = ve.bbox) == null ? void 0 : Fr[3]) ?? ve.center[1]));
|
|
737
737
|
a && Mt.length > 0 && (it && x[0] === x[2] && x[1] === x[3] ? a.flyTo(it.center, N) : a.fitBounds(x, 50));
|
|
738
738
|
}
|
|
739
739
|
function Yu(x) {
|
|
@@ -742,16 +742,16 @@ function Bl(r, t, e) {
|
|
|
742
742
|
function Hu(x) {
|
|
743
743
|
if (!J)
|
|
744
744
|
return;
|
|
745
|
-
let
|
|
746
|
-
|
|
745
|
+
let Ft = x.key === "ArrowDown" ? 1 : x.key === "ArrowUp" ? -1 : 0;
|
|
746
|
+
Ft ? (At === -1 && Ft === -1 && e(13, At = J.length), e(13, At += Ft), At >= J.length && e(13, At = -1), x.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(x.key) && e(13, At = -1);
|
|
747
747
|
}
|
|
748
748
|
function ss(x = !0) {
|
|
749
749
|
if (E && k.length > y) {
|
|
750
750
|
oi && clearTimeout(oi);
|
|
751
|
-
const
|
|
751
|
+
const Ft = k;
|
|
752
752
|
oi = window.setTimeout(
|
|
753
753
|
() => {
|
|
754
|
-
os(
|
|
754
|
+
os(Ft).catch((Fn) => e(16, hr = Fn));
|
|
755
755
|
},
|
|
756
756
|
x ? l : 0
|
|
757
757
|
);
|
|
@@ -759,7 +759,7 @@ function Bl(r, t, e) {
|
|
|
759
759
|
e(12, J = void 0), e(16, hr = void 0);
|
|
760
760
|
}
|
|
761
761
|
function as(x) {
|
|
762
|
-
|
|
762
|
+
e(44, it = x), e(0, k = x.place_name), e(13, At = -1);
|
|
763
763
|
}
|
|
764
764
|
const Wu = () => An.focus();
|
|
765
765
|
function ju(x) {
|
|
@@ -775,7 +775,7 @@ function Bl(r, t, e) {
|
|
|
775
775
|
}, tl = () => e(1, O = !O), el = (x) => e(13, At = x), nl = (x) => as(x), rl = () => e(13, At = -1), il = () => {
|
|
776
776
|
};
|
|
777
777
|
return r.$$set = (x) => {
|
|
778
|
-
"class" in x && e(2, s = x.class), "mapController" in x && e(23, a = x.mapController), "apiKey" in x && e(24, u = x.apiKey), "debounceSearch" in x && e(25, l = x.debounceSearch), "placeholder" in x && e(3, c = x.placeholder), "errorMessage" in x && e(4, f = x.errorMessage), "noResultsMessage" in x && e(5, h = x.noResultsMessage), "proximity" in x && e(22, g = x.proximity), "bbox" in x && e(26, p = x.bbox), "trackProximity" in x && e(27, v = x.trackProximity), "minLength" in x && e(28, y = x.minLength), "language" in x && e(29, m = x.language), "showResultsWhileTyping" in x && e(30, E = x.showResultsWhileTyping), "zoom" in x && e(31, N = x.zoom), "flyTo" in x && e(32, C = x.flyTo), "collapsed" in x && e(6, L = x.collapsed), "clearOnBlur" in x && e(33, w = x.clearOnBlur), "enableReverse" in x && e(7, D = x.enableReverse), "reverseButtonTitle" in x && e(8, T = x.reverseButtonTitle), "clearButtonTitle" in x && e(9, F = x.clearButtonTitle), "filter" in x && e(34, j = x.filter), "searchValue" in x && e(0, k = x.searchValue), "reverseActive" in x && e(1, O = x.reverseActive), "showPlaceType" in x && e(10, Y = x.showPlaceType), "showFullGeometry" in x && e(35, P = x.showFullGeometry), "limit" in x && e(36, X = x.limit), "fuzzyMatch" in x && e(37, ut = x.fuzzyMatch), "country" in x && e(38, yt = x.country), "types" in x && e(39,
|
|
778
|
+
"class" in x && e(2, s = x.class), "mapController" in x && e(23, a = x.mapController), "apiKey" in x && e(24, u = x.apiKey), "debounceSearch" in x && e(25, l = x.debounceSearch), "placeholder" in x && e(3, c = x.placeholder), "errorMessage" in x && e(4, f = x.errorMessage), "noResultsMessage" in x && e(5, h = x.noResultsMessage), "proximity" in x && e(22, g = x.proximity), "bbox" in x && e(26, p = x.bbox), "trackProximity" in x && e(27, v = x.trackProximity), "minLength" in x && e(28, y = x.minLength), "language" in x && e(29, m = x.language), "showResultsWhileTyping" in x && e(30, E = x.showResultsWhileTyping), "zoom" in x && e(31, N = x.zoom), "flyTo" in x && e(32, C = x.flyTo), "collapsed" in x && e(6, L = x.collapsed), "clearOnBlur" in x && e(33, w = x.clearOnBlur), "enableReverse" in x && e(7, D = x.enableReverse), "reverseButtonTitle" in x && e(8, T = x.reverseButtonTitle), "clearButtonTitle" in x && e(9, F = x.clearButtonTitle), "filter" in x && e(34, j = x.filter), "searchValue" in x && e(0, k = x.searchValue), "reverseActive" in x && e(1, O = x.reverseActive), "showPlaceType" in x && e(10, Y = x.showPlaceType), "showFullGeometry" in x && e(35, P = x.showFullGeometry), "limit" in x && e(36, X = x.limit), "fuzzyMatch" in x && e(37, ut = x.fuzzyMatch), "country" in x && e(38, yt = x.country), "types" in x && e(39, Xt = x.types), "$$scope" in x && e(46, o = x.$$scope);
|
|
779
779
|
}, r.$$.update = () => {
|
|
780
780
|
if (r.$$.dirty[0] & 134217728 && (v || e(22, g = void 0)), r.$$.dirty[0] & 2048 | r.$$.dirty[1] & 4 && setTimeout(() => {
|
|
781
781
|
e(14, Eo = Le), w && !Le && e(0, k = "");
|
|
@@ -785,16 +785,16 @@ function Bl(r, t, e) {
|
|
|
785
785
|
O && Yu(x.coordinates);
|
|
786
786
|
break;
|
|
787
787
|
case "proximityChange":
|
|
788
|
-
e(22, g = v ? x.proximity : void 0);
|
|
788
|
+
console.log("AAAAAAAAA"), e(22, g = v ? x.proximity : void 0);
|
|
789
789
|
break;
|
|
790
790
|
case "markerClick":
|
|
791
791
|
{
|
|
792
|
-
const
|
|
793
|
-
|
|
792
|
+
const Ft = J == null ? void 0 : J.find((Fn) => Fn.id === x.id);
|
|
793
|
+
Ft && as(Ft);
|
|
794
794
|
}
|
|
795
795
|
break;
|
|
796
796
|
case "markerMouseEnter":
|
|
797
|
-
e(13, At = Eo ? (J == null ? void 0 : J.findIndex((
|
|
797
|
+
e(13, At = Eo ? (J == null ? void 0 : J.findIndex((Ft) => Ft.id === x.id)) ?? -1 : -1);
|
|
798
798
|
break;
|
|
799
799
|
case "markerMouseLeave":
|
|
800
800
|
e(13, At = -1);
|
|
@@ -845,7 +845,7 @@ function Bl(r, t, e) {
|
|
|
845
845
|
X,
|
|
846
846
|
ut,
|
|
847
847
|
yt,
|
|
848
|
-
|
|
848
|
+
Xt,
|
|
849
849
|
we,
|
|
850
850
|
Mr,
|
|
851
851
|
Ze,
|
|
@@ -3242,13 +3242,13 @@ var ou = function() {
|
|
|
3242
3242
|
}, t.prototype.getClass = function() {
|
|
3243
3243
|
return t;
|
|
3244
3244
|
}, t;
|
|
3245
|
-
}(ou),
|
|
3245
|
+
}(ou), zt = function() {
|
|
3246
3246
|
};
|
|
3247
|
-
|
|
3247
|
+
zt.arraycopy = function(t, e, n, i, o) {
|
|
3248
3248
|
for (var s = 0, a = e; a < e + o; a++)
|
|
3249
3249
|
n[i + s] = t[a], s++;
|
|
3250
3250
|
};
|
|
3251
|
-
|
|
3251
|
+
zt.getProperty = function(t) {
|
|
3252
3252
|
return {
|
|
3253
3253
|
"line.separator": `
|
|
3254
3254
|
`
|
|
@@ -3862,7 +3862,7 @@ var Dr = function(r) {
|
|
|
3862
3862
|
return Math.abs(i) < u && (a = i, u = Math.abs(i)), Math.abs(o) < u && (a = o, u = Math.abs(o)), Math.abs(s) < u && (a = s), a;
|
|
3863
3863
|
}, t.prototype.checkDD = function(n, i, o, s, a) {
|
|
3864
3864
|
var u = ae.intersection(n, i, o, s), l = this.isInSegmentEnvelopes(u);
|
|
3865
|
-
|
|
3865
|
+
zt.out.println("DD in env = " + l + " --------------------- " + u), a.distance(u) > 1e-4 && zt.out.println("Distance = " + a.distance(u));
|
|
3866
3866
|
}, t.prototype.intersectionWithNormalization = function(n, i, o, s) {
|
|
3867
3867
|
var a = new d(n), u = new d(i), l = new d(o), c = new d(s), f = new d();
|
|
3868
3868
|
this.normalizeToEnvCentre(a, u, l, c, f);
|
|
@@ -4650,7 +4650,7 @@ W.scroll = function(t, e) {
|
|
|
4650
4650
|
if (n < 0)
|
|
4651
4651
|
return null;
|
|
4652
4652
|
var i = new Array(t.length).fill(null);
|
|
4653
|
-
|
|
4653
|
+
zt.arraycopy(t, n, i, 0, t.length - n), zt.arraycopy(t, 0, i, t.length - n, n), zt.arraycopy(i, 0, t, 0, t.length);
|
|
4654
4654
|
};
|
|
4655
4655
|
W.equals = function() {
|
|
4656
4656
|
if (arguments.length === 2) {
|
|
@@ -5542,7 +5542,7 @@ Re.spaces = function(t) {
|
|
|
5542
5542
|
return Re.chars(" ", t);
|
|
5543
5543
|
};
|
|
5544
5544
|
Fs.NEWLINE.get = function() {
|
|
5545
|
-
return
|
|
5545
|
+
return zt.getProperty("line.separator");
|
|
5546
5546
|
};
|
|
5547
5547
|
Fs.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
5548
5548
|
return new mc();
|
|
@@ -5935,9 +5935,9 @@ var Rt = function(r) {
|
|
|
5935
5935
|
if (s.isEmpty())
|
|
5936
5936
|
return null;
|
|
5937
5937
|
var u = new Array(s.getCoordinates().length - 1).fill(null);
|
|
5938
|
-
|
|
5938
|
+
zt.arraycopy(s.getCoordinates(), 0, u, 0, u.length);
|
|
5939
5939
|
var l = W.minCoordinate(s.getCoordinates());
|
|
5940
|
-
W.scroll(u, l),
|
|
5940
|
+
W.scroll(u, l), zt.arraycopy(u, 0, s.getCoordinates(), 0, u.length), s.getCoordinates()[u.length] = u[0], R.isCCW(s.getCoordinates()) === a && W.reverse(s.getCoordinates());
|
|
5941
5941
|
}
|
|
5942
5942
|
}, t.prototype.getCoordinate = function() {
|
|
5943
5943
|
return this._shell.getCoordinate();
|
|
@@ -7939,7 +7939,7 @@ gt.prototype.linkResultDirectedEdges = function() {
|
|
|
7939
7939
|
}
|
|
7940
7940
|
};
|
|
7941
7941
|
gt.prototype.debugPrintln = function(t) {
|
|
7942
|
-
|
|
7942
|
+
zt.out.println(t);
|
|
7943
7943
|
};
|
|
7944
7944
|
gt.prototype.isBoundaryNode = function(t, e) {
|
|
7945
7945
|
var n = this._nodes.find(e);
|
|
@@ -7961,7 +7961,7 @@ gt.prototype.getEdgeEnds = function() {
|
|
|
7961
7961
|
return this._edgeEndList;
|
|
7962
7962
|
};
|
|
7963
7963
|
gt.prototype.debugPrint = function(t) {
|
|
7964
|
-
|
|
7964
|
+
zt.out.print(t);
|
|
7965
7965
|
};
|
|
7966
7966
|
gt.prototype.getEdgeIterator = function() {
|
|
7967
7967
|
return this._edges.iterator();
|
|
@@ -10312,7 +10312,7 @@ jt.prototype.getCoordinate = function() {
|
|
|
10312
10312
|
return e.getCoordinate();
|
|
10313
10313
|
};
|
|
10314
10314
|
jt.prototype.print = function(t) {
|
|
10315
|
-
|
|
10315
|
+
zt.out.println("EdgeEndStar: " + this.getCoordinate());
|
|
10316
10316
|
for (var e = this.iterator(); e.hasNext(); ) {
|
|
10317
10317
|
var n = e.next();
|
|
10318
10318
|
n.print(t);
|
|
@@ -10445,7 +10445,7 @@ var wc = function(r) {
|
|
|
10445
10445
|
var s = n.get(i - 1), a = o.getQuadrant(), u = s.getQuadrant();
|
|
10446
10446
|
return rt.isNorthern(a) && rt.isNorthern(u) ? o : !rt.isNorthern(a) && !rt.isNorthern(u) ? s : o.getDy() !== 0 ? o : s.getDy() !== 0 ? s : (q.shouldNeverReachHere("found two horizontal edges incident on node"), null);
|
|
10447
10447
|
}, t.prototype.print = function(n) {
|
|
10448
|
-
|
|
10448
|
+
zt.out.println("DirectedEdgeStar: " + this.getCoordinate());
|
|
10449
10449
|
for (var i = this.iterator(); i.hasNext(); ) {
|
|
10450
10450
|
var o = i.next();
|
|
10451
10451
|
n.print("out "), o.print(n), n.println(), n.print("in "), o.getSym().print(n), n.println();
|
|
@@ -10884,7 +10884,7 @@ Qn.prototype.interfaces_ = function() {
|
|
|
10884
10884
|
Qn.prototype.getClass = function() {
|
|
10885
10885
|
return Qn;
|
|
10886
10886
|
};
|
|
10887
|
-
var
|
|
10887
|
+
var kt = function r() {
|
|
10888
10888
|
var t = this;
|
|
10889
10889
|
this._depth = Array(2).fill().map(function() {
|
|
10890
10890
|
return Array(3);
|
|
@@ -10893,29 +10893,29 @@ var Gt = function r() {
|
|
|
10893
10893
|
for (var n = 0; n < 3; n++)
|
|
10894
10894
|
t._depth[e][n] = r.NULL_VALUE;
|
|
10895
10895
|
}, mu = { NULL_VALUE: { configurable: !0 } };
|
|
10896
|
-
|
|
10896
|
+
kt.prototype.getDepth = function(t, e) {
|
|
10897
10897
|
return this._depth[t][e];
|
|
10898
10898
|
};
|
|
10899
|
-
|
|
10899
|
+
kt.prototype.setDepth = function(t, e, n) {
|
|
10900
10900
|
this._depth[t][e] = n;
|
|
10901
10901
|
};
|
|
10902
|
-
|
|
10902
|
+
kt.prototype.isNull = function() {
|
|
10903
10903
|
var t = this;
|
|
10904
10904
|
if (arguments.length === 0) {
|
|
10905
10905
|
for (var e = 0; e < 2; e++)
|
|
10906
10906
|
for (var n = 0; n < 3; n++)
|
|
10907
|
-
if (t._depth[e][n] !==
|
|
10907
|
+
if (t._depth[e][n] !== kt.NULL_VALUE)
|
|
10908
10908
|
return !1;
|
|
10909
10909
|
return !0;
|
|
10910
10910
|
} else if (arguments.length === 1) {
|
|
10911
10911
|
var i = arguments[0];
|
|
10912
|
-
return this._depth[i][1] ===
|
|
10912
|
+
return this._depth[i][1] === kt.NULL_VALUE;
|
|
10913
10913
|
} else if (arguments.length === 2) {
|
|
10914
10914
|
var o = arguments[0], s = arguments[1];
|
|
10915
|
-
return this._depth[o][s] ===
|
|
10915
|
+
return this._depth[o][s] === kt.NULL_VALUE;
|
|
10916
10916
|
}
|
|
10917
10917
|
};
|
|
10918
|
-
|
|
10918
|
+
kt.prototype.normalize = function() {
|
|
10919
10919
|
for (var t = this, e = 0; e < 2; e++)
|
|
10920
10920
|
if (!t.isNull(e)) {
|
|
10921
10921
|
var n = t._depth[e][1];
|
|
@@ -10926,44 +10926,44 @@ Gt.prototype.normalize = function() {
|
|
|
10926
10926
|
}
|
|
10927
10927
|
}
|
|
10928
10928
|
};
|
|
10929
|
-
|
|
10929
|
+
kt.prototype.getDelta = function(t) {
|
|
10930
10930
|
return this._depth[t][S.RIGHT] - this._depth[t][S.LEFT];
|
|
10931
10931
|
};
|
|
10932
|
-
|
|
10932
|
+
kt.prototype.getLocation = function(t, e) {
|
|
10933
10933
|
return this._depth[t][e] <= 0 ? _.EXTERIOR : _.INTERIOR;
|
|
10934
10934
|
};
|
|
10935
|
-
|
|
10935
|
+
kt.prototype.toString = function() {
|
|
10936
10936
|
return "A: " + this._depth[0][1] + "," + this._depth[0][2] + " B: " + this._depth[1][1] + "," + this._depth[1][2];
|
|
10937
10937
|
};
|
|
10938
|
-
|
|
10938
|
+
kt.prototype.add = function() {
|
|
10939
10939
|
var t = this;
|
|
10940
10940
|
if (arguments.length === 1)
|
|
10941
10941
|
for (var e = arguments[0], n = 0; n < 2; n++)
|
|
10942
10942
|
for (var i = 1; i < 3; i++) {
|
|
10943
10943
|
var o = e.getLocation(n, i);
|
|
10944
|
-
(o === _.EXTERIOR || o === _.INTERIOR) && (t.isNull(n, i) ? t._depth[n][i] =
|
|
10944
|
+
(o === _.EXTERIOR || o === _.INTERIOR) && (t.isNull(n, i) ? t._depth[n][i] = kt.depthAtLocation(o) : t._depth[n][i] += kt.depthAtLocation(o));
|
|
10945
10945
|
}
|
|
10946
10946
|
else if (arguments.length === 3) {
|
|
10947
10947
|
var s = arguments[0], a = arguments[1], u = arguments[2];
|
|
10948
10948
|
u === _.INTERIOR && this._depth[s][a]++;
|
|
10949
10949
|
}
|
|
10950
10950
|
};
|
|
10951
|
-
|
|
10951
|
+
kt.prototype.interfaces_ = function() {
|
|
10952
10952
|
return [];
|
|
10953
10953
|
};
|
|
10954
|
-
|
|
10955
|
-
return
|
|
10954
|
+
kt.prototype.getClass = function() {
|
|
10955
|
+
return kt;
|
|
10956
10956
|
};
|
|
10957
|
-
|
|
10958
|
-
return t === _.EXTERIOR ? 0 : t === _.INTERIOR ? 1 :
|
|
10957
|
+
kt.depthAtLocation = function(t) {
|
|
10958
|
+
return t === _.EXTERIOR ? 0 : t === _.INTERIOR ? 1 : kt.NULL_VALUE;
|
|
10959
10959
|
};
|
|
10960
10960
|
mu.NULL_VALUE.get = function() {
|
|
10961
10961
|
return -1;
|
|
10962
10962
|
};
|
|
10963
|
-
Object.defineProperties(
|
|
10963
|
+
Object.defineProperties(kt, mu);
|
|
10964
10964
|
var Go = function(r) {
|
|
10965
10965
|
function t() {
|
|
10966
|
-
if (r.call(this), this.pts = null, this._env = null, this.eiList = new Pn(this), this._name = null, this._mce = null, this._isIsolated = !0, this._depth = new
|
|
10966
|
+
if (r.call(this), this.pts = null, this._env = null, this.eiList = new Pn(this), this._name = null, this._mce = null, this._isIsolated = !0, this._depth = new kt(), this._depthDelta = 0, arguments.length === 1) {
|
|
10967
10967
|
var e = arguments[0];
|
|
10968
10968
|
t.call(this, e, null);
|
|
10969
10969
|
} else if (arguments.length === 2) {
|
|
@@ -11184,7 +11184,7 @@ ar.prototype.rescale = function() {
|
|
|
11184
11184
|
else if (arguments[0] instanceof Array) {
|
|
11185
11185
|
for (var o = arguments[0], s = 0; s < o.length; s++)
|
|
11186
11186
|
o[s].x = o[s].x / t._scaleFactor + t._offsetX, o[s].y = o[s].y / t._scaleFactor + t._offsetY;
|
|
11187
|
-
o.length === 2 && o[0].equals2D(o[1]) &&
|
|
11187
|
+
o.length === 2 && o[0].equals2D(o[1]) && zt.out.println(o);
|
|
11188
11188
|
}
|
|
11189
11189
|
};
|
|
11190
11190
|
ar.prototype.scale = function() {
|
|
@@ -11507,7 +11507,7 @@ Rn.prototype.interfaces_ = function() {
|
|
|
11507
11507
|
Rn.prototype.getClass = function() {
|
|
11508
11508
|
return Rn;
|
|
11509
11509
|
};
|
|
11510
|
-
var
|
|
11510
|
+
var Gt = function() {
|
|
11511
11511
|
if (this._argGeom = null, this._distance = null, this._bufParams = new $(), this._resultGeometry = null, this._saveException = null, arguments.length === 1) {
|
|
11512
11512
|
var t = arguments[0];
|
|
11513
11513
|
this._argGeom = t;
|
|
@@ -11516,14 +11516,14 @@ var Bt = function() {
|
|
|
11516
11516
|
this._argGeom = e, this._bufParams = n;
|
|
11517
11517
|
}
|
|
11518
11518
|
}, Gi = { CAP_ROUND: { configurable: !0 }, CAP_BUTT: { configurable: !0 }, CAP_FLAT: { configurable: !0 }, CAP_SQUARE: { configurable: !0 }, MAX_PRECISION_DIGITS: { configurable: !0 } };
|
|
11519
|
-
|
|
11519
|
+
Gt.prototype.bufferFixedPrecision = function(t) {
|
|
11520
11520
|
var e = new ar(new Rn(new tt(1)), t.getScale()), n = new ee(this._bufParams);
|
|
11521
11521
|
n.setWorkingPrecisionModel(t), n.setNoder(e), this._resultGeometry = n.buffer(this._argGeom, this._distance);
|
|
11522
11522
|
};
|
|
11523
|
-
|
|
11523
|
+
Gt.prototype.bufferReducedPrecision = function() {
|
|
11524
11524
|
var t = this;
|
|
11525
11525
|
if (arguments.length === 0) {
|
|
11526
|
-
for (var e =
|
|
11526
|
+
for (var e = Gt.MAX_PRECISION_DIGITS; e >= 0; e--) {
|
|
11527
11527
|
try {
|
|
11528
11528
|
t.bufferReducedPrecision(e);
|
|
11529
11529
|
} catch (s) {
|
|
@@ -11538,20 +11538,20 @@ Bt.prototype.bufferReducedPrecision = function() {
|
|
|
11538
11538
|
}
|
|
11539
11539
|
throw this._saveException;
|
|
11540
11540
|
} else if (arguments.length === 1) {
|
|
11541
|
-
var n = arguments[0], i =
|
|
11541
|
+
var n = arguments[0], i = Gt.precisionScaleFactor(this._argGeom, this._distance, n), o = new tt(i);
|
|
11542
11542
|
this.bufferFixedPrecision(o);
|
|
11543
11543
|
}
|
|
11544
11544
|
};
|
|
11545
|
-
|
|
11545
|
+
Gt.prototype.computeGeometry = function() {
|
|
11546
11546
|
if (this.bufferOriginalPrecision(), this._resultGeometry !== null)
|
|
11547
11547
|
return null;
|
|
11548
11548
|
var t = this._argGeom.getFactory().getPrecisionModel();
|
|
11549
11549
|
t.getType() === tt.FIXED ? this.bufferFixedPrecision(t) : this.bufferReducedPrecision();
|
|
11550
11550
|
};
|
|
11551
|
-
|
|
11551
|
+
Gt.prototype.setQuadrantSegments = function(t) {
|
|
11552
11552
|
this._bufParams.setQuadrantSegments(t);
|
|
11553
11553
|
};
|
|
11554
|
-
|
|
11554
|
+
Gt.prototype.bufferOriginalPrecision = function() {
|
|
11555
11555
|
try {
|
|
11556
11556
|
var t = new ee(this._bufParams);
|
|
11557
11557
|
this._resultGeometry = t.buffer(this._argGeom, this._distance);
|
|
@@ -11563,40 +11563,40 @@ Bt.prototype.bufferOriginalPrecision = function() {
|
|
|
11563
11563
|
} finally {
|
|
11564
11564
|
}
|
|
11565
11565
|
};
|
|
11566
|
-
|
|
11566
|
+
Gt.prototype.getResultGeometry = function(t) {
|
|
11567
11567
|
return this._distance = t, this.computeGeometry(), this._resultGeometry;
|
|
11568
11568
|
};
|
|
11569
|
-
|
|
11569
|
+
Gt.prototype.setEndCapStyle = function(t) {
|
|
11570
11570
|
this._bufParams.setEndCapStyle(t);
|
|
11571
11571
|
};
|
|
11572
|
-
|
|
11572
|
+
Gt.prototype.interfaces_ = function() {
|
|
11573
11573
|
return [];
|
|
11574
11574
|
};
|
|
11575
|
-
|
|
11576
|
-
return
|
|
11575
|
+
Gt.prototype.getClass = function() {
|
|
11576
|
+
return Gt;
|
|
11577
11577
|
};
|
|
11578
|
-
|
|
11578
|
+
Gt.bufferOp = function() {
|
|
11579
11579
|
if (arguments.length === 2) {
|
|
11580
|
-
var t = arguments[0], e = arguments[1], n = new
|
|
11580
|
+
var t = arguments[0], e = arguments[1], n = new Gt(t), i = n.getResultGeometry(e);
|
|
11581
11581
|
return i;
|
|
11582
11582
|
} else if (arguments.length === 3) {
|
|
11583
11583
|
if (Number.isInteger(arguments[2]) && arguments[0] instanceof G && typeof arguments[1] == "number") {
|
|
11584
|
-
var o = arguments[0], s = arguments[1], a = arguments[2], u = new
|
|
11584
|
+
var o = arguments[0], s = arguments[1], a = arguments[2], u = new Gt(o);
|
|
11585
11585
|
u.setQuadrantSegments(a);
|
|
11586
11586
|
var l = u.getResultGeometry(s);
|
|
11587
11587
|
return l;
|
|
11588
11588
|
} else if (arguments[2] instanceof $ && arguments[0] instanceof G && typeof arguments[1] == "number") {
|
|
11589
|
-
var c = arguments[0], f = arguments[1], h = arguments[2], g = new
|
|
11589
|
+
var c = arguments[0], f = arguments[1], h = arguments[2], g = new Gt(c, h), p = g.getResultGeometry(f);
|
|
11590
11590
|
return p;
|
|
11591
11591
|
}
|
|
11592
11592
|
} else if (arguments.length === 4) {
|
|
11593
|
-
var v = arguments[0], y = arguments[1], m = arguments[2], E = arguments[3], N = new
|
|
11593
|
+
var v = arguments[0], y = arguments[1], m = arguments[2], E = arguments[3], N = new Gt(v);
|
|
11594
11594
|
N.setQuadrantSegments(m), N.setEndCapStyle(E);
|
|
11595
11595
|
var C = N.getResultGeometry(y);
|
|
11596
11596
|
return C;
|
|
11597
11597
|
}
|
|
11598
11598
|
};
|
|
11599
|
-
|
|
11599
|
+
Gt.precisionScaleFactor = function(t, e, n) {
|
|
11600
11600
|
var i = t.getEnvelopeInternal(), o = Ie.max(Math.abs(i.getMaxX()), Math.abs(i.getMaxY()), Math.abs(i.getMinX()), Math.abs(i.getMinY())), s = e > 0 ? e : 0, a = o + 2 * s, u = Math.trunc(Math.log(a) / Math.log(10) + 1), l = n - u, c = Math.pow(10, l);
|
|
11601
11601
|
return c;
|
|
11602
11602
|
};
|
|
@@ -11615,7 +11615,7 @@ Gi.CAP_SQUARE.get = function() {
|
|
|
11615
11615
|
Gi.MAX_PRECISION_DIGITS.get = function() {
|
|
11616
11616
|
return 12;
|
|
11617
11617
|
};
|
|
11618
|
-
Object.defineProperties(
|
|
11618
|
+
Object.defineProperties(Gt, Gi);
|
|
11619
11619
|
var Zt = function() {
|
|
11620
11620
|
this._pt = [new d(), new d()], this._distance = V.NaN, this._isNull = !0;
|
|
11621
11621
|
};
|
|
@@ -11797,7 +11797,7 @@ Yn.getPolygons = function() {
|
|
|
11797
11797
|
return e instanceof Rt ? n.add(e) : e instanceof ne && e.apply(new Yn(n)), n;
|
|
11798
11798
|
}
|
|
11799
11799
|
};
|
|
11800
|
-
var
|
|
11800
|
+
var Bt = function() {
|
|
11801
11801
|
if (this._lines = null, this._isForcedToLineString = !1, arguments.length === 1) {
|
|
11802
11802
|
var t = arguments[0];
|
|
11803
11803
|
this._lines = t;
|
|
@@ -11806,59 +11806,59 @@ var Ft = function() {
|
|
|
11806
11806
|
this._lines = e, this._isForcedToLineString = n;
|
|
11807
11807
|
}
|
|
11808
11808
|
};
|
|
11809
|
-
|
|
11809
|
+
Bt.prototype.filter = function(t) {
|
|
11810
11810
|
if (this._isForcedToLineString && t instanceof wn) {
|
|
11811
11811
|
var e = t.getFactory().createLineString(t.getCoordinateSequence());
|
|
11812
11812
|
return this._lines.add(e), null;
|
|
11813
11813
|
}
|
|
11814
11814
|
t instanceof dt && this._lines.add(t);
|
|
11815
11815
|
};
|
|
11816
|
-
|
|
11816
|
+
Bt.prototype.setForceToLineString = function(t) {
|
|
11817
11817
|
this._isForcedToLineString = t;
|
|
11818
11818
|
};
|
|
11819
|
-
|
|
11819
|
+
Bt.prototype.interfaces_ = function() {
|
|
11820
11820
|
return [Wn];
|
|
11821
11821
|
};
|
|
11822
|
-
|
|
11823
|
-
return
|
|
11822
|
+
Bt.prototype.getClass = function() {
|
|
11823
|
+
return Bt;
|
|
11824
11824
|
};
|
|
11825
|
-
|
|
11825
|
+
Bt.getGeometry = function() {
|
|
11826
11826
|
if (arguments.length === 1) {
|
|
11827
11827
|
var t = arguments[0];
|
|
11828
|
-
return t.getFactory().buildGeometry(
|
|
11828
|
+
return t.getFactory().buildGeometry(Bt.getLines(t));
|
|
11829
11829
|
} else if (arguments.length === 2) {
|
|
11830
11830
|
var e = arguments[0], n = arguments[1];
|
|
11831
|
-
return e.getFactory().buildGeometry(
|
|
11831
|
+
return e.getFactory().buildGeometry(Bt.getLines(e, n));
|
|
11832
11832
|
}
|
|
11833
11833
|
};
|
|
11834
|
-
|
|
11834
|
+
Bt.getLines = function() {
|
|
11835
11835
|
if (arguments.length === 1) {
|
|
11836
11836
|
var t = arguments[0];
|
|
11837
|
-
return
|
|
11837
|
+
return Bt.getLines(t, !1);
|
|
11838
11838
|
} else if (arguments.length === 2) {
|
|
11839
11839
|
if (z(arguments[0], wt) && z(arguments[1], wt)) {
|
|
11840
11840
|
for (var e = arguments[0], n = arguments[1], i = e.iterator(); i.hasNext(); ) {
|
|
11841
11841
|
var o = i.next();
|
|
11842
|
-
|
|
11842
|
+
Bt.getLines(o, n);
|
|
11843
11843
|
}
|
|
11844
11844
|
return n;
|
|
11845
11845
|
} else if (arguments[0] instanceof G && typeof arguments[1] == "boolean") {
|
|
11846
11846
|
var s = arguments[0], a = arguments[1], u = new b();
|
|
11847
|
-
return s.apply(new
|
|
11847
|
+
return s.apply(new Bt(u, a)), u;
|
|
11848
11848
|
} else if (arguments[0] instanceof G && z(arguments[1], wt)) {
|
|
11849
11849
|
var l = arguments[0], c = arguments[1];
|
|
11850
|
-
return l instanceof dt ? c.add(l) : l.apply(new
|
|
11850
|
+
return l instanceof dt ? c.add(l) : l.apply(new Bt(c)), c;
|
|
11851
11851
|
}
|
|
11852
11852
|
} else if (arguments.length === 3) {
|
|
11853
11853
|
if (typeof arguments[2] == "boolean" && z(arguments[0], wt) && z(arguments[1], wt)) {
|
|
11854
11854
|
for (var f = arguments[0], h = arguments[1], g = arguments[2], p = f.iterator(); p.hasNext(); ) {
|
|
11855
11855
|
var v = p.next();
|
|
11856
|
-
|
|
11856
|
+
Bt.getLines(v, h, g);
|
|
11857
11857
|
}
|
|
11858
11858
|
return h;
|
|
11859
11859
|
} else if (typeof arguments[2] == "boolean" && arguments[0] instanceof G && z(arguments[1], wt)) {
|
|
11860
11860
|
var y = arguments[0], m = arguments[1], E = arguments[2];
|
|
11861
|
-
return y.apply(new
|
|
11861
|
+
return y.apply(new Bt(m, E)), m;
|
|
11862
11862
|
}
|
|
11863
11863
|
}
|
|
11864
11864
|
};
|
|
@@ -12012,7 +12012,7 @@ jr.getLocations = function(t) {
|
|
|
12012
12012
|
var e = new b();
|
|
12013
12013
|
return t.apply(new jr(e)), e;
|
|
12014
12014
|
};
|
|
12015
|
-
var
|
|
12015
|
+
var Vt = function() {
|
|
12016
12016
|
if (this._geom = null, this._terminateDistance = 0, this._ptLocator = new We(), this._minDistanceLocation = null, this._minDistance = V.MAX_VALUE, arguments.length === 2) {
|
|
12017
12017
|
var t = arguments[0], e = arguments[1];
|
|
12018
12018
|
this._geom = [t, e], this._terminateDistance = 0;
|
|
@@ -12021,7 +12021,7 @@ var zt = function() {
|
|
|
12021
12021
|
this._geom = new Array(2).fill(null), this._geom[0] = n, this._geom[1] = i, this._terminateDistance = o;
|
|
12022
12022
|
}
|
|
12023
12023
|
};
|
|
12024
|
-
|
|
12024
|
+
Vt.prototype.computeContainmentDistance = function() {
|
|
12025
12025
|
var t = this;
|
|
12026
12026
|
if (arguments.length === 0) {
|
|
12027
12027
|
var e = new Array(2).fill(null);
|
|
@@ -12048,7 +12048,7 @@ zt.prototype.computeContainmentDistance = function() {
|
|
|
12048
12048
|
}
|
|
12049
12049
|
}
|
|
12050
12050
|
};
|
|
12051
|
-
|
|
12051
|
+
Vt.prototype.computeMinDistanceLinesPoints = function(t, e, n) {
|
|
12052
12052
|
for (var i = this, o = 0; o < t.size(); o++)
|
|
12053
12053
|
for (var s = t.get(o), a = 0; a < e.size(); a++) {
|
|
12054
12054
|
var u = e.get(a);
|
|
@@ -12056,26 +12056,26 @@ zt.prototype.computeMinDistanceLinesPoints = function(t, e, n) {
|
|
|
12056
12056
|
return null;
|
|
12057
12057
|
}
|
|
12058
12058
|
};
|
|
12059
|
-
|
|
12060
|
-
var t = new Array(2).fill(null), e =
|
|
12059
|
+
Vt.prototype.computeFacetDistance = function() {
|
|
12060
|
+
var t = new Array(2).fill(null), e = Bt.getLines(this._geom[0]), n = Bt.getLines(this._geom[1]), i = er.getPoints(this._geom[0]), o = er.getPoints(this._geom[1]);
|
|
12061
12061
|
if (this.computeMinDistanceLines(e, n, t), this.updateMinDistance(t, !1), this._minDistance <= this._terminateDistance || (t[0] = null, t[1] = null, this.computeMinDistanceLinesPoints(e, o, t), this.updateMinDistance(t, !1), this._minDistance <= this._terminateDistance) || (t[0] = null, t[1] = null, this.computeMinDistanceLinesPoints(n, i, t), this.updateMinDistance(t, !0), this._minDistance <= this._terminateDistance))
|
|
12062
12062
|
return null;
|
|
12063
12063
|
t[0] = null, t[1] = null, this.computeMinDistancePoints(i, o, t), this.updateMinDistance(t, !1);
|
|
12064
12064
|
};
|
|
12065
|
-
|
|
12065
|
+
Vt.prototype.nearestLocations = function() {
|
|
12066
12066
|
return this.computeMinDistance(), this._minDistanceLocation;
|
|
12067
12067
|
};
|
|
12068
|
-
|
|
12068
|
+
Vt.prototype.updateMinDistance = function(t, e) {
|
|
12069
12069
|
if (t[0] === null)
|
|
12070
12070
|
return null;
|
|
12071
12071
|
e ? (this._minDistanceLocation[0] = t[1], this._minDistanceLocation[1] = t[0]) : (this._minDistanceLocation[0] = t[0], this._minDistanceLocation[1] = t[1]);
|
|
12072
12072
|
};
|
|
12073
|
-
|
|
12073
|
+
Vt.prototype.nearestPoints = function() {
|
|
12074
12074
|
this.computeMinDistance();
|
|
12075
12075
|
var t = [this._minDistanceLocation[0].getCoordinate(), this._minDistanceLocation[1].getCoordinate()];
|
|
12076
12076
|
return t;
|
|
12077
12077
|
};
|
|
12078
|
-
|
|
12078
|
+
Vt.prototype.computeMinDistance = function() {
|
|
12079
12079
|
var t = this;
|
|
12080
12080
|
if (arguments.length === 0) {
|
|
12081
12081
|
if (this._minDistanceLocation !== null || (this._minDistanceLocation = new Array(2).fill(null), this.computeContainmentDistance(), this._minDistance <= this._terminateDistance))
|
|
@@ -12114,7 +12114,7 @@ zt.prototype.computeMinDistance = function() {
|
|
|
12114
12114
|
}
|
|
12115
12115
|
}
|
|
12116
12116
|
};
|
|
12117
|
-
|
|
12117
|
+
Vt.prototype.computeMinDistancePoints = function(t, e, n) {
|
|
12118
12118
|
for (var i = this, o = 0; o < t.size(); o++)
|
|
12119
12119
|
for (var s = t.get(o), a = 0; a < e.size(); a++) {
|
|
12120
12120
|
var u = e.get(a), l = s.getCoordinate().distance(u.getCoordinate());
|
|
@@ -12122,12 +12122,12 @@ zt.prototype.computeMinDistancePoints = function(t, e, n) {
|
|
|
12122
12122
|
return null;
|
|
12123
12123
|
}
|
|
12124
12124
|
};
|
|
12125
|
-
|
|
12125
|
+
Vt.prototype.distance = function() {
|
|
12126
12126
|
if (this._geom[0] === null || this._geom[1] === null)
|
|
12127
12127
|
throw new ft("null geometries are not supported");
|
|
12128
12128
|
return this._geom[0].isEmpty() || this._geom[1].isEmpty() ? 0 : (this.computeMinDistance(), this._minDistance);
|
|
12129
12129
|
};
|
|
12130
|
-
|
|
12130
|
+
Vt.prototype.computeMinDistanceLines = function(t, e, n) {
|
|
12131
12131
|
for (var i = this, o = 0; o < t.size(); o++)
|
|
12132
12132
|
for (var s = t.get(o), a = 0; a < e.size(); a++) {
|
|
12133
12133
|
var u = e.get(a);
|
|
@@ -12135,22 +12135,22 @@ zt.prototype.computeMinDistanceLines = function(t, e, n) {
|
|
|
12135
12135
|
return null;
|
|
12136
12136
|
}
|
|
12137
12137
|
};
|
|
12138
|
-
|
|
12138
|
+
Vt.prototype.interfaces_ = function() {
|
|
12139
12139
|
return [];
|
|
12140
12140
|
};
|
|
12141
|
-
|
|
12142
|
-
return
|
|
12141
|
+
Vt.prototype.getClass = function() {
|
|
12142
|
+
return Vt;
|
|
12143
12143
|
};
|
|
12144
|
-
|
|
12145
|
-
var n = new
|
|
12144
|
+
Vt.distance = function(t, e) {
|
|
12145
|
+
var n = new Vt(t, e);
|
|
12146
12146
|
return n.distance();
|
|
12147
12147
|
};
|
|
12148
|
-
|
|
12149
|
-
var i = new
|
|
12148
|
+
Vt.isWithinDistance = function(t, e, n) {
|
|
12149
|
+
var i = new Vt(t, e, n);
|
|
12150
12150
|
return i.distance() <= n;
|
|
12151
12151
|
};
|
|
12152
|
-
|
|
12153
|
-
var n = new
|
|
12152
|
+
Vt.nearestPoints = function(t, e) {
|
|
12153
|
+
var n = new Vt(t, e);
|
|
12154
12154
|
return n.nearestPoints();
|
|
12155
12155
|
};
|
|
12156
12156
|
var Yt = function() {
|
|
@@ -12357,7 +12357,7 @@ fe.prototype.checkMaximumDistance = function(t, e, n) {
|
|
|
12357
12357
|
};
|
|
12358
12358
|
fe.prototype.isValid = function() {
|
|
12359
12359
|
var t = Math.abs(this._bufDistance), e = fe.MAX_DISTANCE_DIFF_FRAC * t;
|
|
12360
|
-
return this._minValidDistance = t - e, this._maxValidDistance = t + e, this._input.isEmpty() || this._result.isEmpty() ? !0 : (this._bufDistance > 0 ? this.checkPositiveValid() : this.checkNegativeValid(), fe.VERBOSE &&
|
|
12360
|
+
return this._minValidDistance = t - e, this._maxValidDistance = t + e, this._input.isEmpty() || this._result.isEmpty() ? !0 : (this._bufDistance > 0 ? this.checkPositiveValid() : this.checkNegativeValid(), fe.VERBOSE && zt.out.println("Min Dist= " + this._minDistanceFound + " err= " + (1 - this._minDistanceFound / this._bufDistance) + " Max Dist= " + this._maxDistanceFound + " err= " + (this._maxDistanceFound / this._bufDistance - 1)), this._isValid);
|
|
12361
12361
|
};
|
|
12362
12362
|
fe.prototype.checkNegativeValid = function() {
|
|
12363
12363
|
if (!(this._input instanceof Rt || this._input instanceof Nn || this._input instanceof ne))
|
|
@@ -12371,7 +12371,7 @@ fe.prototype.getErrorIndicator = function() {
|
|
|
12371
12371
|
return this._errorIndicator;
|
|
12372
12372
|
};
|
|
12373
12373
|
fe.prototype.checkMinimumDistance = function(t, e, n) {
|
|
12374
|
-
var i = new
|
|
12374
|
+
var i = new Vt(t, e, n);
|
|
12375
12375
|
if (this._minDistanceFound = i.distance(), this._minDistanceFound < n) {
|
|
12376
12376
|
this._isValid = !1;
|
|
12377
12377
|
var o = i.nearestPoints();
|
|
@@ -12388,7 +12388,7 @@ fe.prototype.getErrorLocation = function() {
|
|
|
12388
12388
|
return this._errorLocation;
|
|
12389
12389
|
};
|
|
12390
12390
|
fe.prototype.getPolygonLines = function(t) {
|
|
12391
|
-
for (var e = new b(), n = new
|
|
12391
|
+
for (var e = new b(), n = new Bt(e), i = Yn.getPolygons(t), o = i.iterator(); o.hasNext(); ) {
|
|
12392
12392
|
var s = o.next();
|
|
12393
12393
|
s.apply(n);
|
|
12394
12394
|
}
|
|
@@ -12410,64 +12410,64 @@ Xs.MAX_DISTANCE_DIFF_FRAC.get = function() {
|
|
|
12410
12410
|
return 0.012;
|
|
12411
12411
|
};
|
|
12412
12412
|
Object.defineProperties(fe, Xs);
|
|
12413
|
-
var
|
|
12413
|
+
var Ut = function(t, e, n) {
|
|
12414
12414
|
this._isValid = !0, this._errorMsg = null, this._errorLocation = null, this._errorIndicator = null, this._input = t || null, this._distance = e || null, this._result = n || null;
|
|
12415
12415
|
}, Ys = { VERBOSE: { configurable: !0 }, MAX_ENV_DIFF_FRAC: { configurable: !0 } };
|
|
12416
|
-
|
|
12416
|
+
Ut.prototype.isValid = function() {
|
|
12417
12417
|
return this.checkPolygonal(), this._isValid ? (this.checkExpectedEmpty(), this._isValid ? (this.checkEnvelope(), this._isValid ? (this.checkArea(), this._isValid ? (this.checkDistance(), this._isValid) : this._isValid) : this._isValid) : this._isValid) : this._isValid;
|
|
12418
12418
|
};
|
|
12419
|
-
|
|
12419
|
+
Ut.prototype.checkEnvelope = function() {
|
|
12420
12420
|
if (this._distance < 0)
|
|
12421
12421
|
return null;
|
|
12422
|
-
var t = this._distance *
|
|
12422
|
+
var t = this._distance * Ut.MAX_ENV_DIFF_FRAC;
|
|
12423
12423
|
t === 0 && (t = 1e-3);
|
|
12424
12424
|
var e = new M(this._input.getEnvelopeInternal());
|
|
12425
12425
|
e.expandBy(this._distance);
|
|
12426
12426
|
var n = new M(this._result.getEnvelopeInternal());
|
|
12427
12427
|
n.expandBy(t), n.contains(e) || (this._isValid = !1, this._errorMsg = "Buffer envelope is incorrect", this._errorIndicator = this._input.getFactory().toGeometry(n)), this.report("Envelope");
|
|
12428
12428
|
};
|
|
12429
|
-
|
|
12429
|
+
Ut.prototype.checkDistance = function() {
|
|
12430
12430
|
var t = new fe(this._input, this._distance, this._result);
|
|
12431
12431
|
t.isValid() || (this._isValid = !1, this._errorMsg = t.getErrorMessage(), this._errorLocation = t.getErrorLocation(), this._errorIndicator = t.getErrorIndicator()), this.report("Distance");
|
|
12432
12432
|
};
|
|
12433
|
-
|
|
12433
|
+
Ut.prototype.checkArea = function() {
|
|
12434
12434
|
var t = this._input.getArea(), e = this._result.getArea();
|
|
12435
12435
|
this._distance > 0 && t > e && (this._isValid = !1, this._errorMsg = "Area of positive buffer is smaller than input", this._errorIndicator = this._result), this._distance < 0 && t < e && (this._isValid = !1, this._errorMsg = "Area of negative buffer is larger than input", this._errorIndicator = this._result), this.report("Area");
|
|
12436
12436
|
};
|
|
12437
|
-
|
|
12437
|
+
Ut.prototype.checkPolygonal = function() {
|
|
12438
12438
|
this._result instanceof Rt || this._result instanceof Nn || (this._isValid = !1), this._errorMsg = "Result is not polygonal", this._errorIndicator = this._result, this.report("Polygonal");
|
|
12439
12439
|
};
|
|
12440
|
-
|
|
12440
|
+
Ut.prototype.getErrorIndicator = function() {
|
|
12441
12441
|
return this._errorIndicator;
|
|
12442
12442
|
};
|
|
12443
|
-
|
|
12443
|
+
Ut.prototype.getErrorLocation = function() {
|
|
12444
12444
|
return this._errorLocation;
|
|
12445
12445
|
};
|
|
12446
|
-
|
|
12446
|
+
Ut.prototype.checkExpectedEmpty = function() {
|
|
12447
12447
|
if (this._input.getDimension() >= 2 || this._distance > 0)
|
|
12448
12448
|
return null;
|
|
12449
12449
|
this._result.isEmpty() || (this._isValid = !1, this._errorMsg = "Result is non-empty", this._errorIndicator = this._result), this.report("ExpectedEmpty");
|
|
12450
12450
|
};
|
|
12451
|
-
|
|
12452
|
-
if (!
|
|
12451
|
+
Ut.prototype.report = function(t) {
|
|
12452
|
+
if (!Ut.VERBOSE)
|
|
12453
12453
|
return null;
|
|
12454
|
-
|
|
12454
|
+
zt.out.println("Check " + t + ": " + (this._isValid ? "passed" : "FAILED"));
|
|
12455
12455
|
};
|
|
12456
|
-
|
|
12456
|
+
Ut.prototype.getErrorMessage = function() {
|
|
12457
12457
|
return this._errorMsg;
|
|
12458
12458
|
};
|
|
12459
|
-
|
|
12459
|
+
Ut.prototype.interfaces_ = function() {
|
|
12460
12460
|
return [];
|
|
12461
12461
|
};
|
|
12462
|
-
|
|
12463
|
-
return
|
|
12462
|
+
Ut.prototype.getClass = function() {
|
|
12463
|
+
return Ut;
|
|
12464
12464
|
};
|
|
12465
|
-
|
|
12466
|
-
var i = new
|
|
12465
|
+
Ut.isValidMsg = function(t, e, n) {
|
|
12466
|
+
var i = new Ut(t, e, n);
|
|
12467
12467
|
return i.isValid() ? null : i.getErrorMessage();
|
|
12468
12468
|
};
|
|
12469
|
-
|
|
12470
|
-
var i = new
|
|
12469
|
+
Ut.isValid = function(t, e, n) {
|
|
12470
|
+
var i = new Ut(t, e, n);
|
|
12471
12471
|
return !!i.isValid();
|
|
12472
12472
|
};
|
|
12473
12473
|
Ys.VERBOSE.get = function() {
|
|
@@ -12476,7 +12476,7 @@ Ys.VERBOSE.get = function() {
|
|
|
12476
12476
|
Ys.MAX_ENV_DIFF_FRAC.get = function() {
|
|
12477
12477
|
return 0.012;
|
|
12478
12478
|
};
|
|
12479
|
-
Object.defineProperties(
|
|
12479
|
+
Object.defineProperties(Ut, Ys);
|
|
12480
12480
|
var dn = function() {
|
|
12481
12481
|
this._pts = null, this._data = null;
|
|
12482
12482
|
var t = arguments[0], e = arguments[1];
|
|
@@ -13127,7 +13127,7 @@ Tt.prototype.getResultGeometry = function(t) {
|
|
|
13127
13127
|
return this.prepareResult(n);
|
|
13128
13128
|
};
|
|
13129
13129
|
Tt.prototype.checkValid = function(t) {
|
|
13130
|
-
t.isValid() ||
|
|
13130
|
+
t.isValid() || zt.out.println("Snapped geometry is invalid");
|
|
13131
13131
|
};
|
|
13132
13132
|
Tt.prototype.computeSnapTolerance = function() {
|
|
13133
13133
|
this._snapTolerance = _t.computeOverlaySnapTolerance(this._geom[0], this._geom[1]);
|
|
@@ -13274,14 +13274,14 @@ ko.prototype.interfaces_ = function() {
|
|
|
13274
13274
|
ko.prototype.getClass = function() {
|
|
13275
13275
|
return ko;
|
|
13276
13276
|
};
|
|
13277
|
-
var
|
|
13277
|
+
var qt = function() {
|
|
13278
13278
|
this._hasIntersection = !1, this._hasProper = !1, this._hasProperInterior = !1, this._properIntersectionPoint = null, this._li = null, this._includeProper = null, this._recordIsolated = null, this._isSelfIntersection = null, this._numIntersections = 0, this.numTests = 0, this._bdyNodes = null, this._isDone = !1, this._isDoneWhenProperInt = !1;
|
|
13279
13279
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
13280
13280
|
this._li = t, this._includeProper = e, this._recordIsolated = n;
|
|
13281
13281
|
};
|
|
13282
|
-
|
|
13282
|
+
qt.prototype.isTrivialIntersection = function(t, e, n, i) {
|
|
13283
13283
|
if (t === n && this._li.getIntersectionNum() === 1) {
|
|
13284
|
-
if (
|
|
13284
|
+
if (qt.isAdjacentSegments(e, i))
|
|
13285
13285
|
return !0;
|
|
13286
13286
|
if (t.isClosed()) {
|
|
13287
13287
|
var o = t.getNumPoints() - 1;
|
|
@@ -13291,16 +13291,16 @@ Ut.prototype.isTrivialIntersection = function(t, e, n, i) {
|
|
|
13291
13291
|
}
|
|
13292
13292
|
return !1;
|
|
13293
13293
|
};
|
|
13294
|
-
|
|
13294
|
+
qt.prototype.getProperIntersectionPoint = function() {
|
|
13295
13295
|
return this._properIntersectionPoint;
|
|
13296
13296
|
};
|
|
13297
|
-
|
|
13297
|
+
qt.prototype.setIsDoneIfProperInt = function(t) {
|
|
13298
13298
|
this._isDoneWhenProperInt = t;
|
|
13299
13299
|
};
|
|
13300
|
-
|
|
13300
|
+
qt.prototype.hasProperInteriorIntersection = function() {
|
|
13301
13301
|
return this._hasProperInterior;
|
|
13302
13302
|
};
|
|
13303
|
-
|
|
13303
|
+
qt.prototype.isBoundaryPointInternal = function(t, e) {
|
|
13304
13304
|
for (var n = e.iterator(); n.hasNext(); ) {
|
|
13305
13305
|
var i = n.next(), o = i.getCoordinate();
|
|
13306
13306
|
if (t.isIntersection(o))
|
|
@@ -13308,35 +13308,35 @@ Ut.prototype.isBoundaryPointInternal = function(t, e) {
|
|
|
13308
13308
|
}
|
|
13309
13309
|
return !1;
|
|
13310
13310
|
};
|
|
13311
|
-
|
|
13311
|
+
qt.prototype.hasProperIntersection = function() {
|
|
13312
13312
|
return this._hasProper;
|
|
13313
13313
|
};
|
|
13314
|
-
|
|
13314
|
+
qt.prototype.hasIntersection = function() {
|
|
13315
13315
|
return this._hasIntersection;
|
|
13316
13316
|
};
|
|
13317
|
-
|
|
13317
|
+
qt.prototype.isDone = function() {
|
|
13318
13318
|
return this._isDone;
|
|
13319
13319
|
};
|
|
13320
|
-
|
|
13320
|
+
qt.prototype.isBoundaryPoint = function(t, e) {
|
|
13321
13321
|
return e === null ? !1 : !!(this.isBoundaryPointInternal(t, e[0]) || this.isBoundaryPointInternal(t, e[1]));
|
|
13322
13322
|
};
|
|
13323
|
-
|
|
13323
|
+
qt.prototype.setBoundaryNodes = function(t, e) {
|
|
13324
13324
|
this._bdyNodes = new Array(2).fill(null), this._bdyNodes[0] = t, this._bdyNodes[1] = e;
|
|
13325
13325
|
};
|
|
13326
|
-
|
|
13326
|
+
qt.prototype.addIntersections = function(t, e, n, i) {
|
|
13327
13327
|
if (t === n && e === i)
|
|
13328
13328
|
return null;
|
|
13329
13329
|
this.numTests++;
|
|
13330
13330
|
var o = t.getCoordinates()[e], s = t.getCoordinates()[e + 1], a = n.getCoordinates()[i], u = n.getCoordinates()[i + 1];
|
|
13331
13331
|
this._li.computeIntersection(o, s, a, u), this._li.hasIntersection() && (this._recordIsolated && (t.setIsolated(!1), n.setIsolated(!1)), this._numIntersections++, this.isTrivialIntersection(t, e, n, i) || (this._hasIntersection = !0, (this._includeProper || !this._li.isProper()) && (t.addIntersections(this._li, e, 0), n.addIntersections(this._li, i, 1)), this._li.isProper() && (this._properIntersectionPoint = this._li.getIntersection(0).copy(), this._hasProper = !0, this._isDoneWhenProperInt && (this._isDone = !0), this.isBoundaryPoint(this._li, this._bdyNodes) || (this._hasProperInterior = !0))));
|
|
13332
13332
|
};
|
|
13333
|
-
|
|
13333
|
+
qt.prototype.interfaces_ = function() {
|
|
13334
13334
|
return [];
|
|
13335
13335
|
};
|
|
13336
|
-
|
|
13337
|
-
return
|
|
13336
|
+
qt.prototype.getClass = function() {
|
|
13337
|
+
return qt;
|
|
13338
13338
|
};
|
|
13339
|
-
|
|
13339
|
+
qt.isAdjacentSegments = function(t, e) {
|
|
13340
13340
|
return Math.abs(t - e) === 1;
|
|
13341
13341
|
};
|
|
13342
13342
|
var Lc = function(r) {
|
|
@@ -13361,10 +13361,10 @@ var Lc = function(r) {
|
|
|
13361
13361
|
break;
|
|
13362
13362
|
}
|
|
13363
13363
|
} else if (arguments.length === 3) {
|
|
13364
|
-
if (arguments[2] instanceof
|
|
13364
|
+
if (arguments[2] instanceof qt && z(arguments[0], Ve) && z(arguments[1], Ve)) {
|
|
13365
13365
|
var a = arguments[0], u = arguments[1], l = arguments[2];
|
|
13366
13366
|
this.addEdges(a, a), this.addEdges(u, u), this.computeIntersections(l);
|
|
13367
|
-
} else if (typeof arguments[2] == "boolean" && z(arguments[0], Ve) && arguments[1] instanceof
|
|
13367
|
+
} else if (typeof arguments[2] == "boolean" && z(arguments[0], Ve) && arguments[1] instanceof qt) {
|
|
13368
13368
|
var c = arguments[0], f = arguments[1], h = arguments[2];
|
|
13369
13369
|
h ? this.addEdges(c, null) : this.addEdges(c), this.computeIntersections(f);
|
|
13370
13370
|
}
|
|
@@ -13494,7 +13494,7 @@ Tn.prototype.buildRoot = function() {
|
|
|
13494
13494
|
this._root = this.buildTree();
|
|
13495
13495
|
};
|
|
13496
13496
|
Tn.prototype.printNode = function(t) {
|
|
13497
|
-
|
|
13497
|
+
zt.out.println(Ue.toLineString(new d(t._min, this._level), new d(t._max, this._level)));
|
|
13498
13498
|
};
|
|
13499
13499
|
Tn.prototype.init = function() {
|
|
13500
13500
|
if (this._root !== null)
|
|
@@ -13579,7 +13579,7 @@ var Pr = function() {
|
|
|
13579
13579
|
this.init(t);
|
|
13580
13580
|
};
|
|
13581
13581
|
Pr.prototype.init = function(t) {
|
|
13582
|
-
for (var e = this, n =
|
|
13582
|
+
for (var e = this, n = Bt.getLines(t), i = n.iterator(); i.hasNext(); ) {
|
|
13583
13583
|
var o = i.next(), s = o.getCoordinates();
|
|
13584
13584
|
e.addLine(s);
|
|
13585
13585
|
}
|
|
@@ -13625,7 +13625,7 @@ var Ui = function(r) {
|
|
|
13625
13625
|
var n = arguments[0], i = arguments[1];
|
|
13626
13626
|
return this.computeSelfNodes(n, i, !1);
|
|
13627
13627
|
} else if (arguments.length === 3) {
|
|
13628
|
-
var o = arguments[0], s = arguments[1], a = arguments[2], u = new
|
|
13628
|
+
var o = arguments[0], s = arguments[1], a = arguments[2], u = new qt(o, !0, !1);
|
|
13629
13629
|
u.setIsDoneIfProperInt(a);
|
|
13630
13630
|
var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof wn || this._parentGeom instanceof Rt || this._parentGeom instanceof Nn, f = s || !c;
|
|
13631
13631
|
return l.computeIntersections(this._edges, u, f), this.addSelfIntersectionNodes(this._argIndex), u;
|
|
@@ -13636,7 +13636,7 @@ var Ui = function(r) {
|
|
|
13636
13636
|
o.eiList.addSplitEdges(n);
|
|
13637
13637
|
}
|
|
13638
13638
|
}, t.prototype.computeEdgeIntersections = function(n, i, o) {
|
|
13639
|
-
var s = new
|
|
13639
|
+
var s = new qt(i, o, !0);
|
|
13640
13640
|
s.setBoundaryNodes(this.getBoundaryNodes(), n.getBoundaryNodes());
|
|
13641
13641
|
var a = this.createEdgeSetIntersector();
|
|
13642
13642
|
return a.computeIntersections(this._edges, n._edges, s), s;
|
|
@@ -14062,7 +14062,7 @@ Rr.prototype.setSidesToGenerate = function(t, e) {
|
|
|
14062
14062
|
this._doLeft = t, this._doRight = e;
|
|
14063
14063
|
};
|
|
14064
14064
|
Rr.prototype.getPoints = function(t) {
|
|
14065
|
-
for (var e = this, n = new b(), i =
|
|
14065
|
+
for (var e = this, n = new b(), i = Bt.getLines(this._g), o = i.iterator(); o.hasNext(); ) {
|
|
14066
14066
|
var s = o.next();
|
|
14067
14067
|
e.extractPoints(s, t, n);
|
|
14068
14068
|
}
|
|
@@ -14091,7 +14091,7 @@ var Se = function r() {
|
|
|
14091
14091
|
this._boundaryDistanceTolerance = r.computeBoundaryDistanceTolerance(t, e), this._geom = [t, e, n], this._locFinder = [new nr(this._geom[0], this._boundaryDistanceTolerance), new nr(this._geom[1], this._boundaryDistanceTolerance), new nr(this._geom[2], this._boundaryDistanceTolerance)];
|
|
14092
14092
|
}, Lu = { TOLERANCE: { configurable: !0 } };
|
|
14093
14093
|
Se.prototype.reportResult = function(t, e, n) {
|
|
14094
|
-
|
|
14094
|
+
zt.out.println("Overlay result invalid - A:" + _.toLocationSymbol(e[0]) + " B:" + _.toLocationSymbol(e[1]) + " expected:" + (n ? "i" : "e") + " actual:" + _.toLocationSymbol(e[2]));
|
|
14095
14095
|
};
|
|
14096
14096
|
Se.prototype.isValid = function(t) {
|
|
14097
14097
|
this.addTestPts(this._geom[0]), this.addTestPts(this._geom[1]);
|
|
@@ -14693,8 +14693,8 @@ function Bc(r, t, e, n) {
|
|
|
14693
14693
|
}
|
|
14694
14694
|
function F() {
|
|
14695
14695
|
for (var X = 0, ut = 0, yt = g.length; ut < yt; ++ut)
|
|
14696
|
-
for (var
|
|
14697
|
-
Le = Mt, J = it, Ze =
|
|
14696
|
+
for (var Xt = g[ut], we = 1, Mr = Xt.length, Ze = Xt[0], Le, J, Mt = Ze[0], it = Ze[1]; we < Mr; ++we)
|
|
14697
|
+
Le = Mt, J = it, Ze = Xt[we], Mt = Ze[0], it = Ze[1], J <= n ? it > n && (Mt - Le) * (n - J) > (it - J) * (r - Le) && ++X : it <= n && (Mt - Le) * (n - J) < (it - J) * (r - Le) && --X;
|
|
14698
14698
|
return X;
|
|
14699
14699
|
}
|
|
14700
14700
|
function j() {
|
|
@@ -14717,8 +14717,8 @@ function Bc(r, t, e, n) {
|
|
|
14717
14717
|
else if (yt && C)
|
|
14718
14718
|
c.point(X, ut);
|
|
14719
14719
|
else {
|
|
14720
|
-
var
|
|
14721
|
-
Mc(
|
|
14720
|
+
var Xt = [E = Math.max(wo, Math.min(Xi, E)), N = Math.max(wo, Math.min(Xi, N))], we = [X = Math.max(wo, Math.min(Xi, X)), ut = Math.max(wo, Math.min(Xi, ut))];
|
|
14721
|
+
Mc(Xt, we, r, t, e, n) ? (C || (c.lineStart(), c.point(Xt[0], Xt[1])), c.point(we[0], we[1]), yt || c.lineEnd(), w = !1) : yt && (c.lineStart(), c.point(X, ut), w = !1);
|
|
14722
14722
|
}
|
|
14723
14723
|
E = X, N = ut, C = yt;
|
|
14724
14724
|
}
|
|
@@ -14912,10 +14912,10 @@ function Yc(r, t) {
|
|
|
14912
14912
|
var Y = ki(O), P = xo(F, (-j - Y) / k);
|
|
14913
14913
|
if (gs(P, D), P = bs(P), !h)
|
|
14914
14914
|
return P;
|
|
14915
|
-
var X = c[0], ut = f[0], yt = c[1],
|
|
14915
|
+
var X = c[0], ut = f[0], yt = c[1], Xt = f[1], we;
|
|
14916
14916
|
ut < X && (we = X, X = ut, ut = we);
|
|
14917
14917
|
var Mr = ut - X, Ze = te(Mr - ot) < pt, Le = Ze || Mr < pt;
|
|
14918
|
-
if (!Ze &&
|
|
14918
|
+
if (!Ze && Xt < yt && (we = yt, yt = Xt, Xt = we), Le ? Ze ? yt + Xt > 0 ^ P[1] < (te(P[0] - X) < pt ? yt : Xt) : yt <= P[1] && P[1] <= Xt : Mr > ot ^ (X <= P[0] && P[0] <= ut)) {
|
|
14919
14919
|
var J = xo(F, (-j + Y) / k);
|
|
14920
14920
|
return gs(J, D), [P, bs(J)];
|
|
14921
14921
|
}
|
|
@@ -15156,7 +15156,7 @@ function Do(r, t, e, n) {
|
|
|
15156
15156
|
var a = nf(o), u = {
|
|
15157
15157
|
type: o.type,
|
|
15158
15158
|
coordinates: Uu(o.coordinates, a)
|
|
15159
|
-
}, l = new zs(), c = l.read(u), f = uc(lc(t, e), "meters"), h =
|
|
15159
|
+
}, l = new zs(), c = l.read(u), f = uc(lc(t, e), "meters"), h = Gt.bufferOp(c, f, n), g = new fu();
|
|
15160
15160
|
if (h = g.write(h), !Vu(h.coordinates)) {
|
|
15161
15161
|
var p = {
|
|
15162
15162
|
type: h.type,
|