@maptiler/geocoding-control 0.0.48 → 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/index.d.ts +0 -0
- package/dist/leaflet.js +584 -574
- package/dist/leaflet.umd.js +4 -4
- package/dist/main.d.ts +1 -1
- package/dist/maplibregl.js +705 -692
- package/dist/maplibregl.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +10 -8
- package/src/lib/GeocodingControl.svelte +18 -17
- package/src/lib/MarkerIcon.svelte +4 -0
- package/src/lib/leafletMapController.ts +7 -1
- package/src/lib/maplibreglMapController.ts +12 -0
package/dist/leaflet.js
CHANGED
|
@@ -6,7 +6,7 @@ var Bn = (r, t, e) => ($s(r, t, "read from private field"), e ? e.call(r) : t.ge
|
|
|
6
6
|
if (t.has(r))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
t instanceof WeakSet ? t.add(r) : t.set(r, e);
|
|
9
|
-
},
|
|
9
|
+
}, Co = (r, t, e, n) => ($s(r, t, "write to private field"), n ? n.call(r, e) : t.set(r, e), e);
|
|
10
10
|
import * as tr from "leaflet";
|
|
11
11
|
function xt() {
|
|
12
12
|
}
|
|
@@ -27,7 +27,7 @@ function Dr(r) {
|
|
|
27
27
|
function Xa(r) {
|
|
28
28
|
return typeof r == "function";
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Ti(r, t) {
|
|
31
31
|
return r != r ? t == t : r !== t || r && typeof r == "object" || typeof r == "function";
|
|
32
32
|
}
|
|
33
33
|
function sl(r) {
|
|
@@ -114,7 +114,7 @@ function B(r, t, e) {
|
|
|
114
114
|
function gl(r) {
|
|
115
115
|
return Array.from(r.childNodes);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function ji(r, t) {
|
|
118
118
|
t = "" + t, r.wholeText !== t && (r.data = t);
|
|
119
119
|
}
|
|
120
120
|
function na(r, t) {
|
|
@@ -127,14 +127,14 @@ function pl(r, t, { bubbles: e = !1, cancelable: n = !1 } = {}) {
|
|
|
127
127
|
const i = document.createEvent("CustomEvent");
|
|
128
128
|
return i.initCustomEvent(r, e, n, t), i;
|
|
129
129
|
}
|
|
130
|
-
let
|
|
131
|
-
function
|
|
132
|
-
|
|
130
|
+
let Ki;
|
|
131
|
+
function Hi(r) {
|
|
132
|
+
Ki = r;
|
|
133
133
|
}
|
|
134
134
|
function Ha() {
|
|
135
|
-
if (!
|
|
135
|
+
if (!Ki)
|
|
136
136
|
throw new Error("Function called outside component initialization");
|
|
137
|
-
return
|
|
137
|
+
return Ki;
|
|
138
138
|
}
|
|
139
139
|
function dl(r) {
|
|
140
140
|
Ha().$$.on_destroy.push(r);
|
|
@@ -152,7 +152,7 @@ function vl() {
|
|
|
152
152
|
return !0;
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const ui = [], vs = [], bo = [], ra = [], yl = Promise.resolve();
|
|
156
156
|
let ys = !1;
|
|
157
157
|
function ml() {
|
|
158
158
|
ys || (ys = !0, yl.then(Wa));
|
|
@@ -161,25 +161,31 @@ function ms(r) {
|
|
|
161
161
|
bo.push(r);
|
|
162
162
|
}
|
|
163
163
|
const fs = /* @__PURE__ */ new Set();
|
|
164
|
-
let
|
|
164
|
+
let ai = 0;
|
|
165
165
|
function Wa() {
|
|
166
|
-
|
|
166
|
+
if (ai !== 0)
|
|
167
|
+
return;
|
|
168
|
+
const r = Ki;
|
|
167
169
|
do {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
try {
|
|
171
|
+
for (; ai < ui.length; ) {
|
|
172
|
+
const t = ui[ai];
|
|
173
|
+
ai++, Hi(t), _l(t.$$);
|
|
174
|
+
}
|
|
175
|
+
} catch (t) {
|
|
176
|
+
throw ui.length = 0, ai = 0, t;
|
|
171
177
|
}
|
|
172
|
-
for (
|
|
178
|
+
for (Hi(null), ui.length = 0, ai = 0; vs.length; )
|
|
173
179
|
vs.pop()();
|
|
174
180
|
for (let t = 0; t < bo.length; t += 1) {
|
|
175
181
|
const e = bo[t];
|
|
176
182
|
fs.has(e) || (fs.add(e), e());
|
|
177
183
|
}
|
|
178
184
|
bo.length = 0;
|
|
179
|
-
} while (
|
|
185
|
+
} while (ui.length);
|
|
180
186
|
for (; ra.length; )
|
|
181
187
|
ra.pop()();
|
|
182
|
-
ys = !1, fs.clear(),
|
|
188
|
+
ys = !1, fs.clear(), Hi(r);
|
|
183
189
|
}
|
|
184
190
|
function _l(r) {
|
|
185
191
|
if (r.fragment !== null) {
|
|
@@ -213,26 +219,26 @@ function be(r, t, e, n) {
|
|
|
213
219
|
} else
|
|
214
220
|
n && n();
|
|
215
221
|
}
|
|
216
|
-
function
|
|
222
|
+
function Qi(r) {
|
|
217
223
|
r && r.c();
|
|
218
224
|
}
|
|
219
|
-
function
|
|
225
|
+
function ci(r, t, e, n) {
|
|
220
226
|
const { fragment: i, after_update: o } = r.$$;
|
|
221
227
|
i && i.m(t, e), n || ms(() => {
|
|
222
228
|
const s = r.$$.on_mount.map(qa).filter(Xa);
|
|
223
229
|
r.$$.on_destroy ? r.$$.on_destroy.push(...s) : Dr(s), r.$$.on_mount = [];
|
|
224
230
|
}), o.forEach(ms);
|
|
225
231
|
}
|
|
226
|
-
function
|
|
232
|
+
function fi(r, t) {
|
|
227
233
|
const e = r.$$;
|
|
228
234
|
e.fragment !== null && (Dr(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
|
|
229
235
|
}
|
|
230
236
|
function El(r, t) {
|
|
231
|
-
r.$$.dirty[0] === -1 && (
|
|
237
|
+
r.$$.dirty[0] === -1 && (ui.push(r), ml(), r.$$.dirty.fill(0)), r.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
232
238
|
}
|
|
233
|
-
function
|
|
234
|
-
const u =
|
|
235
|
-
|
|
239
|
+
function Mi(r, t, e, n, i, o, s, a = [-1]) {
|
|
240
|
+
const u = Ki;
|
|
241
|
+
Hi(r);
|
|
236
242
|
const l = r.$$ = {
|
|
237
243
|
fragment: null,
|
|
238
244
|
ctx: [],
|
|
@@ -262,13 +268,13 @@ function Di(r, t, e, n, i, o, s, a = [-1]) {
|
|
|
262
268
|
l.fragment && l.fragment.l(f), f.forEach(Ae);
|
|
263
269
|
} else
|
|
264
270
|
l.fragment && l.fragment.c();
|
|
265
|
-
t.intro && Kt(r.$$.fragment),
|
|
271
|
+
t.intro && Kt(r.$$.fragment), ci(r, t.target, t.anchor, t.customElement), Wa();
|
|
266
272
|
}
|
|
267
|
-
|
|
273
|
+
Hi(u);
|
|
268
274
|
}
|
|
269
|
-
class
|
|
275
|
+
class Ai {
|
|
270
276
|
$destroy() {
|
|
271
|
-
|
|
277
|
+
fi(this, 1), this.$destroy = xt;
|
|
272
278
|
}
|
|
273
279
|
$on(t, e) {
|
|
274
280
|
if (!Xa(e))
|
|
@@ -300,9 +306,9 @@ function Il(r) {
|
|
|
300
306
|
}
|
|
301
307
|
};
|
|
302
308
|
}
|
|
303
|
-
class Cl extends
|
|
309
|
+
class Cl extends Ai {
|
|
304
310
|
constructor(t) {
|
|
305
|
-
super(),
|
|
311
|
+
super(), Mi(this, t, null, Il, Ti, {});
|
|
306
312
|
}
|
|
307
313
|
}
|
|
308
314
|
function Nl(r) {
|
|
@@ -322,9 +328,9 @@ function Nl(r) {
|
|
|
322
328
|
}
|
|
323
329
|
};
|
|
324
330
|
}
|
|
325
|
-
class xl extends
|
|
331
|
+
class xl extends Ai {
|
|
326
332
|
constructor(t) {
|
|
327
|
-
super(),
|
|
333
|
+
super(), Mi(this, t, null, Nl, Ti, {});
|
|
328
334
|
}
|
|
329
335
|
}
|
|
330
336
|
function Sl(r) {
|
|
@@ -344,16 +350,16 @@ function Sl(r) {
|
|
|
344
350
|
}
|
|
345
351
|
};
|
|
346
352
|
}
|
|
347
|
-
class wl extends
|
|
353
|
+
class wl extends Ai {
|
|
348
354
|
constructor(t) {
|
|
349
|
-
super(),
|
|
355
|
+
super(), Mi(this, t, null, Sl, Ti, {});
|
|
350
356
|
}
|
|
351
357
|
}
|
|
352
358
|
function Ll(r) {
|
|
353
359
|
let t, e, n;
|
|
354
360
|
return {
|
|
355
361
|
c() {
|
|
356
|
-
t = Ir("svg"), e = Ir("path"), B(e, "stroke-width", "4"), B(e, "fill-rule", "evenodd"), B(e, "clip-rule", "evenodd"), B(e, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), B(e, "class", "svelte-
|
|
362
|
+
t = Ir("svg"), e = Ir("path"), B(e, "stroke-width", "4"), B(e, "fill-rule", "evenodd"), B(e, "clip-rule", "evenodd"), B(e, "d", "M 5,33.103579 C 5,17.607779 18.457,5 35,5 C 51.543,5 65,17.607779 65,33.103579 C 65,56.388679 40.4668,76.048179 36.6112,79.137779 C 36.3714,79.329879 36.2116,79.457979 36.1427,79.518879 C 35.8203,79.800879 35.4102,79.942779 35,79.942779 C 34.5899,79.942779 34.1797,79.800879 33.8575,79.518879 C 33.7886,79.457979 33.6289,79.330079 33.3893,79.138079 C 29.5346,76.049279 5,56.389379 5,33.103579 Z M 35.0001,49.386379 C 43.1917,49.386379 49.8323,42.646079 49.8323,34.331379 C 49.8323,26.016779 43.1917,19.276479 35.0001,19.276479 C 26.8085,19.276479 20.1679,26.016779 20.1679,34.331379 C 20.1679,42.646079 26.8085,49.386379 35.0001,49.386379 Z"), B(e, "class", "svelte-1k1cmht"), B(t, "width", n = r[0] !== "list" ? void 0 : "20"), B(t, "viewBox", "0 0 70 85"), B(t, "fill", "none"), B(t, "class", "svelte-1k1cmht"), rn(t, "in-map", r[0] !== "list"), rn(t, "list-icon", r[0] === "list");
|
|
357
363
|
},
|
|
358
364
|
m(i, o) {
|
|
359
365
|
Ke(i, t, o), lt(t, e);
|
|
@@ -374,9 +380,9 @@ function bl(r, t, e) {
|
|
|
374
380
|
"displayIn" in i && e(0, n = i.displayIn);
|
|
375
381
|
}, [n];
|
|
376
382
|
}
|
|
377
|
-
class ja extends
|
|
383
|
+
class ja extends Ai {
|
|
378
384
|
constructor(t) {
|
|
379
|
-
super(),
|
|
385
|
+
super(), Mi(this, t, bl, Ll, Ti, { displayIn: 0 });
|
|
380
386
|
}
|
|
381
387
|
}
|
|
382
388
|
function Pl(r) {
|
|
@@ -396,9 +402,9 @@ function Pl(r) {
|
|
|
396
402
|
}
|
|
397
403
|
};
|
|
398
404
|
}
|
|
399
|
-
class Rl extends
|
|
405
|
+
class Rl extends Ai {
|
|
400
406
|
constructor(t) {
|
|
401
|
-
super(),
|
|
407
|
+
super(), Mi(this, t, null, Pl, Ti, {});
|
|
402
408
|
}
|
|
403
409
|
}
|
|
404
410
|
function ia(r, t, e) {
|
|
@@ -409,10 +415,10 @@ function oa(r) {
|
|
|
409
415
|
let t, e;
|
|
410
416
|
return t = new wl({}), {
|
|
411
417
|
c() {
|
|
412
|
-
|
|
418
|
+
Qi(t.$$.fragment);
|
|
413
419
|
},
|
|
414
420
|
m(n, i) {
|
|
415
|
-
|
|
421
|
+
ci(t, n, i), e = !0;
|
|
416
422
|
},
|
|
417
423
|
i(n) {
|
|
418
424
|
e || (Kt(t.$$.fragment, n), e = !0);
|
|
@@ -421,7 +427,7 @@ function oa(r) {
|
|
|
421
427
|
be(t.$$.fragment, n), e = !1;
|
|
422
428
|
},
|
|
423
429
|
d(n) {
|
|
424
|
-
|
|
430
|
+
fi(t, n);
|
|
425
431
|
}
|
|
426
432
|
};
|
|
427
433
|
}
|
|
@@ -429,10 +435,10 @@ function sa(r) {
|
|
|
429
435
|
let t, e, n, i, o;
|
|
430
436
|
return e = new Cl({}), {
|
|
431
437
|
c() {
|
|
432
|
-
t = Qt("button"),
|
|
438
|
+
t = Qt("button"), Qi(e.$$.fragment), B(t, "type", "button"), B(t, "title", r[8]), B(t, "class", "svelte-1h1zm6d"), rn(t, "active", r[1]);
|
|
433
439
|
},
|
|
434
440
|
m(s, a) {
|
|
435
|
-
Ke(s, t, a),
|
|
441
|
+
Ke(s, t, a), ci(e, t, null), n = !0, i || (o = ke(t, "click", r[55]), i = !0);
|
|
436
442
|
},
|
|
437
443
|
p(s, a) {
|
|
438
444
|
(!n || a[0] & 256) && B(t, "title", s[8]), (!n || a[0] & 2) && rn(t, "active", s[1]);
|
|
@@ -444,7 +450,7 @@ function sa(r) {
|
|
|
444
450
|
be(e.$$.fragment, s), n = !1;
|
|
445
451
|
},
|
|
446
452
|
d(s) {
|
|
447
|
-
s && Ae(t),
|
|
453
|
+
s && Ae(t), fi(e), i = !1, o();
|
|
448
454
|
}
|
|
449
455
|
};
|
|
450
456
|
}
|
|
@@ -512,7 +518,7 @@ function Dl(r) {
|
|
|
512
518
|
Ke(n, t, i), lt(t, e);
|
|
513
519
|
},
|
|
514
520
|
p(n, i) {
|
|
515
|
-
i[0] & 32 &&
|
|
521
|
+
i[0] & 32 && ji(e, n[5]);
|
|
516
522
|
},
|
|
517
523
|
i: xt,
|
|
518
524
|
o: xt,
|
|
@@ -522,38 +528,38 @@ function Dl(r) {
|
|
|
522
528
|
};
|
|
523
529
|
}
|
|
524
530
|
function Tl(r) {
|
|
525
|
-
let t, e;
|
|
531
|
+
let t = "", e;
|
|
526
532
|
return {
|
|
527
533
|
c() {
|
|
528
|
-
|
|
534
|
+
e = Vr(t);
|
|
529
535
|
},
|
|
530
536
|
m(n, i) {
|
|
531
|
-
Ke(n,
|
|
532
|
-
},
|
|
533
|
-
p(n, i) {
|
|
534
|
-
i[0] & 16 && Wi(e, n[4]);
|
|
537
|
+
Ke(n, e, i);
|
|
535
538
|
},
|
|
539
|
+
p: xt,
|
|
536
540
|
i: xt,
|
|
537
541
|
o: xt,
|
|
538
542
|
d(n) {
|
|
539
|
-
n && Ae(
|
|
543
|
+
n && Ae(e);
|
|
540
544
|
}
|
|
541
545
|
};
|
|
542
546
|
}
|
|
543
547
|
function Ml(r) {
|
|
544
|
-
let t
|
|
548
|
+
let t, e;
|
|
545
549
|
return {
|
|
546
550
|
c() {
|
|
547
|
-
e = Vr(t);
|
|
551
|
+
t = Qt("div"), e = Vr(r[4]), B(t, "class", "error svelte-1h1zm6d");
|
|
548
552
|
},
|
|
549
553
|
m(n, i) {
|
|
550
|
-
Ke(n,
|
|
554
|
+
Ke(n, t, i), lt(t, e);
|
|
555
|
+
},
|
|
556
|
+
p(n, i) {
|
|
557
|
+
i[0] & 16 && ji(e, n[4]);
|
|
551
558
|
},
|
|
552
|
-
p: xt,
|
|
553
559
|
i: xt,
|
|
554
560
|
o: xt,
|
|
555
561
|
d(n) {
|
|
556
|
-
n && Ae(
|
|
562
|
+
n && Ae(t);
|
|
557
563
|
}
|
|
558
564
|
};
|
|
559
565
|
}
|
|
@@ -567,7 +573,7 @@ function aa(r) {
|
|
|
567
573
|
Ke(i, t, o), lt(t, n);
|
|
568
574
|
},
|
|
569
575
|
p(i, o) {
|
|
570
|
-
o[0] & 4096 && e !== (e = i[68].place_type + "") &&
|
|
576
|
+
o[0] & 4096 && e !== (e = i[68].place_type + "") && ji(n, e);
|
|
571
577
|
},
|
|
572
578
|
d(i) {
|
|
573
579
|
i && Ae(t);
|
|
@@ -586,16 +592,16 @@ function ua(r) {
|
|
|
586
592
|
}
|
|
587
593
|
return {
|
|
588
594
|
c() {
|
|
589
|
-
t = Qt("li"),
|
|
595
|
+
t = Qt("li"), Qi(e.$$.fragment), n = qn(), i = Qt("span"), o = Qt("span"), s = Qt("span"), u = Vr(a), l = qn(), x && x.c(), c = qn(), f = Qt("span"), h = Qt("span"), p = Vr(g), m = qn(), B(s, "class", "svelte-1h1zm6d"), B(o, "class", "svelte-1h1zm6d"), B(i, "class", "svelte-1h1zm6d"), B(h, "class", "svelte-1h1zm6d"), B(f, "class", "svelte-1h1zm6d"), B(t, "tabindex", "0"), B(t, "data-selected", d = r[13] === r[70]), B(t, "class", "svelte-1h1zm6d"), rn(t, "selected", r[13] === r[70]);
|
|
590
596
|
},
|
|
591
597
|
m(D, T) {
|
|
592
|
-
Ke(D, t, T),
|
|
598
|
+
Ke(D, t, T), ci(e, t, null), lt(t, n), lt(t, i), lt(i, o), lt(o, s), lt(s, u), lt(o, l), x && x.m(o, null), lt(t, c), lt(t, f), lt(f, h), lt(h, p), lt(t, m), y = !0, I || (C = [
|
|
593
599
|
ke(t, "mouseover", b),
|
|
594
600
|
ke(t, "focus", w)
|
|
595
601
|
], I = !0);
|
|
596
602
|
},
|
|
597
603
|
p(D, T) {
|
|
598
|
-
r = D, (!y || T[0] & 4096) && a !== (a = r[68].place_name.replace(/,.*/, "") + "") &&
|
|
604
|
+
r = D, (!y || T[0] & 4096) && a !== (a = r[68].place_name.replace(/,.*/, "") + "") && ji(u, a), r[10] ? x ? x.p(r, T) : (x = aa(r), x.c(), x.m(o, null)) : x && (x.d(1), x = null), (!y || T[0] & 4096) && g !== (g = r[68].place_name.replace(/[^,]*,?\s*/, "") + "") && ji(p, g), (!y || T[0] & 8192 && d !== (d = r[13] === r[70])) && B(t, "data-selected", d), (!y || T[0] & 8192) && rn(t, "selected", r[13] === r[70]);
|
|
599
605
|
},
|
|
600
606
|
i(D) {
|
|
601
607
|
y || (Kt(e.$$.fragment, D), y = !0);
|
|
@@ -604,7 +610,7 @@ function ua(r) {
|
|
|
604
610
|
be(e.$$.fragment, D), y = !1;
|
|
605
611
|
},
|
|
606
612
|
d(D) {
|
|
607
|
-
D && Ae(t),
|
|
613
|
+
D && Ae(t), fi(e), x && x.d(), I = !1, Dr(C);
|
|
608
614
|
}
|
|
609
615
|
};
|
|
610
616
|
}
|
|
@@ -615,14 +621,14 @@ function Al(r) {
|
|
|
615
621
|
const D = r[47].default, T = al(D, r, r[46], null), F = [Ml, Tl, Dl, Ol], j = [];
|
|
616
622
|
function k(O, Y) {
|
|
617
623
|
var P, X;
|
|
618
|
-
return O[
|
|
624
|
+
return O[16] ? 0 : O[14] ? ((P = O[12]) == null ? void 0 : P.length) === 0 ? 2 : O[14] && ((X = O[12]) != null && X.length) ? 3 : -1 : 1;
|
|
619
625
|
}
|
|
620
626
|
return ~(m = k(r)) && (d = j[m] = F[m](r)), {
|
|
621
627
|
c() {
|
|
622
|
-
t = Qt("form"), e = Qt("div"), n = Qt("button"),
|
|
628
|
+
t = Qt("form"), e = Qt("div"), n = Qt("button"), Qi(i.$$.fragment), o = qn(), s = Qt("input"), a = qn(), u = Qt("div"), l = Qt("button"), Qi(c.$$.fragment), f = qn(), b && b.c(), h = qn(), w && w.c(), g = qn(), T && T.c(), p = qn(), d && d.c(), B(n, "type", "button"), B(n, "class", "svelte-1h1zm6d"), B(s, "placeholder", r[3]), B(s, "aria-label", r[3]), B(s, "class", "svelte-1h1zm6d"), B(l, "type", "button"), B(l, "title", r[9]), B(l, "class", "svelte-1h1zm6d"), rn(l, "displayable", r[0] !== ""), B(u, "class", "clear-button-container svelte-1h1zm6d"), B(e, "class", "input-group svelte-1h1zm6d"), B(t, "tabindex", "0"), B(t, "class", y = ea(r[2]) + " svelte-1h1zm6d"), rn(t, "can-collapse", r[6] && r[0] === "");
|
|
623
629
|
},
|
|
624
630
|
m(O, Y) {
|
|
625
|
-
Ke(O, t, Y), lt(t, e), lt(e, n),
|
|
631
|
+
Ke(O, t, Y), lt(t, e), lt(e, n), ci(i, n, null), lt(e, o), lt(e, s), r[49](s), na(s, r[0]), lt(e, a), lt(e, u), lt(u, l), ci(c, l, null), lt(u, f), b && b.m(u, null), lt(e, h), w && w.m(e, null), lt(e, g), T && T.m(e, null), lt(t, p), ~m && j[m].m(t, null), I = !0, C || (x = [
|
|
626
632
|
ke(n, "click", r[48]),
|
|
627
633
|
ke(s, "input", r[50]),
|
|
628
634
|
ke(s, "focus", r[51]),
|
|
@@ -658,7 +664,7 @@ function Al(r) {
|
|
|
658
664
|
be(i.$$.fragment, O), be(c.$$.fragment, O), be(b), be(w), be(T, O), be(d), I = !1;
|
|
659
665
|
},
|
|
660
666
|
d(O) {
|
|
661
|
-
O && Ae(t),
|
|
667
|
+
O && Ae(t), fi(i), r[49](null), fi(c), b && b.d(), w && w.d(), T && T.d(O), ~m && j[m].d(), C = !1, Dr(x);
|
|
662
668
|
}
|
|
663
669
|
};
|
|
664
670
|
}
|
|
@@ -667,19 +673,19 @@ function Fl(r, t, e) {
|
|
|
667
673
|
return r === n && e ? r : ((r - i) % o + o) % o + i;
|
|
668
674
|
}
|
|
669
675
|
function Bl(r, t, e) {
|
|
670
|
-
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: m = !0 } = t, { minLength: d = 2 } = t, { language: y = void 0 } = t, { showResultsWhileTyping: I = !0 } = t, { zoom: C = 16 } = t, { flyTo: x = !0 } = t, { collapsed: b = !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, {
|
|
676
|
+
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: m = !0 } = t, { minLength: d = 2 } = t, { language: y = void 0 } = t, { showResultsWhileTyping: I = !0 } = t, { zoom: C = 16 } = t, { flyTo: x = !0 } = t, { collapsed: b = !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;
|
|
671
677
|
function we() {
|
|
672
678
|
An.focus();
|
|
673
679
|
}
|
|
674
680
|
function Ar() {
|
|
675
681
|
An.blur();
|
|
676
682
|
}
|
|
677
|
-
function Ze(N,
|
|
678
|
-
e(0, k = N),
|
|
683
|
+
function Ze(N, Ft = !0) {
|
|
684
|
+
e(0, k = N), Ft ? (e(13, At = -1), Js()) : (as(), setTimeout(() => {
|
|
679
685
|
An.focus(), An.select();
|
|
680
686
|
}));
|
|
681
687
|
}
|
|
682
|
-
let Le = !1, J, Mt, it, Qs = "", An, At = -1, gr,
|
|
688
|
+
let Le = !1, J, Mt, it, Qs = "", An, At = -1, gr, Eo = [], Fr, si, Io;
|
|
683
689
|
const pr = vl();
|
|
684
690
|
dl(() => {
|
|
685
691
|
a && (a.setEventHandler(void 0), a.indicateReverse(!1), a.setSelectedMarker(-1), a.setMarkers(void 0, void 0));
|
|
@@ -688,28 +694,28 @@ function Bl(r, t, e) {
|
|
|
688
694
|
if (si && (clearTimeout(si), si = void 0), At > -1 && J)
|
|
689
695
|
e(44, it = J[At]), e(0, k = it.place_name.replace(/,.*/, "")), e(16, gr = void 0), e(43, Mt = void 0), e(13, At = -1);
|
|
690
696
|
else if (k) {
|
|
691
|
-
const
|
|
697
|
+
const Ft = N || !Zs();
|
|
692
698
|
ss(k, { exact: !0 }).then(() => {
|
|
693
|
-
e(43, Mt = J), e(44, it = void 0),
|
|
699
|
+
e(43, Mt = J), e(44, it = void 0), Ft && Xu();
|
|
694
700
|
}).catch((Fn) => e(16, gr = Fn));
|
|
695
701
|
}
|
|
696
702
|
}
|
|
697
703
|
function Zs() {
|
|
698
704
|
return /^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/.test(k);
|
|
699
705
|
}
|
|
700
|
-
async function ss(N, { byId:
|
|
706
|
+
async function ss(N, { byId: Ft = !1, exact: Fn = !1 } = {}) {
|
|
701
707
|
e(16, gr = void 0);
|
|
702
|
-
const
|
|
703
|
-
y && Ge.set("language", Array.isArray(y) ? y.join(",") : y), yt && Ge.set("
|
|
708
|
+
const Vi = Zs(), Ge = new URLSearchParams();
|
|
709
|
+
y && Ge.set("language", Array.isArray(y) ? y.join(",") : y), yt && Ge.set("country", Array.isArray(yt) ? yt.join(",") : yt), Xt && Ge.set("types", Xt.join(",")), Vi || (p && Ge.set("bbox", p.map((Gr) => Gr.toFixed(6)).join(",")), Ft || (g && Ge.set("proximity", g.map((Gr) => Gr.toFixed(6)).join(",")), (Fn || !I) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(ut)))), X !== void 0 && Ge.set("limit", String(X)), Ge.set("key", u);
|
|
704
710
|
const Br = "https://api.maptiler.com/geocoding/" + encodeURIComponent(N) + ".json?" + Ge.toString();
|
|
705
711
|
if (Br === Qs) {
|
|
706
|
-
|
|
712
|
+
Ft ? (e(12, J = void 0), e(44, it = Eo[0])) : e(12, J = Eo);
|
|
707
713
|
return;
|
|
708
714
|
}
|
|
709
715
|
Qs = Br, Fr == null || Fr.abort(), e(17, Fr = new AbortController());
|
|
710
716
|
let ve;
|
|
711
717
|
try {
|
|
712
|
-
ve = await fetch(Br, { signal: Fr.signal }).finally(() => {
|
|
718
|
+
console.log("FFFFFFF"), ve = await fetch(Br, { signal: Fr.signal }).finally(() => {
|
|
713
719
|
e(17, Fr = void 0);
|
|
714
720
|
});
|
|
715
721
|
} catch (Gr) {
|
|
@@ -720,15 +726,15 @@ function Bl(r, t, e) {
|
|
|
720
726
|
if (!ve.ok)
|
|
721
727
|
throw new Error();
|
|
722
728
|
const ls = await ve.json();
|
|
723
|
-
pr("response", { url: Br, featureCollection: ls }),
|
|
729
|
+
pr("response", { url: Br, featureCollection: ls }), Ft ? (e(12, J = void 0), e(44, it = ls.features[0]), Eo = [it]) : (e(12, J = ls.features.filter(j)), Eo = J, Vi && An.focus());
|
|
724
730
|
}
|
|
725
731
|
function Xu() {
|
|
726
|
-
var Fn,
|
|
732
|
+
var Fn, Vi, Ge, Br;
|
|
727
733
|
if (!(Mt != null && Mt.length) || !x)
|
|
728
734
|
return;
|
|
729
|
-
const N = [180, 90, -180, -90],
|
|
735
|
+
const N = [180, 90, -180, -90], Ft = !Mt.some((ve) => !ve.matching_text);
|
|
730
736
|
for (const ve of Mt)
|
|
731
|
-
(
|
|
737
|
+
(Ft || !ve.matching_text) && (N[0] = Math.min(N[0], ((Fn = ve.bbox) == null ? void 0 : Fn[0]) ?? ve.center[0]), N[1] = Math.min(N[1], ((Vi = ve.bbox) == null ? void 0 : Vi[1]) ?? ve.center[1]), N[2] = Math.max(N[2], ((Ge = ve.bbox) == null ? void 0 : Ge[2]) ?? ve.center[0]), N[3] = Math.max(N[3], ((Br = ve.bbox) == null ? void 0 : Br[3]) ?? ve.center[1]));
|
|
732
738
|
a && Mt.length > 0 && (it && N[0] === N[2] && N[1] === N[3] ? a.flyTo(it.center, C) : a.fitBounds(N, 50));
|
|
733
739
|
}
|
|
734
740
|
function Yu(N) {
|
|
@@ -737,16 +743,16 @@ function Bl(r, t, e) {
|
|
|
737
743
|
function Hu(N) {
|
|
738
744
|
if (!J)
|
|
739
745
|
return;
|
|
740
|
-
let
|
|
741
|
-
|
|
746
|
+
let Ft = N.key === "ArrowDown" ? 1 : N.key === "ArrowUp" ? -1 : 0;
|
|
747
|
+
Ft ? (At === -1 && Ft === -1 && e(13, At = J.length), e(13, At += Ft), At >= J.length && e(13, At = -1), N.preventDefault()) : ["ArrowLeft", "ArrowRight", "Home", "End"].includes(N.key) && e(13, At = -1);
|
|
742
748
|
}
|
|
743
749
|
function as(N = !0) {
|
|
744
750
|
if (I && k.length > d) {
|
|
745
751
|
si && clearTimeout(si);
|
|
746
|
-
const
|
|
752
|
+
const Ft = k;
|
|
747
753
|
si = window.setTimeout(
|
|
748
754
|
() => {
|
|
749
|
-
ss(
|
|
755
|
+
ss(Ft).catch((Fn) => e(16, gr = Fn));
|
|
750
756
|
},
|
|
751
757
|
N ? l : 0
|
|
752
758
|
);
|
|
@@ -754,7 +760,7 @@ function Bl(r, t, e) {
|
|
|
754
760
|
e(12, J = void 0), e(16, gr = void 0);
|
|
755
761
|
}
|
|
756
762
|
function us(N) {
|
|
757
|
-
e(44, it = N), e(0, k = N.place_name
|
|
763
|
+
e(44, it = N), e(0, k = N.place_name), e(13, At = -1);
|
|
758
764
|
}
|
|
759
765
|
const Wu = () => An.focus();
|
|
760
766
|
function ju(N) {
|
|
@@ -770,26 +776,26 @@ function Bl(r, t, e) {
|
|
|
770
776
|
}, tl = () => e(1, O = !O), el = (N) => e(13, At = N), nl = (N) => us(N), rl = () => e(13, At = -1), il = () => {
|
|
771
777
|
};
|
|
772
778
|
return r.$$set = (N) => {
|
|
773
|
-
"class" in N && e(2, s = N.class), "mapController" in N && e(23, a = N.mapController), "apiKey" in N && e(24, u = N.apiKey), "debounceSearch" in N && e(25, l = N.debounceSearch), "placeholder" in N && e(3, c = N.placeholder), "errorMessage" in N && e(4, f = N.errorMessage), "noResultsMessage" in N && e(5, h = N.noResultsMessage), "proximity" in N && e(22, g = N.proximity), "bbox" in N && e(26, p = N.bbox), "trackProximity" in N && e(27, m = N.trackProximity), "minLength" in N && e(28, d = N.minLength), "language" in N && e(29, y = N.language), "showResultsWhileTyping" in N && e(30, I = N.showResultsWhileTyping), "zoom" in N && e(31, C = N.zoom), "flyTo" in N && e(32, x = N.flyTo), "collapsed" in N && e(6, b = N.collapsed), "clearOnBlur" in N && e(33, w = N.clearOnBlur), "enableReverse" in N && e(7, D = N.enableReverse), "reverseButtonTitle" in N && e(8, T = N.reverseButtonTitle), "clearButtonTitle" in N && e(9, F = N.clearButtonTitle), "filter" in N && e(34, j = N.filter), "searchValue" in N && e(0, k = N.searchValue), "reverseActive" in N && e(1, O = N.reverseActive), "showPlaceType" in N && e(10, Y = N.showPlaceType), "showFullGeometry" in N && e(35, P = N.showFullGeometry), "limit" in N && e(36, X = N.limit), "fuzzyMatch" in N && e(37, ut = N.fuzzyMatch), "
|
|
779
|
+
"class" in N && e(2, s = N.class), "mapController" in N && e(23, a = N.mapController), "apiKey" in N && e(24, u = N.apiKey), "debounceSearch" in N && e(25, l = N.debounceSearch), "placeholder" in N && e(3, c = N.placeholder), "errorMessage" in N && e(4, f = N.errorMessage), "noResultsMessage" in N && e(5, h = N.noResultsMessage), "proximity" in N && e(22, g = N.proximity), "bbox" in N && e(26, p = N.bbox), "trackProximity" in N && e(27, m = N.trackProximity), "minLength" in N && e(28, d = N.minLength), "language" in N && e(29, y = N.language), "showResultsWhileTyping" in N && e(30, I = N.showResultsWhileTyping), "zoom" in N && e(31, C = N.zoom), "flyTo" in N && e(32, x = N.flyTo), "collapsed" in N && e(6, b = N.collapsed), "clearOnBlur" in N && e(33, w = N.clearOnBlur), "enableReverse" in N && e(7, D = N.enableReverse), "reverseButtonTitle" in N && e(8, T = N.reverseButtonTitle), "clearButtonTitle" in N && e(9, F = N.clearButtonTitle), "filter" in N && e(34, j = N.filter), "searchValue" in N && e(0, k = N.searchValue), "reverseActive" in N && e(1, O = N.reverseActive), "showPlaceType" in N && e(10, Y = N.showPlaceType), "showFullGeometry" in N && e(35, P = N.showFullGeometry), "limit" in N && e(36, X = N.limit), "fuzzyMatch" in N && e(37, ut = N.fuzzyMatch), "country" in N && e(38, yt = N.country), "types" in N && e(39, Xt = N.types), "$$scope" in N && e(46, o = N.$$scope);
|
|
774
780
|
}, r.$$.update = () => {
|
|
775
781
|
if (r.$$.dirty[0] & 134217728 && (m || e(22, g = void 0)), r.$$.dirty[0] & 2048 | r.$$.dirty[1] & 4 && setTimeout(() => {
|
|
776
|
-
e(14,
|
|
782
|
+
e(14, Io = Le), w && !Le && e(0, k = "");
|
|
777
783
|
}), r.$$.dirty[0] & 4097 && (k || (e(44, it = void 0), e(12, J = void 0), e(16, gr = void 0), e(43, Mt = J))), r.$$.dirty[1] & 8208 && P && it && !it.address && it.geometry.type === "Point" && ss(it.id, { byId: !0 }).catch((N) => e(16, gr = N)), r.$$.dirty[0] & 8388608 | r.$$.dirty[1] & 8195 && a && it && x && (!it.bbox || it.bbox[0] === it.bbox[2] && it.bbox[1] === it.bbox[3] ? a.flyTo(it.center, C) : a.fitBounds(it.bbox, 50), e(12, J = void 0), e(43, Mt = void 0), e(13, At = -1)), r.$$.dirty[0] & 4096 | r.$$.dirty[1] & 4096 && Mt !== J && e(43, Mt = void 0), r.$$.dirty[0] & 8388608 | r.$$.dirty[1] & 12288 && a && a.setMarkers(Mt, it), r.$$.dirty[0] & 1 && e(13, At = -1), r.$$.dirty[0] & 142626818 && a && a.setEventHandler((N) => {
|
|
778
784
|
switch (N.type) {
|
|
779
785
|
case "mapClick":
|
|
780
786
|
O && Yu(N.coordinates);
|
|
781
787
|
break;
|
|
782
788
|
case "proximityChange":
|
|
783
|
-
e(22, g = m ? N.proximity : void 0);
|
|
789
|
+
console.log("AAAAAAAAA"), e(22, g = m ? N.proximity : void 0);
|
|
784
790
|
break;
|
|
785
791
|
case "markerClick":
|
|
786
792
|
{
|
|
787
|
-
const
|
|
788
|
-
|
|
793
|
+
const Ft = J == null ? void 0 : J.find((Fn) => Fn.id === N.id);
|
|
794
|
+
Ft && us(Ft);
|
|
789
795
|
}
|
|
790
796
|
break;
|
|
791
797
|
case "markerMouseEnter":
|
|
792
|
-
e(13, At =
|
|
798
|
+
e(13, At = Io ? (J == null ? void 0 : J.findIndex((Ft) => Ft.id === N.id)) ?? -1 : -1);
|
|
793
799
|
break;
|
|
794
800
|
case "markerMouseLeave":
|
|
795
801
|
e(13, At = -1);
|
|
@@ -799,7 +805,7 @@ function Bl(r, t, e) {
|
|
|
799
805
|
const N = /^(-?\d+(?:\.\d*)?),(-?\d+(?:\.\d*)?)$/.exec(k);
|
|
800
806
|
a == null || a.setReverseMarker(N ? [Number(N[1]), Number(N[2])] : void 0);
|
|
801
807
|
}
|
|
802
|
-
r.$$.dirty[1] & 16384 && pr("select", n), r.$$.dirty[1] & 8192 && pr("pick", it), r.$$.dirty[0] & 20480 && pr("optionsVisibilityChange",
|
|
808
|
+
r.$$.dirty[1] & 16384 && pr("select", n), r.$$.dirty[1] & 8192 && pr("pick", it), r.$$.dirty[0] & 20480 && pr("optionsVisibilityChange", Io && !!J), r.$$.dirty[0] & 4096 && pr("featuresListed", J), r.$$.dirty[1] & 4096 && pr("featuresMarked", Mt), r.$$.dirty[0] & 2 && pr("reverseToggle", O), r.$$.dirty[0] & 1 && pr("queryChange", k), r.$$.dirty[0] & 8388610 && a && a.indicateReverse(O);
|
|
803
809
|
}, [
|
|
804
810
|
k,
|
|
805
811
|
O,
|
|
@@ -815,7 +821,7 @@ function Bl(r, t, e) {
|
|
|
815
821
|
Le,
|
|
816
822
|
J,
|
|
817
823
|
At,
|
|
818
|
-
|
|
824
|
+
Io,
|
|
819
825
|
An,
|
|
820
826
|
gr,
|
|
821
827
|
Fr,
|
|
@@ -840,7 +846,7 @@ function Bl(r, t, e) {
|
|
|
840
846
|
X,
|
|
841
847
|
ut,
|
|
842
848
|
yt,
|
|
843
|
-
|
|
849
|
+
Xt,
|
|
844
850
|
we,
|
|
845
851
|
Ar,
|
|
846
852
|
Ze,
|
|
@@ -863,14 +869,14 @@ function Bl(r, t, e) {
|
|
|
863
869
|
il
|
|
864
870
|
];
|
|
865
871
|
}
|
|
866
|
-
let Gl = class extends
|
|
872
|
+
let Gl = class extends Ai {
|
|
867
873
|
constructor(t) {
|
|
868
|
-
super(),
|
|
874
|
+
super(), Mi(
|
|
869
875
|
this,
|
|
870
876
|
t,
|
|
871
877
|
Bl,
|
|
872
878
|
Al,
|
|
873
|
-
|
|
879
|
+
Ti,
|
|
874
880
|
{
|
|
875
881
|
class: 2,
|
|
876
882
|
mapController: 23,
|
|
@@ -899,7 +905,7 @@ let Gl = class extends Ti {
|
|
|
899
905
|
showFullGeometry: 35,
|
|
900
906
|
limit: 36,
|
|
901
907
|
fuzzyMatch: 37,
|
|
902
|
-
|
|
908
|
+
country: 38,
|
|
903
909
|
types: 39,
|
|
904
910
|
focus: 40,
|
|
905
911
|
blur: 41,
|
|
@@ -1292,7 +1298,7 @@ function ca(r, t) {
|
|
|
1292
1298
|
function Ee(r, t, e) {
|
|
1293
1299
|
return t && ca(r.prototype, t), e && ca(r, e), r;
|
|
1294
1300
|
}
|
|
1295
|
-
var
|
|
1301
|
+
var Ui = function(t, e) {
|
|
1296
1302
|
return t.ll.x <= e.x && e.x <= t.ur.x && t.ll.y <= e.y && e.y <= t.ur.y;
|
|
1297
1303
|
}, Ns = function(t, e) {
|
|
1298
1304
|
if (e.ur.x < t.ll.x || t.ur.x < e.ll.x || e.ur.y < t.ll.y || t.ur.y < e.ll.y)
|
|
@@ -1347,7 +1353,7 @@ var Yl = mr * mr, xs = function(t, e) {
|
|
|
1347
1353
|
return o !== null && xs(n.key, o.key) === 0 ? (this.tree.remove(e), o.key) : e;
|
|
1348
1354
|
}
|
|
1349
1355
|
}]), r;
|
|
1350
|
-
}(),
|
|
1356
|
+
}(), Ji = new Hl(), Wi = function(t, e) {
|
|
1351
1357
|
return t.x * e.y - t.y * e.x;
|
|
1352
1358
|
}, Ka = function(t, e) {
|
|
1353
1359
|
return t.x * e.x + t.y * e.y;
|
|
@@ -1358,7 +1364,7 @@ var Yl = mr * mr, xs = function(t, e) {
|
|
|
1358
1364
|
}, o = {
|
|
1359
1365
|
x: n.x - t.x,
|
|
1360
1366
|
y: n.y - t.y
|
|
1361
|
-
}, s =
|
|
1367
|
+
}, s = Wi(i, o);
|
|
1362
1368
|
return xs(s, 0);
|
|
1363
1369
|
}, Mo = function(t) {
|
|
1364
1370
|
return Math.sqrt(Ka(t, t));
|
|
@@ -1370,7 +1376,7 @@ var Yl = mr * mr, xs = function(t, e) {
|
|
|
1370
1376
|
x: n.x - t.x,
|
|
1371
1377
|
y: n.y - t.y
|
|
1372
1378
|
};
|
|
1373
|
-
return
|
|
1379
|
+
return Wi(o, i) / Mo(o) / Mo(i);
|
|
1374
1380
|
}, jl = function(t, e, n) {
|
|
1375
1381
|
var i = {
|
|
1376
1382
|
x: e.x - t.x,
|
|
@@ -1399,13 +1405,13 @@ var Yl = mr * mr, xs = function(t, e) {
|
|
|
1399
1405
|
return ga(n, i, t.y);
|
|
1400
1406
|
if (i.y === 0)
|
|
1401
1407
|
return ga(t, e, n.y);
|
|
1402
|
-
var o =
|
|
1408
|
+
var o = Wi(e, i);
|
|
1403
1409
|
if (o == 0)
|
|
1404
1410
|
return null;
|
|
1405
1411
|
var s = {
|
|
1406
1412
|
x: n.x - t.x,
|
|
1407
1413
|
y: n.y - t.y
|
|
1408
|
-
}, a =
|
|
1414
|
+
}, a = Wi(s, e) / o, u = Wi(s, i) / o, l = t.x + u * e.x, c = n.x + a * i.x, f = t.y + u * e.y, h = n.y + a * i.y, g = (l + c) / 2, p = (f + h) / 2;
|
|
1409
1415
|
return {
|
|
1410
1416
|
x: g,
|
|
1411
1417
|
y: p
|
|
@@ -1591,7 +1597,7 @@ var Yl = mr * mr, xs = function(t, e) {
|
|
|
1591
1597
|
var n = this.bbox(), i = e.bbox(), o = Ns(n, i);
|
|
1592
1598
|
if (o === null)
|
|
1593
1599
|
return null;
|
|
1594
|
-
var s = this.leftSE.point, a = this.rightSE.point, u = e.leftSE.point, l = e.rightSE.point, c =
|
|
1600
|
+
var s = this.leftSE.point, a = this.rightSE.point, u = e.leftSE.point, l = e.rightSE.point, c = Ui(n, u) && this.comparePoint(u) === 0, f = Ui(i, s) && e.comparePoint(s) === 0, h = Ui(n, l) && this.comparePoint(l) === 0, g = Ui(i, a) && e.comparePoint(a) === 0;
|
|
1595
1601
|
if (f && c)
|
|
1596
1602
|
return g && !h ? a : !g && h ? l : null;
|
|
1597
1603
|
if (f)
|
|
@@ -1605,7 +1611,7 @@ var Yl = mr * mr, xs = function(t, e) {
|
|
|
1605
1611
|
if (h)
|
|
1606
1612
|
return l;
|
|
1607
1613
|
var p = Kl(s, this.vector(), u, e.vector());
|
|
1608
|
-
return p === null || !
|
|
1614
|
+
return p === null || !Ui(o, p) ? null : Ji.round(p.x, p.y);
|
|
1609
1615
|
}
|
|
1610
1616
|
}, {
|
|
1611
1617
|
key: "split",
|
|
@@ -1758,7 +1764,7 @@ var Yl = mr * mr, xs = function(t, e) {
|
|
|
1758
1764
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
1759
1765
|
if (this.poly = e, this.isExterior = n, this.segments = [], typeof t[0][0] != "number" || typeof t[0][1] != "number")
|
|
1760
1766
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
1761
|
-
var i =
|
|
1767
|
+
var i = Ji.round(t[0][0], t[0][1]);
|
|
1762
1768
|
this.bbox = {
|
|
1763
1769
|
ll: {
|
|
1764
1770
|
x: i.x,
|
|
@@ -1772,7 +1778,7 @@ var Yl = mr * mr, xs = function(t, e) {
|
|
|
1772
1778
|
for (var o = i, s = 1, a = t.length; s < a; s++) {
|
|
1773
1779
|
if (typeof t[s][0] != "number" || typeof t[s][1] != "number")
|
|
1774
1780
|
throw new Error("Input geometry is not a valid Polygon or MultiPolygon");
|
|
1775
|
-
var u =
|
|
1781
|
+
var u = Ji.round(t[s][0], t[s][1]);
|
|
1776
1782
|
u.x === o.x && u.y === o.y || (this.segments.push(Ao.fromRing(o, u, this)), u.x < this.bbox.ll.x && (this.bbox.ll.x = u.x), u.y < this.bbox.ll.y && (this.bbox.ll.y = u.y), u.x > this.bbox.ur.x && (this.bbox.ur.x = u.x), u.y > this.bbox.ur.y && (this.bbox.ur.y = u.y), o = u);
|
|
1777
1783
|
}
|
|
1778
1784
|
(i.x !== o.x || i.y !== o.y) && this.segments.push(Ao.fromRing(o, i, this));
|
|
@@ -2076,7 +2082,7 @@ var Yl = mr * mr, xs = function(t, e) {
|
|
|
2076
2082
|
return Ee(r, [{
|
|
2077
2083
|
key: "run",
|
|
2078
2084
|
value: function(e, n, i) {
|
|
2079
|
-
Cn.type = e,
|
|
2085
|
+
Cn.type = e, Ji.reset();
|
|
2080
2086
|
for (var o = [new va(n, !0)], s = 0, a = i.length; s < a; s++)
|
|
2081
2087
|
o.push(new va(i[s], !1));
|
|
2082
2088
|
if (Cn.numMultiPolys = o.length, Cn.type === "difference")
|
|
@@ -2108,7 +2114,7 @@ var Yl = mr * mr, xs = function(t, e) {
|
|
|
2108
2114
|
}
|
|
2109
2115
|
w = m.size, D = m.pop();
|
|
2110
2116
|
}
|
|
2111
|
-
|
|
2117
|
+
Ji.reset();
|
|
2112
2118
|
var P = Zl.factory(b.segments), X = new $l(P);
|
|
2113
2119
|
return X.getGeom();
|
|
2114
2120
|
}
|
|
@@ -2452,7 +2458,7 @@ nu.MAX_VALUE.get = function() {
|
|
|
2452
2458
|
Object.defineProperties(V, nu);
|
|
2453
2459
|
var Fe = function() {
|
|
2454
2460
|
}, jo = function() {
|
|
2455
|
-
},
|
|
2461
|
+
}, hi = function() {
|
|
2456
2462
|
};
|
|
2457
2463
|
function Be() {
|
|
2458
2464
|
}
|
|
@@ -2590,7 +2596,7 @@ er.prototype.compare = function(t, e) {
|
|
|
2590
2596
|
return a;
|
|
2591
2597
|
};
|
|
2592
2598
|
er.prototype.interfaces_ = function() {
|
|
2593
|
-
return [
|
|
2599
|
+
return [hi];
|
|
2594
2600
|
};
|
|
2595
2601
|
er.prototype.getClass = function() {
|
|
2596
2602
|
return er;
|
|
@@ -2598,18 +2604,18 @@ er.prototype.getClass = function() {
|
|
|
2598
2604
|
er.compare = function(t, e) {
|
|
2599
2605
|
return t < e ? -1 : t > e ? 1 : V.isNaN(t) ? V.isNaN(e) ? 0 : -1 : V.isNaN(e) ? 1 : 0;
|
|
2600
2606
|
};
|
|
2601
|
-
var
|
|
2607
|
+
var gi = function() {
|
|
2602
2608
|
};
|
|
2603
|
-
|
|
2609
|
+
gi.prototype.create = function() {
|
|
2604
2610
|
};
|
|
2605
|
-
|
|
2611
|
+
gi.prototype.interfaces_ = function() {
|
|
2606
2612
|
return [];
|
|
2607
2613
|
};
|
|
2608
|
-
|
|
2609
|
-
return
|
|
2614
|
+
gi.prototype.getClass = function() {
|
|
2615
|
+
return gi;
|
|
2610
2616
|
};
|
|
2611
2617
|
var _ = function() {
|
|
2612
|
-
},
|
|
2618
|
+
}, ho = { INTERIOR: { configurable: !0 }, BOUNDARY: { configurable: !0 }, EXTERIOR: { configurable: !0 }, NONE: { configurable: !0 } };
|
|
2613
2619
|
_.prototype.interfaces_ = function() {
|
|
2614
2620
|
return [];
|
|
2615
2621
|
};
|
|
@@ -2629,19 +2635,19 @@ _.toLocationSymbol = function(t) {
|
|
|
2629
2635
|
}
|
|
2630
2636
|
throw new ft("Unknown location value: " + t);
|
|
2631
2637
|
};
|
|
2632
|
-
|
|
2638
|
+
ho.INTERIOR.get = function() {
|
|
2633
2639
|
return 0;
|
|
2634
2640
|
};
|
|
2635
|
-
|
|
2641
|
+
ho.BOUNDARY.get = function() {
|
|
2636
2642
|
return 1;
|
|
2637
2643
|
};
|
|
2638
|
-
|
|
2644
|
+
ho.EXTERIOR.get = function() {
|
|
2639
2645
|
return 2;
|
|
2640
2646
|
};
|
|
2641
|
-
|
|
2647
|
+
ho.NONE.get = function() {
|
|
2642
2648
|
return -1;
|
|
2643
2649
|
};
|
|
2644
|
-
Object.defineProperties(_,
|
|
2650
|
+
Object.defineProperties(_, ho);
|
|
2645
2651
|
var z = function(r, t) {
|
|
2646
2652
|
return r.interfaces_ && r.interfaces_().indexOf(t) > -1;
|
|
2647
2653
|
}, Ie = function() {
|
|
@@ -2712,12 +2718,12 @@ an.prototype.compareTo = function(t) {
|
|
|
2712
2718
|
an.isNaN = function(t) {
|
|
2713
2719
|
return Number.isNaN(t);
|
|
2714
2720
|
};
|
|
2715
|
-
var
|
|
2721
|
+
var Zi = function() {
|
|
2716
2722
|
};
|
|
2717
|
-
|
|
2723
|
+
Zi.isWhitespace = function(t) {
|
|
2718
2724
|
return t <= 32 && t >= 0 || t === 127;
|
|
2719
2725
|
};
|
|
2720
|
-
|
|
2726
|
+
Zi.toUpperCase = function(t) {
|
|
2721
2727
|
return t.toUpperCase();
|
|
2722
2728
|
};
|
|
2723
2729
|
var E = function r() {
|
|
@@ -3043,7 +3049,7 @@ E.sqrt = function(t) {
|
|
|
3043
3049
|
return E.valueOf(t).sqrt();
|
|
3044
3050
|
};
|
|
3045
3051
|
E.parse = function(t) {
|
|
3046
|
-
for (var e = 0, n = t.length;
|
|
3052
|
+
for (var e = 0, n = t.length; Zi.isWhitespace(t.charAt(e)); )
|
|
3047
3053
|
e++;
|
|
3048
3054
|
var i = !1;
|
|
3049
3055
|
if (e < n) {
|
|
@@ -3052,7 +3058,7 @@ E.parse = function(t) {
|
|
|
3052
3058
|
}
|
|
3053
3059
|
for (var s = new E(), a = 0, u = 0, l = 0; !(e >= n); ) {
|
|
3054
3060
|
var c = t.charAt(e);
|
|
3055
|
-
if (e++,
|
|
3061
|
+
if (e++, Zi.isDigit(c)) {
|
|
3056
3062
|
var f = c - "0";
|
|
3057
3063
|
s.selfMultiply(E.TEN), s.selfAdd(f), a++;
|
|
3058
3064
|
continue;
|
|
@@ -3183,17 +3189,17 @@ iu.DP_SAFE_EPSILON.get = function() {
|
|
|
3183
3189
|
};
|
|
3184
3190
|
Object.defineProperties(ae, iu);
|
|
3185
3191
|
var Q = function() {
|
|
3186
|
-
},
|
|
3187
|
-
|
|
3192
|
+
}, go = { X: { configurable: !0 }, Y: { configurable: !0 }, Z: { configurable: !0 }, M: { configurable: !0 } };
|
|
3193
|
+
go.X.get = function() {
|
|
3188
3194
|
return 0;
|
|
3189
3195
|
};
|
|
3190
|
-
|
|
3196
|
+
go.Y.get = function() {
|
|
3191
3197
|
return 1;
|
|
3192
3198
|
};
|
|
3193
|
-
|
|
3199
|
+
go.Z.get = function() {
|
|
3194
3200
|
return 2;
|
|
3195
3201
|
};
|
|
3196
|
-
|
|
3202
|
+
go.M.get = function() {
|
|
3197
3203
|
return 3;
|
|
3198
3204
|
};
|
|
3199
3205
|
Q.prototype.setOrdinate = function(t, e, n) {
|
|
@@ -3226,9 +3232,9 @@ Q.prototype.interfaces_ = function() {
|
|
|
3226
3232
|
Q.prototype.getClass = function() {
|
|
3227
3233
|
return Q;
|
|
3228
3234
|
};
|
|
3229
|
-
Object.defineProperties(Q,
|
|
3235
|
+
Object.defineProperties(Q, go);
|
|
3230
3236
|
var ou = function() {
|
|
3231
|
-
},
|
|
3237
|
+
}, Fi = function(r) {
|
|
3232
3238
|
function t() {
|
|
3233
3239
|
r.call(this, "Projective point not representable on the Cartesian plane.");
|
|
3234
3240
|
}
|
|
@@ -3237,13 +3243,13 @@ var ou = function() {
|
|
|
3237
3243
|
}, t.prototype.getClass = function() {
|
|
3238
3244
|
return t;
|
|
3239
3245
|
}, t;
|
|
3240
|
-
}(ou),
|
|
3246
|
+
}(ou), zt = function() {
|
|
3241
3247
|
};
|
|
3242
|
-
|
|
3248
|
+
zt.arraycopy = function(t, e, n, i, o) {
|
|
3243
3249
|
for (var s = 0, a = e; a < e + o; a++)
|
|
3244
3250
|
n[i + s] = t[a], s++;
|
|
3245
3251
|
};
|
|
3246
|
-
|
|
3252
|
+
zt.getProperty = function(t) {
|
|
3247
3253
|
return {
|
|
3248
3254
|
"line.separator": `
|
|
3249
3255
|
`
|
|
@@ -3277,13 +3283,13 @@ var ze = function r() {
|
|
|
3277
3283
|
ze.prototype.getY = function() {
|
|
3278
3284
|
var t = this.y / this.w;
|
|
3279
3285
|
if (V.isNaN(t) || V.isInfinite(t))
|
|
3280
|
-
throw new
|
|
3286
|
+
throw new Fi();
|
|
3281
3287
|
return t;
|
|
3282
3288
|
};
|
|
3283
3289
|
ze.prototype.getX = function() {
|
|
3284
3290
|
var t = this.x / this.w;
|
|
3285
3291
|
if (V.isNaN(t) || V.isInfinite(t))
|
|
3286
|
-
throw new
|
|
3292
|
+
throw new Fi();
|
|
3287
3293
|
return t;
|
|
3288
3294
|
};
|
|
3289
3295
|
ze.prototype.getCoordinate = function() {
|
|
@@ -3299,7 +3305,7 @@ ze.prototype.getClass = function() {
|
|
|
3299
3305
|
ze.intersection = function(t, e, n, i) {
|
|
3300
3306
|
var o = t.y - e.y, s = e.x - t.x, a = t.x * e.y - e.x * t.y, u = n.y - i.y, l = i.x - n.x, c = n.x * i.y - i.x * n.y, f = s * c - l * a, h = u * a - o * c, g = o * l - u * s, p = f / g, m = h / g;
|
|
3301
3307
|
if (V.isNaN(p) || V.isInfinite(p) || V.isNaN(m) || V.isInfinite(m))
|
|
3302
|
-
throw new
|
|
3308
|
+
throw new Fi();
|
|
3303
3309
|
return new v(p, m);
|
|
3304
3310
|
};
|
|
3305
3311
|
var M = function r() {
|
|
@@ -3520,7 +3526,7 @@ Ko.prototype.read = function(t) {
|
|
|
3520
3526
|
var e, n, i;
|
|
3521
3527
|
t = t.replace(/[\n\r]/g, " ");
|
|
3522
3528
|
var o = $e.typeStr.exec(t);
|
|
3523
|
-
if (t.search("EMPTY") !== -1 && (o = $e.emptyTypeStr.exec(t), o[2] = void 0), o && (n = o[1].toLowerCase(), i = o[2],
|
|
3529
|
+
if (t.search("EMPTY") !== -1 && (o = $e.emptyTypeStr.exec(t), o[2] = void 0), o && (n = o[1].toLowerCase(), i = o[2], li[n] && (e = li[n].apply(this, [i]))), e === void 0)
|
|
3524
3530
|
throw new Error("Could not parse WKT " + t);
|
|
3525
3531
|
return e;
|
|
3526
3532
|
};
|
|
@@ -3578,7 +3584,7 @@ var kn = {
|
|
|
3578
3584
|
n.push(e.extractGeometry(t._geometries[i]));
|
|
3579
3585
|
return n.join(",");
|
|
3580
3586
|
}
|
|
3581
|
-
},
|
|
3587
|
+
}, li = {
|
|
3582
3588
|
point: function(t) {
|
|
3583
3589
|
if (t === void 0)
|
|
3584
3590
|
return this.geometryFactory.createPoint();
|
|
@@ -3593,7 +3599,7 @@ var kn = {
|
|
|
3593
3599
|
if (t === void 0)
|
|
3594
3600
|
return this.geometryFactory.createMultiPoint();
|
|
3595
3601
|
for (var n, i = t.trim().split(","), o = [], s = 0, a = i.length; s < a; ++s)
|
|
3596
|
-
n = i[s].replace($e.trimParens, "$1"), o.push(
|
|
3602
|
+
n = i[s].replace($e.trimParens, "$1"), o.push(li.point.apply(e, [n]));
|
|
3597
3603
|
return this.geometryFactory.createMultiPoint(o);
|
|
3598
3604
|
},
|
|
3599
3605
|
linestring: function(t) {
|
|
@@ -3615,7 +3621,7 @@ var kn = {
|
|
|
3615
3621
|
if (t === void 0)
|
|
3616
3622
|
return this.geometryFactory.createMultiLineString();
|
|
3617
3623
|
for (var n, i = t.trim().split($e.parenComma), o = [], s = 0, a = i.length; s < a; ++s)
|
|
3618
|
-
n = i[s].replace($e.trimParens, "$1"), o.push(
|
|
3624
|
+
n = i[s].replace($e.trimParens, "$1"), o.push(li.linestring.apply(e, [n]));
|
|
3619
3625
|
return this.geometryFactory.createMultiLineString(o);
|
|
3620
3626
|
},
|
|
3621
3627
|
polygon: function(t) {
|
|
@@ -3623,7 +3629,7 @@ var kn = {
|
|
|
3623
3629
|
if (t === void 0)
|
|
3624
3630
|
return this.geometryFactory.createPolygon();
|
|
3625
3631
|
for (var n, i, o, s = t.trim().split($e.parenComma), a, u = [], l = 0, c = s.length; l < c; ++l)
|
|
3626
|
-
n = s[l].replace($e.trimParens, "$1"), i =
|
|
3632
|
+
n = s[l].replace($e.trimParens, "$1"), i = li.linestring.apply(e, [n]), o = e.geometryFactory.createLinearRing(i._points), l === 0 ? a = o : u.push(o);
|
|
3627
3633
|
return this.geometryFactory.createPolygon(a, u);
|
|
3628
3634
|
},
|
|
3629
3635
|
multipolygon: function(t) {
|
|
@@ -3631,7 +3637,7 @@ var kn = {
|
|
|
3631
3637
|
if (t === void 0)
|
|
3632
3638
|
return this.geometryFactory.createMultiPolygon();
|
|
3633
3639
|
for (var n, i = t.trim().split($e.doubleParenComma), o = [], s = 0, a = i.length; s < a; ++s)
|
|
3634
|
-
n = i[s].replace($e.trimParens, "$1"), o.push(
|
|
3640
|
+
n = i[s].replace($e.trimParens, "$1"), o.push(li.polygon.apply(e, [n]));
|
|
3635
3641
|
return this.geometryFactory.createMultiPolygon(o);
|
|
3636
3642
|
},
|
|
3637
3643
|
geometrycollection: function(t) {
|
|
@@ -3842,7 +3848,7 @@ var Tr = function(r) {
|
|
|
3842
3848
|
try {
|
|
3843
3849
|
a = ze.intersection(n, i, o, s);
|
|
3844
3850
|
} catch (u) {
|
|
3845
|
-
if (u instanceof
|
|
3851
|
+
if (u instanceof Fi)
|
|
3846
3852
|
a = t.nearestEndpoint(n, i, o, s);
|
|
3847
3853
|
else
|
|
3848
3854
|
throw u;
|
|
@@ -3857,7 +3863,7 @@ var Tr = function(r) {
|
|
|
3857
3863
|
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;
|
|
3858
3864
|
}, t.prototype.checkDD = function(n, i, o, s, a) {
|
|
3859
3865
|
var u = ae.intersection(n, i, o, s), l = this.isInSegmentEnvelopes(u);
|
|
3860
|
-
|
|
3866
|
+
zt.out.println("DD in env = " + l + " --------------------- " + u), a.distance(u) > 1e-4 && zt.out.println("Distance = " + a.distance(u));
|
|
3861
3867
|
}, t.prototype.intersectionWithNormalization = function(n, i, o, s) {
|
|
3862
3868
|
var a = new v(n), u = new v(i), l = new v(o), c = new v(s), f = new v();
|
|
3863
3869
|
this.normalizeToEnvCentre(a, u, l, c, f);
|
|
@@ -4347,76 +4353,76 @@ De.prototype.getClass = function() {
|
|
|
4347
4353
|
return De;
|
|
4348
4354
|
};
|
|
4349
4355
|
Zn.Mod2BoundaryNodeRule.get = function() {
|
|
4350
|
-
return
|
|
4356
|
+
return pi;
|
|
4351
4357
|
};
|
|
4352
4358
|
Zn.EndPointBoundaryNodeRule.get = function() {
|
|
4353
|
-
return
|
|
4359
|
+
return di;
|
|
4354
4360
|
};
|
|
4355
4361
|
Zn.MultiValentEndPointBoundaryNodeRule.get = function() {
|
|
4356
|
-
return
|
|
4362
|
+
return vi;
|
|
4357
4363
|
};
|
|
4358
4364
|
Zn.MonoValentEndPointBoundaryNodeRule.get = function() {
|
|
4359
|
-
return
|
|
4365
|
+
return yi;
|
|
4360
4366
|
};
|
|
4361
4367
|
Zn.MOD2_BOUNDARY_RULE.get = function() {
|
|
4362
|
-
return new
|
|
4368
|
+
return new pi();
|
|
4363
4369
|
};
|
|
4364
4370
|
Zn.ENDPOINT_BOUNDARY_RULE.get = function() {
|
|
4365
|
-
return new
|
|
4371
|
+
return new di();
|
|
4366
4372
|
};
|
|
4367
4373
|
Zn.MULTIVALENT_ENDPOINT_BOUNDARY_RULE.get = function() {
|
|
4368
|
-
return new
|
|
4374
|
+
return new vi();
|
|
4369
4375
|
};
|
|
4370
4376
|
Zn.MONOVALENT_ENDPOINT_BOUNDARY_RULE.get = function() {
|
|
4371
|
-
return new
|
|
4377
|
+
return new yi();
|
|
4372
4378
|
};
|
|
4373
4379
|
Zn.OGC_SFS_BOUNDARY_RULE.get = function() {
|
|
4374
4380
|
return De.MOD2_BOUNDARY_RULE;
|
|
4375
4381
|
};
|
|
4376
4382
|
Object.defineProperties(De, Zn);
|
|
4377
|
-
var
|
|
4383
|
+
var pi = function() {
|
|
4378
4384
|
};
|
|
4379
|
-
|
|
4385
|
+
pi.prototype.isInBoundary = function(t) {
|
|
4380
4386
|
return t % 2 === 1;
|
|
4381
4387
|
};
|
|
4382
|
-
|
|
4388
|
+
pi.prototype.interfaces_ = function() {
|
|
4383
4389
|
return [De];
|
|
4384
4390
|
};
|
|
4385
|
-
|
|
4386
|
-
return
|
|
4391
|
+
pi.prototype.getClass = function() {
|
|
4392
|
+
return pi;
|
|
4387
4393
|
};
|
|
4388
|
-
var
|
|
4394
|
+
var di = function() {
|
|
4389
4395
|
};
|
|
4390
|
-
|
|
4396
|
+
di.prototype.isInBoundary = function(t) {
|
|
4391
4397
|
return t > 0;
|
|
4392
4398
|
};
|
|
4393
|
-
|
|
4399
|
+
di.prototype.interfaces_ = function() {
|
|
4394
4400
|
return [De];
|
|
4395
4401
|
};
|
|
4396
|
-
|
|
4397
|
-
return
|
|
4402
|
+
di.prototype.getClass = function() {
|
|
4403
|
+
return di;
|
|
4398
4404
|
};
|
|
4399
|
-
var
|
|
4405
|
+
var vi = function() {
|
|
4400
4406
|
};
|
|
4401
|
-
|
|
4407
|
+
vi.prototype.isInBoundary = function(t) {
|
|
4402
4408
|
return t > 1;
|
|
4403
4409
|
};
|
|
4404
|
-
|
|
4410
|
+
vi.prototype.interfaces_ = function() {
|
|
4405
4411
|
return [De];
|
|
4406
4412
|
};
|
|
4407
|
-
|
|
4408
|
-
return
|
|
4413
|
+
vi.prototype.getClass = function() {
|
|
4414
|
+
return vi;
|
|
4409
4415
|
};
|
|
4410
|
-
var
|
|
4416
|
+
var yi = function() {
|
|
4411
4417
|
};
|
|
4412
|
-
|
|
4418
|
+
yi.prototype.isInBoundary = function(t) {
|
|
4413
4419
|
return t === 1;
|
|
4414
4420
|
};
|
|
4415
|
-
|
|
4421
|
+
yi.prototype.interfaces_ = function() {
|
|
4416
4422
|
return [De];
|
|
4417
4423
|
};
|
|
4418
|
-
|
|
4419
|
-
return
|
|
4424
|
+
yi.prototype.getClass = function() {
|
|
4425
|
+
return yi;
|
|
4420
4426
|
};
|
|
4421
4427
|
var wt = function() {
|
|
4422
4428
|
};
|
|
@@ -4439,13 +4445,13 @@ function As(r) {
|
|
|
4439
4445
|
}
|
|
4440
4446
|
As.prototype = new Error();
|
|
4441
4447
|
As.prototype.name = "IndexOutOfBoundsException";
|
|
4442
|
-
var
|
|
4448
|
+
var Bi = function() {
|
|
4443
4449
|
};
|
|
4444
|
-
|
|
4450
|
+
Bi.prototype.hasNext = function() {
|
|
4445
4451
|
};
|
|
4446
|
-
|
|
4452
|
+
Bi.prototype.next = function() {
|
|
4447
4453
|
};
|
|
4448
|
-
|
|
4454
|
+
Bi.prototype.remove = function() {
|
|
4449
4455
|
};
|
|
4450
4456
|
var Ve = function(r) {
|
|
4451
4457
|
function t() {
|
|
@@ -4456,11 +4462,11 @@ var Ve = function(r) {
|
|
|
4456
4462
|
}, t.prototype.isEmpty = function() {
|
|
4457
4463
|
}, t;
|
|
4458
4464
|
}(wt);
|
|
4459
|
-
function
|
|
4465
|
+
function Gi(r) {
|
|
4460
4466
|
this.message = r || "";
|
|
4461
4467
|
}
|
|
4462
|
-
|
|
4463
|
-
|
|
4468
|
+
Gi.prototype = new Error();
|
|
4469
|
+
Gi.prototype.name = "NoSuchElementException";
|
|
4464
4470
|
var L = function(r) {
|
|
4465
4471
|
function t() {
|
|
4466
4472
|
r.call(this), this.array_ = [], arguments[0] instanceof wt && this.addAll(arguments[0]);
|
|
@@ -4507,7 +4513,7 @@ var L = function(r) {
|
|
|
4507
4513
|
}
|
|
4508
4514
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.next = function() {
|
|
4509
4515
|
if (this.position_ === this.arrayList_.size())
|
|
4510
|
-
throw new
|
|
4516
|
+
throw new Gi();
|
|
4511
4517
|
return this.arrayList_.get(this.position_++);
|
|
4512
4518
|
}, t.prototype.hasNext = function() {
|
|
4513
4519
|
return this.position_ < this.arrayList_.size();
|
|
@@ -4516,7 +4522,7 @@ var L = function(r) {
|
|
|
4516
4522
|
}, t.prototype.remove = function() {
|
|
4517
4523
|
this.arrayList_.remove(this.arrayList_.get(this.position_));
|
|
4518
4524
|
}, t;
|
|
4519
|
-
}(
|
|
4525
|
+
}(Bi), po = function(r) {
|
|
4520
4526
|
function t() {
|
|
4521
4527
|
if (r.call(this), arguments.length !== 0) {
|
|
4522
4528
|
if (arguments.length === 1) {
|
|
@@ -4615,10 +4621,10 @@ var L = function(r) {
|
|
|
4615
4621
|
}(L), W = function() {
|
|
4616
4622
|
}, Qo = { ForwardComparator: { configurable: !0 }, BidirectionalComparator: { configurable: !0 }, coordArrayType: { configurable: !0 } };
|
|
4617
4623
|
Qo.ForwardComparator.get = function() {
|
|
4618
|
-
return
|
|
4624
|
+
return $i;
|
|
4619
4625
|
};
|
|
4620
4626
|
Qo.BidirectionalComparator.get = function() {
|
|
4621
|
-
return
|
|
4627
|
+
return mi;
|
|
4622
4628
|
};
|
|
4623
4629
|
Qo.coordArrayType.get = function() {
|
|
4624
4630
|
return new Array(0).fill(null);
|
|
@@ -4645,7 +4651,7 @@ W.scroll = function(t, e) {
|
|
|
4645
4651
|
if (n < 0)
|
|
4646
4652
|
return null;
|
|
4647
4653
|
var i = new Array(t.length).fill(null);
|
|
4648
|
-
|
|
4654
|
+
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);
|
|
4649
4655
|
};
|
|
4650
4656
|
W.equals = function() {
|
|
4651
4657
|
if (arguments.length === 2) {
|
|
@@ -4671,7 +4677,7 @@ W.equals = function() {
|
|
|
4671
4677
|
}
|
|
4672
4678
|
};
|
|
4673
4679
|
W.intersection = function(t, e) {
|
|
4674
|
-
for (var n = new
|
|
4680
|
+
for (var n = new po(), i = 0; i < t.length; i++)
|
|
4675
4681
|
e.intersects(t[i]) && n.add(t[i], !0);
|
|
4676
4682
|
return n.toCoordinateArray();
|
|
4677
4683
|
};
|
|
@@ -4684,7 +4690,7 @@ W.hasRepeatedPoints = function(t) {
|
|
|
4684
4690
|
W.removeRepeatedPoints = function(t) {
|
|
4685
4691
|
if (!W.hasRepeatedPoints(t))
|
|
4686
4692
|
return t;
|
|
4687
|
-
var e = new
|
|
4693
|
+
var e = new po(t, !1);
|
|
4688
4694
|
return e.toCoordinateArray();
|
|
4689
4695
|
};
|
|
4690
4696
|
W.reverse = function(t) {
|
|
@@ -4771,21 +4777,21 @@ W.extract = function(t, e, n) {
|
|
|
4771
4777
|
return o;
|
|
4772
4778
|
};
|
|
4773
4779
|
Object.defineProperties(W, Qo);
|
|
4774
|
-
var
|
|
4780
|
+
var $i = function() {
|
|
4775
4781
|
};
|
|
4776
|
-
|
|
4782
|
+
$i.prototype.compare = function(t, e) {
|
|
4777
4783
|
var n = t, i = e;
|
|
4778
4784
|
return W.compare(n, i);
|
|
4779
4785
|
};
|
|
4780
|
-
|
|
4781
|
-
return [
|
|
4786
|
+
$i.prototype.interfaces_ = function() {
|
|
4787
|
+
return [hi];
|
|
4782
4788
|
};
|
|
4783
|
-
|
|
4784
|
-
return
|
|
4789
|
+
$i.prototype.getClass = function() {
|
|
4790
|
+
return $i;
|
|
4785
4791
|
};
|
|
4786
|
-
var
|
|
4792
|
+
var mi = function() {
|
|
4787
4793
|
};
|
|
4788
|
-
|
|
4794
|
+
mi.prototype.compare = function(t, e) {
|
|
4789
4795
|
var n = t, i = e;
|
|
4790
4796
|
if (n.length < i.length)
|
|
4791
4797
|
return -1;
|
|
@@ -4796,7 +4802,7 @@ vi.prototype.compare = function(t, e) {
|
|
|
4796
4802
|
var o = W.compare(n, i), s = W.isEqualReversed(n, i);
|
|
4797
4803
|
return s ? 0 : o;
|
|
4798
4804
|
};
|
|
4799
|
-
|
|
4805
|
+
mi.prototype.OLDcompare = function(t, e) {
|
|
4800
4806
|
var n = t, i = e;
|
|
4801
4807
|
if (n.length < i.length)
|
|
4802
4808
|
return -1;
|
|
@@ -4812,11 +4818,11 @@ vi.prototype.OLDcompare = function(t, e) {
|
|
|
4812
4818
|
}
|
|
4813
4819
|
return 0;
|
|
4814
4820
|
};
|
|
4815
|
-
|
|
4816
|
-
return [
|
|
4821
|
+
mi.prototype.interfaces_ = function() {
|
|
4822
|
+
return [hi];
|
|
4817
4823
|
};
|
|
4818
|
-
|
|
4819
|
-
return
|
|
4824
|
+
mi.prototype.getClass = function() {
|
|
4825
|
+
return mi;
|
|
4820
4826
|
};
|
|
4821
4827
|
var ii = function() {
|
|
4822
4828
|
};
|
|
@@ -4836,11 +4842,11 @@ var pc = function(r) {
|
|
|
4836
4842
|
}
|
|
4837
4843
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t;
|
|
4838
4844
|
}(ii);
|
|
4839
|
-
function
|
|
4845
|
+
function vo(r) {
|
|
4840
4846
|
this.message = r || "";
|
|
4841
4847
|
}
|
|
4842
|
-
|
|
4843
|
-
|
|
4848
|
+
vo.prototype = new Error();
|
|
4849
|
+
vo.prototype.name = "OperationNotSupported";
|
|
4844
4850
|
function Jo() {
|
|
4845
4851
|
}
|
|
4846
4852
|
Jo.prototype = new wt();
|
|
@@ -4882,14 +4888,14 @@ var Fs = function(r) {
|
|
|
4882
4888
|
}
|
|
4883
4889
|
return r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t, t.prototype.next = function() {
|
|
4884
4890
|
if (this.position_ === this.hashSet_.size())
|
|
4885
|
-
throw new
|
|
4891
|
+
throw new Gi();
|
|
4886
4892
|
return this.hashSet_.array_[this.position_++];
|
|
4887
4893
|
}, t.prototype.hasNext = function() {
|
|
4888
4894
|
return this.position_ < this.hashSet_.size();
|
|
4889
4895
|
}, t.prototype.remove = function() {
|
|
4890
|
-
throw new
|
|
4896
|
+
throw new vo();
|
|
4891
4897
|
}, t;
|
|
4892
|
-
}(
|
|
4898
|
+
}(Bi), Un = 0, dr = 1;
|
|
4893
4899
|
function Ia(r) {
|
|
4894
4900
|
return r === null ? Un : r.color;
|
|
4895
4901
|
}
|
|
@@ -5025,13 +5031,13 @@ Ht.successor = function(r) {
|
|
|
5025
5031
|
Ht.prototype.size = function() {
|
|
5026
5032
|
return this.size_;
|
|
5027
5033
|
};
|
|
5028
|
-
var
|
|
5034
|
+
var to = function() {
|
|
5029
5035
|
};
|
|
5030
|
-
|
|
5036
|
+
to.prototype.interfaces_ = function() {
|
|
5031
5037
|
return [];
|
|
5032
5038
|
};
|
|
5033
|
-
|
|
5034
|
-
return
|
|
5039
|
+
to.prototype.getClass = function() {
|
|
5040
|
+
return to;
|
|
5035
5041
|
};
|
|
5036
5042
|
function au() {
|
|
5037
5043
|
}
|
|
@@ -5065,7 +5071,7 @@ un.prototype.addAll = function(r) {
|
|
|
5065
5071
|
return !0;
|
|
5066
5072
|
};
|
|
5067
5073
|
un.prototype.remove = function(r) {
|
|
5068
|
-
throw new
|
|
5074
|
+
throw new vo();
|
|
5069
5075
|
};
|
|
5070
5076
|
un.prototype.size = function() {
|
|
5071
5077
|
return this.array_.length;
|
|
@@ -5086,14 +5092,14 @@ var Zo = function(r) {
|
|
|
5086
5092
|
};
|
|
5087
5093
|
Zo.prototype.next = function() {
|
|
5088
5094
|
if (this.position_ === this.treeSet_.size())
|
|
5089
|
-
throw new
|
|
5095
|
+
throw new Gi();
|
|
5090
5096
|
return this.treeSet_.array_[this.position_++];
|
|
5091
5097
|
};
|
|
5092
5098
|
Zo.prototype.hasNext = function() {
|
|
5093
5099
|
return this.position_ < this.treeSet_.size();
|
|
5094
5100
|
};
|
|
5095
5101
|
Zo.prototype.remove = function() {
|
|
5096
|
-
throw new
|
|
5102
|
+
throw new vo();
|
|
5097
5103
|
};
|
|
5098
5104
|
var _r = function() {
|
|
5099
5105
|
};
|
|
@@ -5185,7 +5191,7 @@ Z.toDimensionSymbol = function(t) {
|
|
|
5185
5191
|
throw new ft("Unknown dimension value: " + t);
|
|
5186
5192
|
};
|
|
5187
5193
|
Z.toDimensionValue = function(t) {
|
|
5188
|
-
switch (
|
|
5194
|
+
switch (Zi.toUpperCase(t)) {
|
|
5189
5195
|
case Z.SYM_FALSE:
|
|
5190
5196
|
return Z.FALSE;
|
|
5191
5197
|
case Z.SYM_TRUE:
|
|
@@ -5395,7 +5401,7 @@ var ne = function(r) {
|
|
|
5395
5401
|
o[s] = i._geometries[s].copy();
|
|
5396
5402
|
return new t(o, this._factory);
|
|
5397
5403
|
}, t.prototype.interfaces_ = function() {
|
|
5398
|
-
return [
|
|
5404
|
+
return [to];
|
|
5399
5405
|
}, t.prototype.getClass = function() {
|
|
5400
5406
|
return t;
|
|
5401
5407
|
}, e.serialVersionUID.get = function() {
|
|
@@ -5537,7 +5543,7 @@ Re.spaces = function(t) {
|
|
|
5537
5543
|
return Re.chars(" ", t);
|
|
5538
5544
|
};
|
|
5539
5545
|
Bs.NEWLINE.get = function() {
|
|
5540
|
-
return
|
|
5546
|
+
return zt.getProperty("line.separator");
|
|
5541
5547
|
};
|
|
5542
5548
|
Bs.SIMPLE_ORDINATE_FORMAT.get = function() {
|
|
5543
5549
|
return new mc();
|
|
@@ -5743,19 +5749,19 @@ var dt = function(r) {
|
|
|
5743
5749
|
}, t.prototype.getPointN = function(i) {
|
|
5744
5750
|
return this.getFactory().createPoint(this._points.getCoordinate(i));
|
|
5745
5751
|
}, t.prototype.interfaces_ = function() {
|
|
5746
|
-
return [
|
|
5752
|
+
return [to];
|
|
5747
5753
|
}, t.prototype.getClass = function() {
|
|
5748
5754
|
return t;
|
|
5749
5755
|
}, e.serialVersionUID.get = function() {
|
|
5750
5756
|
return 3110669828065365500;
|
|
5751
5757
|
}, Object.defineProperties(t, e), t;
|
|
5752
|
-
}(G),
|
|
5758
|
+
}(G), eo = function() {
|
|
5753
5759
|
};
|
|
5754
|
-
|
|
5760
|
+
eo.prototype.interfaces_ = function() {
|
|
5755
5761
|
return [];
|
|
5756
5762
|
};
|
|
5757
|
-
|
|
5758
|
-
return
|
|
5763
|
+
eo.prototype.getClass = function() {
|
|
5764
|
+
return eo;
|
|
5759
5765
|
};
|
|
5760
5766
|
var he = function(r) {
|
|
5761
5767
|
function t(n, i) {
|
|
@@ -5841,7 +5847,7 @@ var he = function(r) {
|
|
|
5841
5847
|
}, t.prototype.isSimple = function() {
|
|
5842
5848
|
return !0;
|
|
5843
5849
|
}, t.prototype.interfaces_ = function() {
|
|
5844
|
-
return [
|
|
5850
|
+
return [eo];
|
|
5845
5851
|
}, t.prototype.getClass = function() {
|
|
5846
5852
|
return t;
|
|
5847
5853
|
}, e.serialVersionUID.get = function() {
|
|
@@ -5930,9 +5936,9 @@ var Rt = function(r) {
|
|
|
5930
5936
|
if (s.isEmpty())
|
|
5931
5937
|
return null;
|
|
5932
5938
|
var u = new Array(s.getCoordinates().length - 1).fill(null);
|
|
5933
|
-
|
|
5939
|
+
zt.arraycopy(s.getCoordinates(), 0, u, 0, u.length);
|
|
5934
5940
|
var l = W.minCoordinate(s.getCoordinates());
|
|
5935
|
-
W.scroll(u, l),
|
|
5941
|
+
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());
|
|
5936
5942
|
}
|
|
5937
5943
|
}, t.prototype.getCoordinate = function() {
|
|
5938
5944
|
return this._shell.getCoordinate();
|
|
@@ -6029,7 +6035,7 @@ var Rt = function(r) {
|
|
|
6029
6035
|
}, e.serialVersionUID.get = function() {
|
|
6030
6036
|
return -3494792200821764600;
|
|
6031
6037
|
}, Object.defineProperties(t, e), t;
|
|
6032
|
-
}(G),
|
|
6038
|
+
}(G), _i = function(r) {
|
|
6033
6039
|
function t() {
|
|
6034
6040
|
r.apply(this, arguments);
|
|
6035
6041
|
}
|
|
@@ -6064,7 +6070,7 @@ var Rt = function(r) {
|
|
|
6064
6070
|
o[s] = i._geometries[s].copy();
|
|
6065
6071
|
return new t(o, this._factory);
|
|
6066
6072
|
}, t.prototype.interfaces_ = function() {
|
|
6067
|
-
return [
|
|
6073
|
+
return [eo];
|
|
6068
6074
|
}, t.prototype.getClass = function() {
|
|
6069
6075
|
return t;
|
|
6070
6076
|
}, e.serialVersionUID.get = function() {
|
|
@@ -6169,7 +6175,7 @@ Te.prototype.editGeometryCollection = function(t, e) {
|
|
|
6169
6175
|
var a = n.edit(i.getGeometryN(s), e);
|
|
6170
6176
|
a === null || a.isEmpty() || o.add(a);
|
|
6171
6177
|
}
|
|
6172
|
-
return i.getClass() ===
|
|
6178
|
+
return i.getClass() === _i ? this._factory.createMultiPoint(o.toArray([])) : i.getClass() === Nr ? this._factory.createMultiLineString(o.toArray([])) : i.getClass() === Nn ? this._factory.createMultiPolygon(o.toArray([])) : this._factory.createGeometryCollection(o.toArray([]));
|
|
6173
6179
|
};
|
|
6174
6180
|
Te.prototype.editPolygon = function(t, e) {
|
|
6175
6181
|
var n = this, i = e.edit(t, this._factory);
|
|
@@ -6193,31 +6199,19 @@ Te.prototype.getClass = function() {
|
|
|
6193
6199
|
Te.GeometryEditorOperation = function() {
|
|
6194
6200
|
};
|
|
6195
6201
|
$o.NoOpGeometryOperation.get = function() {
|
|
6196
|
-
return
|
|
6202
|
+
return no;
|
|
6197
6203
|
};
|
|
6198
6204
|
$o.CoordinateOperation.get = function() {
|
|
6199
|
-
return
|
|
6205
|
+
return ro;
|
|
6200
6206
|
};
|
|
6201
6207
|
$o.CoordinateSequenceOperation.get = function() {
|
|
6202
|
-
return
|
|
6208
|
+
return io;
|
|
6203
6209
|
};
|
|
6204
6210
|
Object.defineProperties(Te, $o);
|
|
6205
|
-
var eo = function() {
|
|
6206
|
-
};
|
|
6207
|
-
eo.prototype.edit = function(t, e) {
|
|
6208
|
-
return t;
|
|
6209
|
-
};
|
|
6210
|
-
eo.prototype.interfaces_ = function() {
|
|
6211
|
-
return [Te.GeometryEditorOperation];
|
|
6212
|
-
};
|
|
6213
|
-
eo.prototype.getClass = function() {
|
|
6214
|
-
return eo;
|
|
6215
|
-
};
|
|
6216
6211
|
var no = function() {
|
|
6217
6212
|
};
|
|
6218
6213
|
no.prototype.edit = function(t, e) {
|
|
6219
|
-
|
|
6220
|
-
return n === null ? t : t instanceof wn ? e.createLinearRing(n) : t instanceof dt ? e.createLineString(n) : t instanceof he ? n.length > 0 ? e.createPoint(n[0]) : e.createPoint() : t;
|
|
6214
|
+
return t;
|
|
6221
6215
|
};
|
|
6222
6216
|
no.prototype.interfaces_ = function() {
|
|
6223
6217
|
return [Te.GeometryEditorOperation];
|
|
@@ -6228,7 +6222,8 @@ no.prototype.getClass = function() {
|
|
|
6228
6222
|
var ro = function() {
|
|
6229
6223
|
};
|
|
6230
6224
|
ro.prototype.edit = function(t, e) {
|
|
6231
|
-
|
|
6225
|
+
var n = this.editCoordinates(t.getCoordinates(), t);
|
|
6226
|
+
return n === null ? t : t instanceof wn ? e.createLinearRing(n) : t instanceof dt ? e.createLineString(n) : t instanceof he ? n.length > 0 ? e.createPoint(n[0]) : e.createPoint() : t;
|
|
6232
6227
|
};
|
|
6233
6228
|
ro.prototype.interfaces_ = function() {
|
|
6234
6229
|
return [Te.GeometryEditorOperation];
|
|
@@ -6236,6 +6231,17 @@ ro.prototype.interfaces_ = function() {
|
|
|
6236
6231
|
ro.prototype.getClass = function() {
|
|
6237
6232
|
return ro;
|
|
6238
6233
|
};
|
|
6234
|
+
var io = function() {
|
|
6235
|
+
};
|
|
6236
|
+
io.prototype.edit = function(t, e) {
|
|
6237
|
+
return t instanceof wn ? e.createLinearRing(this.edit(t.getCoordinateSequence(), t)) : t instanceof dt ? e.createLineString(this.edit(t.getCoordinateSequence(), t)) : t instanceof he ? e.createPoint(this.edit(t.getCoordinateSequence(), t)) : t;
|
|
6238
|
+
};
|
|
6239
|
+
io.prototype.interfaces_ = function() {
|
|
6240
|
+
return [Te.GeometryEditorOperation];
|
|
6241
|
+
};
|
|
6242
|
+
io.prototype.getClass = function() {
|
|
6243
|
+
return io;
|
|
6244
|
+
};
|
|
6239
6245
|
var mt = function() {
|
|
6240
6246
|
var t = this;
|
|
6241
6247
|
if (this._dimension = 3, this._coordinates = null, arguments.length === 1) {
|
|
@@ -6375,7 +6381,7 @@ Ln.prototype.create = function() {
|
|
|
6375
6381
|
}
|
|
6376
6382
|
};
|
|
6377
6383
|
Ln.prototype.interfaces_ = function() {
|
|
6378
|
-
return [
|
|
6384
|
+
return [gi, Be];
|
|
6379
6385
|
};
|
|
6380
6386
|
Ln.prototype.getClass = function() {
|
|
6381
6387
|
return Ln;
|
|
@@ -6516,7 +6522,7 @@ tt.FIXED = new cn("FIXED");
|
|
|
6516
6522
|
tt.FLOATING = new cn("FLOATING");
|
|
6517
6523
|
tt.FLOATING_SINGLE = new cn("FLOATING SINGLE");
|
|
6518
6524
|
var H = function r() {
|
|
6519
|
-
this._precisionModel = new tt(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? z(arguments[0],
|
|
6525
|
+
this._precisionModel = new tt(), this._SRID = 0, this._coordinateSequenceFactory = r.getDefaultCoordinateSequenceFactory(), arguments.length === 0 || (arguments.length === 1 ? z(arguments[0], gi) ? this._coordinateSequenceFactory = arguments[0] : arguments[0] instanceof tt && (this._precisionModel = arguments[0]) : arguments.length === 2 ? (this._precisionModel = arguments[0], this._SRID = arguments[1]) : arguments.length === 3 && (this._precisionModel = arguments[0], this._SRID = arguments[1], this._coordinateSequenceFactory = arguments[2]));
|
|
6520
6526
|
}, cu = { serialVersionUID: { configurable: !0 } };
|
|
6521
6527
|
H.prototype.toGeometry = function(t) {
|
|
6522
6528
|
return t.isNull() ? this.createPoint(null) : t.getMinX() === t.getMaxX() && t.getMinY() === t.getMaxY() ? this.createPoint(new v(t.getMinX(), t.getMinY())) : t.getMinX() === t.getMaxX() || t.getMinY() === t.getMaxY() ? this.createLineString([new v(t.getMinX(), t.getMinY()), new v(t.getMaxX(), t.getMaxY())]) : this.createPolygon(this.createLinearRing([new v(t.getMinX(), t.getMinY()), new v(t.getMinX(), t.getMaxY()), new v(t.getMaxX(), t.getMaxY()), new v(t.getMaxX(), t.getMinY()), new v(t.getMinX(), t.getMinY())]), null);
|
|
@@ -6646,11 +6652,11 @@ H.prototype.createMultiPolygon = function() {
|
|
|
6646
6652
|
H.prototype.createMultiPoint = function() {
|
|
6647
6653
|
var t = this;
|
|
6648
6654
|
if (arguments.length === 0)
|
|
6649
|
-
return new
|
|
6655
|
+
return new _i(null, this);
|
|
6650
6656
|
if (arguments.length === 1) {
|
|
6651
6657
|
if (arguments[0] instanceof Array) {
|
|
6652
6658
|
var e = arguments[0];
|
|
6653
|
-
return new
|
|
6659
|
+
return new _i(e, this);
|
|
6654
6660
|
} else if (arguments[0] instanceof Array) {
|
|
6655
6661
|
var n = arguments[0];
|
|
6656
6662
|
return this.createMultiPoint(n !== null ? this.getCoordinateSequenceFactory().create(n) : null);
|
|
@@ -7684,7 +7690,7 @@ hn.prototype.getClass = function() {
|
|
|
7684
7690
|
return hn;
|
|
7685
7691
|
};
|
|
7686
7692
|
var rt = function() {
|
|
7687
|
-
},
|
|
7693
|
+
}, yo = { NE: { configurable: !0 }, NW: { configurable: !0 }, SW: { configurable: !0 }, SE: { configurable: !0 } };
|
|
7688
7694
|
rt.prototype.interfaces_ = function() {
|
|
7689
7695
|
return [];
|
|
7690
7696
|
};
|
|
@@ -7725,19 +7731,19 @@ rt.quadrant = function() {
|
|
|
7725
7731
|
return i.x >= n.x ? i.y >= n.y ? rt.NE : rt.SE : i.y >= n.y ? rt.NW : rt.SW;
|
|
7726
7732
|
}
|
|
7727
7733
|
};
|
|
7728
|
-
|
|
7734
|
+
yo.NE.get = function() {
|
|
7729
7735
|
return 0;
|
|
7730
7736
|
};
|
|
7731
|
-
|
|
7737
|
+
yo.NW.get = function() {
|
|
7732
7738
|
return 1;
|
|
7733
7739
|
};
|
|
7734
|
-
|
|
7740
|
+
yo.SW.get = function() {
|
|
7735
7741
|
return 2;
|
|
7736
7742
|
};
|
|
7737
|
-
|
|
7743
|
+
yo.SE.get = function() {
|
|
7738
7744
|
return 3;
|
|
7739
7745
|
};
|
|
7740
|
-
Object.defineProperties(rt,
|
|
7746
|
+
Object.defineProperties(rt, yo);
|
|
7741
7747
|
var Wt = function() {
|
|
7742
7748
|
if (this._edge = null, this._label = null, this._node = null, this._p0 = null, this._p1 = null, this._dx = null, this._dy = null, this._quadrant = null, arguments.length === 1) {
|
|
7743
7749
|
var t = arguments[0];
|
|
@@ -7884,20 +7890,20 @@ var Ls = function(r) {
|
|
|
7884
7890
|
}, t.depthFactor = function(n, i) {
|
|
7885
7891
|
return n === _.EXTERIOR && i === _.INTERIOR ? 1 : n === _.INTERIOR && i === _.EXTERIOR ? -1 : 0;
|
|
7886
7892
|
}, t;
|
|
7887
|
-
}(Wt),
|
|
7893
|
+
}(Wt), Ei = function() {
|
|
7888
7894
|
};
|
|
7889
|
-
|
|
7895
|
+
Ei.prototype.createNode = function(t) {
|
|
7890
7896
|
return new is(t, null);
|
|
7891
7897
|
};
|
|
7892
|
-
|
|
7898
|
+
Ei.prototype.interfaces_ = function() {
|
|
7893
7899
|
return [];
|
|
7894
7900
|
};
|
|
7895
|
-
|
|
7896
|
-
return
|
|
7901
|
+
Ei.prototype.getClass = function() {
|
|
7902
|
+
return Ei;
|
|
7897
7903
|
};
|
|
7898
7904
|
var gt = function() {
|
|
7899
7905
|
if (this._edges = new L(), this._nodes = null, this._edgeEndList = new L(), arguments.length === 0)
|
|
7900
|
-
this._nodes = new hn(new
|
|
7906
|
+
this._nodes = new hn(new Ei());
|
|
7901
7907
|
else if (arguments.length === 1) {
|
|
7902
7908
|
var t = arguments[0];
|
|
7903
7909
|
this._nodes = new hn(t);
|
|
@@ -7934,7 +7940,7 @@ gt.prototype.linkResultDirectedEdges = function() {
|
|
|
7934
7940
|
}
|
|
7935
7941
|
};
|
|
7936
7942
|
gt.prototype.debugPrintln = function(t) {
|
|
7937
|
-
|
|
7943
|
+
zt.out.println(t);
|
|
7938
7944
|
};
|
|
7939
7945
|
gt.prototype.isBoundaryNode = function(t, e) {
|
|
7940
7946
|
var n = this._nodes.find(e);
|
|
@@ -7956,7 +7962,7 @@ gt.prototype.getEdgeEnds = function() {
|
|
|
7956
7962
|
return this._edgeEndList;
|
|
7957
7963
|
};
|
|
7958
7964
|
gt.prototype.debugPrint = function(t) {
|
|
7959
|
-
|
|
7965
|
+
zt.out.print(t);
|
|
7960
7966
|
};
|
|
7961
7967
|
gt.prototype.getEdgeIterator = function() {
|
|
7962
7968
|
return this._edges.iterator();
|
|
@@ -8116,15 +8122,15 @@ ge.prototype.interfaces_ = function() {
|
|
|
8116
8122
|
ge.prototype.getClass = function() {
|
|
8117
8123
|
return ge;
|
|
8118
8124
|
};
|
|
8119
|
-
var
|
|
8125
|
+
var Ii = function() {
|
|
8120
8126
|
};
|
|
8121
|
-
|
|
8127
|
+
Ii.prototype.getBounds = function() {
|
|
8122
8128
|
};
|
|
8123
|
-
|
|
8129
|
+
Ii.prototype.interfaces_ = function() {
|
|
8124
8130
|
return [];
|
|
8125
8131
|
};
|
|
8126
|
-
|
|
8127
|
-
return
|
|
8132
|
+
Ii.prototype.getClass = function() {
|
|
8133
|
+
return Ii;
|
|
8128
8134
|
};
|
|
8129
8135
|
var Xe = function() {
|
|
8130
8136
|
this._bounds = null, this._item = null;
|
|
@@ -8138,7 +8144,7 @@ Xe.prototype.getBounds = function() {
|
|
|
8138
8144
|
return this._bounds;
|
|
8139
8145
|
};
|
|
8140
8146
|
Xe.prototype.interfaces_ = function() {
|
|
8141
|
-
return [
|
|
8147
|
+
return [Ii, Be];
|
|
8142
8148
|
};
|
|
8143
8149
|
Xe.prototype.getClass = function() {
|
|
8144
8150
|
return Xe;
|
|
@@ -8231,7 +8237,7 @@ Pt.prototype.getBounds = function() {
|
|
|
8231
8237
|
return this._bounds === null && (this._bounds = this.computeBounds()), this._bounds;
|
|
8232
8238
|
};
|
|
8233
8239
|
Pt.prototype.interfaces_ = function() {
|
|
8234
|
-
return [
|
|
8240
|
+
return [Ii, Be];
|
|
8235
8241
|
};
|
|
8236
8242
|
Pt.prototype.getClass = function() {
|
|
8237
8243
|
return Pt;
|
|
@@ -8490,15 +8496,15 @@ os.DEFAULT_NODE_CAPACITY.get = function() {
|
|
|
8490
8496
|
};
|
|
8491
8497
|
Object.defineProperties(Ot, os);
|
|
8492
8498
|
var Sc = function() {
|
|
8493
|
-
},
|
|
8499
|
+
}, Ci = function() {
|
|
8494
8500
|
};
|
|
8495
|
-
|
|
8501
|
+
Ci.prototype.distance = function(t, e) {
|
|
8496
8502
|
};
|
|
8497
|
-
|
|
8503
|
+
Ci.prototype.interfaces_ = function() {
|
|
8498
8504
|
return [];
|
|
8499
8505
|
};
|
|
8500
|
-
|
|
8501
|
-
return
|
|
8506
|
+
Ci.prototype.getClass = function() {
|
|
8507
|
+
return Ci;
|
|
8502
8508
|
};
|
|
8503
8509
|
var gu = function(r) {
|
|
8504
8510
|
function t(n) {
|
|
@@ -8571,7 +8577,7 @@ var gu = function(r) {
|
|
|
8571
8577
|
return this.createParentBoundablesFromVerticalSlices(u, o);
|
|
8572
8578
|
}, t.prototype.nearestNeighbour = function() {
|
|
8573
8579
|
if (arguments.length === 1) {
|
|
8574
|
-
if (z(arguments[0],
|
|
8580
|
+
if (z(arguments[0], Ci)) {
|
|
8575
8581
|
var i = arguments[0], o = new Ct(this.getRoot(), this.getRoot(), i);
|
|
8576
8582
|
return this.nearestNeighbour(o);
|
|
8577
8583
|
} else if (arguments[0] instanceof Ct) {
|
|
@@ -8579,7 +8585,7 @@ var gu = function(r) {
|
|
|
8579
8585
|
return this.nearestNeighbour(s, V.POSITIVE_INFINITY);
|
|
8580
8586
|
}
|
|
8581
8587
|
} else if (arguments.length === 2) {
|
|
8582
|
-
if (arguments[0] instanceof t && z(arguments[1],
|
|
8588
|
+
if (arguments[0] instanceof t && z(arguments[1], Ci)) {
|
|
8583
8589
|
var a = arguments[0], u = arguments[1], l = new Ct(this.getRoot(), a.getRoot(), u);
|
|
8584
8590
|
return this.nearestNeighbour(l);
|
|
8585
8591
|
} else if (arguments[0] instanceof Ct && typeof arguments[1] == "number") {
|
|
@@ -8613,7 +8619,7 @@ var gu = function(r) {
|
|
|
8613
8619
|
}, e.xComparator.get = function() {
|
|
8614
8620
|
return {
|
|
8615
8621
|
interfaces_: function() {
|
|
8616
|
-
return [
|
|
8622
|
+
return [hi];
|
|
8617
8623
|
},
|
|
8618
8624
|
compare: function(n, i) {
|
|
8619
8625
|
return r.compareDoubles(t.centreX(n.getBounds()), t.centreX(i.getBounds()));
|
|
@@ -8622,7 +8628,7 @@ var gu = function(r) {
|
|
|
8622
8628
|
}, e.yComparator.get = function() {
|
|
8623
8629
|
return {
|
|
8624
8630
|
interfaces_: function() {
|
|
8625
|
-
return [
|
|
8631
|
+
return [hi];
|
|
8626
8632
|
},
|
|
8627
8633
|
compare: function(n, i) {
|
|
8628
8634
|
return r.compareDoubles(t.centreY(n.getBounds()), t.centreY(i.getBounds()));
|
|
@@ -8727,7 +8733,7 @@ var ie = function() {
|
|
|
8727
8733
|
this._edge = t;
|
|
8728
8734
|
};
|
|
8729
8735
|
ie.prototype.getSplitCoordinates = function() {
|
|
8730
|
-
var t = this, e = new
|
|
8736
|
+
var t = this, e = new po();
|
|
8731
8737
|
this.addEndpoints();
|
|
8732
8738
|
for (var n = this.iterator(), i = n.next(); n.hasNext(); ) {
|
|
8733
8739
|
var o = n.next();
|
|
@@ -8862,15 +8868,15 @@ bn.prototype.interfaces_ = function() {
|
|
|
8862
8868
|
bn.prototype.getClass = function() {
|
|
8863
8869
|
return bn;
|
|
8864
8870
|
};
|
|
8865
|
-
var
|
|
8871
|
+
var oo = function() {
|
|
8866
8872
|
};
|
|
8867
|
-
|
|
8873
|
+
oo.prototype.addIntersection = function(t, e) {
|
|
8868
8874
|
};
|
|
8869
|
-
|
|
8875
|
+
oo.prototype.interfaces_ = function() {
|
|
8870
8876
|
return [bn];
|
|
8871
8877
|
};
|
|
8872
|
-
|
|
8873
|
-
return
|
|
8878
|
+
oo.prototype.getClass = function() {
|
|
8879
|
+
return oo;
|
|
8874
8880
|
};
|
|
8875
8881
|
var It = function() {
|
|
8876
8882
|
this._nodeList = new ie(this), this._pts = null, this._data = null;
|
|
@@ -8930,7 +8936,7 @@ It.prototype.addIntersections = function(t, e, n) {
|
|
|
8930
8936
|
i.addIntersection(t, e, n, o);
|
|
8931
8937
|
};
|
|
8932
8938
|
It.prototype.interfaces_ = function() {
|
|
8933
|
-
return [
|
|
8939
|
+
return [oo];
|
|
8934
8940
|
};
|
|
8935
8941
|
It.prototype.getClass = function() {
|
|
8936
8942
|
return It;
|
|
@@ -9074,7 +9080,7 @@ A.prototype.lineIntersection = function(t) {
|
|
|
9074
9080
|
var e = ze.intersection(this.p0, this.p1, t.p0, t.p1);
|
|
9075
9081
|
return e;
|
|
9076
9082
|
} catch (n) {
|
|
9077
|
-
if (!(n instanceof
|
|
9083
|
+
if (!(n instanceof Fi))
|
|
9078
9084
|
throw n;
|
|
9079
9085
|
} finally {
|
|
9080
9086
|
}
|
|
@@ -9146,10 +9152,10 @@ pu.serialVersionUID.get = function() {
|
|
|
9146
9152
|
return 3252005833466256400;
|
|
9147
9153
|
};
|
|
9148
9154
|
Object.defineProperties(A, pu);
|
|
9149
|
-
var
|
|
9155
|
+
var so = function() {
|
|
9150
9156
|
this.tempEnv1 = new M(), this.tempEnv2 = new M(), this._overlapSeg1 = new A(), this._overlapSeg2 = new A();
|
|
9151
9157
|
};
|
|
9152
|
-
|
|
9158
|
+
so.prototype.overlap = function() {
|
|
9153
9159
|
if (arguments.length !== 2) {
|
|
9154
9160
|
if (arguments.length === 4) {
|
|
9155
9161
|
var t = arguments[0], e = arguments[1], n = arguments[2], i = arguments[3];
|
|
@@ -9157,11 +9163,11 @@ oo.prototype.overlap = function() {
|
|
|
9157
9163
|
}
|
|
9158
9164
|
}
|
|
9159
9165
|
};
|
|
9160
|
-
|
|
9166
|
+
so.prototype.interfaces_ = function() {
|
|
9161
9167
|
return [];
|
|
9162
9168
|
};
|
|
9163
|
-
|
|
9164
|
-
return
|
|
9169
|
+
so.prototype.getClass = function() {
|
|
9170
|
+
return so;
|
|
9165
9171
|
};
|
|
9166
9172
|
var pe = function() {
|
|
9167
9173
|
this._pts = null, this._start = null, this._end = null, this._env = null, this._context = null, this._id = null;
|
|
@@ -9290,7 +9296,7 @@ xr.prototype.interfaces_ = function() {
|
|
|
9290
9296
|
xr.prototype.getClass = function() {
|
|
9291
9297
|
return xr;
|
|
9292
9298
|
};
|
|
9293
|
-
var
|
|
9299
|
+
var ao = function() {
|
|
9294
9300
|
if (this._segInt = null, arguments.length !== 0) {
|
|
9295
9301
|
if (arguments.length === 1) {
|
|
9296
9302
|
var t = arguments[0];
|
|
@@ -9298,14 +9304,14 @@ var so = function() {
|
|
|
9298
9304
|
}
|
|
9299
9305
|
}
|
|
9300
9306
|
};
|
|
9301
|
-
|
|
9307
|
+
ao.prototype.setSegmentIntersector = function(t) {
|
|
9302
9308
|
this._segInt = t;
|
|
9303
9309
|
};
|
|
9304
|
-
|
|
9310
|
+
ao.prototype.interfaces_ = function() {
|
|
9305
9311
|
return [xr];
|
|
9306
9312
|
};
|
|
9307
|
-
|
|
9308
|
-
return
|
|
9313
|
+
ao.prototype.getClass = function() {
|
|
9314
|
+
return ao;
|
|
9309
9315
|
};
|
|
9310
9316
|
var Us = function(r) {
|
|
9311
9317
|
function t(n) {
|
|
@@ -9344,7 +9350,7 @@ var Us = function(r) {
|
|
|
9344
9350
|
}, e.SegmentOverlapAction.get = function() {
|
|
9345
9351
|
return xa;
|
|
9346
9352
|
}, Object.defineProperties(t, e), t;
|
|
9347
|
-
}(
|
|
9353
|
+
}(ao), xa = function(r) {
|
|
9348
9354
|
function t() {
|
|
9349
9355
|
r.call(this), this._si = null;
|
|
9350
9356
|
var e = arguments[0];
|
|
@@ -9361,7 +9367,7 @@ var Us = function(r) {
|
|
|
9361
9367
|
}, t.prototype.getClass = function() {
|
|
9362
9368
|
return t;
|
|
9363
9369
|
}, t;
|
|
9364
|
-
}(
|
|
9370
|
+
}(so), $ = function r() {
|
|
9365
9371
|
if (this._quadrantSegments = r.DEFAULT_QUADRANT_SEGMENTS, this._endCapStyle = r.CAP_ROUND, this._joinStyle = r.JOIN_ROUND, this._mitreLimit = r.DEFAULT_MITRE_LIMIT, this._isSingleSided = !1, this._simplifyFactor = r.DEFAULT_SIMPLIFY_FACTOR, arguments.length !== 0) {
|
|
9366
9372
|
if (arguments.length === 1) {
|
|
9367
9373
|
var t = arguments[0];
|
|
@@ -9451,7 +9457,7 @@ $n.DEFAULT_SIMPLIFY_FACTOR.get = function() {
|
|
|
9451
9457
|
Object.defineProperties($, $n);
|
|
9452
9458
|
var vt = function(t) {
|
|
9453
9459
|
this._distanceTol = null, this._isDeleted = null, this._angleOrientation = R.COUNTERCLOCKWISE, this._inputLine = t || null;
|
|
9454
|
-
},
|
|
9460
|
+
}, mo = { INIT: { configurable: !0 }, DELETE: { configurable: !0 }, KEEP: { configurable: !0 }, NUM_PTS_TO_CHECK: { configurable: !0 } };
|
|
9455
9461
|
vt.prototype.isDeletable = function(t, e, n, i) {
|
|
9456
9462
|
var o = this._inputLine[t], s = this._inputLine[e], a = this._inputLine[n];
|
|
9457
9463
|
return !this.isConcave(o, s, a) || !this.isShallow(o, s, a, i) ? !1 : this.isShallowSampled(o, s, t, n, i);
|
|
@@ -9501,7 +9507,7 @@ vt.prototype.isShallow = function(t, e, n, i) {
|
|
|
9501
9507
|
return o < i;
|
|
9502
9508
|
};
|
|
9503
9509
|
vt.prototype.collapseLine = function() {
|
|
9504
|
-
for (var t = this, e = new
|
|
9510
|
+
for (var t = this, e = new po(), n = 0; n < this._inputLine.length; n++)
|
|
9505
9511
|
t._isDeleted[n] !== vt.DELETE && e.add(t._inputLine[n]);
|
|
9506
9512
|
return e.toCoordinateArray();
|
|
9507
9513
|
};
|
|
@@ -9515,19 +9521,19 @@ vt.simplify = function(t, e) {
|
|
|
9515
9521
|
var n = new vt(t);
|
|
9516
9522
|
return n.simplify(e);
|
|
9517
9523
|
};
|
|
9518
|
-
|
|
9524
|
+
mo.INIT.get = function() {
|
|
9519
9525
|
return 0;
|
|
9520
9526
|
};
|
|
9521
|
-
|
|
9527
|
+
mo.DELETE.get = function() {
|
|
9522
9528
|
return 1;
|
|
9523
9529
|
};
|
|
9524
|
-
|
|
9530
|
+
mo.KEEP.get = function() {
|
|
9525
9531
|
return 1;
|
|
9526
9532
|
};
|
|
9527
|
-
|
|
9533
|
+
mo.NUM_PTS_TO_CHECK.get = function() {
|
|
9528
9534
|
return 10;
|
|
9529
9535
|
};
|
|
9530
|
-
Object.defineProperties(vt,
|
|
9536
|
+
Object.defineProperties(vt, mo);
|
|
9531
9537
|
var Ne = function() {
|
|
9532
9538
|
this._ptList = null, this._precisionModel = null, this._minimimVertexDistance = 0, this._ptList = new L();
|
|
9533
9539
|
}, du = { COORDINATE_ARRAY_TYPE: { configurable: !0 } };
|
|
@@ -9679,7 +9685,7 @@ var ct = function r() {
|
|
|
9679
9685
|
this._maxCurveSegmentError = 0, this._filletAngleQuantum = null, this._closingSegLengthFactor = 1, this._segList = null, this._distance = 0, this._precisionModel = null, this._bufParams = null, this._li = null, this._s0 = null, this._s1 = null, this._s2 = null, this._seg0 = new A(), this._seg1 = new A(), this._offset0 = new A(), this._offset1 = new A(), this._side = 0, this._hasNarrowConcaveAngle = !1;
|
|
9680
9686
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
9681
9687
|
this._precisionModel = t, this._bufParams = e, this._li = new Tr(), this._filletAngleQuantum = Math.PI / 2 / e.getQuadrantSegments(), e.getQuadrantSegments() >= 8 && e.getJoinStyle() === $.JOIN_ROUND && (this._closingSegLengthFactor = r.MAX_CLOSING_SEG_LEN_FACTOR), this.init(n);
|
|
9682
|
-
},
|
|
9688
|
+
}, _o = { OFFSET_SEGMENT_SEPARATION_FACTOR: { configurable: !0 }, INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, CURVE_VERTEX_SNAP_DISTANCE_FACTOR: { configurable: !0 }, MAX_CLOSING_SEG_LEN_FACTOR: { configurable: !0 } };
|
|
9683
9689
|
ct.prototype.addNextSegment = function(t, e) {
|
|
9684
9690
|
if (this._s0 = this._s1, this._s1 = this._s2, this._s2 = t, this._seg0.setCoordinates(this._s0, this._s1), this.computeOffsetSegment(this._seg0, this._side, this._distance, this._offset0), this._seg1.setCoordinates(this._s1, this._s2), this.computeOffsetSegment(this._seg1, this._side, this._distance, this._offset1), this._s1.equals(this._s2))
|
|
9685
9691
|
return null;
|
|
@@ -9718,7 +9724,7 @@ ct.prototype.addMitreJoin = function(t, e, n, i) {
|
|
|
9718
9724
|
var a = i <= 0 ? 1 : s.distance(t) / Math.abs(i);
|
|
9719
9725
|
a > this._bufParams.getMitreLimit() && (o = !1);
|
|
9720
9726
|
} catch (u) {
|
|
9721
|
-
if (u instanceof
|
|
9727
|
+
if (u instanceof Fi)
|
|
9722
9728
|
s = new v(0, 0), o = !1;
|
|
9723
9729
|
else
|
|
9724
9730
|
throw u;
|
|
@@ -9810,19 +9816,19 @@ ct.prototype.interfaces_ = function() {
|
|
|
9810
9816
|
ct.prototype.getClass = function() {
|
|
9811
9817
|
return ct;
|
|
9812
9818
|
};
|
|
9813
|
-
|
|
9819
|
+
_o.OFFSET_SEGMENT_SEPARATION_FACTOR.get = function() {
|
|
9814
9820
|
return 1e-3;
|
|
9815
9821
|
};
|
|
9816
|
-
|
|
9822
|
+
_o.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR.get = function() {
|
|
9817
9823
|
return 1e-3;
|
|
9818
9824
|
};
|
|
9819
|
-
|
|
9825
|
+
_o.CURVE_VERTEX_SNAP_DISTANCE_FACTOR.get = function() {
|
|
9820
9826
|
return 1e-6;
|
|
9821
9827
|
};
|
|
9822
|
-
|
|
9828
|
+
_o.MAX_CLOSING_SEG_LEN_FACTOR.get = function() {
|
|
9823
9829
|
return 80;
|
|
9824
9830
|
};
|
|
9825
|
-
Object.defineProperties(ct,
|
|
9831
|
+
Object.defineProperties(ct, _o);
|
|
9826
9832
|
var ue = function() {
|
|
9827
9833
|
this._distance = 0, this._precisionModel = null, this._bufParams = null;
|
|
9828
9834
|
var t = arguments[0], e = arguments[1];
|
|
@@ -10154,7 +10160,7 @@ Me.prototype.addPolygonRing = function(t, e, n, i, o) {
|
|
|
10154
10160
|
Me.prototype.add = function(t) {
|
|
10155
10161
|
if (t.isEmpty())
|
|
10156
10162
|
return null;
|
|
10157
|
-
t instanceof Rt ? this.addPolygon(t) : t instanceof dt ? this.addLineString(t) : t instanceof he ? this.addPoint(t) : t instanceof
|
|
10163
|
+
t instanceof Rt ? this.addPolygon(t) : t instanceof dt ? this.addLineString(t) : t instanceof he ? this.addPoint(t) : t instanceof _i ? this.addCollection(t) : t instanceof Nr ? this.addCollection(t) : t instanceof Nn ? this.addCollection(t) : t instanceof ne && this.addCollection(t);
|
|
10158
10164
|
};
|
|
10159
10165
|
Me.prototype.isErodedCompletely = function(t, e) {
|
|
10160
10166
|
var n = t.getCoordinates();
|
|
@@ -10177,15 +10183,15 @@ Me.prototype.interfaces_ = function() {
|
|
|
10177
10183
|
Me.prototype.getClass = function() {
|
|
10178
10184
|
return Me;
|
|
10179
10185
|
};
|
|
10180
|
-
var
|
|
10186
|
+
var Ni = function() {
|
|
10181
10187
|
};
|
|
10182
|
-
|
|
10188
|
+
Ni.prototype.locate = function(t) {
|
|
10183
10189
|
};
|
|
10184
|
-
|
|
10190
|
+
Ni.prototype.interfaces_ = function() {
|
|
10185
10191
|
return [];
|
|
10186
10192
|
};
|
|
10187
|
-
|
|
10188
|
-
return
|
|
10193
|
+
Ni.prototype.getClass = function() {
|
|
10194
|
+
return Ni;
|
|
10189
10195
|
};
|
|
10190
10196
|
var xn = function() {
|
|
10191
10197
|
this._parent = null, this._atStart = null, this._max = null, this._index = null, this._subcollectionIterator = null;
|
|
@@ -10201,7 +10207,7 @@ xn.prototype.next = function() {
|
|
|
10201
10207
|
this._subcollectionIterator = null;
|
|
10202
10208
|
}
|
|
10203
10209
|
if (this._index >= this._max)
|
|
10204
|
-
throw new
|
|
10210
|
+
throw new Gi();
|
|
10205
10211
|
var t = this._parent.getGeometryN(this._index++);
|
|
10206
10212
|
return t instanceof ne ? (this._subcollectionIterator = new xn(t), this._subcollectionIterator.next()) : t;
|
|
10207
10213
|
};
|
|
@@ -10219,7 +10225,7 @@ xn.prototype.hasNext = function() {
|
|
|
10219
10225
|
return !(this._index >= this._max);
|
|
10220
10226
|
};
|
|
10221
10227
|
xn.prototype.interfaces_ = function() {
|
|
10222
|
-
return [
|
|
10228
|
+
return [Bi];
|
|
10223
10229
|
};
|
|
10224
10230
|
xn.prototype.getClass = function() {
|
|
10225
10231
|
return xn;
|
|
@@ -10236,7 +10242,7 @@ _e.prototype.locate = function(t) {
|
|
|
10236
10242
|
return _e.locate(t, this._geom);
|
|
10237
10243
|
};
|
|
10238
10244
|
_e.prototype.interfaces_ = function() {
|
|
10239
|
-
return [
|
|
10245
|
+
return [Ni];
|
|
10240
10246
|
};
|
|
10241
10247
|
_e.prototype.getClass = function() {
|
|
10242
10248
|
return _e;
|
|
@@ -10307,7 +10313,7 @@ jt.prototype.getCoordinate = function() {
|
|
|
10307
10313
|
return e.getCoordinate();
|
|
10308
10314
|
};
|
|
10309
10315
|
jt.prototype.print = function(t) {
|
|
10310
|
-
|
|
10316
|
+
zt.out.println("EdgeEndStar: " + this.getCoordinate());
|
|
10311
10317
|
for (var e = this.iterator(); e.hasNext(); ) {
|
|
10312
10318
|
var n = e.next();
|
|
10313
10319
|
n.print(t);
|
|
@@ -10440,7 +10446,7 @@ var wc = function(r) {
|
|
|
10440
10446
|
var s = n.get(i - 1), a = o.getQuadrant(), u = s.getQuadrant();
|
|
10441
10447
|
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);
|
|
10442
10448
|
}, t.prototype.print = function(n) {
|
|
10443
|
-
|
|
10449
|
+
zt.out.println("DirectedEdgeStar: " + this.getCoordinate());
|
|
10444
10450
|
for (var i = this.iterator(); i.hasNext(); ) {
|
|
10445
10451
|
var o = i.next();
|
|
10446
10452
|
n.print("out "), o.print(n), n.println(), n.print("in "), o.getSym().print(n), n.println();
|
|
@@ -10563,7 +10569,7 @@ var wc = function(r) {
|
|
|
10563
10569
|
}, t.prototype.getClass = function() {
|
|
10564
10570
|
return t;
|
|
10565
10571
|
}, t;
|
|
10566
|
-
}(
|
|
10572
|
+
}(Ei), ar = function r() {
|
|
10567
10573
|
this._pts = null, this._orientation = null;
|
|
10568
10574
|
var t = arguments[0];
|
|
10569
10575
|
this._pts = t, this._orientation = r.orientation(t);
|
|
@@ -10879,7 +10885,7 @@ Qn.prototype.interfaces_ = function() {
|
|
|
10879
10885
|
Qn.prototype.getClass = function() {
|
|
10880
10886
|
return Qn;
|
|
10881
10887
|
};
|
|
10882
|
-
var
|
|
10888
|
+
var kt = function r() {
|
|
10883
10889
|
var t = this;
|
|
10884
10890
|
this._depth = Array(2).fill().map(function() {
|
|
10885
10891
|
return Array(3);
|
|
@@ -10888,29 +10894,29 @@ var Gt = function r() {
|
|
|
10888
10894
|
for (var n = 0; n < 3; n++)
|
|
10889
10895
|
t._depth[e][n] = r.NULL_VALUE;
|
|
10890
10896
|
}, mu = { NULL_VALUE: { configurable: !0 } };
|
|
10891
|
-
|
|
10897
|
+
kt.prototype.getDepth = function(t, e) {
|
|
10892
10898
|
return this._depth[t][e];
|
|
10893
10899
|
};
|
|
10894
|
-
|
|
10900
|
+
kt.prototype.setDepth = function(t, e, n) {
|
|
10895
10901
|
this._depth[t][e] = n;
|
|
10896
10902
|
};
|
|
10897
|
-
|
|
10903
|
+
kt.prototype.isNull = function() {
|
|
10898
10904
|
var t = this;
|
|
10899
10905
|
if (arguments.length === 0) {
|
|
10900
10906
|
for (var e = 0; e < 2; e++)
|
|
10901
10907
|
for (var n = 0; n < 3; n++)
|
|
10902
|
-
if (t._depth[e][n] !==
|
|
10908
|
+
if (t._depth[e][n] !== kt.NULL_VALUE)
|
|
10903
10909
|
return !1;
|
|
10904
10910
|
return !0;
|
|
10905
10911
|
} else if (arguments.length === 1) {
|
|
10906
10912
|
var i = arguments[0];
|
|
10907
|
-
return this._depth[i][1] ===
|
|
10913
|
+
return this._depth[i][1] === kt.NULL_VALUE;
|
|
10908
10914
|
} else if (arguments.length === 2) {
|
|
10909
10915
|
var o = arguments[0], s = arguments[1];
|
|
10910
|
-
return this._depth[o][s] ===
|
|
10916
|
+
return this._depth[o][s] === kt.NULL_VALUE;
|
|
10911
10917
|
}
|
|
10912
10918
|
};
|
|
10913
|
-
|
|
10919
|
+
kt.prototype.normalize = function() {
|
|
10914
10920
|
for (var t = this, e = 0; e < 2; e++)
|
|
10915
10921
|
if (!t.isNull(e)) {
|
|
10916
10922
|
var n = t._depth[e][1];
|
|
@@ -10921,44 +10927,44 @@ Gt.prototype.normalize = function() {
|
|
|
10921
10927
|
}
|
|
10922
10928
|
}
|
|
10923
10929
|
};
|
|
10924
|
-
|
|
10930
|
+
kt.prototype.getDelta = function(t) {
|
|
10925
10931
|
return this._depth[t][S.RIGHT] - this._depth[t][S.LEFT];
|
|
10926
10932
|
};
|
|
10927
|
-
|
|
10933
|
+
kt.prototype.getLocation = function(t, e) {
|
|
10928
10934
|
return this._depth[t][e] <= 0 ? _.EXTERIOR : _.INTERIOR;
|
|
10929
10935
|
};
|
|
10930
|
-
|
|
10936
|
+
kt.prototype.toString = function() {
|
|
10931
10937
|
return "A: " + this._depth[0][1] + "," + this._depth[0][2] + " B: " + this._depth[1][1] + "," + this._depth[1][2];
|
|
10932
10938
|
};
|
|
10933
|
-
|
|
10939
|
+
kt.prototype.add = function() {
|
|
10934
10940
|
var t = this;
|
|
10935
10941
|
if (arguments.length === 1)
|
|
10936
10942
|
for (var e = arguments[0], n = 0; n < 2; n++)
|
|
10937
10943
|
for (var i = 1; i < 3; i++) {
|
|
10938
10944
|
var o = e.getLocation(n, i);
|
|
10939
|
-
(o === _.EXTERIOR || o === _.INTERIOR) && (t.isNull(n, i) ? t._depth[n][i] =
|
|
10945
|
+
(o === _.EXTERIOR || o === _.INTERIOR) && (t.isNull(n, i) ? t._depth[n][i] = kt.depthAtLocation(o) : t._depth[n][i] += kt.depthAtLocation(o));
|
|
10940
10946
|
}
|
|
10941
10947
|
else if (arguments.length === 3) {
|
|
10942
10948
|
var s = arguments[0], a = arguments[1], u = arguments[2];
|
|
10943
10949
|
u === _.INTERIOR && this._depth[s][a]++;
|
|
10944
10950
|
}
|
|
10945
10951
|
};
|
|
10946
|
-
|
|
10952
|
+
kt.prototype.interfaces_ = function() {
|
|
10947
10953
|
return [];
|
|
10948
10954
|
};
|
|
10949
|
-
|
|
10950
|
-
return
|
|
10955
|
+
kt.prototype.getClass = function() {
|
|
10956
|
+
return kt;
|
|
10951
10957
|
};
|
|
10952
|
-
|
|
10953
|
-
return t === _.EXTERIOR ? 0 : t === _.INTERIOR ? 1 :
|
|
10958
|
+
kt.depthAtLocation = function(t) {
|
|
10959
|
+
return t === _.EXTERIOR ? 0 : t === _.INTERIOR ? 1 : kt.NULL_VALUE;
|
|
10954
10960
|
};
|
|
10955
10961
|
mu.NULL_VALUE.get = function() {
|
|
10956
10962
|
return -1;
|
|
10957
10963
|
};
|
|
10958
|
-
Object.defineProperties(
|
|
10964
|
+
Object.defineProperties(kt, mu);
|
|
10959
10965
|
var ko = function(r) {
|
|
10960
10966
|
function t() {
|
|
10961
|
-
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
|
|
10967
|
+
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) {
|
|
10962
10968
|
var e = arguments[0];
|
|
10963
10969
|
t.call(this, e, null);
|
|
10964
10970
|
} else if (arguments.length === 2) {
|
|
@@ -11179,7 +11185,7 @@ ur.prototype.rescale = function() {
|
|
|
11179
11185
|
else if (arguments[0] instanceof Array) {
|
|
11180
11186
|
for (var o = arguments[0], s = 0; s < o.length; s++)
|
|
11181
11187
|
o[s].x = o[s].x / t._scaleFactor + t._offsetX, o[s].y = o[s].y / t._scaleFactor + t._offsetY;
|
|
11182
|
-
o.length === 2 && o[0].equals2D(o[1]) &&
|
|
11188
|
+
o.length === 2 && o[0].equals2D(o[1]) && zt.out.println(o);
|
|
11183
11189
|
}
|
|
11184
11190
|
};
|
|
11185
11191
|
ur.prototype.scale = function() {
|
|
@@ -11348,10 +11354,10 @@ Eu.SAFE_ENV_EXPANSION_FACTOR.get = function() {
|
|
|
11348
11354
|
return 0.75;
|
|
11349
11355
|
};
|
|
11350
11356
|
Object.defineProperties(le, Eu);
|
|
11351
|
-
var
|
|
11357
|
+
var uo = function() {
|
|
11352
11358
|
this.tempEnv1 = new M(), this.selectedSegment = new A();
|
|
11353
11359
|
};
|
|
11354
|
-
|
|
11360
|
+
uo.prototype.select = function() {
|
|
11355
11361
|
if (arguments.length !== 1) {
|
|
11356
11362
|
if (arguments.length === 2) {
|
|
11357
11363
|
var t = arguments[0], e = arguments[1];
|
|
@@ -11359,18 +11365,18 @@ ao.prototype.select = function() {
|
|
|
11359
11365
|
}
|
|
11360
11366
|
}
|
|
11361
11367
|
};
|
|
11362
|
-
|
|
11368
|
+
uo.prototype.interfaces_ = function() {
|
|
11363
11369
|
return [];
|
|
11364
11370
|
};
|
|
11365
|
-
|
|
11366
|
-
return
|
|
11371
|
+
uo.prototype.getClass = function() {
|
|
11372
|
+
return uo;
|
|
11367
11373
|
};
|
|
11368
|
-
var
|
|
11374
|
+
var xi = function() {
|
|
11369
11375
|
this._index = null;
|
|
11370
11376
|
var t = arguments[0];
|
|
11371
11377
|
this._index = t;
|
|
11372
11378
|
}, Iu = { HotPixelSnapAction: { configurable: !0 } };
|
|
11373
|
-
|
|
11379
|
+
xi.prototype.snap = function() {
|
|
11374
11380
|
if (arguments.length === 1) {
|
|
11375
11381
|
var t = arguments[0];
|
|
11376
11382
|
return this.snap(t, null, -1);
|
|
@@ -11387,16 +11393,16 @@ Ci.prototype.snap = function() {
|
|
|
11387
11393
|
}), s.isNodeAdded();
|
|
11388
11394
|
}
|
|
11389
11395
|
};
|
|
11390
|
-
|
|
11396
|
+
xi.prototype.interfaces_ = function() {
|
|
11391
11397
|
return [];
|
|
11392
11398
|
};
|
|
11393
|
-
|
|
11394
|
-
return
|
|
11399
|
+
xi.prototype.getClass = function() {
|
|
11400
|
+
return xi;
|
|
11395
11401
|
};
|
|
11396
11402
|
Iu.HotPixelSnapAction.get = function() {
|
|
11397
11403
|
return Cu;
|
|
11398
11404
|
};
|
|
11399
|
-
Object.defineProperties(
|
|
11405
|
+
Object.defineProperties(xi, Iu);
|
|
11400
11406
|
var Cu = function(r) {
|
|
11401
11407
|
function t() {
|
|
11402
11408
|
r.call(this), this._hotPixel = null, this._parentEdge = null, this._hotPixelVertexIndex = null, this._isNodeAdded = !1;
|
|
@@ -11418,7 +11424,7 @@ var Cu = function(r) {
|
|
|
11418
11424
|
}, t.prototype.getClass = function() {
|
|
11419
11425
|
return t;
|
|
11420
11426
|
}, t;
|
|
11421
|
-
}(
|
|
11427
|
+
}(uo), Wr = function() {
|
|
11422
11428
|
this._li = null, this._interiorIntersections = null;
|
|
11423
11429
|
var t = arguments[0];
|
|
11424
11430
|
this._li = t, this._interiorIntersections = new L();
|
|
@@ -11488,7 +11494,7 @@ Rn.prototype.computeVertexSnaps = function() {
|
|
|
11488
11494
|
}
|
|
11489
11495
|
};
|
|
11490
11496
|
Rn.prototype.computeNodes = function(t) {
|
|
11491
|
-
this._nodedSegStrings = t, this._noder = new Us(), this._pointSnapper = new
|
|
11497
|
+
this._nodedSegStrings = t, this._noder = new Us(), this._pointSnapper = new xi(this._noder.getIndex()), this.snapRound(t, this._li);
|
|
11492
11498
|
};
|
|
11493
11499
|
Rn.prototype.computeIntersectionSnaps = function(t) {
|
|
11494
11500
|
for (var e = this, n = t.iterator(); n.hasNext(); ) {
|
|
@@ -11502,7 +11508,7 @@ Rn.prototype.interfaces_ = function() {
|
|
|
11502
11508
|
Rn.prototype.getClass = function() {
|
|
11503
11509
|
return Rn;
|
|
11504
11510
|
};
|
|
11505
|
-
var
|
|
11511
|
+
var Gt = function() {
|
|
11506
11512
|
if (this._argGeom = null, this._distance = null, this._bufParams = new $(), this._resultGeometry = null, this._saveException = null, arguments.length === 1) {
|
|
11507
11513
|
var t = arguments[0];
|
|
11508
11514
|
this._argGeom = t;
|
|
@@ -11510,15 +11516,15 @@ var Bt = function() {
|
|
|
11510
11516
|
var e = arguments[0], n = arguments[1];
|
|
11511
11517
|
this._argGeom = e, this._bufParams = n;
|
|
11512
11518
|
}
|
|
11513
|
-
},
|
|
11514
|
-
|
|
11519
|
+
}, ki = { CAP_ROUND: { configurable: !0 }, CAP_BUTT: { configurable: !0 }, CAP_FLAT: { configurable: !0 }, CAP_SQUARE: { configurable: !0 }, MAX_PRECISION_DIGITS: { configurable: !0 } };
|
|
11520
|
+
Gt.prototype.bufferFixedPrecision = function(t) {
|
|
11515
11521
|
var e = new ur(new Rn(new tt(1)), t.getScale()), n = new ee(this._bufParams);
|
|
11516
11522
|
n.setWorkingPrecisionModel(t), n.setNoder(e), this._resultGeometry = n.buffer(this._argGeom, this._distance);
|
|
11517
11523
|
};
|
|
11518
|
-
|
|
11524
|
+
Gt.prototype.bufferReducedPrecision = function() {
|
|
11519
11525
|
var t = this;
|
|
11520
11526
|
if (arguments.length === 0) {
|
|
11521
|
-
for (var e =
|
|
11527
|
+
for (var e = Gt.MAX_PRECISION_DIGITS; e >= 0; e--) {
|
|
11522
11528
|
try {
|
|
11523
11529
|
t.bufferReducedPrecision(e);
|
|
11524
11530
|
} catch (s) {
|
|
@@ -11533,20 +11539,20 @@ Bt.prototype.bufferReducedPrecision = function() {
|
|
|
11533
11539
|
}
|
|
11534
11540
|
throw this._saveException;
|
|
11535
11541
|
} else if (arguments.length === 1) {
|
|
11536
|
-
var n = arguments[0], i =
|
|
11542
|
+
var n = arguments[0], i = Gt.precisionScaleFactor(this._argGeom, this._distance, n), o = new tt(i);
|
|
11537
11543
|
this.bufferFixedPrecision(o);
|
|
11538
11544
|
}
|
|
11539
11545
|
};
|
|
11540
|
-
|
|
11546
|
+
Gt.prototype.computeGeometry = function() {
|
|
11541
11547
|
if (this.bufferOriginalPrecision(), this._resultGeometry !== null)
|
|
11542
11548
|
return null;
|
|
11543
11549
|
var t = this._argGeom.getFactory().getPrecisionModel();
|
|
11544
11550
|
t.getType() === tt.FIXED ? this.bufferFixedPrecision(t) : this.bufferReducedPrecision();
|
|
11545
11551
|
};
|
|
11546
|
-
|
|
11552
|
+
Gt.prototype.setQuadrantSegments = function(t) {
|
|
11547
11553
|
this._bufParams.setQuadrantSegments(t);
|
|
11548
11554
|
};
|
|
11549
|
-
|
|
11555
|
+
Gt.prototype.bufferOriginalPrecision = function() {
|
|
11550
11556
|
try {
|
|
11551
11557
|
var t = new ee(this._bufParams);
|
|
11552
11558
|
this._resultGeometry = t.buffer(this._argGeom, this._distance);
|
|
@@ -11558,59 +11564,59 @@ Bt.prototype.bufferOriginalPrecision = function() {
|
|
|
11558
11564
|
} finally {
|
|
11559
11565
|
}
|
|
11560
11566
|
};
|
|
11561
|
-
|
|
11567
|
+
Gt.prototype.getResultGeometry = function(t) {
|
|
11562
11568
|
return this._distance = t, this.computeGeometry(), this._resultGeometry;
|
|
11563
11569
|
};
|
|
11564
|
-
|
|
11570
|
+
Gt.prototype.setEndCapStyle = function(t) {
|
|
11565
11571
|
this._bufParams.setEndCapStyle(t);
|
|
11566
11572
|
};
|
|
11567
|
-
|
|
11573
|
+
Gt.prototype.interfaces_ = function() {
|
|
11568
11574
|
return [];
|
|
11569
11575
|
};
|
|
11570
|
-
|
|
11571
|
-
return
|
|
11576
|
+
Gt.prototype.getClass = function() {
|
|
11577
|
+
return Gt;
|
|
11572
11578
|
};
|
|
11573
|
-
|
|
11579
|
+
Gt.bufferOp = function() {
|
|
11574
11580
|
if (arguments.length === 2) {
|
|
11575
|
-
var t = arguments[0], e = arguments[1], n = new
|
|
11581
|
+
var t = arguments[0], e = arguments[1], n = new Gt(t), i = n.getResultGeometry(e);
|
|
11576
11582
|
return i;
|
|
11577
11583
|
} else if (arguments.length === 3) {
|
|
11578
11584
|
if (Number.isInteger(arguments[2]) && arguments[0] instanceof G && typeof arguments[1] == "number") {
|
|
11579
|
-
var o = arguments[0], s = arguments[1], a = arguments[2], u = new
|
|
11585
|
+
var o = arguments[0], s = arguments[1], a = arguments[2], u = new Gt(o);
|
|
11580
11586
|
u.setQuadrantSegments(a);
|
|
11581
11587
|
var l = u.getResultGeometry(s);
|
|
11582
11588
|
return l;
|
|
11583
11589
|
} else if (arguments[2] instanceof $ && arguments[0] instanceof G && typeof arguments[1] == "number") {
|
|
11584
|
-
var c = arguments[0], f = arguments[1], h = arguments[2], g = new
|
|
11590
|
+
var c = arguments[0], f = arguments[1], h = arguments[2], g = new Gt(c, h), p = g.getResultGeometry(f);
|
|
11585
11591
|
return p;
|
|
11586
11592
|
}
|
|
11587
11593
|
} else if (arguments.length === 4) {
|
|
11588
|
-
var m = arguments[0], d = arguments[1], y = arguments[2], I = arguments[3], C = new
|
|
11594
|
+
var m = arguments[0], d = arguments[1], y = arguments[2], I = arguments[3], C = new Gt(m);
|
|
11589
11595
|
C.setQuadrantSegments(y), C.setEndCapStyle(I);
|
|
11590
11596
|
var x = C.getResultGeometry(d);
|
|
11591
11597
|
return x;
|
|
11592
11598
|
}
|
|
11593
11599
|
};
|
|
11594
|
-
|
|
11600
|
+
Gt.precisionScaleFactor = function(t, e, n) {
|
|
11595
11601
|
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);
|
|
11596
11602
|
return c;
|
|
11597
11603
|
};
|
|
11598
|
-
|
|
11604
|
+
ki.CAP_ROUND.get = function() {
|
|
11599
11605
|
return $.CAP_ROUND;
|
|
11600
11606
|
};
|
|
11601
|
-
|
|
11607
|
+
ki.CAP_BUTT.get = function() {
|
|
11602
11608
|
return $.CAP_FLAT;
|
|
11603
11609
|
};
|
|
11604
|
-
|
|
11610
|
+
ki.CAP_FLAT.get = function() {
|
|
11605
11611
|
return $.CAP_FLAT;
|
|
11606
11612
|
};
|
|
11607
|
-
|
|
11613
|
+
ki.CAP_SQUARE.get = function() {
|
|
11608
11614
|
return $.CAP_SQUARE;
|
|
11609
11615
|
};
|
|
11610
|
-
|
|
11616
|
+
ki.MAX_PRECISION_DIGITS.get = function() {
|
|
11611
11617
|
return 12;
|
|
11612
11618
|
};
|
|
11613
|
-
Object.defineProperties(
|
|
11619
|
+
Object.defineProperties(Gt, ki);
|
|
11614
11620
|
var Zt = function() {
|
|
11615
11621
|
this._pt = [new v(), new v()], this._distance = V.NaN, this._isNull = !0;
|
|
11616
11622
|
};
|
|
@@ -11792,7 +11798,7 @@ Yn.getPolygons = function() {
|
|
|
11792
11798
|
return e instanceof Rt ? n.add(e) : e instanceof ne && e.apply(new Yn(n)), n;
|
|
11793
11799
|
}
|
|
11794
11800
|
};
|
|
11795
|
-
var
|
|
11801
|
+
var Bt = function() {
|
|
11796
11802
|
if (this._lines = null, this._isForcedToLineString = !1, arguments.length === 1) {
|
|
11797
11803
|
var t = arguments[0];
|
|
11798
11804
|
this._lines = t;
|
|
@@ -11801,59 +11807,59 @@ var Ft = function() {
|
|
|
11801
11807
|
this._lines = e, this._isForcedToLineString = n;
|
|
11802
11808
|
}
|
|
11803
11809
|
};
|
|
11804
|
-
|
|
11810
|
+
Bt.prototype.filter = function(t) {
|
|
11805
11811
|
if (this._isForcedToLineString && t instanceof wn) {
|
|
11806
11812
|
var e = t.getFactory().createLineString(t.getCoordinateSequence());
|
|
11807
11813
|
return this._lines.add(e), null;
|
|
11808
11814
|
}
|
|
11809
11815
|
t instanceof dt && this._lines.add(t);
|
|
11810
11816
|
};
|
|
11811
|
-
|
|
11817
|
+
Bt.prototype.setForceToLineString = function(t) {
|
|
11812
11818
|
this._isForcedToLineString = t;
|
|
11813
11819
|
};
|
|
11814
|
-
|
|
11820
|
+
Bt.prototype.interfaces_ = function() {
|
|
11815
11821
|
return [Wn];
|
|
11816
11822
|
};
|
|
11817
|
-
|
|
11818
|
-
return
|
|
11823
|
+
Bt.prototype.getClass = function() {
|
|
11824
|
+
return Bt;
|
|
11819
11825
|
};
|
|
11820
|
-
|
|
11826
|
+
Bt.getGeometry = function() {
|
|
11821
11827
|
if (arguments.length === 1) {
|
|
11822
11828
|
var t = arguments[0];
|
|
11823
|
-
return t.getFactory().buildGeometry(
|
|
11829
|
+
return t.getFactory().buildGeometry(Bt.getLines(t));
|
|
11824
11830
|
} else if (arguments.length === 2) {
|
|
11825
11831
|
var e = arguments[0], n = arguments[1];
|
|
11826
|
-
return e.getFactory().buildGeometry(
|
|
11832
|
+
return e.getFactory().buildGeometry(Bt.getLines(e, n));
|
|
11827
11833
|
}
|
|
11828
11834
|
};
|
|
11829
|
-
|
|
11835
|
+
Bt.getLines = function() {
|
|
11830
11836
|
if (arguments.length === 1) {
|
|
11831
11837
|
var t = arguments[0];
|
|
11832
|
-
return
|
|
11838
|
+
return Bt.getLines(t, !1);
|
|
11833
11839
|
} else if (arguments.length === 2) {
|
|
11834
11840
|
if (z(arguments[0], wt) && z(arguments[1], wt)) {
|
|
11835
11841
|
for (var e = arguments[0], n = arguments[1], i = e.iterator(); i.hasNext(); ) {
|
|
11836
11842
|
var o = i.next();
|
|
11837
|
-
|
|
11843
|
+
Bt.getLines(o, n);
|
|
11838
11844
|
}
|
|
11839
11845
|
return n;
|
|
11840
11846
|
} else if (arguments[0] instanceof G && typeof arguments[1] == "boolean") {
|
|
11841
11847
|
var s = arguments[0], a = arguments[1], u = new L();
|
|
11842
|
-
return s.apply(new
|
|
11848
|
+
return s.apply(new Bt(u, a)), u;
|
|
11843
11849
|
} else if (arguments[0] instanceof G && z(arguments[1], wt)) {
|
|
11844
11850
|
var l = arguments[0], c = arguments[1];
|
|
11845
|
-
return l instanceof dt ? c.add(l) : l.apply(new
|
|
11851
|
+
return l instanceof dt ? c.add(l) : l.apply(new Bt(c)), c;
|
|
11846
11852
|
}
|
|
11847
11853
|
} else if (arguments.length === 3) {
|
|
11848
11854
|
if (typeof arguments[2] == "boolean" && z(arguments[0], wt) && z(arguments[1], wt)) {
|
|
11849
11855
|
for (var f = arguments[0], h = arguments[1], g = arguments[2], p = f.iterator(); p.hasNext(); ) {
|
|
11850
11856
|
var m = p.next();
|
|
11851
|
-
|
|
11857
|
+
Bt.getLines(m, h, g);
|
|
11852
11858
|
}
|
|
11853
11859
|
return h;
|
|
11854
11860
|
} else if (typeof arguments[2] == "boolean" && arguments[0] instanceof G && z(arguments[1], wt)) {
|
|
11855
11861
|
var d = arguments[0], y = arguments[1], I = arguments[2];
|
|
11856
|
-
return d.apply(new
|
|
11862
|
+
return d.apply(new Bt(y, I)), y;
|
|
11857
11863
|
}
|
|
11858
11864
|
}
|
|
11859
11865
|
};
|
|
@@ -12007,7 +12013,7 @@ Kr.getLocations = function(t) {
|
|
|
12007
12013
|
var e = new L();
|
|
12008
12014
|
return t.apply(new Kr(e)), e;
|
|
12009
12015
|
};
|
|
12010
|
-
var
|
|
12016
|
+
var Vt = function() {
|
|
12011
12017
|
if (this._geom = null, this._terminateDistance = 0, this._ptLocator = new We(), this._minDistanceLocation = null, this._minDistance = V.MAX_VALUE, arguments.length === 2) {
|
|
12012
12018
|
var t = arguments[0], e = arguments[1];
|
|
12013
12019
|
this._geom = [t, e], this._terminateDistance = 0;
|
|
@@ -12016,7 +12022,7 @@ var zt = function() {
|
|
|
12016
12022
|
this._geom = new Array(2).fill(null), this._geom[0] = n, this._geom[1] = i, this._terminateDistance = o;
|
|
12017
12023
|
}
|
|
12018
12024
|
};
|
|
12019
|
-
|
|
12025
|
+
Vt.prototype.computeContainmentDistance = function() {
|
|
12020
12026
|
var t = this;
|
|
12021
12027
|
if (arguments.length === 0) {
|
|
12022
12028
|
var e = new Array(2).fill(null);
|
|
@@ -12043,7 +12049,7 @@ zt.prototype.computeContainmentDistance = function() {
|
|
|
12043
12049
|
}
|
|
12044
12050
|
}
|
|
12045
12051
|
};
|
|
12046
|
-
|
|
12052
|
+
Vt.prototype.computeMinDistanceLinesPoints = function(t, e, n) {
|
|
12047
12053
|
for (var i = this, o = 0; o < t.size(); o++)
|
|
12048
12054
|
for (var s = t.get(o), a = 0; a < e.size(); a++) {
|
|
12049
12055
|
var u = e.get(a);
|
|
@@ -12051,26 +12057,26 @@ zt.prototype.computeMinDistanceLinesPoints = function(t, e, n) {
|
|
|
12051
12057
|
return null;
|
|
12052
12058
|
}
|
|
12053
12059
|
};
|
|
12054
|
-
|
|
12055
|
-
var t = new Array(2).fill(null), e =
|
|
12060
|
+
Vt.prototype.computeFacetDistance = function() {
|
|
12061
|
+
var t = new Array(2).fill(null), e = Bt.getLines(this._geom[0]), n = Bt.getLines(this._geom[1]), i = nr.getPoints(this._geom[0]), o = nr.getPoints(this._geom[1]);
|
|
12056
12062
|
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))
|
|
12057
12063
|
return null;
|
|
12058
12064
|
t[0] = null, t[1] = null, this.computeMinDistancePoints(i, o, t), this.updateMinDistance(t, !1);
|
|
12059
12065
|
};
|
|
12060
|
-
|
|
12066
|
+
Vt.prototype.nearestLocations = function() {
|
|
12061
12067
|
return this.computeMinDistance(), this._minDistanceLocation;
|
|
12062
12068
|
};
|
|
12063
|
-
|
|
12069
|
+
Vt.prototype.updateMinDistance = function(t, e) {
|
|
12064
12070
|
if (t[0] === null)
|
|
12065
12071
|
return null;
|
|
12066
12072
|
e ? (this._minDistanceLocation[0] = t[1], this._minDistanceLocation[1] = t[0]) : (this._minDistanceLocation[0] = t[0], this._minDistanceLocation[1] = t[1]);
|
|
12067
12073
|
};
|
|
12068
|
-
|
|
12074
|
+
Vt.prototype.nearestPoints = function() {
|
|
12069
12075
|
this.computeMinDistance();
|
|
12070
12076
|
var t = [this._minDistanceLocation[0].getCoordinate(), this._minDistanceLocation[1].getCoordinate()];
|
|
12071
12077
|
return t;
|
|
12072
12078
|
};
|
|
12073
|
-
|
|
12079
|
+
Vt.prototype.computeMinDistance = function() {
|
|
12074
12080
|
var t = this;
|
|
12075
12081
|
if (arguments.length === 0) {
|
|
12076
12082
|
if (this._minDistanceLocation !== null || (this._minDistanceLocation = new Array(2).fill(null), this.computeContainmentDistance(), this._minDistance <= this._terminateDistance))
|
|
@@ -12109,7 +12115,7 @@ zt.prototype.computeMinDistance = function() {
|
|
|
12109
12115
|
}
|
|
12110
12116
|
}
|
|
12111
12117
|
};
|
|
12112
|
-
|
|
12118
|
+
Vt.prototype.computeMinDistancePoints = function(t, e, n) {
|
|
12113
12119
|
for (var i = this, o = 0; o < t.size(); o++)
|
|
12114
12120
|
for (var s = t.get(o), a = 0; a < e.size(); a++) {
|
|
12115
12121
|
var u = e.get(a), l = s.getCoordinate().distance(u.getCoordinate());
|
|
@@ -12117,12 +12123,12 @@ zt.prototype.computeMinDistancePoints = function(t, e, n) {
|
|
|
12117
12123
|
return null;
|
|
12118
12124
|
}
|
|
12119
12125
|
};
|
|
12120
|
-
|
|
12126
|
+
Vt.prototype.distance = function() {
|
|
12121
12127
|
if (this._geom[0] === null || this._geom[1] === null)
|
|
12122
12128
|
throw new ft("null geometries are not supported");
|
|
12123
12129
|
return this._geom[0].isEmpty() || this._geom[1].isEmpty() ? 0 : (this.computeMinDistance(), this._minDistance);
|
|
12124
12130
|
};
|
|
12125
|
-
|
|
12131
|
+
Vt.prototype.computeMinDistanceLines = function(t, e, n) {
|
|
12126
12132
|
for (var i = this, o = 0; o < t.size(); o++)
|
|
12127
12133
|
for (var s = t.get(o), a = 0; a < e.size(); a++) {
|
|
12128
12134
|
var u = e.get(a);
|
|
@@ -12130,22 +12136,22 @@ zt.prototype.computeMinDistanceLines = function(t, e, n) {
|
|
|
12130
12136
|
return null;
|
|
12131
12137
|
}
|
|
12132
12138
|
};
|
|
12133
|
-
|
|
12139
|
+
Vt.prototype.interfaces_ = function() {
|
|
12134
12140
|
return [];
|
|
12135
12141
|
};
|
|
12136
|
-
|
|
12137
|
-
return
|
|
12142
|
+
Vt.prototype.getClass = function() {
|
|
12143
|
+
return Vt;
|
|
12138
12144
|
};
|
|
12139
|
-
|
|
12140
|
-
var n = new
|
|
12145
|
+
Vt.distance = function(t, e) {
|
|
12146
|
+
var n = new Vt(t, e);
|
|
12141
12147
|
return n.distance();
|
|
12142
12148
|
};
|
|
12143
|
-
|
|
12144
|
-
var i = new
|
|
12149
|
+
Vt.isWithinDistance = function(t, e, n) {
|
|
12150
|
+
var i = new Vt(t, e, n);
|
|
12145
12151
|
return i.distance() <= n;
|
|
12146
12152
|
};
|
|
12147
|
-
|
|
12148
|
-
var n = new
|
|
12153
|
+
Vt.nearestPoints = function(t, e) {
|
|
12154
|
+
var n = new Vt(t, e);
|
|
12149
12155
|
return n.nearestPoints();
|
|
12150
12156
|
};
|
|
12151
12157
|
var Yt = function() {
|
|
@@ -12352,7 +12358,7 @@ fe.prototype.checkMaximumDistance = function(t, e, n) {
|
|
|
12352
12358
|
};
|
|
12353
12359
|
fe.prototype.isValid = function() {
|
|
12354
12360
|
var t = Math.abs(this._bufDistance), e = fe.MAX_DISTANCE_DIFF_FRAC * t;
|
|
12355
|
-
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 &&
|
|
12361
|
+
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);
|
|
12356
12362
|
};
|
|
12357
12363
|
fe.prototype.checkNegativeValid = function() {
|
|
12358
12364
|
if (!(this._input instanceof Rt || this._input instanceof Nn || this._input instanceof ne))
|
|
@@ -12366,7 +12372,7 @@ fe.prototype.getErrorIndicator = function() {
|
|
|
12366
12372
|
return this._errorIndicator;
|
|
12367
12373
|
};
|
|
12368
12374
|
fe.prototype.checkMinimumDistance = function(t, e, n) {
|
|
12369
|
-
var i = new
|
|
12375
|
+
var i = new Vt(t, e, n);
|
|
12370
12376
|
if (this._minDistanceFound = i.distance(), this._minDistanceFound < n) {
|
|
12371
12377
|
this._isValid = !1;
|
|
12372
12378
|
var o = i.nearestPoints();
|
|
@@ -12383,7 +12389,7 @@ fe.prototype.getErrorLocation = function() {
|
|
|
12383
12389
|
return this._errorLocation;
|
|
12384
12390
|
};
|
|
12385
12391
|
fe.prototype.getPolygonLines = function(t) {
|
|
12386
|
-
for (var e = new L(), n = new
|
|
12392
|
+
for (var e = new L(), n = new Bt(e), i = Yn.getPolygons(t), o = i.iterator(); o.hasNext(); ) {
|
|
12387
12393
|
var s = o.next();
|
|
12388
12394
|
s.apply(n);
|
|
12389
12395
|
}
|
|
@@ -12405,64 +12411,64 @@ Ys.MAX_DISTANCE_DIFF_FRAC.get = function() {
|
|
|
12405
12411
|
return 0.012;
|
|
12406
12412
|
};
|
|
12407
12413
|
Object.defineProperties(fe, Ys);
|
|
12408
|
-
var
|
|
12414
|
+
var Ut = function(t, e, n) {
|
|
12409
12415
|
this._isValid = !0, this._errorMsg = null, this._errorLocation = null, this._errorIndicator = null, this._input = t || null, this._distance = e || null, this._result = n || null;
|
|
12410
12416
|
}, Hs = { VERBOSE: { configurable: !0 }, MAX_ENV_DIFF_FRAC: { configurable: !0 } };
|
|
12411
|
-
|
|
12417
|
+
Ut.prototype.isValid = function() {
|
|
12412
12418
|
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;
|
|
12413
12419
|
};
|
|
12414
|
-
|
|
12420
|
+
Ut.prototype.checkEnvelope = function() {
|
|
12415
12421
|
if (this._distance < 0)
|
|
12416
12422
|
return null;
|
|
12417
|
-
var t = this._distance *
|
|
12423
|
+
var t = this._distance * Ut.MAX_ENV_DIFF_FRAC;
|
|
12418
12424
|
t === 0 && (t = 1e-3);
|
|
12419
12425
|
var e = new M(this._input.getEnvelopeInternal());
|
|
12420
12426
|
e.expandBy(this._distance);
|
|
12421
12427
|
var n = new M(this._result.getEnvelopeInternal());
|
|
12422
12428
|
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");
|
|
12423
12429
|
};
|
|
12424
|
-
|
|
12430
|
+
Ut.prototype.checkDistance = function() {
|
|
12425
12431
|
var t = new fe(this._input, this._distance, this._result);
|
|
12426
12432
|
t.isValid() || (this._isValid = !1, this._errorMsg = t.getErrorMessage(), this._errorLocation = t.getErrorLocation(), this._errorIndicator = t.getErrorIndicator()), this.report("Distance");
|
|
12427
12433
|
};
|
|
12428
|
-
|
|
12434
|
+
Ut.prototype.checkArea = function() {
|
|
12429
12435
|
var t = this._input.getArea(), e = this._result.getArea();
|
|
12430
12436
|
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");
|
|
12431
12437
|
};
|
|
12432
|
-
|
|
12438
|
+
Ut.prototype.checkPolygonal = function() {
|
|
12433
12439
|
this._result instanceof Rt || this._result instanceof Nn || (this._isValid = !1), this._errorMsg = "Result is not polygonal", this._errorIndicator = this._result, this.report("Polygonal");
|
|
12434
12440
|
};
|
|
12435
|
-
|
|
12441
|
+
Ut.prototype.getErrorIndicator = function() {
|
|
12436
12442
|
return this._errorIndicator;
|
|
12437
12443
|
};
|
|
12438
|
-
|
|
12444
|
+
Ut.prototype.getErrorLocation = function() {
|
|
12439
12445
|
return this._errorLocation;
|
|
12440
12446
|
};
|
|
12441
|
-
|
|
12447
|
+
Ut.prototype.checkExpectedEmpty = function() {
|
|
12442
12448
|
if (this._input.getDimension() >= 2 || this._distance > 0)
|
|
12443
12449
|
return null;
|
|
12444
12450
|
this._result.isEmpty() || (this._isValid = !1, this._errorMsg = "Result is non-empty", this._errorIndicator = this._result), this.report("ExpectedEmpty");
|
|
12445
12451
|
};
|
|
12446
|
-
|
|
12447
|
-
if (!
|
|
12452
|
+
Ut.prototype.report = function(t) {
|
|
12453
|
+
if (!Ut.VERBOSE)
|
|
12448
12454
|
return null;
|
|
12449
|
-
|
|
12455
|
+
zt.out.println("Check " + t + ": " + (this._isValid ? "passed" : "FAILED"));
|
|
12450
12456
|
};
|
|
12451
|
-
|
|
12457
|
+
Ut.prototype.getErrorMessage = function() {
|
|
12452
12458
|
return this._errorMsg;
|
|
12453
12459
|
};
|
|
12454
|
-
|
|
12460
|
+
Ut.prototype.interfaces_ = function() {
|
|
12455
12461
|
return [];
|
|
12456
12462
|
};
|
|
12457
|
-
|
|
12458
|
-
return
|
|
12463
|
+
Ut.prototype.getClass = function() {
|
|
12464
|
+
return Ut;
|
|
12459
12465
|
};
|
|
12460
|
-
|
|
12461
|
-
var i = new
|
|
12466
|
+
Ut.isValidMsg = function(t, e, n) {
|
|
12467
|
+
var i = new Ut(t, e, n);
|
|
12462
12468
|
return i.isValid() ? null : i.getErrorMessage();
|
|
12463
12469
|
};
|
|
12464
|
-
|
|
12465
|
-
var i = new
|
|
12470
|
+
Ut.isValid = function(t, e, n) {
|
|
12471
|
+
var i = new Ut(t, e, n);
|
|
12466
12472
|
return !!i.isValid();
|
|
12467
12473
|
};
|
|
12468
12474
|
Hs.VERBOSE.get = function() {
|
|
@@ -12471,7 +12477,7 @@ Hs.VERBOSE.get = function() {
|
|
|
12471
12477
|
Hs.MAX_ENV_DIFF_FRAC.get = function() {
|
|
12472
12478
|
return 0.012;
|
|
12473
12479
|
};
|
|
12474
|
-
Object.defineProperties(
|
|
12480
|
+
Object.defineProperties(Ut, Hs);
|
|
12475
12481
|
var dn = function() {
|
|
12476
12482
|
this._pts = null, this._data = null;
|
|
12477
12483
|
var t = arguments[0], e = arguments[1];
|
|
@@ -12813,7 +12819,7 @@ ce.prototype.transformGeometryCollection = function(t, e) {
|
|
|
12813
12819
|
ce.prototype.transform = function(t) {
|
|
12814
12820
|
if (this._inputGeom = t, this._factory = t.getFactory(), t instanceof he)
|
|
12815
12821
|
return this.transformPoint(t, null);
|
|
12816
|
-
if (t instanceof
|
|
12822
|
+
if (t instanceof _i)
|
|
12817
12823
|
return this.transformMultiPoint(t, null);
|
|
12818
12824
|
if (t instanceof wn)
|
|
12819
12825
|
return this.transformLinearRing(t, null);
|
|
@@ -12867,7 +12873,7 @@ On.prototype.findSnapForVertex = function(t, e) {
|
|
|
12867
12873
|
return null;
|
|
12868
12874
|
};
|
|
12869
12875
|
On.prototype.snapTo = function(t) {
|
|
12870
|
-
var e = new
|
|
12876
|
+
var e = new po(this._srcPts);
|
|
12871
12877
|
this.snapVertices(e, t), this.snapSegments(e, t);
|
|
12872
12878
|
var n = e.toCoordinateArray();
|
|
12873
12879
|
return n;
|
|
@@ -13122,7 +13128,7 @@ Tt.prototype.getResultGeometry = function(t) {
|
|
|
13122
13128
|
return this.prepareResult(n);
|
|
13123
13129
|
};
|
|
13124
13130
|
Tt.prototype.checkValid = function(t) {
|
|
13125
|
-
t.isValid() ||
|
|
13131
|
+
t.isValid() || zt.out.println("Snapped geometry is invalid");
|
|
13126
13132
|
};
|
|
13127
13133
|
Tt.prototype.computeSnapTolerance = function() {
|
|
13128
13134
|
this._snapTolerance = _t.computeOverlaySnapTolerance(this._geom[0], this._geom[1]);
|
|
@@ -13200,19 +13206,19 @@ oe.symDifference = function(t, e) {
|
|
|
13200
13206
|
oe.difference = function(t, e) {
|
|
13201
13207
|
return oe.overlayOp(t, e, U.DIFFERENCE);
|
|
13202
13208
|
};
|
|
13203
|
-
var
|
|
13209
|
+
var lo = function() {
|
|
13204
13210
|
this.mce = null, this.chainIndex = null;
|
|
13205
13211
|
var t = arguments[0], e = arguments[1];
|
|
13206
13212
|
this.mce = t, this.chainIndex = e;
|
|
13207
13213
|
};
|
|
13208
|
-
|
|
13214
|
+
lo.prototype.computeIntersections = function(t, e) {
|
|
13209
13215
|
this.mce.computeIntersectsForChain(this.chainIndex, t.mce, t.chainIndex, e);
|
|
13210
13216
|
};
|
|
13211
|
-
|
|
13217
|
+
lo.prototype.interfaces_ = function() {
|
|
13212
13218
|
return [];
|
|
13213
13219
|
};
|
|
13214
|
-
|
|
13215
|
-
return
|
|
13220
|
+
lo.prototype.getClass = function() {
|
|
13221
|
+
return lo;
|
|
13216
13222
|
};
|
|
13217
13223
|
var de = function r() {
|
|
13218
13224
|
if (this._label = null, this._xValue = null, this._eventType = null, this._insertEvent = null, this._deleteEventIndex = null, this._obj = null, arguments.length === 2) {
|
|
@@ -13269,14 +13275,14 @@ zo.prototype.interfaces_ = function() {
|
|
|
13269
13275
|
zo.prototype.getClass = function() {
|
|
13270
13276
|
return zo;
|
|
13271
13277
|
};
|
|
13272
|
-
var
|
|
13278
|
+
var qt = function() {
|
|
13273
13279
|
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;
|
|
13274
13280
|
var t = arguments[0], e = arguments[1], n = arguments[2];
|
|
13275
13281
|
this._li = t, this._includeProper = e, this._recordIsolated = n;
|
|
13276
13282
|
};
|
|
13277
|
-
|
|
13283
|
+
qt.prototype.isTrivialIntersection = function(t, e, n, i) {
|
|
13278
13284
|
if (t === n && this._li.getIntersectionNum() === 1) {
|
|
13279
|
-
if (
|
|
13285
|
+
if (qt.isAdjacentSegments(e, i))
|
|
13280
13286
|
return !0;
|
|
13281
13287
|
if (t.isClosed()) {
|
|
13282
13288
|
var o = t.getNumPoints() - 1;
|
|
@@ -13286,16 +13292,16 @@ Ut.prototype.isTrivialIntersection = function(t, e, n, i) {
|
|
|
13286
13292
|
}
|
|
13287
13293
|
return !1;
|
|
13288
13294
|
};
|
|
13289
|
-
|
|
13295
|
+
qt.prototype.getProperIntersectionPoint = function() {
|
|
13290
13296
|
return this._properIntersectionPoint;
|
|
13291
13297
|
};
|
|
13292
|
-
|
|
13298
|
+
qt.prototype.setIsDoneIfProperInt = function(t) {
|
|
13293
13299
|
this._isDoneWhenProperInt = t;
|
|
13294
13300
|
};
|
|
13295
|
-
|
|
13301
|
+
qt.prototype.hasProperInteriorIntersection = function() {
|
|
13296
13302
|
return this._hasProperInterior;
|
|
13297
13303
|
};
|
|
13298
|
-
|
|
13304
|
+
qt.prototype.isBoundaryPointInternal = function(t, e) {
|
|
13299
13305
|
for (var n = e.iterator(); n.hasNext(); ) {
|
|
13300
13306
|
var i = n.next(), o = i.getCoordinate();
|
|
13301
13307
|
if (t.isIntersection(o))
|
|
@@ -13303,35 +13309,35 @@ Ut.prototype.isBoundaryPointInternal = function(t, e) {
|
|
|
13303
13309
|
}
|
|
13304
13310
|
return !1;
|
|
13305
13311
|
};
|
|
13306
|
-
|
|
13312
|
+
qt.prototype.hasProperIntersection = function() {
|
|
13307
13313
|
return this._hasProper;
|
|
13308
13314
|
};
|
|
13309
|
-
|
|
13315
|
+
qt.prototype.hasIntersection = function() {
|
|
13310
13316
|
return this._hasIntersection;
|
|
13311
13317
|
};
|
|
13312
|
-
|
|
13318
|
+
qt.prototype.isDone = function() {
|
|
13313
13319
|
return this._isDone;
|
|
13314
13320
|
};
|
|
13315
|
-
|
|
13321
|
+
qt.prototype.isBoundaryPoint = function(t, e) {
|
|
13316
13322
|
return e === null ? !1 : !!(this.isBoundaryPointInternal(t, e[0]) || this.isBoundaryPointInternal(t, e[1]));
|
|
13317
13323
|
};
|
|
13318
|
-
|
|
13324
|
+
qt.prototype.setBoundaryNodes = function(t, e) {
|
|
13319
13325
|
this._bdyNodes = new Array(2).fill(null), this._bdyNodes[0] = t, this._bdyNodes[1] = e;
|
|
13320
13326
|
};
|
|
13321
|
-
|
|
13327
|
+
qt.prototype.addIntersections = function(t, e, n, i) {
|
|
13322
13328
|
if (t === n && e === i)
|
|
13323
13329
|
return null;
|
|
13324
13330
|
this.numTests++;
|
|
13325
13331
|
var o = t.getCoordinates()[e], s = t.getCoordinates()[e + 1], a = n.getCoordinates()[i], u = n.getCoordinates()[i + 1];
|
|
13326
13332
|
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))));
|
|
13327
13333
|
};
|
|
13328
|
-
|
|
13334
|
+
qt.prototype.interfaces_ = function() {
|
|
13329
13335
|
return [];
|
|
13330
13336
|
};
|
|
13331
|
-
|
|
13332
|
-
return
|
|
13337
|
+
qt.prototype.getClass = function() {
|
|
13338
|
+
return qt;
|
|
13333
13339
|
};
|
|
13334
|
-
|
|
13340
|
+
qt.isAdjacentSegments = function(t, e) {
|
|
13335
13341
|
return Math.abs(t - e) === 1;
|
|
13336
13342
|
};
|
|
13337
13343
|
var Lc = function(r) {
|
|
@@ -13356,17 +13362,17 @@ var Lc = function(r) {
|
|
|
13356
13362
|
break;
|
|
13357
13363
|
}
|
|
13358
13364
|
} else if (arguments.length === 3) {
|
|
13359
|
-
if (arguments[2] instanceof
|
|
13365
|
+
if (arguments[2] instanceof qt && z(arguments[0], Ve) && z(arguments[1], Ve)) {
|
|
13360
13366
|
var a = arguments[0], u = arguments[1], l = arguments[2];
|
|
13361
13367
|
this.addEdges(a, a), this.addEdges(u, u), this.computeIntersections(l);
|
|
13362
|
-
} else if (typeof arguments[2] == "boolean" && z(arguments[0], Ve) && arguments[1] instanceof
|
|
13368
|
+
} else if (typeof arguments[2] == "boolean" && z(arguments[0], Ve) && arguments[1] instanceof qt) {
|
|
13363
13369
|
var c = arguments[0], f = arguments[1], h = arguments[2];
|
|
13364
13370
|
h ? this.addEdges(c, null) : this.addEdges(c), this.computeIntersections(f);
|
|
13365
13371
|
}
|
|
13366
13372
|
}
|
|
13367
13373
|
}, t.prototype.addEdge = function(n, i) {
|
|
13368
13374
|
for (var o = this, s = n.getMonotoneChainEdge(), a = s.getStartIndexes(), u = 0; u < a.length - 1; u++) {
|
|
13369
|
-
var l = new
|
|
13375
|
+
var l = new lo(s, u), c = new de(i, s.getMinX(u), l);
|
|
13370
13376
|
o.events.add(c), o.events.add(new de(s.getMaxX(u), c));
|
|
13371
13377
|
}
|
|
13372
13378
|
}, t.prototype.processOverlaps = function(n, i, o, s) {
|
|
@@ -13416,20 +13422,20 @@ Dn.prototype.getClass = function() {
|
|
|
13416
13422
|
return Dn;
|
|
13417
13423
|
};
|
|
13418
13424
|
wu.NodeComparator.get = function() {
|
|
13419
|
-
return
|
|
13425
|
+
return co;
|
|
13420
13426
|
};
|
|
13421
13427
|
Object.defineProperties(Dn, wu);
|
|
13422
|
-
var
|
|
13428
|
+
var co = function() {
|
|
13423
13429
|
};
|
|
13424
|
-
|
|
13430
|
+
co.prototype.compare = function(t, e) {
|
|
13425
13431
|
var n = t, i = e, o = (n._min + n._max) / 2, s = (i._min + i._max) / 2;
|
|
13426
13432
|
return o < s ? -1 : o > s ? 1 : 0;
|
|
13427
13433
|
};
|
|
13428
|
-
|
|
13429
|
-
return [
|
|
13434
|
+
co.prototype.interfaces_ = function() {
|
|
13435
|
+
return [hi];
|
|
13430
13436
|
};
|
|
13431
|
-
|
|
13432
|
-
return
|
|
13437
|
+
co.prototype.getClass = function() {
|
|
13438
|
+
return co;
|
|
13433
13439
|
};
|
|
13434
13440
|
var bc = function(r) {
|
|
13435
13441
|
function t() {
|
|
@@ -13489,7 +13495,7 @@ Tn.prototype.buildRoot = function() {
|
|
|
13489
13495
|
this._root = this.buildTree();
|
|
13490
13496
|
};
|
|
13491
13497
|
Tn.prototype.printNode = function(t) {
|
|
13492
|
-
|
|
13498
|
+
zt.out.println(Ue.toLineString(new v(t._min, this._level), new v(t._max, this._level)));
|
|
13493
13499
|
};
|
|
13494
13500
|
Tn.prototype.init = function() {
|
|
13495
13501
|
if (this._root !== null)
|
|
@@ -13514,59 +13520,59 @@ Tn.prototype.interfaces_ = function() {
|
|
|
13514
13520
|
Tn.prototype.getClass = function() {
|
|
13515
13521
|
return Tn;
|
|
13516
13522
|
};
|
|
13517
|
-
var
|
|
13523
|
+
var Si = function() {
|
|
13518
13524
|
this._items = new L();
|
|
13519
13525
|
};
|
|
13520
|
-
|
|
13526
|
+
Si.prototype.visitItem = function(t) {
|
|
13521
13527
|
this._items.add(t);
|
|
13522
13528
|
};
|
|
13523
|
-
|
|
13529
|
+
Si.prototype.getItems = function() {
|
|
13524
13530
|
return this._items;
|
|
13525
13531
|
};
|
|
13526
|
-
|
|
13532
|
+
Si.prototype.interfaces_ = function() {
|
|
13527
13533
|
return [or];
|
|
13528
13534
|
};
|
|
13529
|
-
|
|
13530
|
-
return
|
|
13535
|
+
Si.prototype.getClass = function() {
|
|
13536
|
+
return Si;
|
|
13531
13537
|
};
|
|
13532
|
-
var
|
|
13538
|
+
var wi = function() {
|
|
13533
13539
|
this._index = null;
|
|
13534
13540
|
var t = arguments[0];
|
|
13535
13541
|
if (!z(t, ir))
|
|
13536
13542
|
throw new ft("Argument must be Polygonal");
|
|
13537
13543
|
this._index = new Rr(t);
|
|
13538
13544
|
}, Ks = { SegmentVisitor: { configurable: !0 }, IntervalIndexedGeometry: { configurable: !0 } };
|
|
13539
|
-
|
|
13540
|
-
var e = new on(t), n = new
|
|
13545
|
+
wi.prototype.locate = function(t) {
|
|
13546
|
+
var e = new on(t), n = new Li(e);
|
|
13541
13547
|
return this._index.query(t.y, t.y, n), e.getLocation();
|
|
13542
13548
|
};
|
|
13543
|
-
|
|
13544
|
-
return [
|
|
13549
|
+
wi.prototype.interfaces_ = function() {
|
|
13550
|
+
return [Ni];
|
|
13545
13551
|
};
|
|
13546
|
-
|
|
13547
|
-
return
|
|
13552
|
+
wi.prototype.getClass = function() {
|
|
13553
|
+
return wi;
|
|
13548
13554
|
};
|
|
13549
13555
|
Ks.SegmentVisitor.get = function() {
|
|
13550
|
-
return
|
|
13556
|
+
return Li;
|
|
13551
13557
|
};
|
|
13552
13558
|
Ks.IntervalIndexedGeometry.get = function() {
|
|
13553
13559
|
return Rr;
|
|
13554
13560
|
};
|
|
13555
|
-
Object.defineProperties(
|
|
13556
|
-
var
|
|
13561
|
+
Object.defineProperties(wi, Ks);
|
|
13562
|
+
var Li = function() {
|
|
13557
13563
|
this._counter = null;
|
|
13558
13564
|
var t = arguments[0];
|
|
13559
13565
|
this._counter = t;
|
|
13560
13566
|
};
|
|
13561
|
-
|
|
13567
|
+
Li.prototype.visitItem = function(t) {
|
|
13562
13568
|
var e = t;
|
|
13563
13569
|
this._counter.countSegment(e.getCoordinate(0), e.getCoordinate(1));
|
|
13564
13570
|
};
|
|
13565
|
-
|
|
13571
|
+
Li.prototype.interfaces_ = function() {
|
|
13566
13572
|
return [or];
|
|
13567
13573
|
};
|
|
13568
|
-
|
|
13569
|
-
return
|
|
13574
|
+
Li.prototype.getClass = function() {
|
|
13575
|
+
return Li;
|
|
13570
13576
|
};
|
|
13571
13577
|
var Rr = function() {
|
|
13572
13578
|
this._index = new Tn();
|
|
@@ -13574,7 +13580,7 @@ var Rr = function() {
|
|
|
13574
13580
|
this.init(t);
|
|
13575
13581
|
};
|
|
13576
13582
|
Rr.prototype.init = function(t) {
|
|
13577
|
-
for (var e = this, n =
|
|
13583
|
+
for (var e = this, n = Bt.getLines(t), i = n.iterator(); i.hasNext(); ) {
|
|
13578
13584
|
var o = i.next(), s = o.getCoordinates();
|
|
13579
13585
|
e.addLine(s);
|
|
13580
13586
|
}
|
|
@@ -13587,7 +13593,7 @@ Rr.prototype.addLine = function(t) {
|
|
|
13587
13593
|
};
|
|
13588
13594
|
Rr.prototype.query = function() {
|
|
13589
13595
|
if (arguments.length === 2) {
|
|
13590
|
-
var t = arguments[0], e = arguments[1], n = new
|
|
13596
|
+
var t = arguments[0], e = arguments[1], n = new Si();
|
|
13591
13597
|
return this._index.query(t, e, n), n.getItems();
|
|
13592
13598
|
} else if (arguments.length === 3) {
|
|
13593
13599
|
var i = arguments[0], o = arguments[1], s = arguments[2];
|
|
@@ -13600,7 +13606,7 @@ Rr.prototype.interfaces_ = function() {
|
|
|
13600
13606
|
Rr.prototype.getClass = function() {
|
|
13601
13607
|
return Rr;
|
|
13602
13608
|
};
|
|
13603
|
-
var
|
|
13609
|
+
var qi = function(r) {
|
|
13604
13610
|
function t() {
|
|
13605
13611
|
if (r.call(this), this._parentGeom = null, this._lineEdgeMap = new lu(), this._boundaryNodeRule = null, this._useBoundaryDeterminationRule = !0, this._argIndex = null, this._boundaryNodes = null, this._hasTooFewPoints = !1, this._invalidPoint = null, this._areaPtLocator = null, this._ptLocator = new We(), arguments.length === 2) {
|
|
13606
13612
|
var e = arguments[0], n = arguments[1], i = De.OGC_SFS_BOUNDARY_RULE;
|
|
@@ -13620,7 +13626,7 @@ var Vi = function(r) {
|
|
|
13620
13626
|
var n = arguments[0], i = arguments[1];
|
|
13621
13627
|
return this.computeSelfNodes(n, i, !1);
|
|
13622
13628
|
} else if (arguments.length === 3) {
|
|
13623
|
-
var o = arguments[0], s = arguments[1], a = arguments[2], u = new
|
|
13629
|
+
var o = arguments[0], s = arguments[1], a = arguments[2], u = new qt(o, !0, !1);
|
|
13624
13630
|
u.setIsDoneIfProperInt(a);
|
|
13625
13631
|
var l = this.createEdgeSetIntersector(), c = this._parentGeom instanceof wn || this._parentGeom instanceof Rt || this._parentGeom instanceof Nn, f = s || !c;
|
|
13626
13632
|
return l.computeIntersections(this._edges, u, f), this.addSelfIntersectionNodes(this._argIndex), u;
|
|
@@ -13631,7 +13637,7 @@ var Vi = function(r) {
|
|
|
13631
13637
|
o.eiList.addSplitEdges(n);
|
|
13632
13638
|
}
|
|
13633
13639
|
}, t.prototype.computeEdgeIntersections = function(n, i, o) {
|
|
13634
|
-
var s = new
|
|
13640
|
+
var s = new qt(i, o, !0);
|
|
13635
13641
|
s.setBoundaryNodes(this.getBoundaryNodes(), n.getBoundaryNodes());
|
|
13636
13642
|
var a = this.createEdgeSetIntersector();
|
|
13637
13643
|
return a.computeIntersections(this._edges, n._edges, s), s;
|
|
@@ -13712,7 +13718,7 @@ var Vi = function(r) {
|
|
|
13712
13718
|
this.addLineString(n);
|
|
13713
13719
|
else if (n instanceof he)
|
|
13714
13720
|
this.addPoint(n);
|
|
13715
|
-
else if (n instanceof
|
|
13721
|
+
else if (n instanceof _i)
|
|
13716
13722
|
this.addCollection(n);
|
|
13717
13723
|
else if (n instanceof Nr)
|
|
13718
13724
|
this.addCollection(n);
|
|
@@ -13730,7 +13736,7 @@ var Vi = function(r) {
|
|
|
13730
13736
|
i.add(s);
|
|
13731
13737
|
}
|
|
13732
13738
|
}, t.prototype.locate = function(n) {
|
|
13733
|
-
return z(this._parentGeom, ir) && this._parentGeom.getNumGeometries() > 50 ? (this._areaPtLocator === null && (this._areaPtLocator = new
|
|
13739
|
+
return z(this._parentGeom, ir) && this._parentGeom.getNumGeometries() > 50 ? (this._areaPtLocator === null && (this._areaPtLocator = new wi(this._parentGeom)), this._areaPtLocator.locate(n)) : this._ptLocator.locate(n, this._parentGeom);
|
|
13734
13740
|
}, t.prototype.findEdge = function() {
|
|
13735
13741
|
if (arguments.length === 1) {
|
|
13736
13742
|
var n = arguments[0];
|
|
@@ -13744,29 +13750,29 @@ var Vi = function(r) {
|
|
|
13744
13750
|
}, t.determineBoundary = function(n, i) {
|
|
13745
13751
|
return n.isInBoundary(i) ? _.BOUNDARY : _.INTERIOR;
|
|
13746
13752
|
}, t;
|
|
13747
|
-
}(gt),
|
|
13753
|
+
}(gt), bi = function() {
|
|
13748
13754
|
if (this._li = new Tr(), this._resultPrecisionModel = null, this._arg = null, arguments.length === 1) {
|
|
13749
13755
|
var t = arguments[0];
|
|
13750
|
-
this.setComputationPrecision(t.getPrecisionModel()), this._arg = new Array(1).fill(null), this._arg[0] = new
|
|
13756
|
+
this.setComputationPrecision(t.getPrecisionModel()), this._arg = new Array(1).fill(null), this._arg[0] = new qi(0, t);
|
|
13751
13757
|
} else if (arguments.length === 2) {
|
|
13752
13758
|
var e = arguments[0], n = arguments[1], i = De.OGC_SFS_BOUNDARY_RULE;
|
|
13753
|
-
e.getPrecisionModel().compareTo(n.getPrecisionModel()) >= 0 ? this.setComputationPrecision(e.getPrecisionModel()) : this.setComputationPrecision(n.getPrecisionModel()), this._arg = new Array(2).fill(null), this._arg[0] = new
|
|
13759
|
+
e.getPrecisionModel().compareTo(n.getPrecisionModel()) >= 0 ? this.setComputationPrecision(e.getPrecisionModel()) : this.setComputationPrecision(n.getPrecisionModel()), this._arg = new Array(2).fill(null), this._arg[0] = new qi(0, e, i), this._arg[1] = new qi(1, n, i);
|
|
13754
13760
|
} else if (arguments.length === 3) {
|
|
13755
13761
|
var o = arguments[0], s = arguments[1], a = arguments[2];
|
|
13756
|
-
o.getPrecisionModel().compareTo(s.getPrecisionModel()) >= 0 ? this.setComputationPrecision(o.getPrecisionModel()) : this.setComputationPrecision(s.getPrecisionModel()), this._arg = new Array(2).fill(null), this._arg[0] = new
|
|
13762
|
+
o.getPrecisionModel().compareTo(s.getPrecisionModel()) >= 0 ? this.setComputationPrecision(o.getPrecisionModel()) : this.setComputationPrecision(s.getPrecisionModel()), this._arg = new Array(2).fill(null), this._arg[0] = new qi(0, o, a), this._arg[1] = new qi(1, s, a);
|
|
13757
13763
|
}
|
|
13758
13764
|
};
|
|
13759
|
-
|
|
13765
|
+
bi.prototype.getArgGeometry = function(t) {
|
|
13760
13766
|
return this._arg[t].getGeometry();
|
|
13761
13767
|
};
|
|
13762
|
-
|
|
13768
|
+
bi.prototype.setComputationPrecision = function(t) {
|
|
13763
13769
|
this._resultPrecisionModel = t, this._li.setPrecisionModel(this._resultPrecisionModel);
|
|
13764
13770
|
};
|
|
13765
|
-
|
|
13771
|
+
bi.prototype.interfaces_ = function() {
|
|
13766
13772
|
return [];
|
|
13767
13773
|
};
|
|
13768
|
-
|
|
13769
|
-
return
|
|
13774
|
+
bi.prototype.getClass = function() {
|
|
13775
|
+
return bi;
|
|
13770
13776
|
};
|
|
13771
13777
|
var Er = function() {
|
|
13772
13778
|
};
|
|
@@ -13899,7 +13905,7 @@ var U = function(r) {
|
|
|
13899
13905
|
}, t.prototype.getClass = function() {
|
|
13900
13906
|
return t;
|
|
13901
13907
|
}, t;
|
|
13902
|
-
}(
|
|
13908
|
+
}(bi);
|
|
13903
13909
|
U.overlayOp = function(r, t, e) {
|
|
13904
13910
|
var n = new U(r, t), i = n.getResultGeometry(e);
|
|
13905
13911
|
return i;
|
|
@@ -14012,7 +14018,7 @@ rr.prototype.getLocation = function(t) {
|
|
|
14012
14018
|
return this.isWithinToleranceOfBoundary(t) ? _.BOUNDARY : this._ptLocator.locate(t, this._g);
|
|
14013
14019
|
};
|
|
14014
14020
|
rr.prototype.extractLinework = function(t) {
|
|
14015
|
-
var e = new
|
|
14021
|
+
var e = new Pi();
|
|
14016
14022
|
t.apply(e);
|
|
14017
14023
|
var n = e.getLinework(), i = H.toLineStringArray(n);
|
|
14018
14024
|
return t.getFactory().createMultiLineString(i);
|
|
@@ -14023,13 +14029,13 @@ rr.prototype.interfaces_ = function() {
|
|
|
14023
14029
|
rr.prototype.getClass = function() {
|
|
14024
14030
|
return rr;
|
|
14025
14031
|
};
|
|
14026
|
-
var
|
|
14032
|
+
var Pi = function() {
|
|
14027
14033
|
this._linework = null, this._linework = new L();
|
|
14028
14034
|
};
|
|
14029
|
-
|
|
14035
|
+
Pi.prototype.getLinework = function() {
|
|
14030
14036
|
return this._linework;
|
|
14031
14037
|
};
|
|
14032
|
-
|
|
14038
|
+
Pi.prototype.filter = function(t) {
|
|
14033
14039
|
var e = this;
|
|
14034
14040
|
if (t instanceof Rt) {
|
|
14035
14041
|
var n = t;
|
|
@@ -14038,11 +14044,11 @@ Li.prototype.filter = function(t) {
|
|
|
14038
14044
|
e._linework.add(n.getInteriorRingN(i));
|
|
14039
14045
|
}
|
|
14040
14046
|
};
|
|
14041
|
-
|
|
14047
|
+
Pi.prototype.interfaces_ = function() {
|
|
14042
14048
|
return [ln];
|
|
14043
14049
|
};
|
|
14044
|
-
|
|
14045
|
-
return
|
|
14050
|
+
Pi.prototype.getClass = function() {
|
|
14051
|
+
return Pi;
|
|
14046
14052
|
};
|
|
14047
14053
|
var Or = function() {
|
|
14048
14054
|
this._g = null, this._doLeft = !0, this._doRight = !0;
|
|
@@ -14057,7 +14063,7 @@ Or.prototype.setSidesToGenerate = function(t, e) {
|
|
|
14057
14063
|
this._doLeft = t, this._doRight = e;
|
|
14058
14064
|
};
|
|
14059
14065
|
Or.prototype.getPoints = function(t) {
|
|
14060
|
-
for (var e = this, n = new L(), i =
|
|
14066
|
+
for (var e = this, n = new L(), i = Bt.getLines(this._g), o = i.iterator(); o.hasNext(); ) {
|
|
14061
14067
|
var s = o.next();
|
|
14062
14068
|
e.extractPoints(s, t, n);
|
|
14063
14069
|
}
|
|
@@ -14086,7 +14092,7 @@ var Se = function r() {
|
|
|
14086
14092
|
this._boundaryDistanceTolerance = r.computeBoundaryDistanceTolerance(t, e), this._geom = [t, e, n], this._locFinder = [new rr(this._geom[0], this._boundaryDistanceTolerance), new rr(this._geom[1], this._boundaryDistanceTolerance), new rr(this._geom[2], this._boundaryDistanceTolerance)];
|
|
14087
14093
|
}, Lu = { TOLERANCE: { configurable: !0 } };
|
|
14088
14094
|
Se.prototype.reportResult = function(t, e, n) {
|
|
14089
|
-
|
|
14095
|
+
zt.out.println("Overlay result invalid - A:" + _.toLocationSymbol(e[0]) + " B:" + _.toLocationSymbol(e[1]) + " expected:" + (n ? "i" : "e") + " actual:" + _.toLocationSymbol(e[2]));
|
|
14090
14096
|
};
|
|
14091
14097
|
Se.prototype.isValid = function(t) {
|
|
14092
14098
|
this.addTestPts(this._geom[0]), this.addTestPts(this._geom[1]);
|
|
@@ -14348,14 +14354,14 @@ function Sa(r, t, e) {
|
|
|
14348
14354
|
var n = r.s = t + e, i = n - t, o = n - i;
|
|
14349
14355
|
r.t = t - o + (e - i);
|
|
14350
14356
|
}
|
|
14351
|
-
var pt = 1e-6, ot = Math.PI, Xn = ot / 2, wa = ot / 4, Jn = ot * 2, vr = 180 / ot, tn = ot / 180, te = Math.abs, Rc = Math.atan,
|
|
14357
|
+
var pt = 1e-6, ot = Math.PI, Xn = ot / 2, wa = ot / 4, Jn = ot * 2, vr = 180 / ot, tn = ot / 180, te = Math.abs, Rc = Math.atan, Ri = Math.atan2, Lt = Math.cos, bt = Math.sin, zi = Math.sqrt;
|
|
14352
14358
|
function Pu(r) {
|
|
14353
14359
|
return r > 1 ? 0 : r < -1 ? ot : Math.acos(r);
|
|
14354
14360
|
}
|
|
14355
14361
|
function ti(r) {
|
|
14356
14362
|
return r > 1 ? Xn : r < -1 ? -Xn : Math.asin(r);
|
|
14357
14363
|
}
|
|
14358
|
-
function
|
|
14364
|
+
function Xi() {
|
|
14359
14365
|
}
|
|
14360
14366
|
function qo(r, t) {
|
|
14361
14367
|
r && ba.hasOwnProperty(r.type) && ba[r.type](r, t);
|
|
@@ -14416,9 +14422,9 @@ function Oc(r, t) {
|
|
|
14416
14422
|
Mr();
|
|
14417
14423
|
Mr();
|
|
14418
14424
|
function Ps(r) {
|
|
14419
|
-
return [
|
|
14425
|
+
return [Ri(r[1], r[0]), ti(r[2])];
|
|
14420
14426
|
}
|
|
14421
|
-
function
|
|
14427
|
+
function Oi(r) {
|
|
14422
14428
|
var t = r[0], e = r[1], n = Lt(e);
|
|
14423
14429
|
return [n * Lt(t), n * bt(t), bt(e)];
|
|
14424
14430
|
}
|
|
@@ -14435,7 +14441,7 @@ function So(r, t) {
|
|
|
14435
14441
|
return [r[0] * t, r[1] * t, r[2] * t];
|
|
14436
14442
|
}
|
|
14437
14443
|
function Rs(r) {
|
|
14438
|
-
var t =
|
|
14444
|
+
var t = zi(r[0] * r[0] + r[1] * r[1] + r[2] * r[2]);
|
|
14439
14445
|
r[0] /= t, r[1] /= t, r[2] /= t;
|
|
14440
14446
|
}
|
|
14441
14447
|
Mr();
|
|
@@ -14468,14 +14474,14 @@ function Da(r, t) {
|
|
|
14468
14474
|
function s(a, u) {
|
|
14469
14475
|
var l = Lt(u), c = Lt(a) * l, f = bt(a) * l, h = bt(u), g = h * e + c * n;
|
|
14470
14476
|
return [
|
|
14471
|
-
|
|
14477
|
+
Ri(f * i - g * o, c * e - h * n),
|
|
14472
14478
|
ti(g * i + f * o)
|
|
14473
14479
|
];
|
|
14474
14480
|
}
|
|
14475
14481
|
return s.invert = function(a, u) {
|
|
14476
14482
|
var l = Lt(u), c = Lt(a) * l, f = bt(a) * l, h = bt(u), g = h * i - f * o;
|
|
14477
14483
|
return [
|
|
14478
|
-
|
|
14484
|
+
Ri(f * i + h * o, c * e + g * n),
|
|
14479
14485
|
ti(g * e - c * n)
|
|
14480
14486
|
];
|
|
14481
14487
|
}, s;
|
|
@@ -14489,7 +14495,7 @@ function Tc(r, t, e, n, i, o) {
|
|
|
14489
14495
|
}
|
|
14490
14496
|
}
|
|
14491
14497
|
function Ta(r, t) {
|
|
14492
|
-
t =
|
|
14498
|
+
t = Oi(t), t[0] -= r, Rs(t);
|
|
14493
14499
|
var e = Pu(-t[1]);
|
|
14494
14500
|
return ((-t[2] < 0 ? -e : e) + Jn - pt) % Jn;
|
|
14495
14501
|
}
|
|
@@ -14502,7 +14508,7 @@ function Ou() {
|
|
|
14502
14508
|
lineStart: function() {
|
|
14503
14509
|
r.push(t = []);
|
|
14504
14510
|
},
|
|
14505
|
-
lineEnd:
|
|
14511
|
+
lineEnd: Xi,
|
|
14506
14512
|
rejoin: function() {
|
|
14507
14513
|
r.length > 1 && r.push(r.pop().concat(r.shift()));
|
|
14508
14514
|
},
|
|
@@ -14651,7 +14657,7 @@ function Mu(r) {
|
|
|
14651
14657
|
o[--i] = s[e];
|
|
14652
14658
|
return o;
|
|
14653
14659
|
}
|
|
14654
|
-
var
|
|
14660
|
+
var Yi = 1e9, Lo = -Yi;
|
|
14655
14661
|
function Bc(r, t, e, n) {
|
|
14656
14662
|
function i(l, c) {
|
|
14657
14663
|
return r <= l && l <= e && t <= c && c <= n;
|
|
@@ -14688,8 +14694,8 @@ function Bc(r, t, e, n) {
|
|
|
14688
14694
|
}
|
|
14689
14695
|
function F() {
|
|
14690
14696
|
for (var X = 0, ut = 0, yt = g.length; ut < yt; ++ut)
|
|
14691
|
-
for (var
|
|
14692
|
-
Le = Mt, J = it, Ze =
|
|
14697
|
+
for (var Xt = g[ut], we = 1, Ar = Xt.length, Ze = Xt[0], Le, J, Mt = Ze[0], it = Ze[1]; we < Ar; ++we)
|
|
14698
|
+
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;
|
|
14693
14699
|
return X;
|
|
14694
14700
|
}
|
|
14695
14701
|
function j() {
|
|
@@ -14712,8 +14718,8 @@ function Bc(r, t, e, n) {
|
|
|
14712
14718
|
else if (yt && x)
|
|
14713
14719
|
c.point(X, ut);
|
|
14714
14720
|
else {
|
|
14715
|
-
var
|
|
14716
|
-
Mc(
|
|
14721
|
+
var Xt = [I = Math.max(Lo, Math.min(Yi, I)), C = Math.max(Lo, Math.min(Yi, C))], we = [X = Math.max(Lo, Math.min(Yi, X)), ut = Math.max(Lo, Math.min(Yi, ut))];
|
|
14722
|
+
Mc(Xt, we, r, t, e, n) ? (x || (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);
|
|
14717
14723
|
}
|
|
14718
14724
|
I = X, C = ut, x = yt;
|
|
14719
14725
|
}
|
|
@@ -14728,8 +14734,8 @@ function Gc(r, t) {
|
|
|
14728
14734
|
if (c = (l = r[a]).length)
|
|
14729
14735
|
for (var l, c, f = l[c - 1], h = f[0], g = f[1] / 2 + wa, p = bt(g), m = Lt(g), d = 0; d < c; ++d, h = I, p = x, m = b, f = y) {
|
|
14730
14736
|
var y = l[d], I = y[0], C = y[1] / 2 + wa, x = bt(C), b = Lt(C), w = I - h, D = w >= 0 ? 1 : -1, T = D * w, F = T > ot, j = p * x;
|
|
14731
|
-
if (ds.add(
|
|
14732
|
-
var k = Xo(
|
|
14737
|
+
if (ds.add(Ri(j * D * bt(T), m * b + j * Lt(T))), o += F ? w + D * Jn : w, F ^ h >= e ^ I >= e) {
|
|
14738
|
+
var k = Xo(Oi(f), Oi(y));
|
|
14733
14739
|
Rs(k);
|
|
14734
14740
|
var O = Xo(i, k);
|
|
14735
14741
|
Rs(O);
|
|
@@ -14745,19 +14751,19 @@ function Aa(r) {
|
|
|
14745
14751
|
}
|
|
14746
14752
|
Mr();
|
|
14747
14753
|
Mr();
|
|
14748
|
-
var
|
|
14754
|
+
var Di = 1 / 0, Yo = Di, fo = -Di, Ho = fo, Fa = {
|
|
14749
14755
|
point: kc,
|
|
14750
|
-
lineStart:
|
|
14751
|
-
lineEnd:
|
|
14752
|
-
polygonStart:
|
|
14753
|
-
polygonEnd:
|
|
14756
|
+
lineStart: Xi,
|
|
14757
|
+
lineEnd: Xi,
|
|
14758
|
+
polygonStart: Xi,
|
|
14759
|
+
polygonEnd: Xi,
|
|
14754
14760
|
result: function() {
|
|
14755
|
-
var r = [[
|
|
14756
|
-
return
|
|
14761
|
+
var r = [[Di, Yo], [fo, Ho]];
|
|
14762
|
+
return fo = Ho = -(Yo = Di = 1 / 0), r;
|
|
14757
14763
|
}
|
|
14758
14764
|
};
|
|
14759
14765
|
function kc(r, t) {
|
|
14760
|
-
r <
|
|
14766
|
+
r < Di && (Di = r), r > fo && (fo = r), t < Yo && (Yo = t), t > Ho && (Ho = t);
|
|
14761
14767
|
}
|
|
14762
14768
|
Mr();
|
|
14763
14769
|
function Au(r, t, e, n) {
|
|
@@ -14897,20 +14903,20 @@ function Yc(r, t) {
|
|
|
14897
14903
|
};
|
|
14898
14904
|
}
|
|
14899
14905
|
function u(c, f, h) {
|
|
14900
|
-
var g =
|
|
14906
|
+
var g = Oi(c), p = Oi(f), m = [1, 0, 0], d = Xo(g, p), y = xo(d, d), I = d[0], C = y - I * I;
|
|
14901
14907
|
if (!C)
|
|
14902
14908
|
return !h && c;
|
|
14903
14909
|
var x = e * y / C, b = -e * I / C, w = Xo(m, d), D = So(m, x), T = So(d, b);
|
|
14904
14910
|
ps(D, T);
|
|
14905
14911
|
var F = w, j = xo(D, F), k = xo(F, F), O = j * j - k * (xo(D, D) - 1);
|
|
14906
14912
|
if (!(O < 0)) {
|
|
14907
|
-
var Y =
|
|
14913
|
+
var Y = zi(O), P = So(F, (-j - Y) / k);
|
|
14908
14914
|
if (ps(P, D), P = Ps(P), !h)
|
|
14909
14915
|
return P;
|
|
14910
|
-
var X = c[0], ut = f[0], yt = c[1],
|
|
14916
|
+
var X = c[0], ut = f[0], yt = c[1], Xt = f[1], we;
|
|
14911
14917
|
ut < X && (we = X, X = ut, ut = we);
|
|
14912
14918
|
var Ar = ut - X, Ze = te(Ar - ot) < pt, Le = Ze || Ar < pt;
|
|
14913
|
-
if (!Ze &&
|
|
14919
|
+
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 : Ar > ot ^ (X <= P[0] && P[0] <= ut)) {
|
|
14914
14920
|
var J = So(F, (-j + Y) / k);
|
|
14915
14921
|
return ps(J, D), [P, Ps(J)];
|
|
14916
14922
|
}
|
|
@@ -14977,7 +14983,7 @@ function Kc(r, t) {
|
|
|
14977
14983
|
function e(n, i, o, s, a, u, l, c, f, h, g, p, m, d) {
|
|
14978
14984
|
var y = l - n, I = c - i, C = y * y + I * I;
|
|
14979
14985
|
if (C > 4 * t && m--) {
|
|
14980
|
-
var x = s + h, b = a + g, w = u + p, D =
|
|
14986
|
+
var x = s + h, b = a + g, w = u + p, D = zi(x * x + b * b + w * w), T = ti(w /= D), F = te(te(w) - 1) < pt || te(o - f) < pt ? (o + f) / 2 : Ri(b, x), j = r(F, T), k = j[0], O = j[1], Y = k - n, P = O - i, X = I * Y - y * P;
|
|
14981
14987
|
(X * X / C > t || te((y * Y + I * P) / C - 0.5) > 0.3 || s * h + a * g + u * p < Wc) && (e(n, i, o, s, a, u, k, O, F, x /= D, b /= D, w, m, d), d.point(k, O), e(k, O, F, x, b, w, l, c, f, h, g, p, m, d));
|
|
14982
14988
|
}
|
|
14983
14989
|
}
|
|
@@ -15000,7 +15006,7 @@ function Kc(r, t) {
|
|
|
15000
15006
|
f = NaN, d.point = C, n.lineStart();
|
|
15001
15007
|
}
|
|
15002
15008
|
function C(T, F) {
|
|
15003
|
-
var j =
|
|
15009
|
+
var j = Oi([T, F]), k = r(T, F);
|
|
15004
15010
|
e(f, h, c, g, p, m, f = k[0], h = k[1], c = T, g = j[0], p = j[1], m = j[2], Ga, n), n.point(f, h);
|
|
15005
15011
|
}
|
|
15006
15012
|
function x() {
|
|
@@ -15054,7 +15060,7 @@ function Zc(r) {
|
|
|
15054
15060
|
}, F.rotate = function(P) {
|
|
15055
15061
|
return arguments.length ? (l = P[0] % 360 * tn, c = P[1] % 360 * tn, f = P.length > 2 ? P[2] % 360 * tn : 0, O()) : [l * vr, c * vr, f * vr];
|
|
15056
15062
|
}, F.precision = function(P) {
|
|
15057
|
-
return arguments.length ? (w = ka(k, b = P * P), Y()) :
|
|
15063
|
+
return arguments.length ? (w = ka(k, b = P * P), Y()) : zi(b);
|
|
15058
15064
|
}, F.fitExtent = function(P, X) {
|
|
15059
15065
|
return Bu(F, P, X);
|
|
15060
15066
|
}, F.fitSize = function(P, X) {
|
|
@@ -15083,15 +15089,15 @@ function Gu(r) {
|
|
|
15083
15089
|
}
|
|
15084
15090
|
function ku(r) {
|
|
15085
15091
|
return function(t, e) {
|
|
15086
|
-
var n =
|
|
15092
|
+
var n = zi(t * t + e * e), i = r(n), o = bt(i), s = Lt(i);
|
|
15087
15093
|
return [
|
|
15088
|
-
|
|
15094
|
+
Ri(t * o, n * s),
|
|
15089
15095
|
ti(n && e * o / n)
|
|
15090
15096
|
];
|
|
15091
15097
|
};
|
|
15092
15098
|
}
|
|
15093
15099
|
var $c = Gu(function(r) {
|
|
15094
|
-
return
|
|
15100
|
+
return zi(2 / (1 + r));
|
|
15095
15101
|
});
|
|
15096
15102
|
$c.invert = ku(function(r) {
|
|
15097
15103
|
return 2 * ti(r / 2);
|
|
@@ -15151,7 +15157,7 @@ function To(r, t, e, n) {
|
|
|
15151
15157
|
var a = nf(o), u = {
|
|
15152
15158
|
type: o.type,
|
|
15153
15159
|
coordinates: Uu(o.coordinates, a)
|
|
15154
|
-
}, l = new Vs(), c = l.read(u), f = uc(lc(t, e), "meters"), h =
|
|
15160
|
+
}, l = new Vs(), c = l.read(u), f = uc(lc(t, e), "meters"), h = Gt.bufferOp(c, f, n), g = new fu();
|
|
15155
15161
|
if (h = g.write(h), !Vu(h.coordinates)) {
|
|
15156
15162
|
var p = {
|
|
15157
15163
|
type: h.type,
|
|
@@ -15247,7 +15253,9 @@ function rf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
15247
15253
|
icon: new tr.DivIcon({
|
|
15248
15254
|
html: I,
|
|
15249
15255
|
className: "",
|
|
15250
|
-
iconAnchor: [12, 26]
|
|
15256
|
+
iconAnchor: [12, 26],
|
|
15257
|
+
iconSize: [25, 30],
|
|
15258
|
+
tooltipAnchor: [1, -24]
|
|
15251
15259
|
})
|
|
15252
15260
|
});
|
|
15253
15261
|
}
|
|
@@ -15327,7 +15335,9 @@ function rf(r, t = !0, e = !0, n = {}, i = {}, o = (s) => {
|
|
|
15327
15335
|
C.center[1],
|
|
15328
15336
|
C.center[0]
|
|
15329
15337
|
], b = typeof e == "object" ? new tr.Marker(x, e) : p(x, !0);
|
|
15330
|
-
b.addTo(r)
|
|
15338
|
+
b.addTo(r).bindTooltip(C.place_name.replace(/,.*/, ""), {
|
|
15339
|
+
direction: "top"
|
|
15340
|
+
});
|
|
15331
15341
|
const w = b.getElement();
|
|
15332
15342
|
w && (w.addEventListener("click", (D) => {
|
|
15333
15343
|
D.stopPropagation(), s == null || s({ type: "markerClick", id: C.id });
|
|
@@ -15350,7 +15360,7 @@ class of extends tr.Control {
|
|
|
15350
15360
|
super();
|
|
15351
15361
|
cs(this, En, void 0);
|
|
15352
15362
|
cs(this, zr, void 0);
|
|
15353
|
-
|
|
15363
|
+
Co(this, zr, e);
|
|
15354
15364
|
}
|
|
15355
15365
|
onAdd(e) {
|
|
15356
15366
|
const n = document.createElement("div");
|
|
@@ -15369,7 +15379,7 @@ class of extends tr.Control {
|
|
|
15369
15379
|
l,
|
|
15370
15380
|
a
|
|
15371
15381
|
);
|
|
15372
|
-
|
|
15382
|
+
Co(this, En, new Gl({
|
|
15373
15383
|
target: n,
|
|
15374
15384
|
props: {
|
|
15375
15385
|
mapController: c,
|
|
@@ -15395,7 +15405,7 @@ class of extends tr.Control {
|
|
|
15395
15405
|
}
|
|
15396
15406
|
setOptions(e) {
|
|
15397
15407
|
var u;
|
|
15398
|
-
|
|
15408
|
+
Co(this, zr, e);
|
|
15399
15409
|
const {
|
|
15400
15410
|
marker: n,
|
|
15401
15411
|
showResultMarkers: i,
|