@thibezer/ui-components-kit 2.33.1 → 2.34.0
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/CHANGELOG.md +11 -0
- package/dist/canvas.cjs +12 -12
- package/dist/canvas.js +386 -385
- package/dist/custom-elements.json +18703 -18703
- package/package.json +1 -1
package/dist/canvas.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var u = (s, t, e) =>
|
|
1
|
+
var Ta = Object.defineProperty;
|
|
2
|
+
var Da = (s, t, e) => t in s ? Ta(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var u = (s, t, e) => Da(s, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { n as St, f as
|
|
5
|
+
import { n as St, f as _a, g as Oa, C as ee, d as lt, h as Ye, I as Fa, s as xt, i as pt, v as qa, M as Na, Z as uo, j as $a, k as Nt, l as Te, r as po, o as $t, a as fo, q as Ra, R as Je, b as J, c as De, p as to, u as Ba, w as Va, x as ja } from "./geometria-px-wXudjSxA.js";
|
|
6
6
|
import { y as Mc, T as Ac, z as zc, A as wc, B as Ec, D as kc, E as Ic, F as Tc, G as Dc, H as _c, J as Oc, K as Fc, L as qc, N as Nc, O as $c, P as Rc, Q as Bc, S as Vc, U as jc, V as Hc } from "./geometria-px-wXudjSxA.js";
|
|
7
|
-
import { pintarMarcas as
|
|
7
|
+
import { pintarMarcas as Ha, ehMarca as Ga, ladoMarca as Ua, diagonalPx as mo, deveAgrupar as go, AgrupadorCluster as Za, MotorFormas as Wa } from "./motor.js";
|
|
8
8
|
import { CELULA_CLUSTER_PX as Uc, DadosCamada as Zc, LIMITE_MARCA_PX as Wc, LIMITE_MIUDA_PX as Xc, MAX_PONTOS_SEM_CLUSTER as Kc, OPACIDADE_MARCA as Qc, ZOOM_DESMEMBRAR as Yc, ZOOM_MAX_MIUDA as Jc, agruparMarcasPorCor as tl, agruparPontos as el, centroDe as ol, nivelDetalhe as al, projetarMercator as il } from "./motor.js";
|
|
9
9
|
import b from "leaflet";
|
|
10
|
-
import { e as I, p as j, r as Tt, b as Dt, a as oe, o as ae, c as vo, l as
|
|
10
|
+
import { e as I, p as j, r as Tt, b as Dt, a as oe, o as ae, c as vo, l as Xa, f as bo } from "./utils-B2HuBLwz.js";
|
|
11
11
|
import { d as nl, g as rl } from "./utils-B2HuBLwz.js";
|
|
12
|
-
import { K as vt, M as Ft, L as ie, l as
|
|
13
|
-
import { p as se, t as
|
|
12
|
+
import { K as vt, M as Ft, L as ie, l as Ka, S as Qa, A as Ya, g as yo, s as Ja, d as ti } from "./kit-base-CBXA66aM.js";
|
|
13
|
+
import { p as se, t as ei, b as _e, g as mt, h as gt, i as Lt, j as K, f as Oe, l as oi, d as Qo, c as ai } from "./feature_metricas-hUren6kK.js";
|
|
14
14
|
import { a as ll, e as dl, m as hl } from "./feature_metricas-hUren6kK.js";
|
|
15
|
-
import { E as eo, s as
|
|
15
|
+
import { E as eo, s as ii, p as Yo, c as pe, P as Jo, d as si, e as Rt, f as ni, o as ta, h as ri, j as ci, i as li, k as Q, l as Mt, n as G, m as ea, r as fe, q as nt, t as oo, u as ot, v as Fe, w as oa, x as xo, y as di, z as qe, A as Po, B as hi, M as ui, C as Bt, D as pi, F as Co, T as fi, G as mi, H as gi, I as vi } from "./feature_caixa-DlckNoPa.js";
|
|
16
16
|
import { J as pl, R as fl, K as ml, L as gl, N as vl, O as bl, Q as yl, S as xl, U as Pl, V as Cl, W as Sl, X as Ll, Y as Ml } from "./feature_caixa-DlckNoPa.js";
|
|
17
17
|
import { S as me, e as So, a as aa, F as Lo } from "./feature_desenho-BPceJsot.js";
|
|
18
18
|
import { R as zl, b as wl, n as El } from "./feature_desenho-BPceJsot.js";
|
|
@@ -60,13 +60,13 @@ const Mo = {
|
|
|
60
60
|
};
|
|
61
61
|
u(ft, "instance");
|
|
62
62
|
let Ne = ft;
|
|
63
|
-
const ao = "sob-demanda",
|
|
63
|
+
const ao = "sob-demanda", bi = 700;
|
|
64
64
|
function ne(s) {
|
|
65
65
|
const t = typeof s == "string" ? s.trim().toLowerCase() : "";
|
|
66
66
|
return t === "automatico" || t === "desligado" || t === "sob-demanda" ? t : ao;
|
|
67
67
|
}
|
|
68
68
|
const Kt = /* @__PURE__ */ new WeakMap();
|
|
69
|
-
function
|
|
69
|
+
function yi(s) {
|
|
70
70
|
const t = s && typeof s == "object" ? s.options : void 0;
|
|
71
71
|
return !!t && t.closeButton !== void 0 && t.autoPan !== void 0;
|
|
72
72
|
}
|
|
@@ -74,7 +74,7 @@ function io(s, t) {
|
|
|
74
74
|
const e = s ? Kt.get(s) : void 0;
|
|
75
75
|
return e ? e.liberar(t) : t();
|
|
76
76
|
}
|
|
77
|
-
class
|
|
77
|
+
class xi {
|
|
78
78
|
constructor(t, e = ao) {
|
|
79
79
|
u(this, "liberados", 0);
|
|
80
80
|
/** Verdadeiro durante o despacho síncrono de um clique no mapa (o Leaflet abre popups dentro dele). */
|
|
@@ -93,7 +93,7 @@ class yi {
|
|
|
93
93
|
this.map = t, this.modoAtual = e, this.original = t.addLayer;
|
|
94
94
|
const o = this;
|
|
95
95
|
t.addLayer = function(i) {
|
|
96
|
-
return
|
|
96
|
+
return yi(i) ? o.aoAbrir(this, i) : o.original.call(this, i);
|
|
97
97
|
}, this.container = typeof t.getContainer == "function" ? t.getContainer() : null, (a = this.container) == null || a.addEventListener("click", this.marcarClique, !0), Kt.set(t, this);
|
|
98
98
|
}
|
|
99
99
|
get modo() {
|
|
@@ -131,7 +131,7 @@ class yi {
|
|
|
131
131
|
return (c = e.openPopup) == null ? void 0 : c.call(e, typeof e.getLatLng == "function" || n == null ? void 0 : n.latlng);
|
|
132
132
|
});
|
|
133
133
|
};
|
|
134
|
-
o = setTimeout(a,
|
|
134
|
+
o = setTimeout(a, bi), e.on("dblclick", i), this.pendentes.set(e, a);
|
|
135
135
|
}
|
|
136
136
|
cancelarPendentes() {
|
|
137
137
|
for (const t of [...this.pendentes.values()]) t();
|
|
@@ -139,22 +139,22 @@ class yi {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
const ia = "https://geoportal.incra.gov.br/geoserver/wms", $e = "geonode:sigef_geo";
|
|
142
|
-
function
|
|
142
|
+
function Pi(s, t, e, o) {
|
|
143
143
|
return `${ia}?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&FORMAT=image/png&TRANSPARENT=true&QUERY_LAYERS=${$e}&LAYERS=${$e}&FEATURE_COUNT=10&INFO_FORMAT=application/json&X=${s}&Y=${t}&WIDTH=${e.x}&HEIGHT=${e.y}&SRS=EPSG:4326&BBOX=${o}`;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Ci(s, t, e = typeof window < "u" ? window.location.origin : "") {
|
|
146
146
|
return e.includes("localhost") || e.includes("127.0.0.1") || e.includes("[::1]") ? `${t}/proxy/sigef?url=${encodeURIComponent(s)}` : `${e}/api.php?action=proxy_sigef&url=${encodeURIComponent(s)}`;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Si(s) {
|
|
149
149
|
const t = (s == null ? void 0 : s.properties) ?? {}, e = s == null ? void 0 : s.id, o = e != null && !String(e).startsWith("sigef_geo.") ? String(e) : "";
|
|
150
150
|
return String(t.parcela_codigo || t.co_parcela || t.id_parcela || o || "").trim();
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Li(s) {
|
|
153
153
|
const t = s && typeof s == "object" && Array.isArray(s.features) ? s.features : [], e = /* @__PURE__ */ new Set(), o = [];
|
|
154
154
|
return t.forEach((a, i) => {
|
|
155
155
|
const n = a == null ? void 0 : a.properties;
|
|
156
156
|
if (!n || typeof n != "object" || Object.keys(n).length === 0) return;
|
|
157
|
-
const c =
|
|
157
|
+
const c = Si(a), r = c || `sem-id-${i}`;
|
|
158
158
|
e.has(r) || (e.add(r), o.push({
|
|
159
159
|
codigo: c,
|
|
160
160
|
nome: String(n.nome_area || n.nome_imovel || "Imóvel Sem Nome"),
|
|
@@ -175,14 +175,14 @@ function sa(s, t) {
|
|
|
175
175
|
return { x: 0, y: 0 };
|
|
176
176
|
}
|
|
177
177
|
async function na(s, t, e, o = {}) {
|
|
178
|
-
const { signal: a, timeoutMs: i = 8e3 } = o, n = s.getSize(), c = s.getBounds().getSouthWest(), r = s.getBounds().getNorthEast(), l = `${c.lng},${c.lat},${r.lng},${r.lat}`, d =
|
|
178
|
+
const { signal: a, timeoutMs: i = 8e3 } = o, n = s.getSize(), c = s.getBounds().getSouthWest(), r = s.getBounds().getNorthEast(), l = `${c.lng},${c.lat},${r.lng},${r.lat}`, d = Pi(Math.round(t.x), Math.round(t.y), n, l), h = new AbortController();
|
|
179
179
|
let f = !1;
|
|
180
180
|
const g = setTimeout(() => {
|
|
181
181
|
f = !0, h.abort();
|
|
182
182
|
}, i), m = () => h.abort();
|
|
183
183
|
a && (a.aborted ? h.abort() : a.addEventListener("abort", m, { once: !0 }));
|
|
184
184
|
try {
|
|
185
|
-
const p = await fetch(
|
|
185
|
+
const p = await fetch(Ci(d, e), { signal: h.signal }), v = await p.text();
|
|
186
186
|
let y = null;
|
|
187
187
|
try {
|
|
188
188
|
y = JSON.parse(v);
|
|
@@ -194,14 +194,14 @@ async function na(s, t, e, o = {}) {
|
|
|
194
194
|
}
|
|
195
195
|
if (!y || y.error && !Array.isArray(y.features))
|
|
196
196
|
throw new Error(typeof (y == null ? void 0 : y.error) == "string" ? y.error : "O INCRA devolveu uma resposta inesperada.");
|
|
197
|
-
return
|
|
197
|
+
return Li(y);
|
|
198
198
|
} catch (p) {
|
|
199
199
|
throw (p == null ? void 0 : p.name) === "AbortError" && f ? new Error(`Tempo limite de consulta ao INCRA esgotado (${Math.round(i / 1e3)}s).`) : p;
|
|
200
200
|
} finally {
|
|
201
201
|
clearTimeout(g), a == null || a.removeEventListener("abort", m);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
async function
|
|
204
|
+
async function Mi(s, t, e, o) {
|
|
205
205
|
const a = sa(s, t), i = s.getContainer();
|
|
206
206
|
i.style.cursor = "wait";
|
|
207
207
|
const n = b.popup({
|
|
@@ -284,7 +284,7 @@ async function Li(s, t, e, o) {
|
|
|
284
284
|
i.style.cursor = "";
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
async function
|
|
287
|
+
async function Ai(s, t, e, o, a) {
|
|
288
288
|
var l;
|
|
289
289
|
const i = sa(s, t), n = { lat: t.latlng.lat, lng: t.latlng.lng };
|
|
290
290
|
(l = o.currentAbortController) == null || l.abort();
|
|
@@ -303,7 +303,7 @@ async function Mi(s, t, e, o, a) {
|
|
|
303
303
|
o.currentAbortController === c && (o.currentAbortController = void 0);
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function zi(s, t) {
|
|
307
307
|
if (!s) return;
|
|
308
308
|
const e = Math.floor(s.getZoom()), o = Math.max(e, 12), a = Math.min(e + 1, 19), i = t.pad(0.2), n = ["mt0", "mt1", "mt2", "mt3"];
|
|
309
309
|
let c = 0;
|
|
@@ -326,21 +326,21 @@ function zo(s, t) {
|
|
|
326
326
|
(1 - Math.log(Math.tan(e) + 1 / Math.cos(e)) / Math.PI) / 2 * Math.pow(2, t)
|
|
327
327
|
);
|
|
328
328
|
}
|
|
329
|
-
const
|
|
329
|
+
const wi = {
|
|
330
330
|
zoomSnap: 0.25,
|
|
331
331
|
zoomDelta: 0.5,
|
|
332
332
|
wheelPxPerZoomLevel: 90
|
|
333
333
|
};
|
|
334
|
-
function
|
|
334
|
+
function Ei(s, t) {
|
|
335
335
|
const e = s;
|
|
336
336
|
return !e || !t || e._popup !== t ? !1 : (e._popup = null, !0);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function ki(s) {
|
|
339
339
|
s.on("popupclose", (t) => {
|
|
340
|
-
|
|
340
|
+
Ei(s, t.popup);
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
|
-
class
|
|
343
|
+
class Ii {
|
|
344
344
|
constructor(t) {
|
|
345
345
|
u(this, "map", null);
|
|
346
346
|
u(this, "configManager", Ne.getInstance());
|
|
@@ -390,8 +390,8 @@ class ki {
|
|
|
390
390
|
scrollWheelZoom: !0,
|
|
391
391
|
preferCanvas: this.config.preferCanvas !== void 0 ? this.config.preferCanvas : !0,
|
|
392
392
|
zoomControl: !1,
|
|
393
|
-
...
|
|
394
|
-
}).setView([-23.7661, -53.3204], 14), this.popups = new
|
|
393
|
+
...wi
|
|
394
|
+
}).setView([-23.7661, -53.3204], 14), this.popups = new xi(this.map, this.modoPopups), this.listenConfigBroadcast(), this.applyMapStyles(), ki(this.map), !this.map.getPane("sigefPane")) {
|
|
395
395
|
const a = this.map.createPane("sigefPane");
|
|
396
396
|
a.style.zIndex = "390";
|
|
397
397
|
}
|
|
@@ -470,19 +470,19 @@ class ki {
|
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
preCarregarTilesRegiao(t) {
|
|
473
|
-
|
|
473
|
+
zi(this.map, t);
|
|
474
474
|
}
|
|
475
475
|
async consultarSigef(t) {
|
|
476
476
|
if (this.map) {
|
|
477
477
|
if (!this.sigefPopup) {
|
|
478
|
-
this.aoParcelasSigef && await
|
|
478
|
+
this.aoParcelasSigef && await Ai(this.map, t, this.apiBaseUrl, this.sigefState, this.aoParcelasSigef);
|
|
479
479
|
return;
|
|
480
480
|
}
|
|
481
|
-
await
|
|
481
|
+
await Mi(this.map, t, this.apiBaseUrl, this.sigefState);
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
}
|
|
485
|
-
const
|
|
485
|
+
const Ti = [
|
|
486
486
|
"verticesPane",
|
|
487
487
|
"perimetroPane",
|
|
488
488
|
"overlayPane",
|
|
@@ -493,7 +493,7 @@ const Ii = [
|
|
|
493
493
|
"pane-homologados",
|
|
494
494
|
"pane-homologados-pontos"
|
|
495
495
|
];
|
|
496
|
-
class
|
|
496
|
+
class Di {
|
|
497
497
|
constructor(t, e, o) {
|
|
498
498
|
u(this, "map");
|
|
499
499
|
u(this, "mapContainer");
|
|
@@ -508,7 +508,7 @@ class Ti {
|
|
|
508
508
|
this.selectionDiv || (this.selectionDiv = document.createElement("div"), this.selectionDiv.className = "cad-selection-box", this.selectionDiv.style.position = "absolute", this.selectionDiv.style.zIndex = "9999", this.selectionDiv.style.pointerEvents = "none", this.selectionDiv.style.display = "none", this.selectionDiv.style.borderRadius = "2px", this.mapContainer.style.position = "relative", this.mapContainer.appendChild(this.selectionDiv));
|
|
509
509
|
}
|
|
510
510
|
setPanesPointerEvents(t) {
|
|
511
|
-
|
|
511
|
+
Ti.forEach((e) => {
|
|
512
512
|
const o = this.map.getPane(e);
|
|
513
513
|
o && (o.style.pointerEvents = t);
|
|
514
514
|
});
|
|
@@ -586,8 +586,8 @@ function W(s, t, e) {
|
|
|
586
586
|
}
|
|
587
587
|
return a;
|
|
588
588
|
}
|
|
589
|
-
const wo = "ui-canvas-hit-test-estilo", ge = 6,
|
|
590
|
-
function
|
|
589
|
+
const wo = "ui-canvas-hit-test-estilo", ge = 6, _i = 4, Oi = 4, Vt = { poligono: 1, linha: 2, ponto: 3, texto: 3 };
|
|
590
|
+
function Fi(s) {
|
|
591
591
|
var a;
|
|
592
592
|
const t = s.getRootNode(), e = t instanceof ShadowRoot ? t : document.head;
|
|
593
593
|
if ((a = e.querySelector) != null && a.call(e, `#${wo}`)) return;
|
|
@@ -607,7 +607,7 @@ function ve(s, t) {
|
|
|
607
607
|
var e, o;
|
|
608
608
|
return t + (((e = s.options) == null ? void 0 : e.stroke) === !1 ? 0 : (((o = s.options) == null ? void 0 : o.weight) ?? 0) / 2);
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function qi(s, t, e) {
|
|
611
611
|
let o = 1 / 0;
|
|
612
612
|
for (const a of s) {
|
|
613
613
|
for (let i = 1; i < a.length; i++)
|
|
@@ -616,24 +616,24 @@ function Fi(s, t, e) {
|
|
|
616
616
|
}
|
|
617
617
|
return o;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function Ni(s) {
|
|
620
620
|
const t = s._pxBounds;
|
|
621
621
|
return t ? (t.max.x - t.min.x) * (t.max.y - t.min.y) : 0;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function $i(s, t, e) {
|
|
624
624
|
var o, a, i;
|
|
625
625
|
if (!((o = s.options) != null && o.interactive)) return null;
|
|
626
626
|
if (s._point && s._radius !== void 0) {
|
|
627
|
-
const n = s._radius, c = s._radiusY ?? s._radius, r = s._point.distanceTo(t), l = (n + c) / 2, d = e === "ponto" ?
|
|
627
|
+
const n = s._radius, c = s._radiusY ?? s._radius, r = s._point.distanceTo(t), l = (n + c) / 2, d = e === "ponto" ? _i : ve(s, ge);
|
|
628
628
|
return s.options.fill !== !1 && e === "poligono" ? r <= l + 1 ? 0 : null : e === "ponto" ? r <= l + d ? r : null : Math.abs(r - l) <= d ? Math.abs(r - l) : null;
|
|
629
629
|
}
|
|
630
630
|
if (s._parts) {
|
|
631
|
-
const n = s instanceof b.Polygon, c =
|
|
631
|
+
const n = s instanceof b.Polygon, c = qi(s._parts, t, n);
|
|
632
632
|
return e === "linha" ? c <= ve(s, ge) ? c : null : n && ((a = s._containsPoint) != null && a.call(s, t)) ? 0 : c <= ve(s, ge) ? c : null;
|
|
633
633
|
}
|
|
634
634
|
return (i = s._containsPoint) != null && i.call(s, t) ? 0 : null;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function Ri(s) {
|
|
637
637
|
const t = [];
|
|
638
638
|
for (let e = s._drawFirst; e; e = e.next) t.push(e.layer);
|
|
639
639
|
return t;
|
|
@@ -647,9 +647,9 @@ function ha(s, t, e) {
|
|
|
647
647
|
for (const l of ra) {
|
|
648
648
|
const d = o[ca(c.id, l)];
|
|
649
649
|
if (d)
|
|
650
|
-
for (const h of
|
|
651
|
-
const f =
|
|
652
|
-
f !== null && i.push({ camada: c, tipo: l, alvo: h, distancia: f, area:
|
|
650
|
+
for (const h of Ri(d).reverse()) {
|
|
651
|
+
const f = $i(h, e, l);
|
|
652
|
+
f !== null && i.push({ camada: c, tipo: l, alvo: h, distancia: f, area: Ni(h) });
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
const r = (n = re.get(s)) == null ? void 0 : n.get(c.id);
|
|
@@ -663,16 +663,16 @@ function ha(s, t, e) {
|
|
|
663
663
|
return i.sort((c, r) => Vt[c.tipo] !== Vt[r.tipo] ? Vt[r.tipo] - Vt[c.tipo] : c.camada.zIndex !== r.camada.zIndex ? r.camada.zIndex - c.camada.zIndex : c.tipo === "poligono" && c.area !== r.area ? c.area - r.area : 0);
|
|
664
664
|
}
|
|
665
665
|
const Re = /* @__PURE__ */ new WeakMap();
|
|
666
|
-
function
|
|
666
|
+
function Bi(s, t, e) {
|
|
667
667
|
const o = e.map((n) => n.chave === void 0 ? String(b.Util.stamp(n.alvo)) : `${b.Util.stamp(n.alvo)}:${n.chave}`), a = Re.get(s);
|
|
668
668
|
let i = 0;
|
|
669
|
-
return a && Math.hypot(a.x - t.x, a.y - t.y) <=
|
|
669
|
+
return a && Math.hypot(a.x - t.x, a.y - t.y) <= Oi && a.ids.length === o.length && a.ids.every((n, c) => n === o[c]) && (i = (a.indice + 1) % e.length), Re.set(s, { x: t.x, y: t.y, ids: o, indice: i }), e[i];
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function Vi(s, t, e) {
|
|
672
672
|
const o = s.mouseEventToLayerPoint(e), a = ha(s, t, o);
|
|
673
673
|
if (a.length === 0)
|
|
674
674
|
return Re.delete(s), !1;
|
|
675
|
-
const i =
|
|
675
|
+
const i = Bi(s, o, a);
|
|
676
676
|
return i.alvo.fire(
|
|
677
677
|
e.type,
|
|
678
678
|
{
|
|
@@ -689,7 +689,7 @@ function gc(s, t, e) {
|
|
|
689
689
|
return ha(s, t, s.mouseEventToLayerPoint(e))[0] ?? null;
|
|
690
690
|
}
|
|
691
691
|
const Eo = ".cad-vertex-handle, .cad-vertex-ghost, .cad-bezier-handle, #cm-vertex-edit-hud, #cm-draw-hud";
|
|
692
|
-
class
|
|
692
|
+
class ji {
|
|
693
693
|
constructor(t) {
|
|
694
694
|
u(this, "ctx");
|
|
695
695
|
u(this, "map", null);
|
|
@@ -737,7 +737,7 @@ class Vi {
|
|
|
737
737
|
});
|
|
738
738
|
u(this, "handleClick", (t) => {
|
|
739
739
|
var e, o, a, i, n, c;
|
|
740
|
-
!this.map || !this.ctx.layerManager || (o = (e = this.ctx).ferramentaAtiva) != null && o.call(e) || (i = (a = this.ctx).edicaoAtiva) != null && i.call(a) || (c = (n = t.target) == null ? void 0 : n.closest) != null && c.call(n, ".leaflet-marker-icon") ||
|
|
740
|
+
!this.map || !this.ctx.layerManager || (o = (e = this.ctx).ferramentaAtiva) != null && o.call(e) || (i = (a = this.ctx).edicaoAtiva) != null && i.call(a) || (c = (n = t.target) == null ? void 0 : n.closest) != null && c.call(n, ".leaflet-marker-icon") || Vi(this.map, this.ctx.layerManager.getLayers(), t);
|
|
741
741
|
});
|
|
742
742
|
u(this, "handleMouseDown", (t) => {
|
|
743
743
|
var o, a, i, n, c, r, l;
|
|
@@ -817,7 +817,7 @@ class Vi {
|
|
|
817
817
|
};
|
|
818
818
|
}
|
|
819
819
|
ativar(t, e) {
|
|
820
|
-
this.mapContainer && this.desativar(), this.ctx.mapaController = t, e && (this.ctx.containerHost = e), this.map = t.getMap(), this.map && (this.mapContainer = this.map.getContainer(), this.mapContainer && (this.map.dragging.disable(), this.map.doubleClickZoom.disable(), this.map.boxZoom.disable(), this.selecaoBox = new
|
|
820
|
+
this.mapContainer && this.desativar(), this.ctx.mapaController = t, e && (this.ctx.containerHost = e), this.map = t.getMap(), this.map && (this.mapContainer = this.map.getContainer(), this.mapContainer && (this.map.dragging.disable(), this.map.doubleClickZoom.disable(), this.map.boxZoom.disable(), this.selecaoBox = new Di(this.map, this.mapContainer, this.ctx), Fi(this.mapContainer), this.mapContainer.addEventListener("click", this.handleClick), this.mapContainer.addEventListener("mousedown", this.handleMouseDown), this.mapContainer.addEventListener("mousemove", this.handleMouseMove), window.addEventListener("mouseup", this.handleMouseUp), this.mapContainer.addEventListener("contextmenu", this.handleContextMenu), window.addEventListener("keydown", this.handleKeyDown), window.addEventListener("keyup", this.handleKeyUp), window.addEventListener("blur", this.handleBlur), this.mapContainer.addEventListener("touchstart", this.handleTouchStart, { passive: !1 }), this.mapContainer.addEventListener("touchmove", this.handleTouchMove, { passive: !1 }), this.mapContainer.addEventListener("touchend", this.handleTouchEnd), this.mapContainer.addEventListener("touchcancel", this.handleTouchEnd)));
|
|
821
821
|
}
|
|
822
822
|
desativar() {
|
|
823
823
|
this.mapContainer && (this.mapContainer.removeEventListener("click", this.handleClick), this.mapContainer.removeEventListener("mousedown", this.handleMouseDown), this.mapContainer.removeEventListener("mousemove", this.handleMouseMove), this.mapContainer.removeEventListener("contextmenu", this.handleContextMenu), this.mapContainer.removeEventListener("touchstart", this.handleTouchStart), this.mapContainer.removeEventListener("touchmove", this.handleTouchMove), this.mapContainer.removeEventListener("touchend", this.handleTouchEnd), this.mapContainer.removeEventListener("touchcancel", this.handleTouchEnd)), window.removeEventListener("mouseup", this.handleMouseUp), window.removeEventListener("keydown", this.handleKeyDown), window.removeEventListener("keyup", this.handleKeyUp), window.removeEventListener("blur", this.handleBlur), this.isSpacePressed = !1, this.isSpacePanning = !1, this.cancelarSupressaoClique(), this.selecaoBox && (this.selecaoBox.destruir(), this.selecaoBox = null), this.map && (this.map.dragging.enable(), this.map.doubleClickZoom.enable(), this.map.boxZoom.enable()), this.mapContainer = null, this.isPanning = !1, this.isTouchPanning = !1;
|
|
@@ -872,7 +872,7 @@ class R {
|
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
874
|
u(R, "renderers", /* @__PURE__ */ new Map());
|
|
875
|
-
class
|
|
875
|
+
class Hi {
|
|
876
876
|
render(t, e, o) {
|
|
877
877
|
var l, d, h, f;
|
|
878
878
|
let a = 16;
|
|
@@ -902,7 +902,7 @@ class ji {
|
|
|
902
902
|
e.hasLayer(t) && e.removeLayer(t);
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
class
|
|
905
|
+
class Gi {
|
|
906
906
|
render(t, e, o) {
|
|
907
907
|
var l, d, h, f;
|
|
908
908
|
const a = ((l = t.dados) == null ? void 0 : l.url) || ia, i = ((d = t.dados) == null ? void 0 : d.layers) || $e, n = ((h = t.dados) == null ? void 0 : h.format) || "image/png", c = ((f = t.dados) == null ? void 0 : f.attribution) || "INCRA/SIGEF";
|
|
@@ -1107,7 +1107,7 @@ function ko(s, t, e, o, a) {
|
|
|
1107
1107
|
});
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
|
-
class
|
|
1110
|
+
class Ui {
|
|
1111
1111
|
constructor() {
|
|
1112
1112
|
u(this, "zoomListenerMap", /* @__PURE__ */ new WeakMap());
|
|
1113
1113
|
}
|
|
@@ -1141,7 +1141,7 @@ function pa(s, t) {
|
|
|
1141
1141
|
const e = Math.max(0.7, 1 - 0.3 * Math.log10(s / Be)), o = t >= 18 ? 1 : t >= 16 ? 0.92 : t >= 14 ? 0.82 : 0.72;
|
|
1142
1142
|
return Math.max(0.6, e * o);
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function Zi(s) {
|
|
1145
1145
|
if (!s) return "#00f5a0";
|
|
1146
1146
|
const t = s.trim();
|
|
1147
1147
|
if (t.startsWith("#") || t.startsWith("rgb") || t.startsWith("hsl") || t.startsWith("var("))
|
|
@@ -1175,7 +1175,7 @@ const be = {
|
|
|
1175
1175
|
x: ["M2 2L10 10", "M10 2L2 10"]
|
|
1176
1176
|
};
|
|
1177
1177
|
function ce(s, t, e, o = "", a = "", i = !1, n = {}) {
|
|
1178
|
-
const c = i || o.includes("ponto-selecionado") || o.includes("cad-marker-selected"), r = n.densidade === "compacta", l = Io(
|
|
1178
|
+
const c = i || o.includes("ponto-selecionado") || o.includes("cad-marker-selected"), r = n.densidade === "compacta", l = Io(Zi(e)), d = t + 6, h = c ? `color-mix(in srgb, ${l} 38%, #000000)` : l, f = c ? 1 : r ? 0.72 : 0.9, g = c ? "rgba(255,255,255,0.95)" : r ? "rgba(0,0,0,0.55)" : "rgba(0,0,0,0.7)", m = c ? 1.3 : r ? 0.8 : 1, p = c ? "rgba(255,255,255,0.9)" : "rgba(0,0,0,0.6)", v = (L, A, w, S = "") => `class="${L}" stroke="${A}" stroke-width="${w}" vector-effect="non-scaling-stroke" ${S}`, y = s in be ? `<polygon points="${be[s]}" style="fill:${h}" fill-opacity="${f}" stroke-linejoin="round" ${v("cad-pt-contorno", g, m)} />` : s in ye ? ye[s].map(
|
|
1179
1179
|
(L) => (
|
|
1180
1180
|
// Traço = halo escuro (contraste sobre satélite) + traço colorido por cima
|
|
1181
1181
|
`<path d="${L}" fill="none" stroke-linecap="round" ${v("cad-pt-halo", p, r ? 2.6 : 3.4)} /><path d="${L}" fill="none" stroke-linecap="round" ${v("cad-pt-traco", c ? h : l, r ? 1.3 : 1.8, `stroke-opacity="${c ? 1 : r ? 0.9 : 1}"`)} />`
|
|
@@ -1189,7 +1189,7 @@ function ce(s, t, e, o = "", a = "", i = !1, n = {}) {
|
|
|
1189
1189
|
</div>
|
|
1190
1190
|
`;
|
|
1191
1191
|
}
|
|
1192
|
-
class
|
|
1192
|
+
class Wi {
|
|
1193
1193
|
constructor() {
|
|
1194
1194
|
u(this, "zoomListenerMap", /* @__PURE__ */ new WeakMap());
|
|
1195
1195
|
}
|
|
@@ -1277,7 +1277,7 @@ class Zi {
|
|
|
1277
1277
|
o && (e.off("zoomend", o), this.zoomListenerMap.delete(t)), t.clearLayers(), e.hasLayer(t) && e.removeLayer(t);
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
class
|
|
1280
|
+
class Xi {
|
|
1281
1281
|
render(t, e, o) {
|
|
1282
1282
|
const a = b.layerGroup();
|
|
1283
1283
|
return this.rebuildPolygons(t, a, o, e), a;
|
|
@@ -1417,7 +1417,7 @@ class Wi {
|
|
|
1417
1417
|
t.clearLayers(), e.hasLayer(t) && e.removeLayer(t);
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
|
-
class
|
|
1420
|
+
class Ki {
|
|
1421
1421
|
constructor() {
|
|
1422
1422
|
u(this, "moveListenerMap", /* @__PURE__ */ new WeakMap());
|
|
1423
1423
|
}
|
|
@@ -1465,13 +1465,13 @@ function fa(s, t) {
|
|
|
1465
1465
|
if (!o._drawing || !((n = s._parts) != null && n.length)) return !0;
|
|
1466
1466
|
const r = o._ctx;
|
|
1467
1467
|
r.beginPath();
|
|
1468
|
-
for (const l of
|
|
1468
|
+
for (const l of _a(e, t)) {
|
|
1469
1469
|
const d = l.pts.map(i);
|
|
1470
1470
|
l.cmd === "M" ? r.moveTo(d[0].x, d[0].y) : l.cmd === "L" ? r.lineTo(d[0].x, d[0].y) : r.bezierCurveTo(d[0].x, d[0].y, d[1].x, d[1].y, d[2].x, d[2].y);
|
|
1471
1471
|
}
|
|
1472
1472
|
return t && r.closePath(), o._fillStroke(r, s), !0;
|
|
1473
1473
|
}
|
|
1474
|
-
return o._setPath ? (o._setPath(s, (c = s._parts) != null && c.length ?
|
|
1474
|
+
return o._setPath ? (o._setPath(s, (c = s._parts) != null && c.length ? Oa(e, t, i) : "M0 0"), !0) : !1;
|
|
1475
1475
|
}
|
|
1476
1476
|
class ma extends b.Polyline {
|
|
1477
1477
|
constructor() {
|
|
@@ -1507,12 +1507,12 @@ function ue(s, t) {
|
|
|
1507
1507
|
function va(s, t) {
|
|
1508
1508
|
s.definirCurva(St(t)), s.setLatLngs(t.tipo === "Polygon" ? t.aneis[0] : t.coordenadas);
|
|
1509
1509
|
}
|
|
1510
|
-
const
|
|
1510
|
+
const Qi = 6, xe = (s, t) => Math.hypot(s.x - t.x, s.y - t.y);
|
|
1511
1511
|
function To(s, t, e) {
|
|
1512
1512
|
const o = e.x - t.x, a = e.y - t.y, i = o * o + a * a, n = i === 0 ? 0 : Math.max(0, Math.min(1, ((s.x - t.x) * o + (s.y - t.y) * a) / i));
|
|
1513
1513
|
return Math.hypot(s.x - (t.x + n * o), s.y - (t.y + n * a));
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function Yi(s, t) {
|
|
1516
1516
|
const e = s.geometria;
|
|
1517
1517
|
if (e.tipo !== "Polygon") return 0;
|
|
1518
1518
|
let o = 1 / 0, a = -1 / 0, i = 1 / 0, n = -1 / 0;
|
|
@@ -1522,7 +1522,7 @@ function Qi(s, t) {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
return (a - o) * (n - i);
|
|
1524
1524
|
}
|
|
1525
|
-
function _t(s, t, e, o =
|
|
1525
|
+
function _t(s, t, e, o = Qi, a = eo) {
|
|
1526
1526
|
let i = null, n = null, c = null;
|
|
1527
1527
|
for (const r of t) {
|
|
1528
1528
|
if (r.excluida || r.oculta) continue;
|
|
@@ -1546,21 +1546,21 @@ function _t(s, t, e, o = Ki, a = eo) {
|
|
|
1546
1546
|
} else {
|
|
1547
1547
|
const d = l.aneis[0].map(e);
|
|
1548
1548
|
let h = 1 / 0;
|
|
1549
|
-
for (const [g, m] of
|
|
1549
|
+
for (const [g, m] of ii(l)) h = Math.min(h, To(s, d[g], d[m]));
|
|
1550
1550
|
if (Yo([s.y, s.x], [d.map((g) => [g.y, g.x]), ...l.aneis.slice(1).map((g) => g.map(e).map((m) => [m.y, m.x]))]) || h <= o) {
|
|
1551
|
-
const g =
|
|
1551
|
+
const g = Yi(r, e);
|
|
1552
1552
|
(!c || g < c.a) && (c = { f: r, a: g });
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
1556
|
return (i == null ? void 0 : i.f) ?? (n == null ? void 0 : n.f) ?? (c == null ? void 0 : c.f) ?? null;
|
|
1557
1557
|
}
|
|
1558
|
-
const jt = 0.1,
|
|
1558
|
+
const jt = 0.1, Ji = 2, ts = typeof requestAnimationFrame == "function" ? (s) => {
|
|
1559
1559
|
requestAnimationFrame(s);
|
|
1560
1560
|
} : (s) => {
|
|
1561
1561
|
setTimeout(s, 16);
|
|
1562
1562
|
};
|
|
1563
|
-
class
|
|
1563
|
+
class es extends b.Layer {
|
|
1564
1564
|
constructor(e, o) {
|
|
1565
1565
|
super();
|
|
1566
1566
|
u(this, "canvas", null);
|
|
@@ -1584,7 +1584,7 @@ class ts extends b.Layer {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
/** Pede um redesenho no próximo quadro (vários pedidos viram um só). */
|
|
1586
1586
|
solicitarRedesenho() {
|
|
1587
|
-
this.agendado || !this.vivo || (this.agendado = !0,
|
|
1587
|
+
this.agendado || !this.vivo || (this.agendado = !0, ts(() => {
|
|
1588
1588
|
this.agendado = !1, this.vivo && this.redesenhar();
|
|
1589
1589
|
}));
|
|
1590
1590
|
}
|
|
@@ -1598,13 +1598,13 @@ class ts extends b.Layer {
|
|
|
1598
1598
|
try {
|
|
1599
1599
|
const a = e.getSize(), i = Math.ceil(a.x * (1 + 2 * jt)), n = Math.ceil(a.y * (1 + 2 * jt));
|
|
1600
1600
|
if (!(i > 0 && n > 0)) return;
|
|
1601
|
-
const c = Math.min(
|
|
1601
|
+
const c = Math.min(Ji, typeof window < "u" && window.devicePixelRatio || 1), r = e.containerPointToLayerPoint([-a.x * jt, -a.y * jt]).round();
|
|
1602
1602
|
(o.width !== Math.round(i * c) || o.height !== Math.round(n * c)) && (o.width = Math.round(i * c), o.height = Math.round(n * c)), o.style.width = `${i}px`, o.style.height = `${n}px`, b.DomUtil.setPosition(o, r), o.style.display = "";
|
|
1603
1603
|
const l = o.getContext("2d");
|
|
1604
1604
|
if (!l) return;
|
|
1605
1605
|
l.setTransform(c, 0, 0, c, 0, 0), l.clearRect(0, 0, i, n);
|
|
1606
1606
|
const d = e.getPixelOrigin().add(r);
|
|
1607
|
-
this.ultimaPintura =
|
|
1607
|
+
this.ultimaPintura = Ha(l, this.obterMarcas(), e.getZoom(), d.x, d.y, i, n);
|
|
1608
1608
|
} catch {
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
@@ -1665,12 +1665,12 @@ function Ge(s, t) {
|
|
|
1665
1665
|
interactive: t
|
|
1666
1666
|
};
|
|
1667
1667
|
}
|
|
1668
|
-
const
|
|
1668
|
+
const os = 150, as = 100, Pe = 300, Ce = 0.75, is = 20, ss = 0.3, Se = typeof requestAnimationFrame == "function" ? (s) => {
|
|
1669
1669
|
requestAnimationFrame(s);
|
|
1670
1670
|
} : (s) => {
|
|
1671
1671
|
setTimeout(s, 16);
|
|
1672
1672
|
};
|
|
1673
|
-
class
|
|
1673
|
+
class ns {
|
|
1674
1674
|
constructor() {
|
|
1675
1675
|
u(this, "estados", /* @__PURE__ */ new WeakMap());
|
|
1676
1676
|
/** Por definição de camada (uma por componente), para a seleção sobreviver à recriação do grupo. */
|
|
@@ -1745,7 +1745,7 @@ class ss {
|
|
|
1745
1745
|
map: o,
|
|
1746
1746
|
context: a,
|
|
1747
1747
|
loja: /* @__PURE__ */ new Map(),
|
|
1748
|
-
indice: new
|
|
1748
|
+
indice: new Fa(),
|
|
1749
1749
|
revisao: 0,
|
|
1750
1750
|
revisaoBase: 0,
|
|
1751
1751
|
listaSincronizada: null,
|
|
@@ -1787,7 +1787,7 @@ class ss {
|
|
|
1787
1787
|
h.add(p.id), n.loja.get(p.id) !== p && d.add(p.id);
|
|
1788
1788
|
const f = [...n.loja.keys()].filter((p) => !h.has(p));
|
|
1789
1789
|
if (d.size > 0 || f.length > 0) {
|
|
1790
|
-
if (n.revisao++, n.revisaoBase++, n.lod.clear(), n.loja.size === 0 || d.size + f.length > l.length *
|
|
1790
|
+
if (n.revisao++, n.revisaoBase++, n.lod.clear(), n.loja.size === 0 || d.size + f.length > l.length * ss)
|
|
1791
1791
|
n.indice.construir(l);
|
|
1792
1792
|
else {
|
|
1793
1793
|
for (const p of l) d.has(p.id) && n.indice.atualizar(p);
|
|
@@ -1848,10 +1848,10 @@ class ss {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
/** Há geometria grande demais para o zoom atual? Só então vale redesenhar ao mudar de zoom. */
|
|
1850
1850
|
ressimplificar(t, e) {
|
|
1851
|
-
return t.zoomDesenho === e ||
|
|
1851
|
+
return t.zoomDesenho === e || qa(t.feicao.geometria) < Na ? !1 : e < uo || t.zoomDesenho < uo;
|
|
1852
1852
|
}
|
|
1853
1853
|
paraDesenho(t, e) {
|
|
1854
|
-
const o =
|
|
1854
|
+
const o = $a(t.geometria, e);
|
|
1855
1855
|
return o === t.geometria ? t : { ...t, geometria: o };
|
|
1856
1856
|
}
|
|
1857
1857
|
/** Vai para a tela? Não oculta e visível pela regra oficial × prévia. */
|
|
@@ -1885,7 +1885,7 @@ class ss {
|
|
|
1885
1885
|
const n = t.lod.get(e.id);
|
|
1886
1886
|
if (n !== void 0) return n;
|
|
1887
1887
|
t.avaliacoesLOD++;
|
|
1888
|
-
const c =
|
|
1888
|
+
const c = Ga(t.indice.caixaDe(e.id), o);
|
|
1889
1889
|
return t.lod.set(e.id, c), c;
|
|
1890
1890
|
}
|
|
1891
1891
|
novaMarca(t, e, o) {
|
|
@@ -1897,7 +1897,7 @@ class ss {
|
|
|
1897
1897
|
lat: (a.minLat + a.maxLat) / 2,
|
|
1898
1898
|
lon: (a.minLon + a.maxLon) / 2,
|
|
1899
1899
|
cor: n,
|
|
1900
|
-
lado:
|
|
1900
|
+
lado: Ua(mo(a, o)),
|
|
1901
1901
|
fonte: e
|
|
1902
1902
|
};
|
|
1903
1903
|
}
|
|
@@ -1925,7 +1925,7 @@ class ss {
|
|
|
1925
1925
|
return;
|
|
1926
1926
|
}
|
|
1927
1927
|
if (!t.camadaMarcas) {
|
|
1928
|
-
const e = W(t.map, t.layerDef.id, "poligono"), o = new
|
|
1928
|
+
const e = W(t.map, t.layerDef.id, "poligono"), o = new es(e, () => t.marcas.values());
|
|
1929
1929
|
t.camadaMarcas = o, o.addTo(t.map), o.on("click", (a) => {
|
|
1930
1930
|
var c, r;
|
|
1931
1931
|
const { feicaoHit: i, originalEvent: n } = a;
|
|
@@ -1963,7 +1963,7 @@ class ss {
|
|
|
1963
1963
|
const p = a.latLngToContainerPoint(m);
|
|
1964
1964
|
return { x: p.x, y: p.y };
|
|
1965
1965
|
}, f = a.getZoom(), g = [];
|
|
1966
|
-
for (let m = 0; m <
|
|
1966
|
+
for (let m = 0; m < is && d.length > 0; m++) {
|
|
1967
1967
|
const p = _t({ x: i.x, y: i.y }, d, h);
|
|
1968
1968
|
if (!p) break;
|
|
1969
1969
|
d.splice(d.indexOf(p), 1);
|
|
@@ -2036,7 +2036,7 @@ class ss {
|
|
|
2036
2036
|
return t.agrupador = null, null;
|
|
2037
2037
|
const a = t.agrupador;
|
|
2038
2038
|
if (a && a.zoom === e && t.agrupadorRev === t.revisaoBase) return a;
|
|
2039
|
-
const i = new
|
|
2039
|
+
const i = new Za(e, (n) => t.map.project(b.latLng(n[0], n[1]), e));
|
|
2040
2040
|
for (const n of t.loja.values())
|
|
2041
2041
|
n.geometria.tipo === "Point" && o(n) && i.inserir({ id: n.id, coordenada: n.geometria.coordenada });
|
|
2042
2042
|
return t.agrupador = i, t.agrupadorRev = t.revisaoBase, i;
|
|
@@ -2221,7 +2221,7 @@ class ss {
|
|
|
2221
2221
|
const x = P ? o.entradas.get(v) : void 0;
|
|
2222
2222
|
x && "bringToFront" in x.layer && x.layer.bringToFront();
|
|
2223
2223
|
}, p = (this.tokenLote.get(t) ?? 0) + 1;
|
|
2224
|
-
if (this.tokenLote.set(t, p), n.length <=
|
|
2224
|
+
if (this.tokenLote.set(t, p), n.length <= os)
|
|
2225
2225
|
n.forEach(m);
|
|
2226
2226
|
else {
|
|
2227
2227
|
const v = l ? this.caixaDe(c.getBounds()) : null, y = (z) => {
|
|
@@ -2231,7 +2231,7 @@ class ss {
|
|
|
2231
2231
|
}, P = n.filter(y), x = n.filter((z) => !y(z));
|
|
2232
2232
|
P.forEach(m);
|
|
2233
2233
|
const M = () => {
|
|
2234
|
-
this.tokenLote.get(t) !== p || !o.vivo || (x.splice(0,
|
|
2234
|
+
this.tokenLote.get(t) !== p || !o.vivo || (x.splice(0, as).forEach(m), x.length > 0 ? Se(M) : this.sincronizarMarcas(o));
|
|
2235
2235
|
};
|
|
2236
2236
|
x.length > 0 && Se(M);
|
|
2237
2237
|
}
|
|
@@ -2307,7 +2307,7 @@ class ss {
|
|
|
2307
2307
|
t.unbindTooltip();
|
|
2308
2308
|
return;
|
|
2309
2309
|
}
|
|
2310
|
-
const a =
|
|
2310
|
+
const a = ei(e, o.campoRotulo);
|
|
2311
2311
|
if (!a) {
|
|
2312
2312
|
t.unbindTooltip();
|
|
2313
2313
|
return;
|
|
@@ -2339,7 +2339,7 @@ class ss {
|
|
|
2339
2339
|
});
|
|
2340
2340
|
}
|
|
2341
2341
|
}
|
|
2342
|
-
function
|
|
2342
|
+
function rs() {
|
|
2343
2343
|
return {
|
|
2344
2344
|
agora: () => typeof performance < "u" && typeof performance.now == "function" ? performance.now() : Date.now(),
|
|
2345
2345
|
quadro: (t) => {
|
|
@@ -2351,7 +2351,7 @@ function ns() {
|
|
|
2351
2351
|
}
|
|
2352
2352
|
};
|
|
2353
2353
|
}
|
|
2354
|
-
class
|
|
2354
|
+
class cs {
|
|
2355
2355
|
constructor(t) {
|
|
2356
2356
|
/** Orçamento de cada quadro para a fila de quadro (ms). Medido: ~12 ms deixam o quadro respirar sem alongar o redesenho. */
|
|
2357
2357
|
u(this, "fatiaMs", 12);
|
|
@@ -2367,7 +2367,7 @@ class rs {
|
|
|
2367
2367
|
this.relogio = t ?? null;
|
|
2368
2368
|
}
|
|
2369
2369
|
get r() {
|
|
2370
|
-
return this.relogio ?? (this.relogio =
|
|
2370
|
+
return this.relogio ?? (this.relogio = rs());
|
|
2371
2371
|
}
|
|
2372
2372
|
/** O relógio dos prazos: quem trabalha dentro de um `passo` mede o tempo por aqui. */
|
|
2373
2373
|
agora() {
|
|
@@ -2479,9 +2479,9 @@ class rs {
|
|
|
2479
2479
|
this.pedirOcioso();
|
|
2480
2480
|
}
|
|
2481
2481
|
}
|
|
2482
|
-
const at = new
|
|
2482
|
+
const at = new cs();
|
|
2483
2483
|
let it = null, At = null;
|
|
2484
|
-
function
|
|
2484
|
+
function ls(s, t) {
|
|
2485
2485
|
if (typeof document > "u") return null;
|
|
2486
2486
|
try {
|
|
2487
2487
|
return it || (it = document.createElement("canvas"), At = it.getContext("2d")), At ? (it.width !== s || it.height !== t ? (it.width = s, it.height = t) : (At.setTransform(1, 0, 0, 1, 0, 0), At.clearRect(0, 0, s, t)), At) : null;
|
|
@@ -2489,7 +2489,7 @@ function cs(s, t) {
|
|
|
2489
2489
|
return null;
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
|
-
function
|
|
2492
|
+
function ds(s, t, e, o) {
|
|
2493
2493
|
const a = [], i = Math.abs(e), n = Math.abs(o);
|
|
2494
2494
|
return i > 0 && a.push({ x: e > 0 ? s - i : 0, y: 0, largura: i, altura: t }), n > 0 && a.push({ x: e > 0 ? 0 : i, y: o > 0 ? t - n : 0, largura: s - i, altura: n }), a;
|
|
2495
2495
|
}
|
|
@@ -2595,7 +2595,7 @@ const X = class X extends b.Canvas {
|
|
|
2595
2595
|
this.provisorio = !0, this.conteudoValido = !1;
|
|
2596
2596
|
else if (g && a && a.mundo) {
|
|
2597
2597
|
const P = c.x - a.mundo.x, x = c.y - a.mundo.y;
|
|
2598
|
-
!this.branco && this.itens <= this.limiteRepintar ? p = !0 : Math.abs(P) < d.x && Math.abs(x) < d.y && ((P !== 0 || x !== 0) && !this.branco && (l.save(), l.setTransform(1, 0, 0, 1, 0, 0), l.globalCompositeOperation = "copy", l.drawImage(r, -P * h, -x * h), l.restore()), m =
|
|
2598
|
+
!this.branco && this.itens <= this.limiteRepintar ? p = !0 : Math.abs(P) < d.x && Math.abs(x) < d.y && ((P !== 0 || x !== 0) && !this.branco && (l.save(), l.setTransform(1, 0, 0, 1, 0, 0), l.globalCompositeOperation = "copy", l.drawImage(r, -P * h, -x * h), l.restore()), m = ds(d.x, d.y, P, x));
|
|
2599
2599
|
}
|
|
2600
2600
|
!m && !p && !v && (this.provisorio = !1, r.width !== h * d.x || r.height !== h * d.y ? (r.width = h * d.x, r.height = h * d.y) : this.branco || (l.setTransform(1, 0, 0, 1, 0, 0), l.clearRect(0, 0, r.width, r.height)), this.branco = !0, r.style.width = `${d.x}px`, r.style.height = `${d.y}px`, this.conteudoValido = !1), this.regioesDaVez = m, this.adiarDaVez = !!this.aoPintarFatiado && (!m && !p || !!m && this.redesenhoPendente), this.mundoMin = c;
|
|
2601
2601
|
const y = o.getSize();
|
|
@@ -2702,7 +2702,7 @@ const X = class X extends b.Canvas {
|
|
|
2702
2702
|
}
|
|
2703
2703
|
if (!o) {
|
|
2704
2704
|
if (!e.preparar(n)) return !1;
|
|
2705
|
-
const c = e.itens(), l = this._container, d = l && c > X.limiteFatiar ? this.quadroAtual(null) : null, h = d && l ?
|
|
2705
|
+
const c = e.itens(), l = this._container, d = l && c > X.limiteFatiar ? this.quadroAtual(null) : null, h = d && l ? ls(l.width, l.height) : null;
|
|
2706
2706
|
return !d || !h ? (this.provisorio = !1, this.pintarQuadro(null), i()) : (o = e.pintarFatiado({ ...d, ctx: h, branco: !0, regioes: null }), !1);
|
|
2707
2707
|
}
|
|
2708
2708
|
return o.passo(n) ? (this.trocarPeloBuffer(o.resultado()), i()) : !1;
|
|
@@ -2829,7 +2829,7 @@ function Me(s, t) {
|
|
|
2829
2829
|
return s == null ? t.renderizadorPadrao : String(s).trim().toLowerCase() === "canvas" ? "canvas" : "leaflet";
|
|
2830
2830
|
}
|
|
2831
2831
|
const _o = /* @__PURE__ */ new WeakMap();
|
|
2832
|
-
function
|
|
2832
|
+
function hs(s, t) {
|
|
2833
2833
|
try {
|
|
2834
2834
|
if (!s || typeof s != "object" || !s.options) return;
|
|
2835
2835
|
let e = _o.get(s);
|
|
@@ -2846,16 +2846,16 @@ function ds(s, t) {
|
|
|
2846
2846
|
} catch {
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
2849
|
-
const Ze = "cad-formas-sobreposicao",
|
|
2849
|
+
const Ze = "cad-formas-sobreposicao", us = "7000", Ht = 8, ps = 8, fs = 20, ya = typeof requestAnimationFrame == "function" ? (s) => {
|
|
2850
2850
|
requestAnimationFrame(s);
|
|
2851
2851
|
} : (s) => {
|
|
2852
2852
|
setTimeout(s, 16);
|
|
2853
|
-
},
|
|
2853
|
+
}, ms = /* @__PURE__ */ new Set(["icone", "texto", "cluster", "rotulo", "curva"]), gs = 32, Gt = () => at.agora(), st = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap();
|
|
2854
2854
|
function Y(s) {
|
|
2855
2855
|
return { caixa: s.caixa, zoom: s.zoom, larguraPx: s.larguraPx, alturaPx: s.alturaPx, dpr: s.dpr, origemPx: s.origemPx };
|
|
2856
2856
|
}
|
|
2857
|
-
const
|
|
2858
|
-
function
|
|
2857
|
+
const vs = (s) => !!s._loaded;
|
|
2858
|
+
function bs(s) {
|
|
2859
2859
|
const t = st.get(s);
|
|
2860
2860
|
if (t) return t;
|
|
2861
2861
|
const e = { estados: /* @__PURE__ */ new Set(), quadro: null, agendado: !1, noMapa: !1 };
|
|
@@ -2873,11 +2873,11 @@ function vs(s) {
|
|
|
2873
2873
|
return o.branco && i.length === 0 ? !1 : (e.pintor.desenhar({ vista: a, origem: o.origemPx, camadas: i }, a, { alvo: "sobreposicao" }), i.length > 0);
|
|
2874
2874
|
}), st.set(s, e), e;
|
|
2875
2875
|
}
|
|
2876
|
-
function
|
|
2876
|
+
function ys(s, t) {
|
|
2877
2877
|
t.noMapa || (t.noMapa = !0, s.whenReady(() => {
|
|
2878
2878
|
if (!s.getPane(Ze)) {
|
|
2879
2879
|
const e = s.createPane(Ze);
|
|
2880
|
-
e.style.zIndex =
|
|
2880
|
+
e.style.zIndex = us, e.style.pointerEvents = "none";
|
|
2881
2881
|
}
|
|
2882
2882
|
st.get(s) === t && s.addLayer(t.canvas);
|
|
2883
2883
|
}));
|
|
@@ -2887,7 +2887,7 @@ function zt(s) {
|
|
|
2887
2887
|
s.agendado = !1, s.noMapa && s.canvas.pintar();
|
|
2888
2888
|
}));
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function xs(s) {
|
|
2891
2891
|
var t;
|
|
2892
2892
|
try {
|
|
2893
2893
|
return ((t = s.qualidade) == null ? void 0 : t.call(s)) ?? Ue("alta");
|
|
@@ -2895,7 +2895,7 @@ function ys(s) {
|
|
|
2895
2895
|
return Ue("alta");
|
|
2896
2896
|
}
|
|
2897
2897
|
}
|
|
2898
|
-
class
|
|
2898
|
+
class Ps {
|
|
2899
2899
|
constructor() {
|
|
2900
2900
|
u(this, "estados", /* @__PURE__ */ new WeakMap());
|
|
2901
2901
|
/** Por definição de camada, para a seleção sobreviver à recriação do grupo (ocultar e exibir a camada). */
|
|
@@ -2903,7 +2903,7 @@ class xs {
|
|
|
2903
2903
|
}
|
|
2904
2904
|
// ---------------------------------------------------------------- ILayerRenderer
|
|
2905
2905
|
render(t, e, o) {
|
|
2906
|
-
const a = b.layerGroup(), i = new
|
|
2906
|
+
const a = b.layerGroup(), i = new Wa(), n = xs(o);
|
|
2907
2907
|
i.definirQualidade({ limiteMarcaPx: n.limiteMarcaPx, limiteMiudaPx: n.limiteMiudaPx, toleranciaPx: n.toleranciaPx });
|
|
2908
2908
|
const c = o.regraVersoes;
|
|
2909
2909
|
c && i.definirRegra(Object.assign((h, f) => c.visivel(h, f), { soPrevias: !0 })), i.definirCamada(this.defMotor(t)), i.definirFeicoes(t.id, this.feicoesDe(t));
|
|
@@ -2936,8 +2936,8 @@ class xs {
|
|
|
2936
2936
|
), this.estados.set(a, l), e.whenReady(() => {
|
|
2937
2937
|
l.vivo && a.addLayer(l.base);
|
|
2938
2938
|
});
|
|
2939
|
-
const d =
|
|
2940
|
-
return d.pintor.definirTracejado(n.tracejado), d.canvas.definirDprMaximo(n.dprMaximo), d.estados.add(l),
|
|
2939
|
+
const d = bs(e);
|
|
2940
|
+
return d.pintor.definirTracejado(n.tracejado), d.canvas.definirDprMaximo(n.dprMaximo), d.estados.add(l), ys(e, d), this.registrarHit(l), a;
|
|
2941
2941
|
}
|
|
2942
2942
|
update(t, e, o, a, i) {
|
|
2943
2943
|
var c;
|
|
@@ -3077,7 +3077,7 @@ class xs {
|
|
|
3077
3077
|
}
|
|
3078
3078
|
/** A vista de uma faixa exposta no pan incremental (a origem continua sendo a do canvas inteiro). */
|
|
3079
3079
|
vistaDaFaixa(t, e) {
|
|
3080
|
-
const o =
|
|
3080
|
+
const o = ps, [a, i] = $t(t.origemPx.x + e.x - o, t.origemPx.y + e.y - o, t.zoom), [n, c] = $t(t.origemPx.x + e.x + e.largura + o, t.origemPx.y + e.y + e.altura + o, t.zoom);
|
|
3081
3081
|
return {
|
|
3082
3082
|
...Y(t),
|
|
3083
3083
|
larguraPx: e.largura,
|
|
@@ -3214,7 +3214,7 @@ class xs {
|
|
|
3214
3214
|
sincronizacaoDom(t, e) {
|
|
3215
3215
|
const o = /* @__PURE__ */ new Set(), a = [];
|
|
3216
3216
|
for (const r of e.itens)
|
|
3217
|
-
|
|
3217
|
+
ms.has(r.forma) && (o.add(`${r.forma}:${r.id}`), a.push(r));
|
|
3218
3218
|
const i = [];
|
|
3219
3219
|
let n = 0, c = !1;
|
|
3220
3220
|
return {
|
|
@@ -3226,7 +3226,7 @@ class xs {
|
|
|
3226
3226
|
o.has(l) || !l.startsWith("cluster:") || (i.push(d), t.dom.delete(l));
|
|
3227
3227
|
}
|
|
3228
3228
|
for (; n < a.length; ) {
|
|
3229
|
-
const l = Math.min(a.length, n +
|
|
3229
|
+
const l = Math.min(a.length, n + gs);
|
|
3230
3230
|
for (; n < l; n++) {
|
|
3231
3231
|
const d = a[n], h = `${d.forma}:${d.id}`;
|
|
3232
3232
|
try {
|
|
@@ -3366,7 +3366,7 @@ class xs {
|
|
|
3366
3366
|
alvo: t.base,
|
|
3367
3367
|
consultar: (o) => {
|
|
3368
3368
|
const { map: a, layerDef: i, motor: n } = t;
|
|
3369
|
-
if (!t.vivo || !t.interativo || !i.visivel || !
|
|
3369
|
+
if (!t.vivo || !t.interativo || !i.visivel || !vs(a)) return [];
|
|
3370
3370
|
const c = a.layerPointToContainerPoint(o), r = a.containerPointToLatLng([c.x - Ht, c.y + Ht]), l = a.containerPointToLatLng([c.x + Ht, c.y - Ht]), d = {
|
|
3371
3371
|
minLat: Math.min(r.lat, l.lat),
|
|
3372
3372
|
maxLat: Math.max(r.lat, l.lat),
|
|
@@ -3381,7 +3381,7 @@ class xs {
|
|
|
3381
3381
|
const p = a.latLngToContainerPoint(m);
|
|
3382
3382
|
return { x: p.x, y: p.y };
|
|
3383
3383
|
}, g = [];
|
|
3384
|
-
for (let m = 0; m <
|
|
3384
|
+
for (let m = 0; m < fs && h.length > 0; m++) {
|
|
3385
3385
|
const p = _t({ x: c.x, y: c.y }, h, f);
|
|
3386
3386
|
if (!p) break;
|
|
3387
3387
|
h.splice(h.indexOf(p), 1);
|
|
@@ -3414,18 +3414,18 @@ class xs {
|
|
|
3414
3414
|
});
|
|
3415
3415
|
}
|
|
3416
3416
|
}
|
|
3417
|
-
function
|
|
3417
|
+
function Cs(s) {
|
|
3418
3418
|
return String(s ?? "").trim().toLowerCase() === "canvas" ? "canvas" : "leaflet";
|
|
3419
3419
|
}
|
|
3420
|
-
class
|
|
3421
|
-
constructor(t = new
|
|
3420
|
+
class Ss {
|
|
3421
|
+
constructor(t = new ns(), e = new Ps()) {
|
|
3422
3422
|
u(this, "roteamento", /* @__PURE__ */ new WeakMap());
|
|
3423
3423
|
this.leaflet = t, this.canvas = e;
|
|
3424
3424
|
}
|
|
3425
3425
|
modo(t) {
|
|
3426
3426
|
var e;
|
|
3427
3427
|
try {
|
|
3428
|
-
return
|
|
3428
|
+
return Cs((e = t.renderizador) == null ? void 0 : e.call(t));
|
|
3429
3429
|
} catch {
|
|
3430
3430
|
return "leaflet";
|
|
3431
3431
|
}
|
|
@@ -3470,13 +3470,13 @@ class Cs {
|
|
|
3470
3470
|
this.de(t).aplicarSelecao(t, e);
|
|
3471
3471
|
}
|
|
3472
3472
|
}
|
|
3473
|
-
R.register("tile", new
|
|
3474
|
-
R.register("wms", new
|
|
3475
|
-
R.register("vetorial-linhas", new
|
|
3476
|
-
R.register("vetorial-pontos", new
|
|
3477
|
-
R.register("vetorial-poligonos", new
|
|
3478
|
-
R.register("grid", new
|
|
3479
|
-
R.register("feicoes", new
|
|
3473
|
+
R.register("tile", new Hi());
|
|
3474
|
+
R.register("wms", new Gi());
|
|
3475
|
+
R.register("vetorial-linhas", new Ui());
|
|
3476
|
+
R.register("vetorial-pontos", new Wi());
|
|
3477
|
+
R.register("vetorial-poligonos", new Xi());
|
|
3478
|
+
R.register("grid", new Ki());
|
|
3479
|
+
R.register("feicoes", new Ss());
|
|
3480
3480
|
const Oo = [
|
|
3481
3481
|
{
|
|
3482
3482
|
id: "satelite",
|
|
@@ -3601,11 +3601,11 @@ const Oo = [
|
|
|
3601
3601
|
scaleMode: "screen"
|
|
3602
3602
|
}
|
|
3603
3603
|
}
|
|
3604
|
-
],
|
|
3604
|
+
], Ls = /* @__PURE__ */ new Set(["tile", "wms", "grid"]);
|
|
3605
3605
|
function Ae(s, t) {
|
|
3606
3606
|
return typeof s == "number" && Number.isFinite(s) ? Math.max(0, Math.min(1, s)) : t;
|
|
3607
3607
|
}
|
|
3608
|
-
class
|
|
3608
|
+
class Ms {
|
|
3609
3609
|
constructor(t) {
|
|
3610
3610
|
u(this, "layers", []);
|
|
3611
3611
|
u(this, "layerInstances", /* @__PURE__ */ new Map());
|
|
@@ -3639,7 +3639,7 @@ class Ls {
|
|
|
3639
3639
|
}
|
|
3640
3640
|
renderAllLayers(t = !1) {
|
|
3641
3641
|
this.renderPendente = !1, !(!this.map || !this.context) && (this.layers.forEach((e) => {
|
|
3642
|
-
if (!(t &&
|
|
3642
|
+
if (!(t && Ls.has(e.tipo) && e.visivel && this.layerInstances.has(e.id))) {
|
|
3643
3643
|
if (this.layerInstances.has(e.id)) {
|
|
3644
3644
|
const o = this.layerInstances.get(e.id), a = R.get(e.tipo);
|
|
3645
3645
|
a && a.destroy(o, this.map), this.layerInstances.delete(e.id);
|
|
@@ -3963,7 +3963,7 @@ function xa(s, t) {
|
|
|
3963
3963
|
}
|
|
3964
3964
|
return null;
|
|
3965
3965
|
}
|
|
3966
|
-
function
|
|
3966
|
+
function As(s, t, e, o) {
|
|
3967
3967
|
var g, m;
|
|
3968
3968
|
We(t, s.getMap());
|
|
3969
3969
|
const a = s.getMap();
|
|
@@ -4004,7 +4004,7 @@ function Ms(s, t, e, o) {
|
|
|
4004
4004
|
function We(s, t) {
|
|
4005
4005
|
s.destaqueTimeoutId !== null && (window.clearTimeout(s.destaqueTimeoutId), s.destaqueTimeoutId = null), s.destaqueMarker && (t && t.hasLayer(s.destaqueMarker) ? t.removeLayer(s.destaqueMarker) : typeof s.destaqueMarker.remove == "function" && s.destaqueMarker.remove(), s.destaqueMarker = null);
|
|
4006
4006
|
}
|
|
4007
|
-
function
|
|
4007
|
+
function zs(s, t) {
|
|
4008
4008
|
const e = /* @__PURE__ */ new Map();
|
|
4009
4009
|
s.forEach((a) => {
|
|
4010
4010
|
const i = a.lat ?? a.latitude ?? a.y, n = a.lon ?? a.lng ?? a.longitude ?? a.x, c = j(i, n);
|
|
@@ -4030,7 +4030,7 @@ function As(s, t) {
|
|
|
4030
4030
|
});
|
|
4031
4031
|
}), Array.from(o.values()).filter((a) => a.pontos && a.pontos.length > 0 || !!a.poligono_wkt);
|
|
4032
4032
|
}
|
|
4033
|
-
function
|
|
4033
|
+
function ws(s, t) {
|
|
4034
4034
|
const e = /* @__PURE__ */ new Map();
|
|
4035
4035
|
return t.forEach((o) => {
|
|
4036
4036
|
o.id !== void 0 && o.id !== null && o.pontos && o.pontos.length > 0 && e.set(o.id, o.pontos);
|
|
@@ -4039,7 +4039,7 @@ function zs(s, t) {
|
|
|
4039
4039
|
return a !== void 0 && (!o.pontos || o.pontos.length === 0) && e.has(a) ? { ...o, pontos: e.get(a) } : { ...o };
|
|
4040
4040
|
});
|
|
4041
4041
|
}
|
|
4042
|
-
function
|
|
4042
|
+
function Es(s, t, e = !1) {
|
|
4043
4043
|
let o = [...s];
|
|
4044
4044
|
e && t && t.forEach((i) => {
|
|
4045
4045
|
i.pontos && o.push(...i.pontos);
|
|
@@ -4050,7 +4050,7 @@ function ws(s, t, e = !1) {
|
|
|
4050
4050
|
}).filter((i) => i !== null);
|
|
4051
4051
|
return a.length === 1 ? { single: a[0] } : a.length > 1 ? { bounds: b.latLngBounds(a) } : null;
|
|
4052
4052
|
}
|
|
4053
|
-
function
|
|
4053
|
+
function ks(s, t) {
|
|
4054
4054
|
var i;
|
|
4055
4055
|
(i = t == null ? void 0 : t.flushRender) == null || i.call(t);
|
|
4056
4056
|
const e = [], o = /* @__PURE__ */ new Set(), a = (n) => {
|
|
@@ -4062,14 +4062,14 @@ function Es(s, t) {
|
|
|
4062
4062
|
a(n), typeof n.eachLayer == "function" && n.eachLayer(a);
|
|
4063
4063
|
}), e;
|
|
4064
4064
|
}
|
|
4065
|
-
function
|
|
4065
|
+
function Is(s, t, e = "vertices", o) {
|
|
4066
4066
|
const a = t || [];
|
|
4067
4067
|
s.layerManager.getOrCreateLayer(e, "vetorial-pontos", "Pontos / Vértices"), e === "vertices" && (s.context.pontos = a, s.canvasInteracao.ctx.pontosList = a, o && (s.customMarkerClickCallback = (i) => {
|
|
4068
4068
|
const n = a.find((c) => String(c.id) === String(i)) || { id: i, lat: 0, lon: 0 };
|
|
4069
4069
|
o(n);
|
|
4070
4070
|
})), s.layerManager.setLayerData(e, { pontos: a, onClique: o }), s.layerManager.setLayerVisibility(e, !0);
|
|
4071
4071
|
}
|
|
4072
|
-
function
|
|
4072
|
+
function Ts(s, t, e = "linhas") {
|
|
4073
4073
|
const o = t || [];
|
|
4074
4074
|
s.layerManager.getOrCreateLayer(e, "vetorial-linhas", "Conexões / Linhas"), (e === "linhas" || e === "perimetro") && (s.context.segmentos = o.map((a) => ({
|
|
4075
4075
|
ponto_inicio_id: Number(a.origemId) || 0,
|
|
@@ -4077,7 +4077,7 @@ function Is(s, t, e = "linhas") {
|
|
|
4077
4077
|
tipo_limite_sigef: a.tipoLinha === "tracejada" ? "LN1" : "LA1"
|
|
4078
4078
|
}))), s.layerManager.setLayerData(e, { conexoes: o }), s.layerManager.setLayerVisibility(e, !0);
|
|
4079
4079
|
}
|
|
4080
|
-
function
|
|
4080
|
+
function Ds(s, t, e = !0, o = "polilinha", a) {
|
|
4081
4081
|
const i = t || [];
|
|
4082
4082
|
s.layerManager.getOrCreateLayer(o, "vetorial-linhas", "Polilinhas"), (o === "polilinha" || o === "perimetro") && (s.context.pontos = i, s.context.segmentos = [], s.canvasInteracao.ctx.pontosList = i);
|
|
4083
4083
|
const n = a || s.chaveGrupo || s.context.chaveGrupo;
|
|
@@ -4088,11 +4088,11 @@ function Ts(s, t, e = !0, o = "polilinha", a) {
|
|
|
4088
4088
|
chaveGrupo: n
|
|
4089
4089
|
}), s.layerManager.setLayerVisibility(o, !0);
|
|
4090
4090
|
}
|
|
4091
|
-
function
|
|
4091
|
+
function _s(s, t, e = "poligonos") {
|
|
4092
4092
|
const o = t || [];
|
|
4093
4093
|
s.layerManager.getOrCreateLayer(e, "vetorial-poligonos", "Polígonos"), s.layerManager.setLayerData(e, { poligonos: o }), s.layerManager.setLayerVisibility(e, !0);
|
|
4094
4094
|
}
|
|
4095
|
-
function
|
|
4095
|
+
function Os(s, t, e) {
|
|
4096
4096
|
const o = t || [];
|
|
4097
4097
|
if (e != null) {
|
|
4098
4098
|
const a = e || [];
|
|
@@ -4103,7 +4103,7 @@ function _s(s, t, e) {
|
|
|
4103
4103
|
...e != null ? { pontos: s.context.pontos } : {}
|
|
4104
4104
|
});
|
|
4105
4105
|
}
|
|
4106
|
-
function
|
|
4106
|
+
function Fs(s, t = !1) {
|
|
4107
4107
|
s.context.pontos = [], s.context.segmentos = [], s.context.confrontantes = [], s.canvasInteracao.ctx.pontosList = [], s.canvasInteracao.limparSelecao();
|
|
4108
4108
|
const e = {
|
|
4109
4109
|
pontos: [],
|
|
@@ -4115,7 +4115,7 @@ function Os(s, t = !1) {
|
|
|
4115
4115
|
function Fo(s) {
|
|
4116
4116
|
return s != null && !isNaN(Number(s)) && String(s).trim() !== "" ? Number(s) : s;
|
|
4117
4117
|
}
|
|
4118
|
-
function
|
|
4118
|
+
function qs(s, t) {
|
|
4119
4119
|
var c, r;
|
|
4120
4120
|
const e = s.core.map, o = s.layerManager.getLayerDef(t.layerId), a = t.baseSize || 8, i = ((c = s.context.graphicScale) == null ? void 0 : c.markerScaleMultiplier) || 1;
|
|
4121
4121
|
if (e && ((r = o == null ? void 0 : o.estilo) == null ? void 0 : r.scaleMode) === "world") {
|
|
@@ -4125,8 +4125,8 @@ function Fs(s, t) {
|
|
|
4125
4125
|
const n = pa(t.densTotal || 0, (e == null ? void 0 : e.getZoom()) ?? 18);
|
|
4126
4126
|
return Math.max(n < 1 ? 5 : 4, Math.round(a * i * n));
|
|
4127
4127
|
}
|
|
4128
|
-
function
|
|
4129
|
-
const i =
|
|
4128
|
+
function Ns(s, t, e, o, a) {
|
|
4129
|
+
const i = qs(s, e), n = s.context.config.enableAnimations ? "cad-pt-anim" : "", c = ce(
|
|
4130
4130
|
e.shapeStyle,
|
|
4131
4131
|
i,
|
|
4132
4132
|
e.markerBg,
|
|
@@ -4141,7 +4141,7 @@ function qs(s, t, e, o, a) {
|
|
|
4141
4141
|
iconSize: [i + 6, i + 6]
|
|
4142
4142
|
}));
|
|
4143
4143
|
}
|
|
4144
|
-
function
|
|
4144
|
+
function $s(s) {
|
|
4145
4145
|
const t = s.context.selectedPontoIds || [], e = s.canvasInteracao.ctx.selectedVizinhoPontoIds || [], o = /* @__PURE__ */ new Set([
|
|
4146
4146
|
...t.map(String),
|
|
4147
4147
|
...e.map(String)
|
|
@@ -4151,12 +4151,12 @@ function Ns(s) {
|
|
|
4151
4151
|
if (n == null) continue;
|
|
4152
4152
|
const c = o.has(String(n));
|
|
4153
4153
|
if (i.isSelected === c) continue;
|
|
4154
|
-
i.isSelected = c, a.setZIndexOffset(c ? 2e3 : 0), i.shapeStyle && i.baseSize && i.markerBg &&
|
|
4154
|
+
i.isSelected = c, a.setZIndexOffset(c ? 2e3 : 0), i.shapeStyle && i.baseSize && i.markerBg && Ns(s, a, i, n, c);
|
|
4155
4155
|
const r = a.getElement();
|
|
4156
4156
|
r && (c ? r.classList.add("cad-marker-selected", "ponto-selecionado") : r.classList.remove("cad-marker-selected", "ponto-selecionado"));
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
|
-
class
|
|
4159
|
+
class Rs {
|
|
4160
4160
|
constructor(t) {
|
|
4161
4161
|
u(this, "core");
|
|
4162
4162
|
u(this, "layerManager");
|
|
@@ -4172,7 +4172,7 @@ class $s {
|
|
|
4172
4172
|
destaqueMarker: null,
|
|
4173
4173
|
destaqueTimeoutId: null
|
|
4174
4174
|
});
|
|
4175
|
-
this.core = new
|
|
4175
|
+
this.core = new Ii(this), this.layerManager = new Ms(t), this.canvasInteracao = new ji({
|
|
4176
4176
|
mapaController: this,
|
|
4177
4177
|
layerManager: this.layerManager
|
|
4178
4178
|
}), this.context = {
|
|
@@ -4237,16 +4237,16 @@ class $s {
|
|
|
4237
4237
|
this.context.confrontantes = e, this.layerManager.updateContext({ confrontantes: e });
|
|
4238
4238
|
}
|
|
4239
4239
|
plotarPontos(t, e = "vertices", o) {
|
|
4240
|
-
|
|
4240
|
+
Is(this, t, e, o);
|
|
4241
4241
|
}
|
|
4242
4242
|
plotarConexoes(t, e = "linhas") {
|
|
4243
|
-
|
|
4243
|
+
Ts(this, t, e);
|
|
4244
4244
|
}
|
|
4245
4245
|
plotarPolilinhaSequencial(t, e = !0, o = "polilinha", a) {
|
|
4246
|
-
|
|
4246
|
+
Ds(this, t, e, o, a);
|
|
4247
4247
|
}
|
|
4248
4248
|
plotarPoligonos(t, e = "poligonos") {
|
|
4249
|
-
|
|
4249
|
+
_s(this, t, e);
|
|
4250
4250
|
}
|
|
4251
4251
|
limparCamadas(t) {
|
|
4252
4252
|
this.layerManager.clearLayers(t), (!t || t.length === 0) && this.canvasInteracao.limparSelecao();
|
|
@@ -4268,7 +4268,7 @@ class $s {
|
|
|
4268
4268
|
e && (this.customMarkerClickCallback = e), this.setPontos(t || []);
|
|
4269
4269
|
}
|
|
4270
4270
|
plotSegmentos(t, e) {
|
|
4271
|
-
|
|
4271
|
+
Os(this, t, e);
|
|
4272
4272
|
}
|
|
4273
4273
|
plotPolilinhaTemporaria(t) {
|
|
4274
4274
|
const e = t || [];
|
|
@@ -4279,15 +4279,15 @@ class $s {
|
|
|
4279
4279
|
this.setBancoPontos(e), this.layerManager.setLayerVisibility("homologados", !0), this.layerManager.setLayerVisibility("homologados-pontos", !0);
|
|
4280
4280
|
}
|
|
4281
4281
|
plotPontosVizinhos(t) {
|
|
4282
|
-
const e =
|
|
4282
|
+
const e = zs(t || [], this.context.confrontantes || []);
|
|
4283
4283
|
this.setConfrontantes(e), this.layerManager.setLayerVisibility("vizinhos", !0);
|
|
4284
4284
|
}
|
|
4285
4285
|
plotPoligonosVizinhos(t) {
|
|
4286
|
-
const e =
|
|
4286
|
+
const e = ws(t || [], this.context.confrontantes || []);
|
|
4287
4287
|
this.setConfrontantes(e), this.layerManager.setLayerVisibility("vizinhos", !0);
|
|
4288
4288
|
}
|
|
4289
4289
|
clearOverlays(t = !1) {
|
|
4290
|
-
|
|
4290
|
+
Fs(this, t);
|
|
4291
4291
|
}
|
|
4292
4292
|
setGraphicScale(t) {
|
|
4293
4293
|
this.layerManager.setGraphicScale(t);
|
|
@@ -4309,7 +4309,7 @@ class $s {
|
|
|
4309
4309
|
this.canvasInteracao.ctx.selectedPontoIds = [i], this.canvasInteracao.ctx.lastSelectedPontoId = i, this.context.selectedPontoIds = [i], this.atualizarDestaqueMarcadores();
|
|
4310
4310
|
}
|
|
4311
4311
|
atualizarDestaqueMarcadores() {
|
|
4312
|
-
|
|
4312
|
+
$s(this);
|
|
4313
4313
|
}
|
|
4314
4314
|
selectSegmento(t) {
|
|
4315
4315
|
const e = t != null ? String(t) : null;
|
|
@@ -4317,7 +4317,7 @@ class $s {
|
|
|
4317
4317
|
}
|
|
4318
4318
|
fitBounds(t, e = [40, 40], o = !1) {
|
|
4319
4319
|
if (!this.core.map) return;
|
|
4320
|
-
const a =
|
|
4320
|
+
const a = Es(t || this.context.pontos || [], this.context.confrontantes, o);
|
|
4321
4321
|
if (a) {
|
|
4322
4322
|
a.single ? this.core.map.setView(a.single, 18) : a.bounds && (this.core.map.fitBounds(a.bounds, { padding: e }), this.core.map.once("moveend", () => {
|
|
4323
4323
|
this.core.preCarregarTilesRegiao(a.bounds);
|
|
@@ -4329,7 +4329,7 @@ class $s {
|
|
|
4329
4329
|
}
|
|
4330
4330
|
}
|
|
4331
4331
|
getMarkers() {
|
|
4332
|
-
return
|
|
4332
|
+
return ks(this.core.map, this.layerManager);
|
|
4333
4333
|
}
|
|
4334
4334
|
getVizinhosMarkers() {
|
|
4335
4335
|
return this.getMarkers().filter((t) => !!t.isVizinho);
|
|
@@ -4341,7 +4341,7 @@ class $s {
|
|
|
4341
4341
|
return xa(this, t);
|
|
4342
4342
|
}
|
|
4343
4343
|
destacarElemento(t, e) {
|
|
4344
|
-
|
|
4344
|
+
As(this, this.destaqueState, t, e);
|
|
4345
4345
|
}
|
|
4346
4346
|
limparDestaque() {
|
|
4347
4347
|
We(this.destaqueState, this.getMap());
|
|
@@ -4359,7 +4359,7 @@ class $s {
|
|
|
4359
4359
|
return this.core.map;
|
|
4360
4360
|
}
|
|
4361
4361
|
}
|
|
4362
|
-
function
|
|
4362
|
+
function Bs(s, t, e, o) {
|
|
4363
4363
|
if (!s) return;
|
|
4364
4364
|
if (s.querySelectorAll(".layer-item").length === t.length) {
|
|
4365
4365
|
t.forEach((i) => {
|
|
@@ -4439,7 +4439,7 @@ function Rs(s, t, e, o) {
|
|
|
4439
4439
|
});
|
|
4440
4440
|
});
|
|
4441
4441
|
}
|
|
4442
|
-
function
|
|
4442
|
+
function Vs(s) {
|
|
4443
4443
|
return s.context.selectedPontoIds || s.canvasInteracao.ctx.selectedPontoIds || [];
|
|
4444
4444
|
}
|
|
4445
4445
|
function Pa(s, t) {
|
|
@@ -4449,11 +4449,11 @@ function so(s) {
|
|
|
4449
4449
|
const t = s;
|
|
4450
4450
|
return (t == null ? void 0 : t.originalEvent) || t || {};
|
|
4451
4451
|
}
|
|
4452
|
-
function
|
|
4452
|
+
function js(s) {
|
|
4453
4453
|
const t = s, e = so(s), o = typeof e.composedPath == "function" ? e.composedPath() : [];
|
|
4454
4454
|
return o.length > 0 ? o[0] : e.target || (t == null ? void 0 : t.target) || null;
|
|
4455
4455
|
}
|
|
4456
|
-
function
|
|
4456
|
+
function Hs(s, t, e) {
|
|
4457
4457
|
var i, n, c, r;
|
|
4458
4458
|
if (t) return { x: Math.round(t.x), y: Math.round(t.y) };
|
|
4459
4459
|
const o = s;
|
|
@@ -4468,21 +4468,21 @@ function js(s, t, e) {
|
|
|
4468
4468
|
y: Math.round((a.clientY ?? 0) - e.top)
|
|
4469
4469
|
};
|
|
4470
4470
|
}
|
|
4471
|
-
function
|
|
4471
|
+
function Gs(s, t) {
|
|
4472
4472
|
const e = t || (s == null ? void 0 : s.latlng);
|
|
4473
4473
|
return e && typeof e.lat == "number" ? { lat: e.lat, lng: e.lng ?? e.lon ?? 0 } : null;
|
|
4474
4474
|
}
|
|
4475
|
-
function
|
|
4475
|
+
function Us(s, t, e, o) {
|
|
4476
4476
|
var m, p;
|
|
4477
4477
|
if (s.modoSequencial || s.controller.canvasInteracao.selectionHappened || s.controller.canvasInteracao.panHappened || s.mouseMovedSinceDown) return !1;
|
|
4478
|
-
const a = so(t), i =
|
|
4478
|
+
const a = so(t), i = js(t);
|
|
4479
4479
|
if (i) {
|
|
4480
4480
|
const v = '.custom-leaflet-marker, .leaflet-marker-icon, .leaflet-interactive, .compact-popup, .leaflet-popup, .ui-popup-btn, .cad-btn-tool, .qgis-layer-panel, [class*="leaflet-marker"], [class*="leaflet-popup"]';
|
|
4481
4481
|
if (((m = i.matches) == null ? void 0 : m.call(i, v)) || ((p = i.closest) == null ? void 0 : p.call(i, v))) return !1;
|
|
4482
4482
|
}
|
|
4483
4483
|
const n = s.controller.getMap();
|
|
4484
4484
|
if (!n || !s.mapContainer) return !1;
|
|
4485
|
-
const c =
|
|
4485
|
+
const c = Hs(t, o, s.mapContainer.getBoundingClientRect()), l = Gs(t, e) ?? n.containerPointToLatLng(b.point(c.x, c.y)), d = l.lat, h = l.lng, f = s.controller.layerManager ? s.controller.layerManager.getLayers().filter((v) => v.visivel).map((v) => v.id) : [], g = a;
|
|
4486
4486
|
return s.host.dispatchEvent(new CustomEvent("ui-canvas-clique", {
|
|
4487
4487
|
detail: {
|
|
4488
4488
|
coordenadas: {
|
|
@@ -4500,7 +4500,7 @@ function Gs(s, t, e, o) {
|
|
|
4500
4500
|
composed: !0
|
|
4501
4501
|
})), !0;
|
|
4502
4502
|
}
|
|
4503
|
-
function
|
|
4503
|
+
function Zs(s, t, e, o) {
|
|
4504
4504
|
const a = o || s.obterElementoPorId(e);
|
|
4505
4505
|
s.host.dispatchEvent(new CustomEvent("ui-acao-popup", {
|
|
4506
4506
|
detail: {
|
|
@@ -4512,7 +4512,7 @@ function Us(s, t, e, o) {
|
|
|
4512
4512
|
composed: !0
|
|
4513
4513
|
})), s.fecharPopup();
|
|
4514
4514
|
}
|
|
4515
|
-
function
|
|
4515
|
+
function Ws(s, t, e, o, a, i, n) {
|
|
4516
4516
|
let c = o || s.obterElementoPorId(t), r = a;
|
|
4517
4517
|
if (!r && c) {
|
|
4518
4518
|
const l = c, d = l.lat ?? l.latitude ?? 0, h = l.lon ?? l.lng ?? l.longitude ?? 0;
|
|
@@ -4553,7 +4553,7 @@ function Zs(s, t, e, o, a, i, n) {
|
|
|
4553
4553
|
composed: !0
|
|
4554
4554
|
}));
|
|
4555
4555
|
}
|
|
4556
|
-
function
|
|
4556
|
+
function Xs(s, t, e, o, a) {
|
|
4557
4557
|
if (s.modoSequencial) {
|
|
4558
4558
|
s.fecharPopup();
|
|
4559
4559
|
return;
|
|
@@ -4585,7 +4585,7 @@ function Ws(s, t, e, o, a) {
|
|
|
4585
4585
|
composed: !0
|
|
4586
4586
|
}));
|
|
4587
4587
|
}
|
|
4588
|
-
function
|
|
4588
|
+
function Ks(s, t) {
|
|
4589
4589
|
let e = null, o = null, a = 0, i = 0;
|
|
4590
4590
|
function n() {
|
|
4591
4591
|
var d;
|
|
@@ -4621,7 +4621,7 @@ function Xs(s, t) {
|
|
|
4621
4621
|
invalidateSizeSafely: n
|
|
4622
4622
|
};
|
|
4623
4623
|
}
|
|
4624
|
-
class
|
|
4624
|
+
class Qs {
|
|
4625
4625
|
constructor(t) {
|
|
4626
4626
|
u(this, "canal", null);
|
|
4627
4627
|
u(this, "contexto");
|
|
@@ -4682,7 +4682,7 @@ class Ks {
|
|
|
4682
4682
|
}
|
|
4683
4683
|
}
|
|
4684
4684
|
}
|
|
4685
|
-
class
|
|
4685
|
+
class Ys {
|
|
4686
4686
|
constructor(t) {
|
|
4687
4687
|
u(this, "contexto");
|
|
4688
4688
|
u(this, "uiListeners", new ie());
|
|
@@ -4745,7 +4745,7 @@ class Qs {
|
|
|
4745
4745
|
this.uiListeners.cleanup();
|
|
4746
4746
|
}
|
|
4747
4747
|
}
|
|
4748
|
-
class
|
|
4748
|
+
class Js {
|
|
4749
4749
|
constructor(t) {
|
|
4750
4750
|
u(this, "contexto");
|
|
4751
4751
|
u(this, "_pontos", []);
|
|
@@ -4845,12 +4845,12 @@ class Ys {
|
|
|
4845
4845
|
return this.contexto.obterController().getVizinhosMarkers();
|
|
4846
4846
|
}
|
|
4847
4847
|
}
|
|
4848
|
-
const Js = ':host{display:block;width:100%;height:520px;position:relative;border-radius:var(--ui-raio-lg, 10px);overflow:hidden;box-shadow:0 10px 30px -5px #0009;border:1px solid rgba(255,255,255,.1);background:var(--ui-degrade-interno, var(--ui-canvas-cad-fundo, #080d0a));color:#fff;font-family:var(--ui-fonte-base, "Inter", sans-serif);user-select:none;-webkit-user-select:none}*,*:before,*:after{box-sizing:border-box}.cad-root{position:relative;width:100%;height:100%;display:flex;overflow:hidden}.cad-map-container{width:100%;height:100%;background:var(--ui-canvas-cad-viewport-fundo, #080d0a);z-index:1}.qgis-layer-panel{position:absolute;top:12px;left:12px;z-index:var(--ui-z-workspace-hud, 500);width:290px;max-height:calc(100% - 24px);background:var(--ui-degrade-interno, var(--ui-canvas-cad-camadas-fundo, rgba(10, 18, 14, .92)));backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.15);border-radius:8px;box-shadow:0 20px 40px #000000b3;display:flex;flex-direction:column;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s ease;overflow:hidden}.qgis-layer-panel.collapsed{transform:translate(-310px);opacity:0;pointer-events:none}.layer-panel-header{padding:10px 14px;background:#ffffff08;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:space-between}.layer-panel-title{font-size:12px;font-weight:700;letter-spacing:.5px;color:#00f5a0;display:flex;align-items:center;gap:6px;text-transform:uppercase}.layer-panel-close{background:transparent;border:none;color:#ffffff80;cursor:pointer;padding:2px;border-radius:var(--ui-raio-sm, 4px);display:flex;align-items:center;justify-content:center;transition:all .15s}.layer-panel-close:hover{color:#fff;background:#ffffff1a}.layer-panel-body{padding:8px 10px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;max-height:400px}.layer-panel-body::-webkit-scrollbar{width:5px}.layer-panel-body::-webkit-scrollbar-track{background:transparent}.layer-panel-body::-webkit-scrollbar-thumb{background:#fff3;border-radius:var(--ui-raio-sm, 4px)}.layer-panel-body::-webkit-scrollbar-thumb:hover{background:#00f5a066}.layer-item{background:transparent;border:none;border-bottom:1px solid rgba(255,255,255,.08);border-radius:0;padding:4px;display:flex;flex-direction:column;gap:3px;transition:background .15s ease}.layer-item:last-child{border-bottom:none}.layer-item:hover{background:#ffffff08;border-radius:var(--ui-raio-sm, 4px)}.layer-item-row{display:flex;align-items:center;justify-content:space-between;min-height:18px}.layer-item-label{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;line-height:1.2;color:#ffffffe6;cursor:pointer;-webkit-user-select:none;user-select:none}.layer-chk-visibility{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:14px;height:14px;border:1px solid rgba(255,255,255,.4);border-radius:3px;background:#0006;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;position:relative;transition:all .15s ease;flex-shrink:0;margin:0}.layer-chk-visibility:hover{border-color:#00f5a0}.layer-chk-visibility:checked{background:#00f5a0;border-color:#00f5a0}.layer-chk-visibility:checked:after{content:"";width:3.5px;height:7px;border:solid #04150c;border-width:0 1.5px 1.5px 0;transform:rotate(45deg) translateY(-.5px);display:block}.layer-item-actions{display:flex;align-items:center;gap:4px}.btn-layer-action{background:transparent;border:none;color:#fff6;cursor:pointer;padding:2px;border-radius:3px;display:flex;align-items:center;justify-content:center;transition:all .15s}.btn-layer-action:hover{color:#00f5a0;background:#ffffff14}.btn-layer-action.active{color:#f43f5e;background:#f43f5e26}.layer-controls-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9.5px;line-height:1;color:#ffffff80;padding-left:21px}.layer-opacity-slider{flex:1;height:3px;margin:0;border-radius:2px;background:#ffffff26;accent-color:#00f5a0;cursor:pointer}.scale-mode-pill{font-size:8.5px;font-weight:600;padding:1px 6px;border-radius:6px;background:#ffffff0f;color:#ffffffb3;cursor:pointer;border:1px solid rgba(255,255,255,.1);transition:all .15s;line-height:1.2}.scale-mode-pill:hover{border-color:#00f5a0;color:#00f5a0;background:#00f5a01a}:host([sem-painel-camadas]) .qgis-layer-panel,:host([sem-painel-camadas]) #btn-toggle-layers,:host([sem-barra-rapida]) .cad-quick-toolbar{display:none!important}.cad-quick-toolbar{position:absolute;top:12px;right:12px;z-index:var(--ui-z-workspace-hud, 500);display:flex;flex-direction:column;gap:6px;background:#0c1510eb;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:5px;box-shadow:0 10px 25px -5px #0009}.cad-btn-tool{background:transparent;border:none;color:#fff9;cursor:pointer;padding:7px;border-radius:5px;display:flex;align-items:center;justify-content:center;transition:all .15s}.cad-btn-tool:hover{background:#ffffff1a;color:#fff}.cad-btn-tool.active{background:#00f5a026;color:#00f5a0;border:1px solid rgba(0,245,160,.3)}.cad-selection-box{pointer-events:none;box-sizing:border-box}.custom-leaflet-marker{cursor:pointer}.custom-leaflet-marker:hover{z-index:1800!important}.custom-leaflet-marker .cad-pt svg{transition:transform .12s ease-out}.custom-leaflet-marker:hover .cad-pt svg{transform:scale(1.3)}.leaflet-popup-content-wrapper{background:#0f1712!important;color:#f8fafc!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:8px!important;box-shadow:0 10px 25px #0009!important;padding:0!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important}.leaflet-popup-tip{background:#0f1712!important;border:1px solid rgba(255,255,255,.15)!important;box-shadow:none!important}.leaflet-popup-close-button{color:#fff9!important;padding:6px!important;transition:color .15s ease}.leaflet-popup-close-button:hover{color:#fff!important}.leaflet-popup-content{margin:12px 14px!important;line-height:1.4;font-family:inherit;color:#f8fafc}.compact-popup .leaflet-popup-content{margin:10px 12px!important}.ui-popup-actions-footer{display:flex;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.1);justify-content:flex-end;align-items:center;flex-wrap:wrap}.ui-popup-btn{display:inline-flex;align-items:center;justify-content:center;font-family:inherit;font-size:11px;font-weight:500;padding:4px 9px;border-radius:var(--ui-raio-borda, 6px);cursor:pointer;transition:all .15s ease;border:1px solid transparent;outline:none;line-height:1.25;-webkit-user-select:none;user-select:none}.ui-popup-btn-primary{background:var(--ui-cor-primaria, #00f5a0);color:#080d0a;font-weight:600;border-color:var(--ui-cor-primaria, #00f5a0)}.ui-popup-btn-primary:hover{filter:brightness(1.1);box-shadow:0 0 10px #00f5a059}.ui-popup-btn-secondary{background:#ffffff14;color:#fff;border-color:#ffffff2e}.ui-popup-btn-secondary:hover{background:#ffffff29;border-color:#ffffff4d}.ui-popup-btn-destrutivo{background:#ef444426;color:#f87171;border-color:#ef444459}.ui-popup-btn-destrutivo:hover{background:#ef444440;border-color:#ef444499;color:#fff}@media (max-width: 520px){.qgis-layer-panel{top:8px;left:8px;right:8px;width:auto;max-height:calc(100% - 16px)}.qgis-layer-panel.collapsed{transform:translateY(-115%)}.layer-panel-close{min-width:36px;min-height:36px;font-size:16px}.layer-action-btn{min-width:32px;min-height:32px}}.cad-destaque-marker-container{pointer-events:none!important;background:transparent!important;border:none!important;overflow:visible!important}.cad-destaque-marker-container *{pointer-events:none!important}.cad-pulse-highlight{position:relative;width:52px;height:52px;display:flex;align-items:center;justify-content:center;pointer-events:none!important;user-select:none;-webkit-user-select:none}.cad-pulse-core{position:absolute;width:12px;height:12px;border-radius:50%;background:var(--cad-pulse-cor, #00f5a0);border:2px solid #ffffff;box-sizing:border-box;pointer-events:none!important}.cad-pulse-ring{position:absolute;width:100%;height:100%;border-radius:50%;border:2px solid var(--cad-pulse-cor, #00f5a0);background:color-mix(in srgb,var(--cad-pulse-cor, #00f5a0) 14%,transparent);box-sizing:border-box;pointer-events:none!important;opacity:0;animation:cad-pulse-ping 1.8s cubic-bezier(0,0,.2,1) infinite}.cad-pulse-ring.ring-2{animation-delay:.9s}@keyframes cad-pulse-ping{0%{transform:scale(.3);opacity:.9}70%{opacity:.35}to{transform:scale(1);opacity:0}}@media (prefers-reduced-motion: reduce){.cad-pulse-ring{animation:none;opacity:.6;transform:scale(.6)}}.cad-marker-selected,.ponto-selecionado{z-index:2000!important}@media (prefers-reduced-motion: reduce){.custom-leaflet-marker .cad-pt svg{transition:none}}.ui-popup-actions-footer{margin-top:8px;padding-top:6px;border-top:1px solid rgba(255,255,255,.12);display:flex;gap:6px;flex-wrap:wrap}.ui-popup-btn{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;font-size:11px;font-weight:600;border-radius:var(--ui-raio-sm, 4px);border:1px solid rgba(255,255,255,.15);background:#ffffff14;color:#fff;cursor:pointer;line-height:1.2;transition:all .15s ease;-webkit-user-select:none;user-select:none}.ui-popup-btn:hover{background:#ffffff2e;border-color:#ffffff4d}.ui-popup-btn-primary{background:#00f5a0;color:#06130b;border-color:#00f5a0}.ui-popup-btn-primary:hover{background:#10ffad;box-shadow:0 0 8px #00f5a066}.ui-popup-btn-danger{background:#f43f5e33;color:#f43f5e;border-color:#f43f5e66}.ui-popup-btn-danger:hover{background:#f43f5e59;color:#fff}.cad-draw-toolbar{right:auto;left:12px;max-height:calc(100% - 24px);overflow-y:auto}.cad-draw-btn{font:600 11px var(--ui-fonte-base, sans-serif);padding:5px 9px;white-space:nowrap;justify-content:flex-start}.cad-ferramenta-ativa .leaflet-marker-icon{pointer-events:none!important}.cad-aviso{position:absolute;top:12px;left:50%;transform:translate(-50%);z-index:calc(var(--ui-z-workspace-hud, 500) + 1);box-sizing:border-box;max-width:min(calc(100% - 200px),460px);padding:8px 14px;border-radius:var(--ui-raio-borda, 6px);border:1px solid var(--ui-cor-aviso, #f59e0b);background:#0c1510f2;color:var(--ui-cor-texto, #ffffff);font:600 12px var(--ui-fonte-base, sans-serif);line-height:1.35;box-shadow:0 10px 25px -5px #0009;pointer-events:none}.cad-aviso[hidden]{display:none}.cad-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.cad-coordenadas-hud{position:absolute;top:var(--ui-cad-hud-coordenadas-topo, auto);bottom:var(--ui-cad-hud-coordenadas-base, 8px);left:var(--ui-cad-hud-coordenadas-esquerda, auto);right:var(--ui-cad-hud-coordenadas-direita, 12px);z-index:var(--ui-z-workspace-hud, 500);display:flex;align-items:center;gap:8px;padding:3px 8px;transition:bottom .25s cubic-bezier(.16,1,.3,1),left .25s cubic-bezier(.16,1,.3,1);background:#0a120ee0;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.12);border-radius:var(--ui-raio-sm, 4px);font-family:var(--ui-fonte-codigo, monospace);font-size:11px;color:#ffffffd9;pointer-events:none;-webkit-user-select:none;user-select:none;box-shadow:0 4px 12px #0006}:host([sem-hud-coordenadas]) .cad-coordenadas-hud{display:none!important}.cad-coordenadas-hud .cad-coord-fuso{color:#00f5a0;font-weight:700;padding:1px 4px;background:#00f5a01f;border-radius:2px}.cad-coordenadas-hud .cad-coord-utm{color:#fffffff2;font-weight:500}.cad-coordenadas-hud .cad-coord-geo{color:#fff9;font-size:10px}.cad-coordenadas-hud .cad-coord-zoom{color:#fff9;font-size:10px;padding-left:8px;border-left:1px solid rgba(255,255,255,.15)}.cad-coordenadas-hud>span{font-variant-numeric:tabular-nums;white-space:nowrap}';
|
|
4849
|
-
function
|
|
4848
|
+
const tn = ':host{display:block;width:100%;height:520px;position:relative;border-radius:var(--ui-raio-lg, 10px);overflow:hidden;box-shadow:0 10px 30px -5px #0009;border:1px solid rgba(255,255,255,.1);background:var(--ui-degrade-interno, var(--ui-canvas-cad-fundo, #080d0a));color:#fff;font-family:var(--ui-fonte-base, "Inter", sans-serif);user-select:none;-webkit-user-select:none}*,*:before,*:after{box-sizing:border-box}.cad-root{position:relative;width:100%;height:100%;display:flex;overflow:hidden}.cad-map-container{width:100%;height:100%;background:var(--ui-canvas-cad-viewport-fundo, #080d0a);z-index:1}.qgis-layer-panel{position:absolute;top:12px;left:12px;z-index:var(--ui-z-workspace-hud, 500);width:290px;max-height:calc(100% - 24px);background:var(--ui-degrade-interno, var(--ui-canvas-cad-camadas-fundo, rgba(10, 18, 14, .92)));backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.15);border-radius:8px;box-shadow:0 20px 40px #000000b3;display:flex;flex-direction:column;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s ease;overflow:hidden}.qgis-layer-panel.collapsed{transform:translate(-310px);opacity:0;pointer-events:none}.layer-panel-header{padding:10px 14px;background:#ffffff08;border-bottom:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:space-between}.layer-panel-title{font-size:12px;font-weight:700;letter-spacing:.5px;color:#00f5a0;display:flex;align-items:center;gap:6px;text-transform:uppercase}.layer-panel-close{background:transparent;border:none;color:#ffffff80;cursor:pointer;padding:2px;border-radius:var(--ui-raio-sm, 4px);display:flex;align-items:center;justify-content:center;transition:all .15s}.layer-panel-close:hover{color:#fff;background:#ffffff1a}.layer-panel-body{padding:8px 10px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;max-height:400px}.layer-panel-body::-webkit-scrollbar{width:5px}.layer-panel-body::-webkit-scrollbar-track{background:transparent}.layer-panel-body::-webkit-scrollbar-thumb{background:#fff3;border-radius:var(--ui-raio-sm, 4px)}.layer-panel-body::-webkit-scrollbar-thumb:hover{background:#00f5a066}.layer-item{background:transparent;border:none;border-bottom:1px solid rgba(255,255,255,.08);border-radius:0;padding:4px;display:flex;flex-direction:column;gap:3px;transition:background .15s ease}.layer-item:last-child{border-bottom:none}.layer-item:hover{background:#ffffff08;border-radius:var(--ui-raio-sm, 4px)}.layer-item-row{display:flex;align-items:center;justify-content:space-between;min-height:18px}.layer-item-label{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:600;line-height:1.2;color:#ffffffe6;cursor:pointer;-webkit-user-select:none;user-select:none}.layer-chk-visibility{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:14px;height:14px;border:1px solid rgba(255,255,255,.4);border-radius:3px;background:#0006;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;position:relative;transition:all .15s ease;flex-shrink:0;margin:0}.layer-chk-visibility:hover{border-color:#00f5a0}.layer-chk-visibility:checked{background:#00f5a0;border-color:#00f5a0}.layer-chk-visibility:checked:after{content:"";width:3.5px;height:7px;border:solid #04150c;border-width:0 1.5px 1.5px 0;transform:rotate(45deg) translateY(-.5px);display:block}.layer-item-actions{display:flex;align-items:center;gap:4px}.btn-layer-action{background:transparent;border:none;color:#fff6;cursor:pointer;padding:2px;border-radius:3px;display:flex;align-items:center;justify-content:center;transition:all .15s}.btn-layer-action:hover{color:#00f5a0;background:#ffffff14}.btn-layer-action.active{color:#f43f5e;background:#f43f5e26}.layer-controls-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9.5px;line-height:1;color:#ffffff80;padding-left:21px}.layer-opacity-slider{flex:1;height:3px;margin:0;border-radius:2px;background:#ffffff26;accent-color:#00f5a0;cursor:pointer}.scale-mode-pill{font-size:8.5px;font-weight:600;padding:1px 6px;border-radius:6px;background:#ffffff0f;color:#ffffffb3;cursor:pointer;border:1px solid rgba(255,255,255,.1);transition:all .15s;line-height:1.2}.scale-mode-pill:hover{border-color:#00f5a0;color:#00f5a0;background:#00f5a01a}:host([sem-painel-camadas]) .qgis-layer-panel,:host([sem-painel-camadas]) #btn-toggle-layers,:host([sem-barra-rapida]) .cad-quick-toolbar{display:none!important}.cad-quick-toolbar{position:absolute;top:12px;right:12px;z-index:var(--ui-z-workspace-hud, 500);display:flex;flex-direction:column;gap:6px;background:#0c1510eb;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:5px;box-shadow:0 10px 25px -5px #0009}.cad-btn-tool{background:transparent;border:none;color:#fff9;cursor:pointer;padding:7px;border-radius:5px;display:flex;align-items:center;justify-content:center;transition:all .15s}.cad-btn-tool:hover{background:#ffffff1a;color:#fff}.cad-btn-tool.active{background:#00f5a026;color:#00f5a0;border:1px solid rgba(0,245,160,.3)}.cad-selection-box{pointer-events:none;box-sizing:border-box}.custom-leaflet-marker{cursor:pointer}.custom-leaflet-marker:hover{z-index:1800!important}.custom-leaflet-marker .cad-pt svg{transition:transform .12s ease-out}.custom-leaflet-marker:hover .cad-pt svg{transform:scale(1.3)}.leaflet-popup-content-wrapper{background:#0f1712!important;color:#f8fafc!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:8px!important;box-shadow:0 10px 25px #0009!important;padding:0!important;backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important}.leaflet-popup-tip{background:#0f1712!important;border:1px solid rgba(255,255,255,.15)!important;box-shadow:none!important}.leaflet-popup-close-button{color:#fff9!important;padding:6px!important;transition:color .15s ease}.leaflet-popup-close-button:hover{color:#fff!important}.leaflet-popup-content{margin:12px 14px!important;line-height:1.4;font-family:inherit;color:#f8fafc}.compact-popup .leaflet-popup-content{margin:10px 12px!important}.ui-popup-actions-footer{display:flex;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid rgba(255,255,255,.1);justify-content:flex-end;align-items:center;flex-wrap:wrap}.ui-popup-btn{display:inline-flex;align-items:center;justify-content:center;font-family:inherit;font-size:11px;font-weight:500;padding:4px 9px;border-radius:var(--ui-raio-borda, 6px);cursor:pointer;transition:all .15s ease;border:1px solid transparent;outline:none;line-height:1.25;-webkit-user-select:none;user-select:none}.ui-popup-btn-primary{background:var(--ui-cor-primaria, #00f5a0);color:#080d0a;font-weight:600;border-color:var(--ui-cor-primaria, #00f5a0)}.ui-popup-btn-primary:hover{filter:brightness(1.1);box-shadow:0 0 10px #00f5a059}.ui-popup-btn-secondary{background:#ffffff14;color:#fff;border-color:#ffffff2e}.ui-popup-btn-secondary:hover{background:#ffffff29;border-color:#ffffff4d}.ui-popup-btn-destrutivo{background:#ef444426;color:#f87171;border-color:#ef444459}.ui-popup-btn-destrutivo:hover{background:#ef444440;border-color:#ef444499;color:#fff}@media (max-width: 520px){.qgis-layer-panel{top:8px;left:8px;right:8px;width:auto;max-height:calc(100% - 16px)}.qgis-layer-panel.collapsed{transform:translateY(-115%)}.layer-panel-close{min-width:36px;min-height:36px;font-size:16px}.layer-action-btn{min-width:32px;min-height:32px}}.cad-destaque-marker-container{pointer-events:none!important;background:transparent!important;border:none!important;overflow:visible!important}.cad-destaque-marker-container *{pointer-events:none!important}.cad-pulse-highlight{position:relative;width:52px;height:52px;display:flex;align-items:center;justify-content:center;pointer-events:none!important;user-select:none;-webkit-user-select:none}.cad-pulse-core{position:absolute;width:12px;height:12px;border-radius:50%;background:var(--cad-pulse-cor, #00f5a0);border:2px solid #ffffff;box-sizing:border-box;pointer-events:none!important}.cad-pulse-ring{position:absolute;width:100%;height:100%;border-radius:50%;border:2px solid var(--cad-pulse-cor, #00f5a0);background:color-mix(in srgb,var(--cad-pulse-cor, #00f5a0) 14%,transparent);box-sizing:border-box;pointer-events:none!important;opacity:0;animation:cad-pulse-ping 1.8s cubic-bezier(0,0,.2,1) infinite}.cad-pulse-ring.ring-2{animation-delay:.9s}@keyframes cad-pulse-ping{0%{transform:scale(.3);opacity:.9}70%{opacity:.35}to{transform:scale(1);opacity:0}}@media (prefers-reduced-motion: reduce){.cad-pulse-ring{animation:none;opacity:.6;transform:scale(.6)}}.cad-marker-selected,.ponto-selecionado{z-index:2000!important}@media (prefers-reduced-motion: reduce){.custom-leaflet-marker .cad-pt svg{transition:none}}.ui-popup-actions-footer{margin-top:8px;padding-top:6px;border-top:1px solid rgba(255,255,255,.12);display:flex;gap:6px;flex-wrap:wrap}.ui-popup-btn{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;font-size:11px;font-weight:600;border-radius:var(--ui-raio-sm, 4px);border:1px solid rgba(255,255,255,.15);background:#ffffff14;color:#fff;cursor:pointer;line-height:1.2;transition:all .15s ease;-webkit-user-select:none;user-select:none}.ui-popup-btn:hover{background:#ffffff2e;border-color:#ffffff4d}.ui-popup-btn-primary{background:#00f5a0;color:#06130b;border-color:#00f5a0}.ui-popup-btn-primary:hover{background:#10ffad;box-shadow:0 0 8px #00f5a066}.ui-popup-btn-danger{background:#f43f5e33;color:#f43f5e;border-color:#f43f5e66}.ui-popup-btn-danger:hover{background:#f43f5e59;color:#fff}.cad-draw-toolbar{right:auto;left:12px;max-height:calc(100% - 24px);overflow-y:auto}.cad-draw-btn{font:600 11px var(--ui-fonte-base, sans-serif);padding:5px 9px;white-space:nowrap;justify-content:flex-start}.cad-ferramenta-ativa .leaflet-marker-icon{pointer-events:none!important}.cad-aviso{position:absolute;top:12px;left:50%;transform:translate(-50%);z-index:calc(var(--ui-z-workspace-hud, 500) + 1);box-sizing:border-box;max-width:min(calc(100% - 200px),460px);padding:8px 14px;border-radius:var(--ui-raio-borda, 6px);border:1px solid var(--ui-cor-aviso, #f59e0b);background:#0c1510f2;color:var(--ui-cor-texto, #ffffff);font:600 12px var(--ui-fonte-base, sans-serif);line-height:1.35;box-shadow:0 10px 25px -5px #0009;pointer-events:none}.cad-aviso[hidden]{display:none}.cad-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.cad-coordenadas-hud{position:absolute;top:var(--ui-cad-hud-coordenadas-topo, auto);bottom:var(--ui-cad-hud-coordenadas-base, 8px);left:var(--ui-cad-hud-coordenadas-esquerda, auto);right:var(--ui-cad-hud-coordenadas-direita, 12px);z-index:var(--ui-z-workspace-hud, 500);display:flex;align-items:center;gap:8px;padding:3px 8px;transition:bottom .25s cubic-bezier(.16,1,.3,1),left .25s cubic-bezier(.16,1,.3,1);background:#0a120ee0;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.12);border-radius:var(--ui-raio-sm, 4px);font-family:var(--ui-fonte-codigo, monospace);font-size:11px;color:#ffffffd9;pointer-events:none;-webkit-user-select:none;user-select:none;box-shadow:0 4px 12px #0006}:host([sem-hud-coordenadas]) .cad-coordenadas-hud{display:none!important}.cad-coordenadas-hud .cad-coord-fuso{color:#00f5a0;font-weight:700;padding:1px 4px;background:#00f5a01f;border-radius:2px}.cad-coordenadas-hud .cad-coord-utm{color:#fffffff2;font-weight:500}.cad-coordenadas-hud .cad-coord-geo{color:#fff9;font-size:10px}.cad-coordenadas-hud .cad-coord-zoom{color:#fff9;font-size:10px;padding-left:8px;border-left:1px solid rgba(255,255,255,.15)}.cad-coordenadas-hud>span{font-variant-numeric:tabular-nums;white-space:nowrap}';
|
|
4849
|
+
function en() {
|
|
4850
4850
|
return `
|
|
4851
4851
|
<style>
|
|
4852
|
-
${
|
|
4853
|
-
${
|
|
4852
|
+
${Ka}
|
|
4853
|
+
${tn}
|
|
4854
4854
|
</style>
|
|
4855
4855
|
<div class="cad-root" id="cad-root" part="base" role="region" aria-label="Mapa CAD">
|
|
4856
4856
|
<div class="cad-map-container" id="cad-map-container" part="viewport"></div>
|
|
@@ -4891,34 +4891,34 @@ function tn() {
|
|
|
4891
4891
|
</div>
|
|
4892
4892
|
`;
|
|
4893
4893
|
}
|
|
4894
|
-
const
|
|
4894
|
+
const on = 1, an = 60;
|
|
4895
4895
|
function de(s) {
|
|
4896
4896
|
let t;
|
|
4897
4897
|
if (typeof s == "number") t = Number.isFinite(s) ? Math.trunc(s) : NaN;
|
|
4898
4898
|
else if (typeof s == "string") t = parseInt(s.trim(), 10);
|
|
4899
4899
|
else return null;
|
|
4900
|
-
return Number.isInteger(t) && t >=
|
|
4900
|
+
return Number.isInteger(t) && t >= on && t <= an ? t : null;
|
|
4901
4901
|
}
|
|
4902
|
-
const
|
|
4902
|
+
const sn = Object.freeze({
|
|
4903
4903
|
fuso: "—",
|
|
4904
4904
|
utm: "E: — | N: —",
|
|
4905
4905
|
geo: "Lat: — Lon: —"
|
|
4906
4906
|
});
|
|
4907
|
-
function
|
|
4907
|
+
function nn(s) {
|
|
4908
4908
|
if (typeof s != "number" || !Number.isFinite(s)) return "Zoom: —";
|
|
4909
4909
|
const t = Math.round(s * 10) / 10;
|
|
4910
4910
|
return `Zoom: ${Number.isInteger(t) ? t.toFixed(0) : t.toFixed(1)}`;
|
|
4911
4911
|
}
|
|
4912
|
-
function
|
|
4912
|
+
function rn(s, t, e) {
|
|
4913
4913
|
if (!Number.isFinite(s) || !Number.isFinite(t)) return null;
|
|
4914
|
-
const o =
|
|
4914
|
+
const o = Xa(s, t, de(e) ?? void 0);
|
|
4915
4915
|
return {
|
|
4916
4916
|
fuso: o ? `${o.fuso}${o.hemisferio}` : "—",
|
|
4917
4917
|
utm: `E: ${bo(o == null ? void 0 : o.este, 2)} m | N: ${bo(o == null ? void 0 : o.norte, 2)} m`.replace(/— m/g, "—"),
|
|
4918
4918
|
geo: `Lat: ${s.toFixed(6)}° Lon: ${t.toFixed(6)}°`
|
|
4919
4919
|
};
|
|
4920
4920
|
}
|
|
4921
|
-
function
|
|
4921
|
+
function cn(s, t, e, o) {
|
|
4922
4922
|
if (e !== o) {
|
|
4923
4923
|
if (t === "sat-opacity") {
|
|
4924
4924
|
const a = parseFloat(o);
|
|
@@ -4956,7 +4956,7 @@ function Ca(s) {
|
|
|
4956
4956
|
}
|
|
4957
4957
|
return !0;
|
|
4958
4958
|
}
|
|
4959
|
-
function
|
|
4959
|
+
function ln(s) {
|
|
4960
4960
|
if (!s.mapContainer) return;
|
|
4961
4961
|
if (s.controller.getMap() || Ca(s.mapContainer), s.controller.init(s.mapContainer, s.shadow), s.toolbarPainel.vincularEventos(), s.renderLayersUI(), s.host.hasAttribute("modo-sequencial") && (s.controller.modoCliqueSequencialAtivo = !0, s.controller.context.modoSequencial = !0), s.host.hasAttribute("chave-grupo")) {
|
|
4962
4962
|
const o = s.host.getAttribute("chave-grupo");
|
|
@@ -4979,7 +4979,7 @@ function cn(s) {
|
|
|
4979
4979
|
});
|
|
4980
4980
|
const t = s.controller.context.onMarkerClick;
|
|
4981
4981
|
s.controller.context.onMarkerClick = (o, a, i, n) => {
|
|
4982
|
-
|
|
4982
|
+
Ws(
|
|
4983
4983
|
s.obterContextoEventos(),
|
|
4984
4984
|
o,
|
|
4985
4985
|
a,
|
|
@@ -4989,7 +4989,7 @@ function cn(s) {
|
|
|
4989
4989
|
s.colecoesDados.customMarkerClickHandler
|
|
4990
4990
|
);
|
|
4991
4991
|
}, s.controller.context.onSegmentoClick = (o, a, i) => {
|
|
4992
|
-
|
|
4992
|
+
Xs(
|
|
4993
4993
|
s.obterContextoEventos(),
|
|
4994
4994
|
o,
|
|
4995
4995
|
a,
|
|
@@ -5005,12 +5005,12 @@ function cn(s) {
|
|
|
5005
5005
|
s.invalidateSizeSafely();
|
|
5006
5006
|
}, 150);
|
|
5007
5007
|
}
|
|
5008
|
-
const
|
|
5008
|
+
const dn = {
|
|
5009
5009
|
"sem-camada": "Escolha uma camada de desenho antes de usar esta ferramenta.",
|
|
5010
5010
|
"camada-invalida": "A camada de desenho não é uma camada de feições.",
|
|
5011
5011
|
"camada-bloqueada": "A camada de desenho está bloqueada.",
|
|
5012
5012
|
"geometria-invalida": "Não foi possível criar a figura: a geometria é inválida."
|
|
5013
|
-
},
|
|
5013
|
+
}, hn = {
|
|
5014
5014
|
bloqueada: "Esta feição (ou a camada dela) está bloqueada e não pode ser editada.",
|
|
5015
5015
|
"poligono-com-furos": "Polígono com furos não pode ser editado no mapa.",
|
|
5016
5016
|
multiparte: "Feição com várias partes não pode ser editada no mapa.",
|
|
@@ -5022,13 +5022,13 @@ const ln = {
|
|
|
5022
5022
|
function Sa(s, t, e) {
|
|
5023
5023
|
return typeof t == "string" && Object.prototype.hasOwnProperty.call(s, t) ? s[t] : e;
|
|
5024
5024
|
}
|
|
5025
|
-
function hn(s) {
|
|
5026
|
-
return Sa(ln, s, "Não foi possível ativar a ferramenta de desenho.");
|
|
5027
|
-
}
|
|
5028
5025
|
function un(s) {
|
|
5029
|
-
return Sa(dn, s, "Não foi possível
|
|
5026
|
+
return Sa(dn, s, "Não foi possível ativar a ferramenta de desenho.");
|
|
5030
5027
|
}
|
|
5031
5028
|
function pn(s) {
|
|
5029
|
+
return Sa(hn, s, "Não foi possível editar os vértices desta feição.");
|
|
5030
|
+
}
|
|
5031
|
+
function fn(s) {
|
|
5032
5032
|
s.querySelectorAll(".cad-quick-toolbar .cad-btn-tool, .layer-panel-close").forEach((t) => {
|
|
5033
5033
|
const e = t.getAttribute("title");
|
|
5034
5034
|
e && !t.hasAttribute("aria-label") && t.setAttribute("aria-label", e);
|
|
@@ -5038,38 +5038,38 @@ function qo(s, t) {
|
|
|
5038
5038
|
const e = s.getElementById("btn-toggle-snap");
|
|
5039
5039
|
e == null || e.classList.toggle("active", t), e == null || e.setAttribute("aria-pressed", String(t));
|
|
5040
5040
|
}
|
|
5041
|
-
function
|
|
5041
|
+
function mn(s) {
|
|
5042
5042
|
return s <= 0 ? "Nenhuma feição selecionada" : s === 1 ? "1 feição selecionada" : `${s} feições selecionadas`;
|
|
5043
5043
|
}
|
|
5044
|
-
function
|
|
5044
|
+
function gn(s) {
|
|
5045
5045
|
return s ? `Ferramenta ${s} ativa` : "Ferramenta desativada";
|
|
5046
5046
|
}
|
|
5047
5047
|
function ze(s, t) {
|
|
5048
5048
|
const e = s.getElementById("cad-status");
|
|
5049
5049
|
e && e.textContent !== t && (e.textContent = t);
|
|
5050
5050
|
}
|
|
5051
|
-
const
|
|
5052
|
-
function
|
|
5051
|
+
const vn = 5e3;
|
|
5052
|
+
function bn(s, t, e) {
|
|
5053
5053
|
const o = s.getElementById("cad-aviso");
|
|
5054
5054
|
return o ? (e !== void 0 && window.clearTimeout(e), o.textContent = t, o.hidden = !1, window.setTimeout(() => {
|
|
5055
5055
|
o.hidden = !0, o.textContent = "";
|
|
5056
|
-
},
|
|
5056
|
+
}, vn)) : e;
|
|
5057
5057
|
}
|
|
5058
|
-
function
|
|
5058
|
+
function yn(s, t) {
|
|
5059
5059
|
let e;
|
|
5060
5060
|
const o = (r) => (l) => {
|
|
5061
5061
|
var h;
|
|
5062
5062
|
if (s.hasAttribute("sem-avisos")) return;
|
|
5063
5063
|
const d = r((h = l.detail) == null ? void 0 : h.motivo);
|
|
5064
|
-
ze(t, d), e =
|
|
5065
|
-
}, a = o(
|
|
5064
|
+
ze(t, d), e = bn(t, d, e);
|
|
5065
|
+
}, a = o(un), i = o(pn), n = (r) => {
|
|
5066
5066
|
var d;
|
|
5067
5067
|
const l = (d = r.detail) == null ? void 0 : d.feicoes;
|
|
5068
|
-
ze(t,
|
|
5068
|
+
ze(t, mn(Array.isArray(l) ? l.length : 0));
|
|
5069
5069
|
}, c = (r) => {
|
|
5070
5070
|
var d;
|
|
5071
5071
|
const l = ((d = r.detail) == null ? void 0 : d.ferramenta) ?? null;
|
|
5072
|
-
ze(t,
|
|
5072
|
+
ze(t, gn(l));
|
|
5073
5073
|
};
|
|
5074
5074
|
return s.addEventListener("cad-selecao", n), s.addEventListener("cad-ferramenta", c), s.addEventListener("cad-desenho-recusado", a), s.addEventListener("cad-edicao-recusada", i), () => {
|
|
5075
5075
|
s.removeEventListener("cad-selecao", n), s.removeEventListener("cad-ferramenta", c), s.removeEventListener("cad-desenho-recusado", a), s.removeEventListener("cad-edicao-recusada", i), e !== void 0 && window.clearTimeout(e), e = void 0;
|
|
@@ -5089,18 +5089,18 @@ function tt(s, t) {
|
|
|
5089
5089
|
const a = j(e, o, t);
|
|
5090
5090
|
return !a || !Number.isFinite(a.lat) || !Number.isFinite(a.lon) ? null : [a.lat, a.lon];
|
|
5091
5091
|
}
|
|
5092
|
-
function
|
|
5092
|
+
function xn(s, t) {
|
|
5093
5093
|
return s[0] === t[0] && s[1] === t[1];
|
|
5094
5094
|
}
|
|
5095
5095
|
function La(s, t) {
|
|
5096
5096
|
const e = s.map((o) => tt(o, t)).filter((o) => o !== null);
|
|
5097
|
-
return e.length > 1 &&
|
|
5097
|
+
return e.length > 1 && xn(e[0], e[e.length - 1]) && e.pop(), e.length >= 3 ? e : null;
|
|
5098
5098
|
}
|
|
5099
5099
|
function No(s, t) {
|
|
5100
5100
|
const e = s.map((o) => tt(o, t)).filter((o) => o !== null);
|
|
5101
5101
|
return e.length >= 2 ? e : null;
|
|
5102
5102
|
}
|
|
5103
|
-
function
|
|
5103
|
+
function Pn(s, t) {
|
|
5104
5104
|
if (!Array.isArray(s) || s.length === 0) return null;
|
|
5105
5105
|
const o = (Array.isArray(s[0]) && Array.isArray(s[0][0]) ? s : [s]).map((a) => La(a, t));
|
|
5106
5106
|
return o.some((a) => a === null) ? null : o;
|
|
@@ -5144,7 +5144,7 @@ function yc(s, t) {
|
|
|
5144
5144
|
} : null;
|
|
5145
5145
|
}
|
|
5146
5146
|
function $o(s, t) {
|
|
5147
|
-
const e =
|
|
5147
|
+
const e = Ra(s);
|
|
5148
5148
|
if (!e) return null;
|
|
5149
5149
|
const o = [];
|
|
5150
5150
|
for (const a of e) {
|
|
@@ -5155,11 +5155,11 @@ function $o(s, t) {
|
|
|
5155
5155
|
}
|
|
5156
5156
|
return o;
|
|
5157
5157
|
}
|
|
5158
|
-
const
|
|
5158
|
+
const Cn = /* @__PURE__ */ new Set(["Point", "LineString", "Polygon", "Circle", "Text"]);
|
|
5159
5159
|
function we(s, t, e) {
|
|
5160
5160
|
if (!s || typeof s != "object") return null;
|
|
5161
5161
|
const o = s, a = o.geometria;
|
|
5162
|
-
if (!a || !
|
|
5162
|
+
if (!a || !Cn.has(a.tipo) || o.id === void 0 || o.id === null || o.id === "") return null;
|
|
5163
5163
|
let i = null;
|
|
5164
5164
|
switch (a.tipo) {
|
|
5165
5165
|
case "Point": {
|
|
@@ -5185,7 +5185,7 @@ function we(s, t, e) {
|
|
|
5185
5185
|
break;
|
|
5186
5186
|
}
|
|
5187
5187
|
case "Polygon": {
|
|
5188
|
-
const c = Array.isArray(a.aneis) ?
|
|
5188
|
+
const c = Array.isArray(a.aneis) ? Pn(a.aneis, e) : null;
|
|
5189
5189
|
c && (i = { tipo: "Polygon", aneis: c });
|
|
5190
5190
|
const r = c && c.length === 1 ? $o(a.curva, e) : null;
|
|
5191
5191
|
i && r && r.length >= 3 && (i = { tipo: "Polygon", aneis: [fo(r, !0)], curva: r });
|
|
@@ -5210,7 +5210,7 @@ function we(s, t, e) {
|
|
|
5210
5210
|
};
|
|
5211
5211
|
return o.oculta && (n.oculta = !0), (typeof o.entidadeId == "string" || typeof o.entidadeId == "number") && (n.entidadeId = String(o.entidadeId)), n.status = xt({ ...n, status: o.status }), n;
|
|
5212
5212
|
}
|
|
5213
|
-
const
|
|
5213
|
+
const Sn = 8;
|
|
5214
5214
|
function Xe(s, t, e) {
|
|
5215
5215
|
if (s === t) return !0;
|
|
5216
5216
|
if (typeof s != "object" || typeof t != "object" || s === null || t === null || e <= 0) return !1;
|
|
@@ -5229,21 +5229,21 @@ function Xe(s, t, e) {
|
|
|
5229
5229
|
for (const c in a) Object.prototype.hasOwnProperty.call(a, c) && n++;
|
|
5230
5230
|
return i === n;
|
|
5231
5231
|
}
|
|
5232
|
-
function
|
|
5233
|
-
return !s || !t ? !1 : s === t ? !0 : Xe(s, t,
|
|
5232
|
+
function Ln(s, t) {
|
|
5233
|
+
return !s || !t ? !1 : s === t ? !0 : Xe(s, t, Sn);
|
|
5234
5234
|
}
|
|
5235
|
-
const Ee = "cad-cursores",
|
|
5235
|
+
const Ee = "cad-cursores", Mn = /^#[0-9a-f]{3,8}$/i, An = "#94a3b8";
|
|
5236
5236
|
function Ke(s) {
|
|
5237
|
-
return typeof s == "string" &&
|
|
5237
|
+
return typeof s == "string" && Mn.test(s.trim()) ? s.trim() : An;
|
|
5238
5238
|
}
|
|
5239
|
-
const
|
|
5239
|
+
const zn = '<svg width="18" height="18" viewBox="0 0 24 24" style="display:block;filter:drop-shadow(0 1px 1px rgba(0,0,0,.6))"><path d="M3 2 L3 19 L8 14.5 L11.5 22 L14.5 20.5 L11 13.5 L18 13 Z" fill="currentColor" stroke="#fff" stroke-width="1.2" stroke-linejoin="round"/></svg>';
|
|
5240
5240
|
function Ro(s) {
|
|
5241
5241
|
const t = document.createElement("div");
|
|
5242
|
-
t.style.cssText = `color:${Ke(s.cor)};position:relative;pointer-events:none`, t.innerHTML =
|
|
5242
|
+
t.style.cssText = `color:${Ke(s.cor)};position:relative;pointer-events:none`, t.innerHTML = zn;
|
|
5243
5243
|
const e = document.createElement("span");
|
|
5244
5244
|
return e.textContent = String(s.nome ?? s.id), e.style.cssText = `position:absolute;left:16px;top:14px;white-space:nowrap;font:600 11px sans-serif;color:#fff;background:${Ke(s.cor)};padding:1px 5px;border-radius:3px;max-width:160px;overflow:hidden;text-overflow:ellipsis`, t.appendChild(e), b.divIcon({ className: "custom-leaflet-marker cad-cursor-remoto", iconSize: [18, 18], iconAnchor: [3, 2], html: t });
|
|
5245
5245
|
}
|
|
5246
|
-
class
|
|
5246
|
+
class wn {
|
|
5247
5247
|
constructor(t) {
|
|
5248
5248
|
u(this, "marcadores", /* @__PURE__ */ new Map());
|
|
5249
5249
|
this.obterMapa = t;
|
|
@@ -5271,7 +5271,7 @@ class zn {
|
|
|
5271
5271
|
}
|
|
5272
5272
|
}
|
|
5273
5273
|
const wt = (s) => `${s.camadaId}\0${s.id}`;
|
|
5274
|
-
class
|
|
5274
|
+
class En {
|
|
5275
5275
|
constructor(t) {
|
|
5276
5276
|
u(this, "itens", /* @__PURE__ */ new Map());
|
|
5277
5277
|
this.dep = t;
|
|
@@ -5358,13 +5358,13 @@ class wn {
|
|
|
5358
5358
|
this.dep.aoSelecionar(o), o.length <= 1 && this.dep.aoSelecionarUma(o[0] ?? null);
|
|
5359
5359
|
}
|
|
5360
5360
|
}
|
|
5361
|
-
const
|
|
5361
|
+
const kn = {
|
|
5362
5362
|
Point: "Ponto",
|
|
5363
5363
|
LineString: "Linha",
|
|
5364
5364
|
Polygon: "Polígono",
|
|
5365
5365
|
Circle: "Círculo",
|
|
5366
5366
|
Text: "Texto"
|
|
5367
|
-
},
|
|
5367
|
+
}, In = /* @__PURE__ */ new Set([
|
|
5368
5368
|
"name",
|
|
5369
5369
|
"nome",
|
|
5370
5370
|
"category",
|
|
@@ -5386,11 +5386,11 @@ function Et(s, t) {
|
|
|
5386
5386
|
}
|
|
5387
5387
|
return "";
|
|
5388
5388
|
}
|
|
5389
|
-
function
|
|
5389
|
+
function Tn(s) {
|
|
5390
5390
|
const t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(s), e = t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3])) : new Date(s);
|
|
5391
5391
|
return Number.isNaN(e.getTime()) ? s : e.toLocaleDateString("pt-BR");
|
|
5392
5392
|
}
|
|
5393
|
-
function
|
|
5393
|
+
function Dn(s) {
|
|
5394
5394
|
const t = typeof s == "object" ? JSON.stringify(s) : String(s);
|
|
5395
5395
|
return t.length > 80 ? `${t.slice(0, 77)}...` : t;
|
|
5396
5396
|
}
|
|
@@ -5410,7 +5410,7 @@ function he(s) {
|
|
|
5410
5410
|
}
|
|
5411
5411
|
}
|
|
5412
5412
|
}
|
|
5413
|
-
function
|
|
5413
|
+
function _n(s) {
|
|
5414
5414
|
const t = s.geometria, e = [], o = mt(t), a = gt(t);
|
|
5415
5415
|
if (t.tipo === "Polygon")
|
|
5416
5416
|
e.push(["Área", Lt(o ?? 0)], ["Perímetro", K(a ?? 0)]), e.push(["Vértices", String(t.aneis.reduce((c, r) => c + r.length, 0))]);
|
|
@@ -5421,7 +5421,7 @@ function Dn(s) {
|
|
|
5421
5421
|
const [i, n] = he(s);
|
|
5422
5422
|
return e.push(["Coordenadas", `${i.toFixed(6)}, ${n.toFixed(6)}`]), e;
|
|
5423
5423
|
}
|
|
5424
|
-
class
|
|
5424
|
+
class On {
|
|
5425
5425
|
constructor(t) {
|
|
5426
5426
|
u(this, "popup", null);
|
|
5427
5427
|
u(this, "feicaoAtual", null);
|
|
@@ -5465,7 +5465,7 @@ class _n {
|
|
|
5465
5465
|
return y && (x.style.cssText = y), P !== void 0 && (x.textContent = P), x;
|
|
5466
5466
|
}, i = a("div", "font-family:var(--ui-fonte-base,sans-serif);color:rgba(255,255,255,.9);line-height:1.35;min-width:200px;border-left:3px solid " + o + ";padding-left:8px");
|
|
5467
5467
|
i.className = "cad-feicao-popup", i.appendChild(a("div", "font-weight:700;font-size:13px;margin-bottom:1px", Et(t, ["name", "nome"]) || t.id));
|
|
5468
|
-
const n = Et(t, ["category", "categoria"]), c = [
|
|
5468
|
+
const n = Et(t, ["category", "categoria"]), c = [kn[t.geometria.tipo], (e == null ? void 0 : e.nome) ?? t.camadaId, n].filter(Boolean).join(" · ");
|
|
5469
5469
|
i.appendChild(a("div", "font-size:11px;color:rgba(255,255,255,.6);margin-bottom:4px", c));
|
|
5470
5470
|
const r = Et(t, ["description", "descricao"]);
|
|
5471
5471
|
r && i.appendChild(a("div", "font-size:11px;margin-bottom:4px", r));
|
|
@@ -5477,12 +5477,12 @@ class _n {
|
|
|
5477
5477
|
}
|
|
5478
5478
|
return y;
|
|
5479
5479
|
};
|
|
5480
|
-
i.appendChild(l(
|
|
5481
|
-
const d = Object.entries(t.propriedades ?? {}).filter(([v, y]) => !
|
|
5482
|
-
d.length > 0 && (i.appendChild(l(d.slice(0, Bo).map(([v, y]) => [v,
|
|
5480
|
+
i.appendChild(l(_n(t)));
|
|
5481
|
+
const d = Object.entries(t.propriedades ?? {}).filter(([v, y]) => !In.has(v) && y !== void 0 && y !== null && y !== "");
|
|
5482
|
+
d.length > 0 && (i.appendChild(l(d.slice(0, Bo).map(([v, y]) => [v, Dn(y)]))), d.length > Bo && i.appendChild(a("div", "font-size:10px;color:rgba(255,255,255,.55);margin-bottom:4px", `${d.length} atributos`)));
|
|
5483
5483
|
const h = Et(t, ["author", "autor"]), f = Et(t, ["date", "data", "created_at", "criadoEm"]);
|
|
5484
5484
|
if (h || f) {
|
|
5485
|
-
const v = [h, f ?
|
|
5485
|
+
const v = [h, f ? Tn(f) : ""].filter(Boolean).join(" · ");
|
|
5486
5486
|
i.appendChild(a("div", "font-size:10px;color:rgba(255,255,255,.55);margin-bottom:4px", v));
|
|
5487
5487
|
}
|
|
5488
5488
|
const g = a("div", "display:flex;gap:4px;flex-wrap:wrap;margin-top:6px"), m = [["inspecionar", "Inspecionar"], ["zoom", "Zoom"]];
|
|
@@ -5496,7 +5496,7 @@ class _n {
|
|
|
5496
5496
|
return i.appendChild(g), i;
|
|
5497
5497
|
}
|
|
5498
5498
|
}
|
|
5499
|
-
class
|
|
5499
|
+
class Fn {
|
|
5500
5500
|
constructor(t) {
|
|
5501
5501
|
u(this, "_ligado", !0);
|
|
5502
5502
|
u(this, "_altSegurado", !1);
|
|
@@ -5553,7 +5553,7 @@ class On {
|
|
|
5553
5553
|
}
|
|
5554
5554
|
}
|
|
5555
5555
|
const U = "feicoes";
|
|
5556
|
-
class
|
|
5556
|
+
class qn {
|
|
5557
5557
|
constructor(t) {
|
|
5558
5558
|
this.p = t;
|
|
5559
5559
|
}
|
|
@@ -5578,7 +5578,7 @@ class Fn {
|
|
|
5578
5578
|
let r = !1;
|
|
5579
5579
|
for (const l of c) {
|
|
5580
5580
|
if (l.geometria.tipo !== "Polygon") continue;
|
|
5581
|
-
const d =
|
|
5581
|
+
const d = si(l.geometria.aneis[0], t);
|
|
5582
5582
|
if (!d) continue;
|
|
5583
5583
|
this.p.divisaoAtiva() && this.p.estaSelecionada({ camadaId: l.camadaId, id: l.id }) && this.p.encerrarDesenho(), this.p.removerFeicao(l.camadaId, l.id);
|
|
5584
5584
|
const h = [];
|
|
@@ -5598,7 +5598,7 @@ class Fn {
|
|
|
5598
5598
|
gerarBuffer(t, e, o, a = {}) {
|
|
5599
5599
|
const i = this.p.buscar(t, e);
|
|
5600
5600
|
if (!i) return null;
|
|
5601
|
-
const n =
|
|
5601
|
+
const n = ni(i.geometria, o);
|
|
5602
5602
|
if (!n) return null;
|
|
5603
5603
|
const c = a.camadaDestino ?? t, r = this.p.adicionarFeicao(c, {
|
|
5604
5604
|
id: a.id ?? this.p.idLivre(c, `${e}-buffer`),
|
|
@@ -5629,7 +5629,7 @@ class Fn {
|
|
|
5629
5629
|
duplicarFeicao(t, e, o = {}, a = {}) {
|
|
5630
5630
|
const i = this.p.buscar(t, e);
|
|
5631
5631
|
if (!i) return null;
|
|
5632
|
-
const n =
|
|
5632
|
+
const n = ri(i.geometria, o.lesteM ?? 0, o.norteM ?? 0), c = this.p.adicionarFeicao(t, Rt(i, a.id ?? this.p.idLivre(t, `${e}-copia`), n));
|
|
5633
5633
|
return c && this.p.emitir("cad-feicao-criada", { camadaId: t, feicao: c }), c;
|
|
5634
5634
|
}
|
|
5635
5635
|
/**
|
|
@@ -5651,12 +5651,12 @@ class Fn {
|
|
|
5651
5651
|
let l = null;
|
|
5652
5652
|
if (n.every((h) => h.geometria.tipo === "LineString")) {
|
|
5653
5653
|
if (n.some((g) => Oe(g.geometria))) return a("multiparte");
|
|
5654
|
-
const h = n.map((g) => g.geometria.coordenadas), f =
|
|
5654
|
+
const h = n.map((g) => g.geometria.coordenadas), f = ci(h, r);
|
|
5655
5655
|
f && (l = _e([f]));
|
|
5656
5656
|
} else if (n.every((h) => h.geometria.tipo === "Polygon" && h.geometria.aneis.length === 1)) {
|
|
5657
5657
|
let h = n[0].geometria.aneis[0];
|
|
5658
5658
|
for (const f of n.slice(1))
|
|
5659
|
-
h = h ?
|
|
5659
|
+
h = h ? li(h, f.geometria.aneis[0], r) : null;
|
|
5660
5660
|
h && (l = { tipo: "Polygon", aneis: [h] });
|
|
5661
5661
|
} else
|
|
5662
5662
|
return a("tipos-incompativeis");
|
|
@@ -5670,7 +5670,7 @@ class Fn {
|
|
|
5670
5670
|
return this.p.emitir("cad-feicao-unida", { origens: n, resultado: d }), d;
|
|
5671
5671
|
}
|
|
5672
5672
|
}
|
|
5673
|
-
class
|
|
5673
|
+
class Nn {
|
|
5674
5674
|
constructor(t, e) {
|
|
5675
5675
|
u(this, "cacheOficiais", /* @__PURE__ */ new WeakMap());
|
|
5676
5676
|
this.p = t, this.regra = e;
|
|
@@ -5730,14 +5730,14 @@ class qn {
|
|
|
5730
5730
|
}
|
|
5731
5731
|
}
|
|
5732
5732
|
}
|
|
5733
|
-
class
|
|
5733
|
+
class $n {
|
|
5734
5734
|
constructor(t) {
|
|
5735
5735
|
this.p = t;
|
|
5736
5736
|
}
|
|
5737
5737
|
limitesDe(t) {
|
|
5738
5738
|
let e = 1 / 0, o = 1 / 0, a = -1 / 0, i = -1 / 0;
|
|
5739
5739
|
for (const n of t) {
|
|
5740
|
-
const [[c, r], [l, d]] =
|
|
5740
|
+
const [[c, r], [l, d]] = oi(n.geometria);
|
|
5741
5741
|
c < e && (e = c), r < o && (o = r), l > a && (a = l), d > i && (i = d);
|
|
5742
5742
|
}
|
|
5743
5743
|
return Number.isFinite(e) ? [[e, o], [a, i]] : null;
|
|
@@ -5772,22 +5772,22 @@ class Nn {
|
|
|
5772
5772
|
return !o || o.tipo !== U ? !1 : (o.visivel || e.setLayerVisibility(t, !0), this.enquadrar(this.p.lista(t).filter((a) => this.p.desenhada(a))));
|
|
5773
5773
|
}
|
|
5774
5774
|
}
|
|
5775
|
-
const
|
|
5775
|
+
const Rn = { topo: 0, base: 16, esquerda: 0, direita: 0 }, Bn = 16, Vn = 0.92, ke = {
|
|
5776
5776
|
topo: "--cad-hud-topo",
|
|
5777
5777
|
base: "--cad-hud-base",
|
|
5778
5778
|
esquerda: "--cad-hud-esquerda",
|
|
5779
5779
|
direita: "--cad-hud-direita"
|
|
5780
5780
|
}, no = "position:absolute;box-sizing:border-box;z-index:10000;left:calc(var(--cad-hud-esquerda,0px) + (100% - var(--cad-hud-esquerda,0px) - var(--cad-hud-direita,0px)) / 2);bottom:var(--cad-hud-base,16px);transform:translateX(-50%);width:max-content;max-width:min(92%, calc(100% - var(--cad-hud-esquerda,0px) - var(--cad-hud-direita,0px) - 16px));max-height:calc(100% - var(--cad-hud-topo,0px) - var(--cad-hud-base,16px) - 8px);overflow:hidden;display:flex;flex-wrap:wrap;";
|
|
5781
5781
|
function xc(s, t, e = {}) {
|
|
5782
|
-
const o = {
|
|
5782
|
+
const o = { ...Rn, ...e }, a = Math.max(0, s - o.esquerda - o.direita);
|
|
5783
5783
|
return {
|
|
5784
5784
|
centroX: o.esquerda + a / 2,
|
|
5785
5785
|
base: o.base,
|
|
5786
|
-
larguraMax: Math.max(0, Math.min(s *
|
|
5786
|
+
larguraMax: Math.max(0, Math.min(s * Vn, a - Bn)),
|
|
5787
5787
|
alturaMax: Math.max(0, t - o.topo - o.base - 8)
|
|
5788
5788
|
};
|
|
5789
5789
|
}
|
|
5790
|
-
function
|
|
5790
|
+
function jn(s, t) {
|
|
5791
5791
|
for (const e of Object.keys(ke)) {
|
|
5792
5792
|
const o = t[e];
|
|
5793
5793
|
typeof o == "number" && Number.isFinite(o) && o >= 0 ? s.style.setProperty(ke[e], `${o}px`) : s.style.removeProperty(ke[e]);
|
|
@@ -5828,7 +5828,7 @@ function Jt(s, t) {
|
|
|
5828
5828
|
const o = document.createElement("span");
|
|
5829
5829
|
return o.textContent = t, o.style.cssText = `position:absolute;right:5px;font-size:10px;color:${B.suave};pointer-events:none`, e.append(s, o), e;
|
|
5830
5830
|
}
|
|
5831
|
-
const
|
|
5831
|
+
const Hn = "cm-draw-hud", Vo = "cad-ferramenta-ativa", rt = "cad-desenho", ht = "#22d3ee", Gn = 4, Un = 450, Zn = 10, Wn = 8, Xn = 2500, Kn = {
|
|
5832
5832
|
ponto: "Ponto",
|
|
5833
5833
|
linha: "Linha",
|
|
5834
5834
|
poligono: "Polígono",
|
|
@@ -5845,7 +5845,7 @@ const jn = "cm-draw-hud", Vo = "cad-ferramenta-ativa", rt = "cad-desenho", ht =
|
|
|
5845
5845
|
offset: "Offset",
|
|
5846
5846
|
"selecao-laco": "Seleção por laço",
|
|
5847
5847
|
"conta-gotas": "Conta-gotas"
|
|
5848
|
-
},
|
|
5848
|
+
}, Qn = {
|
|
5849
5849
|
ponto: "Clique para colocar",
|
|
5850
5850
|
linha: "Clique nos vértices · Enter ou duplo clique conclui",
|
|
5851
5851
|
poligono: "Clique nos vértices · Enter ou duplo clique conclui",
|
|
@@ -5863,7 +5863,7 @@ const jn = "cm-draw-hud", Vo = "cad-ferramenta-ativa", rt = "cad-desenho", ht =
|
|
|
5863
5863
|
"selecao-laco": "Desenhe o laço · Enter ou 1º ponto fecha e seleciona",
|
|
5864
5864
|
"conta-gotas": "Clique numa feição para copiar o estilo"
|
|
5865
5865
|
};
|
|
5866
|
-
class
|
|
5866
|
+
class Yn {
|
|
5867
5867
|
constructor(t) {
|
|
5868
5868
|
u(this, "sessao", null);
|
|
5869
5869
|
u(this, "fechar", !1);
|
|
@@ -5989,7 +5989,7 @@ class Qn {
|
|
|
5989
5989
|
return o ? (this.mostrarSnap(o.coordenada), o.coordenada) : (this.esconderSnap(), e);
|
|
5990
5990
|
}
|
|
5991
5991
|
repetido(t) {
|
|
5992
|
-
const e = this.ultimoClique, o = Date.now(), a = t.containerPoint, i = !!e && Math.hypot(e.x - a.x, e.y - a.y) <=
|
|
5992
|
+
const e = this.ultimoClique, o = Date.now(), a = t.containerPoint, i = !!e && Math.hypot(e.x - a.x, e.y - a.y) <= Gn && o - e.t <= Un;
|
|
5993
5993
|
return this.ultimoClique = { x: a.x, y: a.y, t: o }, i;
|
|
5994
5994
|
}
|
|
5995
5995
|
/** Com 3+ vértices, um clique perto do primeiro fecha a figura em polígono. */
|
|
@@ -5997,7 +5997,7 @@ class Qn {
|
|
|
5997
5997
|
const e = this.sessao, o = e == null ? void 0 : e.primeiro;
|
|
5998
5998
|
if (!e || !o || !e.fechaNoPrimeiro) return !1;
|
|
5999
5999
|
const a = this.dep.map.latLngToContainerPoint(o);
|
|
6000
|
-
if (Math.hypot(a.x - t.containerPoint.x, a.y - t.containerPoint.y) >
|
|
6000
|
+
if (Math.hypot(a.x - t.containerPoint.x, a.y - t.containerPoint.y) > Zn) return !1;
|
|
6001
6001
|
const i = e.concluirFechando();
|
|
6002
6002
|
return i && this.finalizar(i), !!i;
|
|
6003
6003
|
}
|
|
@@ -6007,7 +6007,7 @@ class Qn {
|
|
|
6007
6007
|
if (!e) return null;
|
|
6008
6008
|
const o = this.dep.map, a = (i) => {
|
|
6009
6009
|
const n = o.latLngToContainerPoint(i);
|
|
6010
|
-
return Math.hypot(n.x - t.containerPoint.x, n.y - t.containerPoint.y) <=
|
|
6010
|
+
return Math.hypot(n.x - t.containerPoint.x, n.y - t.containerPoint.y) <= Wn;
|
|
6011
6011
|
};
|
|
6012
6012
|
for (let i = e.ancoras.length - 1; i >= 0; i--) {
|
|
6013
6013
|
const n = e.ancoras[i];
|
|
@@ -6033,7 +6033,7 @@ class Qn {
|
|
|
6033
6033
|
const e = (o = this.hud) == null ? void 0 : o.querySelector('[data-campo="aviso"]');
|
|
6034
6034
|
e && (e.textContent = t, this.avisoTimer && clearTimeout(this.avisoTimer), this.avisoTimer = setTimeout(() => {
|
|
6035
6035
|
e.textContent = "", this.avisoTimer = null;
|
|
6036
|
-
},
|
|
6036
|
+
}, Xn));
|
|
6037
6037
|
}
|
|
6038
6038
|
/**
|
|
6039
6039
|
* Botão direito com a ferramenta ativa: conclui se já dá figura; senão desfaz o último vértice;
|
|
@@ -6134,7 +6134,7 @@ class Qn {
|
|
|
6134
6134
|
const r = {
|
|
6135
6135
|
tipo: e === "medir-area" ? "area" : "distancia",
|
|
6136
6136
|
pontos: a,
|
|
6137
|
-
comprimentoM:
|
|
6137
|
+
comprimentoM: ai(a, !1)
|
|
6138
6138
|
};
|
|
6139
6139
|
if (t.tipo === "Polygon")
|
|
6140
6140
|
r.areaM2 = mt(t) ?? 0, r.perimetroM = gt(t) ?? 0;
|
|
@@ -6166,14 +6166,14 @@ class Qn {
|
|
|
6166
6166
|
const t = this.sessao;
|
|
6167
6167
|
if (!t) return;
|
|
6168
6168
|
const e = document.createElement("div");
|
|
6169
|
-
e.id =
|
|
6169
|
+
e.id = Hn, e.style.cssText = no + "gap:10px;align-items:center;padding:6px 12px;border-radius:8px;background:rgba(15,23,42,.92);color:#fff;font:12px var(--ui-fonte-base,sans-serif);border:1px solid rgba(255,255,255,.2);pointer-events:auto";
|
|
6170
6170
|
const o = (r) => {
|
|
6171
6171
|
const l = document.createElement("span");
|
|
6172
6172
|
return l.dataset.campo = r, l;
|
|
6173
6173
|
}, a = document.createElement("strong");
|
|
6174
|
-
a.textContent =
|
|
6174
|
+
a.textContent = Kn[t.ferramenta];
|
|
6175
6175
|
const i = o("dica");
|
|
6176
|
-
i.style.opacity = ".7", i.textContent =
|
|
6176
|
+
i.style.opacity = ".7", i.textContent = Qn[t.ferramenta];
|
|
6177
6177
|
const n = (r, l, d = !1) => {
|
|
6178
6178
|
const h = document.createElement("button");
|
|
6179
6179
|
return h.type = "button", h.textContent = r, h.style.cssText = `padding:3px 10px;border-radius:4px;border:1px solid ${d ? ht : "rgba(255,255,255,.3)"};background:${d ? ht : "transparent"};color:${d ? "#111" : "#fff"};cursor:pointer;font-weight:600`, h.addEventListener("click", l), h;
|
|
@@ -6210,7 +6210,7 @@ class Qn {
|
|
|
6210
6210
|
function Ct(s) {
|
|
6211
6211
|
return s.tipo === "LineString" ? s.coordenadas.length >= 2 && !Oe(s) : s.tipo === "Polygon" ? s.aneis.length === 1 && s.aneis[0].length >= 3 : !1;
|
|
6212
6212
|
}
|
|
6213
|
-
function
|
|
6213
|
+
function Jn(s, t, e) {
|
|
6214
6214
|
const o = e ? s.length : s.length - 1;
|
|
6215
6215
|
let a = null;
|
|
6216
6216
|
for (let i = 0; i < o; i++) {
|
|
@@ -6221,13 +6221,13 @@ function Yn(s, t, e) {
|
|
|
6221
6221
|
}
|
|
6222
6222
|
return a;
|
|
6223
6223
|
}
|
|
6224
|
-
function
|
|
6224
|
+
function za(s, t, e = eo) {
|
|
6225
6225
|
if (!Ct(s) || !Number.isFinite(t[0]) || !Number.isFinite(t[1])) return null;
|
|
6226
|
-
const o = s.tipo === "LineString" ? s.coordenadas : s.tipo === "Polygon" ? s.aneis[0] : [], a = e.planoLocal(o[0]), i = o.map((c) => a.paraXY(c)), n =
|
|
6226
|
+
const o = s.tipo === "LineString" ? s.coordenadas : s.tipo === "Polygon" ? s.aneis[0] : [], a = e.planoLocal(o[0]), i = o.map((c) => a.paraXY(c)), n = Jn(i, a.paraXY(t), s.tipo === "Polygon");
|
|
6227
6227
|
return !n || !(n.dist > 1e-9) ? null : s.tipo === "Polygon" ? { lado: Yo(t, [o]) ? "esquerda" : "direita", distancia: n.dist } : n.cruzado === 0 ? null : { lado: n.cruzado > 0 ? "esquerda" : "direita", distancia: n.dist };
|
|
6228
6228
|
}
|
|
6229
6229
|
function tr(s, t, e, o = eo) {
|
|
6230
|
-
const a =
|
|
6230
|
+
const a = za(s, t, o);
|
|
6231
6231
|
if (!a) return null;
|
|
6232
6232
|
const i = e ?? a.distancia;
|
|
6233
6233
|
if (!Number.isFinite(i) || !(i > 0)) return null;
|
|
@@ -6354,7 +6354,8 @@ class ir {
|
|
|
6354
6354
|
}
|
|
6355
6355
|
const e = this.previa(t);
|
|
6356
6356
|
if (!e) {
|
|
6357
|
-
|
|
6357
|
+
const i = !!za(this.escolhida.geometria, t);
|
|
6358
|
+
this.avisar(i ? "Distância maior que o objeto: reduza a distância ou clique do lado de fora." : this.modo === "distancia" ? "Clique de um dos lados do objeto." : "Clique fora do objeto, no ponto por onde o offset passa.");
|
|
6358
6359
|
return;
|
|
6359
6360
|
}
|
|
6360
6361
|
const o = this.escolhida;
|
|
@@ -6531,7 +6532,7 @@ class rr {
|
|
|
6531
6532
|
if (r)
|
|
6532
6533
|
return this.p.emitir("cad-desenho-recusado", { ferramenta: t, motivo: r }), { ok: !1, motivo: r };
|
|
6533
6534
|
}
|
|
6534
|
-
this.p.prepararDesenho(), this.desenho || (this.desenho = new
|
|
6535
|
+
this.p.prepararDesenho(), this.desenho || (this.desenho = new Yn({
|
|
6535
6536
|
map: o,
|
|
6536
6537
|
buscarSnap: (r) => this.p.buscarSnapEm(r),
|
|
6537
6538
|
snapAtivo: () => this.p.snapAtivo(),
|
|
@@ -6688,7 +6689,7 @@ class cr {
|
|
|
6688
6689
|
const l = we(c, t, this.p.opcoesNormalizacao());
|
|
6689
6690
|
if (l) {
|
|
6690
6691
|
const d = n.get(l.id);
|
|
6691
|
-
i.set(l.id, d &&
|
|
6692
|
+
i.set(l.id, d && Ln(d, l) ? d : l);
|
|
6692
6693
|
} else a.push(String((c == null ? void 0 : c.id) ?? `#${r}`));
|
|
6693
6694
|
}), this.p.obterLayerManager().setLayerData(t, { feicoes: [...i.values()] }), this.p.aposDados(), { aceitas: i.size, recusadas: a };
|
|
6694
6695
|
}
|
|
@@ -6760,7 +6761,7 @@ class cr {
|
|
|
6760
6761
|
return m.setLayerData(t, w), delete w.delta, C ? this.posicoes.delete(t) : this.posicoes.set(t, { lista: L, pos: P }), this.p.aposDados(), f({ resultado: a, adicionadas: i, atualizadas: n });
|
|
6761
6762
|
}
|
|
6762
6763
|
}
|
|
6763
|
-
const Ot = (s) => Array.isArray(s) && s.length === 2 && Number.isFinite(s[0]) && Number.isFinite(s[1]), lo = Math.PI / 180, Qe = 0.01, bt =
|
|
6764
|
+
const Ot = (s) => Array.isArray(s) && s.length === 2 && Number.isFinite(s[0]) && Number.isFinite(s[1]), lo = Math.PI / 180, Qe = 0.01, bt = di;
|
|
6764
6765
|
function lr(s, t, e) {
|
|
6765
6766
|
let o = G(s);
|
|
6766
6767
|
if (!o || t < 0 || t >= o.length) return s;
|
|
@@ -6844,7 +6845,7 @@ function fr(s, t, e) {
|
|
|
6844
6845
|
}
|
|
6845
6846
|
return { t: d, ponto: r(d), distanciaM: h };
|
|
6846
6847
|
}
|
|
6847
|
-
const
|
|
6848
|
+
const wa = 0.1, Ea = 0.9;
|
|
6848
6849
|
function Go(s, t, e, o) {
|
|
6849
6850
|
const a = G(s);
|
|
6850
6851
|
if (!a || !Ot(o) || !Number.isFinite(e)) return null;
|
|
@@ -6852,7 +6853,7 @@ function Go(s, t, e, o) {
|
|
|
6852
6853
|
if (i === null) return null;
|
|
6853
6854
|
const n = ho(s, a, t, i);
|
|
6854
6855
|
if (!n) return null;
|
|
6855
|
-
const c = Math.min(
|
|
6856
|
+
const c = Math.min(Ea, Math.max(wa, e)), r = 1 - c, l = to(a[t].ponto, n[0], n[1], a[i].ponto, c), d = o[0] - l[0], h = o[1] - l[1], f = r * r + c * c, g = 1 / (3 * c * f), m = 1 / (3 * r * f), p = [n[0][0] + d * g, n[0][1] + h * g], v = [n[1][0] + d * m, n[1][1] + h * m], y = a.slice();
|
|
6856
6857
|
return y[t] = xo(a[t], "saida", p, "livre"), y[i] = xo(i === t ? y[t] : a[i], "entrada", v, "livre"), nt(s, y);
|
|
6857
6858
|
}
|
|
6858
6859
|
function mr(s, t) {
|
|
@@ -6890,7 +6891,7 @@ function vr(s, t, e, o) {
|
|
|
6890
6891
|
}
|
|
6891
6892
|
return c;
|
|
6892
6893
|
}
|
|
6893
|
-
function
|
|
6894
|
+
function ka(s, t, e, o, a, i, n) {
|
|
6894
6895
|
const c = vr(o, a, i, n), r = (f) => Mt(s, f[0], f[1]), l = { ...t, saida: r(c[0].c1), modo: "livre" }, d = [];
|
|
6895
6896
|
for (let f = 0; f < c.length - 1; f++)
|
|
6896
6897
|
d.push({ ponto: r(c[f].fim), entrada: r(c[f].c2), saida: r(c[f + 1].c1), modo: "simetrico" });
|
|
@@ -6904,7 +6905,7 @@ function br(s, t, e, o = "esquerda") {
|
|
|
6904
6905
|
if (i === null) return null;
|
|
6905
6906
|
const n = bt(a[t].ponto), c = Q(n, a[t].ponto), r = Q(n, a[i].ponto), l = Math.hypot(r[0] - c[0], r[1] - c[1]);
|
|
6906
6907
|
if (!(l > 0)) return null;
|
|
6907
|
-
const d = Math.max(e, l / 2), h = Math.sqrt(Math.max(0, d * d - (l / 2) ** 2)), f = (r[0] - c[0]) / l, m = [-((r[1] - c[1]) / l), f], p = o === "esquerda" ? -1 : 1, v = [(c[0] + r[0]) / 2, (c[1] + r[1]) / 2], y = [v[0] + m[0] * h * p, v[1] + m[1] * h * p], P = Math.atan2(c[1] - y[1], c[0] - y[0]), x = Math.asin(Math.min(1, l / (2 * d))), M =
|
|
6908
|
+
const d = Math.max(e, l / 2), h = Math.sqrt(Math.max(0, d * d - (l / 2) ** 2)), f = (r[0] - c[0]) / l, m = [-((r[1] - c[1]) / l), f], p = o === "esquerda" ? -1 : 1, v = [(c[0] + r[0]) / 2, (c[1] + r[1]) / 2], y = [v[0] + m[0] * h * p, v[1] + m[1] * h * p], P = Math.atan2(c[1] - y[1], c[0] - y[0]), x = Math.asin(Math.min(1, l / (2 * d))), M = ka(n, a[t], a[i], y, d, P, p * 2 * x), z = a.slice();
|
|
6908
6909
|
return z[t] = M.a, z[i] = i === t ? M.a : M.b, z.splice(t + 1, 0, ...M.meio), nt(s, z);
|
|
6909
6910
|
}
|
|
6910
6911
|
function yr(s, t, e) {
|
|
@@ -6922,7 +6923,7 @@ function yr(s, t, e) {
|
|
|
6922
6923
|
let k = Math.atan2(C[1] - E[1], C[0] - E[0]) - T;
|
|
6923
6924
|
for (; k > Math.PI; ) k -= 2 * Math.PI;
|
|
6924
6925
|
for (; k < -Math.PI; ) k += 2 * Math.PI;
|
|
6925
|
-
const F = { ponto: Mt(r, z[0], z[1]) }, O = { ponto: Mt(r, C[0], C[1]) }, _ =
|
|
6926
|
+
const F = { ponto: Mt(r, z[0], z[1]) }, O = { ponto: Mt(r, C[0], C[1]) }, _ = ka(r, F, O, E, x, T, k), q = o.slice();
|
|
6926
6927
|
return q.splice(t, 1, _.a, ..._.meio, _.b), nt(s, q);
|
|
6927
6928
|
}
|
|
6928
6929
|
function Zo(s, t, e, o) {
|
|
@@ -7131,7 +7132,7 @@ class Nr {
|
|
|
7131
7132
|
const a = this.dep.map, i = t.target instanceof Element ? t.target : null;
|
|
7132
7133
|
if (!i || i !== a.getContainer() && !i.closest(".leaflet-pane") || i.closest(".leaflet-marker-icon, .leaflet-control")) return;
|
|
7133
7134
|
const n = a.mouseEventToContainerPoint(t), c = a.containerPointToLatLng(n), r = this.segmentoMaisProximo([c.lat, c.lng]);
|
|
7134
|
-
r && (t.stopPropagation(), t.preventDefault(), this.molde = { i: r.i, t: Math.min(
|
|
7135
|
+
r && (t.stopPropagation(), t.preventDefault(), this.molde = { i: r.i, t: Math.min(Ea, Math.max(wa, r.t)), x: n.x, y: n.y, moveu: !1, antes: e }, this.arrastando++, this.moldeArrastoDoMapa = a.dragging.enabled(), this.moldeArrastoDoMapa && a.dragging.disable(), window.addEventListener("mousemove", this.aoMoverMolde), window.addEventListener("mouseup", this.aoSoltarMolde));
|
|
7135
7136
|
});
|
|
7136
7137
|
u(this, "aoMoverMolde", (t) => {
|
|
7137
7138
|
const e = this.molde, o = this.feicaoAtual;
|
|
@@ -7354,9 +7355,9 @@ class Nr {
|
|
|
7354
7355
|
/** Posição da alça: a real do nó ou, se o nó é de canto, a latente (sempre à mão para curvar). */
|
|
7355
7356
|
posicaoDaAlca(t, e, o) {
|
|
7356
7357
|
var n, c;
|
|
7357
|
-
const a = (c = (n =
|
|
7358
|
+
const a = (c = (n = hi(t)) == null ? void 0 : n[e]) == null ? void 0 : c[o];
|
|
7358
7359
|
if (a) return { pos: a, latente: !1 };
|
|
7359
|
-
if (this.pts.length >
|
|
7360
|
+
if (this.pts.length > ui) return null;
|
|
7360
7361
|
const i = qe(t, e, o);
|
|
7361
7362
|
return i ? { pos: i, latente: !0 } : null;
|
|
7362
7363
|
}
|
|
@@ -7485,7 +7486,7 @@ class Nr {
|
|
|
7485
7486
|
comInsercao(t, e) {
|
|
7486
7487
|
const o = this.feicaoAtual;
|
|
7487
7488
|
if (!o || this.pts.length === 0) return null;
|
|
7488
|
-
const a = this.geometriaAtual(), i = Bt(a, t, (t + 1) % this.pts.length), n =
|
|
7489
|
+
const a = this.geometriaAtual(), i = Bt(a, t, (t + 1) % this.pts.length), n = pi(a, t, i);
|
|
7489
7490
|
if (n === a) return null;
|
|
7490
7491
|
const c = ot(n).map((r) => [r[0], r[1]]);
|
|
7491
7492
|
return e && Number.isFinite(e[0]) && Number.isFinite(e[1]) && (c[t + 1] = e), { feicao: { ...o, geometria: Fe(n, c) }, pts: c };
|
|
@@ -7863,8 +7864,8 @@ class Rr {
|
|
|
7863
7864
|
buscarSnapEm(t, e) {
|
|
7864
7865
|
const o = this.p.obterMapa();
|
|
7865
7866
|
if (!o) return null;
|
|
7866
|
-
const a = o.latLngToContainerPoint(t), i = this.candidatasEm(t,
|
|
7867
|
-
return
|
|
7867
|
+
const a = o.latLngToContainerPoint(t), i = this.candidatasEm(t, fi);
|
|
7868
|
+
return mi({ x: a.x, y: a.y }, i, (n) => o.latLngToContainerPoint(n), {}, e);
|
|
7868
7869
|
}
|
|
7869
7870
|
feicaoSob(t, e) {
|
|
7870
7871
|
const o = this.p.obterMapa();
|
|
@@ -7928,7 +7929,7 @@ class Vr {
|
|
|
7928
7929
|
for (const o of this.p.obterLayerManager().getActiveSelectableLayers())
|
|
7929
7930
|
if (o.tipo === U)
|
|
7930
7931
|
for (const a of this.p.lista(o.id))
|
|
7931
|
-
this.p.desenhada(a) &&
|
|
7932
|
+
this.p.desenhada(a) && gi(a, t) && e.push({ camadaId: o.id, id: a.id });
|
|
7932
7933
|
this.p.desativarFerramenta(), this.p.selecionar(e);
|
|
7933
7934
|
}
|
|
7934
7935
|
/** Caixa de seleção: só feições de camadas visíveis, interativas e desbloqueadas, com toque geométrico real. */
|
|
@@ -7939,7 +7940,7 @@ class Vr {
|
|
|
7939
7940
|
for (const c of this.p.obterLayerManager().getActiveSelectableLayers())
|
|
7940
7941
|
if (c.tipo === U)
|
|
7941
7942
|
for (const r of this.p.lista(c.id))
|
|
7942
|
-
this.p.desenhada(r) &&
|
|
7943
|
+
this.p.desenhada(r) && vi(r, t, i, e) && n.push({ camadaId: c.id, id: r.id });
|
|
7943
7944
|
o === "adicionar" ? this.p.adicionar ? this.p.adicionar(n) : this.p.alternarVarias(n) : o === "subtrair" ? this.p.subtrair ? this.p.subtrair(n) : this.p.alternarVarias(n) : o === !0 ? this.p.alternarVarias(n) : this.p.selecionar(n);
|
|
7944
7945
|
}
|
|
7945
7946
|
}
|
|
@@ -8039,7 +8040,7 @@ class Gr {
|
|
|
8039
8040
|
ocupado: () => this.edicao.editando || this.ferramentas.ativo,
|
|
8040
8041
|
atalhosValem: () => this.atalhosValem(),
|
|
8041
8042
|
editarSelecionada: () => this.edicao.editarSelecionada()
|
|
8042
|
-
}), this.versoes = new
|
|
8043
|
+
}), this.versoes = new Nn({
|
|
8043
8044
|
obterLayerManager: () => this.contexto.obterLayerManager(),
|
|
8044
8045
|
emitir: (e, o) => this.contexto.emitir(e, o),
|
|
8045
8046
|
buscar: (e, o) => this.buscar(e, o),
|
|
@@ -8070,14 +8071,14 @@ class Gr {
|
|
|
8070
8071
|
const e = this.selecao.obter();
|
|
8071
8072
|
return e.length === 1 ? e[0] : null;
|
|
8072
8073
|
}
|
|
8073
|
-
}), this.camera = new
|
|
8074
|
+
}), this.camera = new $n({
|
|
8074
8075
|
obterMapa: () => this.contexto.obterMapa(),
|
|
8075
8076
|
obterLayerManager: () => this.contexto.obterLayerManager(),
|
|
8076
8077
|
buscar: (e, o) => this.buscar(e, o),
|
|
8077
8078
|
lista: (e) => this.lista(e),
|
|
8078
8079
|
desenhada: (e) => this.desenhada(e),
|
|
8079
8080
|
garantirVisivel: (e) => this.versoes.garantirVisivel(e)
|
|
8080
|
-
}), this.operacoes = new
|
|
8081
|
+
}), this.operacoes = new qn({
|
|
8081
8082
|
emitir: (e, o) => this.contexto.emitir(e, o),
|
|
8082
8083
|
obterLayerManager: () => this.contexto.obterLayerManager(),
|
|
8083
8084
|
buscar: (e, o) => this.buscar(e, o),
|
|
@@ -8090,18 +8091,18 @@ class Gr {
|
|
|
8090
8091
|
estaSelecionada: (e) => this.selecao.contem(e),
|
|
8091
8092
|
divisaoAtiva: () => this.ferramentas.ferramentaAtiva === "dividir",
|
|
8092
8093
|
encerrarDesenho: () => this.ferramentas.desativarFerramenta()
|
|
8093
|
-
}), this.cursores = new
|
|
8094
|
+
}), this.cursores = new wn(() => this.contexto.obterMapa()), this.snap = new Fn({
|
|
8094
8095
|
aplica: () => this.atalhosValem(),
|
|
8095
8096
|
aoMudar: (e) => {
|
|
8096
8097
|
var o, a;
|
|
8097
8098
|
this.contexto.emitir("cad-snap", e), this.edicao.atualizarSnapNoHud(), (a = (o = this.contexto).aoSnapMudar) == null || a.call(o, e.ligado);
|
|
8098
8099
|
}
|
|
8099
|
-
}), this.popup = new
|
|
8100
|
+
}), this.popup = new On({
|
|
8100
8101
|
obterMapa: () => this.contexto.obterMapa(),
|
|
8101
8102
|
obterCamada: (e) => this.contexto.obterLayerManager().getLayerDef(e),
|
|
8102
8103
|
aoAcao: (e, o) => this.tratarAcaoPopup(e, o),
|
|
8103
8104
|
liberar: (e) => this.contexto.liberarPopups ? this.contexto.liberarPopups(e) : e()
|
|
8104
|
-
}), this.selecao = new
|
|
8105
|
+
}), this.selecao = new En({
|
|
8105
8106
|
obterFeicao: (e) => this.buscar(e.camadaId, e.id),
|
|
8106
8107
|
aplicarVisual: (e, o) => {
|
|
8107
8108
|
const a = this.contexto.obterLayerManager().getLayerInstance(e), i = R.get(U);
|
|
@@ -8238,7 +8239,7 @@ class Gr {
|
|
|
8238
8239
|
}
|
|
8239
8240
|
aplicarMargensHud() {
|
|
8240
8241
|
const t = this.contexto.obterMapa();
|
|
8241
|
-
t &&
|
|
8242
|
+
t && jn(t.getContainer(), this.margensHud);
|
|
8242
8243
|
}
|
|
8243
8244
|
// ---- versões (oficial × prévia) ----
|
|
8244
8245
|
// ---- versões (oficial × prévia) ----
|
|
@@ -8583,7 +8584,7 @@ class Yr {
|
|
|
8583
8584
|
this.adotadas.length > 0 && Array.isArray(t.adoptedStyleSheets) && (t.adoptedStyleSheets = t.adoptedStyleSheets.filter((o) => !this.adotadas.includes(o))), this.adotadas = [], (e = this.fallback) == null || e.remove(), this.fallback = null;
|
|
8584
8585
|
}
|
|
8585
8586
|
}
|
|
8586
|
-
const
|
|
8587
|
+
const Ia = {
|
|
8587
8588
|
"linha-cor": "cor",
|
|
8588
8589
|
"linha-espessura": "espessura",
|
|
8589
8590
|
"linha-tipo": "tipo",
|
|
@@ -8605,7 +8606,7 @@ const ka = {
|
|
|
8605
8606
|
juncao: "juncaoTraco"
|
|
8606
8607
|
}, Jr = 100, tc = /^\s*\d+(\.\d+)?([\s,]+\d+(\.\d+)?)*\s*$/;
|
|
8607
8608
|
function ec(s) {
|
|
8608
|
-
return Object.prototype.hasOwnProperty.call(
|
|
8609
|
+
return Object.prototype.hasOwnProperty.call(Ia, s);
|
|
8609
8610
|
}
|
|
8610
8611
|
const Xt = (s) => {
|
|
8611
8612
|
const t = typeof s == "number" ? s : typeof s == "string" && s.trim() !== "" ? Number(s) : NaN;
|
|
@@ -8631,13 +8632,13 @@ function oc(s, t) {
|
|
|
8631
8632
|
return e !== void 0 ? Math.min(1, Math.max(0, e)) : void 0;
|
|
8632
8633
|
}
|
|
8633
8634
|
case "tipo":
|
|
8634
|
-
return
|
|
8635
|
+
return ja(t);
|
|
8635
8636
|
case "tracejado":
|
|
8636
8637
|
return typeof t == "string" && tc.test(t) ? t.trim() : void 0;
|
|
8637
8638
|
case "terminacao":
|
|
8638
|
-
return
|
|
8639
|
+
return Va(t) ? t : void 0;
|
|
8639
8640
|
case "juncao":
|
|
8640
|
-
return
|
|
8641
|
+
return Ba(t) ? t : void 0;
|
|
8641
8642
|
default:
|
|
8642
8643
|
return;
|
|
8643
8644
|
}
|
|
@@ -8661,9 +8662,9 @@ function ac(s) {
|
|
|
8661
8662
|
return t;
|
|
8662
8663
|
}
|
|
8663
8664
|
function ic(s, t) {
|
|
8664
|
-
return { [
|
|
8665
|
+
return { [Ia[s]]: t };
|
|
8665
8666
|
}
|
|
8666
|
-
class sc extends
|
|
8667
|
+
class sc extends Qa {
|
|
8667
8668
|
constructor() {
|
|
8668
8669
|
super();
|
|
8669
8670
|
u(this, "shadow");
|
|
@@ -8690,7 +8691,7 @@ class sc extends Ka {
|
|
|
8690
8691
|
u(this, "_zonaProjecao");
|
|
8691
8692
|
u(this, "hudCoordAgendado", !1);
|
|
8692
8693
|
u(this, "hudCursorFora", !0);
|
|
8693
|
-
this.shadow = this.attachShadow({ mode: "open" }), this.controller = new
|
|
8694
|
+
this.shadow = this.attachShadow({ mode: "open" }), this.controller = new Rs(), this.controladorTamanho = Ks(this, this.controller), this.shadow.innerHTML = en(), this.estilosExternos = new Yr(this.shadow), this.mapContainer = this.shadow.getElementById("cad-map-container"), this.layersPanel = this.shadow.getElementById("qgis-layer-panel"), this.toolbarPainel = new Ys({
|
|
8694
8695
|
shadow: this.shadow,
|
|
8695
8696
|
mapContainer: this.mapContainer,
|
|
8696
8697
|
layersPanel: this.layersPanel,
|
|
@@ -8701,12 +8702,12 @@ class sc extends Ka {
|
|
|
8701
8702
|
onToggleSnap: () => this.feicoes.alternarSnap(),
|
|
8702
8703
|
onTratarCliqueCanvas: (i) => this.tratarCliqueLivreCanvas(i),
|
|
8703
8704
|
onDispararAcaoPopup: (i, n) => this.dispararAcaoPopup(i, n)
|
|
8704
|
-
}), this.broadcastConfig = new
|
|
8705
|
+
}), this.broadcastConfig = new Qs({
|
|
8705
8706
|
host: this,
|
|
8706
8707
|
controller: this.controller,
|
|
8707
8708
|
mapContainer: this.mapContainer,
|
|
8708
8709
|
setLayerOpacity: (i, n) => this.setLayerOpacity(i, n)
|
|
8709
|
-
}), this.colecoesDados = new
|
|
8710
|
+
}), this.colecoesDados = new Js({
|
|
8710
8711
|
obterController: () => this.controller,
|
|
8711
8712
|
obterChaveGrupo: () => this.chaveGrupo,
|
|
8712
8713
|
setLayerVisibility: (i, n) => this.setLayerVisibility(i, n)
|
|
@@ -8751,7 +8752,7 @@ class sc extends Ka {
|
|
|
8751
8752
|
edicaoAtiva: () => this.feicoes.editando,
|
|
8752
8753
|
aoLimparSelecao: () => this.feicoes.aoPedirLimpeza(),
|
|
8753
8754
|
selecionarFeicoesNaCaixa: (i, n, c) => this.feicoes.selecionarNaCaixa(i, n, c)
|
|
8754
|
-
}),
|
|
8755
|
+
}), fn(this.shadow), qo(this.shadow, !0);
|
|
8755
8756
|
}
|
|
8756
8757
|
static get observedAttributes() {
|
|
8757
8758
|
return [
|
|
@@ -8785,7 +8786,7 @@ class sc extends Ka {
|
|
|
8785
8786
|
"linha-opacidade",
|
|
8786
8787
|
"linha-terminacao",
|
|
8787
8788
|
"linha-juncao",
|
|
8788
|
-
...
|
|
8789
|
+
...Ya
|
|
8789
8790
|
];
|
|
8790
8791
|
}
|
|
8791
8792
|
connectedCallback() {
|
|
@@ -8794,12 +8795,12 @@ class sc extends Ka {
|
|
|
8794
8795
|
e !== null && (this._zonaProjecao = e, this.controller.zonaProjecao = e, this.controller.context.zonaProjecao = e), this.controller.core.definirModoPopups(this.popups), this.aplicarPopupSigef(), this.controladorTamanho.observe(), this.feicoes.conectarTeclado(), this.hoverListeners.cleanup(), this.mapContainer && (this.hoverListeners.add(this.mapContainer, "mousemove", (a) => {
|
|
8795
8796
|
this.feicoes.aoMoverMouse(a), this.hudCursorFora = !1, this.atualizarHudCoordenadas(a);
|
|
8796
8797
|
}), this.hoverListeners.add(this.mapContainer, "mouseleave", () => {
|
|
8797
|
-
this.hudCursorFora = !0, this.escreverHudCoordenadas(
|
|
8798
|
+
this.hudCursorFora = !0, this.escreverHudCoordenadas(sn);
|
|
8798
8799
|
}), this.hoverListeners.add(this.mapContainer, "dblclick", (a) => this.feicoes.aoDuploClique(a))), this.hoverListeners.add(this, "mouseenter", () => {
|
|
8799
8800
|
this.ponteiroSobre = !0;
|
|
8800
8801
|
}), this.hoverListeners.add(this, "mouseleave", () => {
|
|
8801
8802
|
this.ponteiroSobre = !1;
|
|
8802
|
-
}), this.montarBarra(this.getAttribute("ferramentas")), this.broadcastConfig.conectar(), (o = this.desligarAnuncios) == null || o.call(this), this.desligarAnuncios =
|
|
8803
|
+
}), this.montarBarra(this.getAttribute("ferramentas")), this.broadcastConfig.conectar(), (o = this.desligarAnuncios) == null || o.call(this), this.desligarAnuncios = yn(this, this.shadow), this.estilosExternos.aplicar(), yo(this, this.layersPanel), this.initTimeout = window.setTimeout(() => {
|
|
8803
8804
|
this.initTimeout = void 0, this.inicializarAgora();
|
|
8804
8805
|
}, 0);
|
|
8805
8806
|
}
|
|
@@ -8810,7 +8811,7 @@ class sc extends Ka {
|
|
|
8810
8811
|
atualizarHudZoom() {
|
|
8811
8812
|
var o;
|
|
8812
8813
|
const e = this.shadow.getElementById("cad-coord-zoom");
|
|
8813
|
-
e && (e.textContent =
|
|
8814
|
+
e && (e.textContent = nn((o = this.controller.getMap()) == null ? void 0 : o.getZoom()));
|
|
8814
8815
|
}
|
|
8815
8816
|
/** Zoom no HUD desde a criação do mapa e a cada `zoomend` (o `map.remove()` do destroy solta o ouvinte). */
|
|
8816
8817
|
conectarHudZoom() {
|
|
@@ -8826,7 +8827,7 @@ class sc extends Ka {
|
|
|
8826
8827
|
if (!n || !this.mapContainer) return;
|
|
8827
8828
|
const c = this.mapContainer.getBoundingClientRect(), r = b.point(o - c.left, a - c.top), l = n.containerPointToLatLng(r);
|
|
8828
8829
|
if (!l || !Number.isFinite(l.lat) || !Number.isFinite(l.lng)) return;
|
|
8829
|
-
const d =
|
|
8830
|
+
const d = rn(l.lat, l.lng, this._zonaProjecao);
|
|
8830
8831
|
d && this.escreverHudCoordenadas(d);
|
|
8831
8832
|
};
|
|
8832
8833
|
typeof requestAnimationFrame == "function" ? requestAnimationFrame(i) : setTimeout(i, 16);
|
|
@@ -8861,7 +8862,7 @@ class sc extends Ka {
|
|
|
8861
8862
|
}
|
|
8862
8863
|
attributeChangedCallback(e, o, a) {
|
|
8863
8864
|
var i, n, c, r, l, d, h, f, g, m;
|
|
8864
|
-
if (
|
|
8865
|
+
if (Ja(e)) {
|
|
8865
8866
|
yo(this, this.layersPanel);
|
|
8866
8867
|
return;
|
|
8867
8868
|
}
|
|
@@ -8904,7 +8905,7 @@ class sc extends Ka {
|
|
|
8904
8905
|
this.montarBarra(a), (f = this.barraFerramentas) == null || f.marcar(((h = this.feicoes) == null ? void 0 : h.ferramentaAtiva) ?? null), (m = this.barraFerramentas) == null || m.marcarEdicao(!!((g = this.feicoes) != null && g.editando));
|
|
8905
8906
|
return;
|
|
8906
8907
|
}
|
|
8907
|
-
|
|
8908
|
+
cn(
|
|
8908
8909
|
{
|
|
8909
8910
|
host: this,
|
|
8910
8911
|
controller: this.controller,
|
|
@@ -8940,7 +8941,7 @@ class sc extends Ka {
|
|
|
8940
8941
|
this.estilosExternos.definir(e);
|
|
8941
8942
|
}
|
|
8942
8943
|
initCAD() {
|
|
8943
|
-
|
|
8944
|
+
ln({
|
|
8944
8945
|
host: this,
|
|
8945
8946
|
shadow: this.shadow,
|
|
8946
8947
|
mapContainer: this.mapContainer,
|
|
@@ -8970,11 +8971,11 @@ class sc extends Ka {
|
|
|
8970
8971
|
}
|
|
8971
8972
|
tratarCliqueLivreCanvas(e, o, a) {
|
|
8972
8973
|
const i = Date.now();
|
|
8973
|
-
i - this.lastCanvasClickTime < 50 || (this.lastCanvasClickTime = i,
|
|
8974
|
+
i - this.lastCanvasClickTime < 50 || (this.lastCanvasClickTime = i, Us(this.obterContextoEventos(), e, o, a));
|
|
8974
8975
|
}
|
|
8975
8976
|
dispararAcaoPopup(e, o, a) {
|
|
8976
8977
|
const i = Date.now();
|
|
8977
|
-
this.lastPopupActionEmit && this.lastPopupActionEmit.acaoId === e && this.lastPopupActionEmit.elementoId === o && i - this.lastPopupActionEmit.time < 50 || (this.lastPopupActionEmit = { acaoId: e, elementoId: o, time: i },
|
|
8978
|
+
this.lastPopupActionEmit && this.lastPopupActionEmit.acaoId === e && this.lastPopupActionEmit.elementoId === o && i - this.lastPopupActionEmit.time < 50 || (this.lastPopupActionEmit = { acaoId: e, elementoId: o, time: i }, Zs(this.obterContextoEventos(), e, o, a));
|
|
8978
8979
|
}
|
|
8979
8980
|
toggleLayersPanel() {
|
|
8980
8981
|
this.hasAttribute("sem-painel-camadas") || this.toolbarPainel.toggleLayersPanel();
|
|
@@ -8984,7 +8985,7 @@ class sc extends Ka {
|
|
|
8984
8985
|
}
|
|
8985
8986
|
renderLayersUI() {
|
|
8986
8987
|
const e = this.shadow.getElementById("layers-list-container");
|
|
8987
|
-
|
|
8988
|
+
Bs(e, this.controller.layerManager.getLayers(), this.layerItemListeners, {
|
|
8988
8989
|
setLayerVisibility: (o, a) => this.setLayerVisibility(o, a),
|
|
8989
8990
|
setLayerOpacity: (o, a) => this.setLayerOpacity(o, a),
|
|
8990
8991
|
setLayerBlocked: (o, a) => this.controller.layerManager.setLayerBlocked(o, a),
|
|
@@ -9091,7 +9092,7 @@ class sc extends Ka {
|
|
|
9091
9092
|
}
|
|
9092
9093
|
aplicarQualidadeAoMapa() {
|
|
9093
9094
|
var e;
|
|
9094
|
-
|
|
9095
|
+
hs((e = this.controller) == null ? void 0 : e.getMap(), this.perfilQualidade);
|
|
9095
9096
|
}
|
|
9096
9097
|
/**
|
|
9097
9098
|
* Contadores do desenho de uma camada de feições (`total`, `materializadas`, `desenhadas`, `marcasLOD`, `clusters`,
|
|
@@ -9150,7 +9151,7 @@ class sc extends Ka {
|
|
|
9150
9151
|
this.controller.selectPonto(e, o);
|
|
9151
9152
|
}
|
|
9152
9153
|
get pontosSelecionados() {
|
|
9153
|
-
return
|
|
9154
|
+
return Vs(this.controller);
|
|
9154
9155
|
}
|
|
9155
9156
|
set pontosSelecionados(e) {
|
|
9156
9157
|
const o = Array.isArray(e) ? e : [];
|
|
@@ -9447,7 +9448,7 @@ class sc extends Ka {
|
|
|
9447
9448
|
return this.controller.layerManager;
|
|
9448
9449
|
}
|
|
9449
9450
|
}
|
|
9450
|
-
|
|
9451
|
+
ti("ui-canvas-cad", sc);
|
|
9451
9452
|
class Pc {
|
|
9452
9453
|
constructor(t, e) {
|
|
9453
9454
|
u(this, "polylines", []);
|
|
@@ -9730,10 +9731,10 @@ class Cc {
|
|
|
9730
9731
|
}
|
|
9731
9732
|
}
|
|
9732
9733
|
export {
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9734
|
+
Ia as ATRIBUTOS_LINHA_PADRAO,
|
|
9735
|
+
Za as AgrupadorCluster,
|
|
9736
|
+
Rs as CADMapaController,
|
|
9737
|
+
Ti as CAD_INTERACTIVE_PANES,
|
|
9737
9738
|
Uc as CELULA_CLUSTER_PX,
|
|
9738
9739
|
Vo as CLASSE_FERRAMENTA_ATIVA,
|
|
9739
9740
|
jo as CLASSE_OFFSET_ATIVO,
|
|
@@ -9742,48 +9743,48 @@ export {
|
|
|
9742
9743
|
Ma as CSS_BARRA_HUD,
|
|
9743
9744
|
Aa as CSS_CAMPO_HUD,
|
|
9744
9745
|
no as CSS_POSICAO_HUD,
|
|
9745
|
-
|
|
9746
|
+
Rs as CanvasCADController,
|
|
9746
9747
|
le as CanvasFormas,
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9748
|
+
ji as CanvasInteracao,
|
|
9749
|
+
Ms as CanvasLayerManager,
|
|
9750
|
+
Yn as ControleDesenho,
|
|
9750
9751
|
ir as ControleOffset,
|
|
9751
|
-
|
|
9752
|
+
wn as CursoresRemotos,
|
|
9752
9753
|
Mo as DEFAULT_CONFIG,
|
|
9753
9754
|
Oo as DEFAULT_LAYERS,
|
|
9754
9755
|
Zc as DadosCamada,
|
|
9755
|
-
|
|
9756
|
+
Ss as DespachanteFeicoes,
|
|
9756
9757
|
Nr as EditorVertices,
|
|
9757
9758
|
Lo as FERRAMENTAS,
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9759
|
+
Bn as FOLGA_HUD,
|
|
9760
|
+
Vn as FRACAO_LARGURA_HUD,
|
|
9761
|
+
On as FeicaoPopup,
|
|
9762
|
+
Ps as FeicoesCanvasRenderer,
|
|
9763
|
+
ns as FeicoesLayerRenderer,
|
|
9764
|
+
Rs as GerenciGeoMapaController,
|
|
9765
|
+
Ki as GridLayerRenderer,
|
|
9765
9766
|
B as HUD_COR,
|
|
9766
9767
|
je as ICONES_FEICAO,
|
|
9767
|
-
|
|
9768
|
+
Hn as ID_HUD_DESENHO,
|
|
9768
9769
|
Er as ID_HUD_EDICAO,
|
|
9769
9770
|
er as ID_HUD_OFFSET,
|
|
9770
|
-
|
|
9771
|
+
Fa as IndiceEspacial,
|
|
9771
9772
|
Mc as InternadorEstilos,
|
|
9772
9773
|
Be as LIMIAR_DENSIDADE_ALTA,
|
|
9773
9774
|
Pe as LIMITE_CULLING,
|
|
9774
9775
|
Wc as LIMITE_MARCA_PX,
|
|
9775
9776
|
Xc as LIMITE_MIUDA_PX,
|
|
9776
9777
|
R as LayerRendererFactory,
|
|
9777
|
-
|
|
9778
|
-
|
|
9778
|
+
Rn as MARGEM_HUD_PADRAO,
|
|
9779
|
+
ui as MAX_NOS_COM_ALCA_LATENTE,
|
|
9779
9780
|
Kc as MAX_PONTOS_SEM_CLUSTER,
|
|
9780
9781
|
pl as MAX_VERTICES_EDICAO,
|
|
9781
|
-
|
|
9782
|
+
Na as MIN_VERTICES_SIMPLIFICAR,
|
|
9782
9783
|
Ne as MapaConfigManager,
|
|
9783
|
-
|
|
9784
|
+
Ii as MapaCore,
|
|
9784
9785
|
Pc as MapaLinhas,
|
|
9785
9786
|
Cc as MapaMarcadores,
|
|
9786
|
-
|
|
9787
|
+
Wa as MotorFormas,
|
|
9787
9788
|
Qc as OPACIDADE_MARCA,
|
|
9788
9789
|
ke as PROPRIEDADES_HUD,
|
|
9789
9790
|
Jo as PintorCanvas2D,
|
|
@@ -9792,19 +9793,19 @@ export {
|
|
|
9792
9793
|
Je as RegraVersoes,
|
|
9793
9794
|
$e as SIGEF_WMS_CAMADA,
|
|
9794
9795
|
ia as SIGEF_WMS_URL,
|
|
9795
|
-
|
|
9796
|
+
En as SelecaoFeicoes,
|
|
9796
9797
|
me as SessaoDesenho,
|
|
9797
9798
|
Ac as TIPOS_LINHA,
|
|
9798
|
-
|
|
9799
|
+
Qi as TOLERANCIA_AMOSTRA_PX,
|
|
9799
9800
|
ge as TOLERANCIA_LINHA_PX,
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9801
|
+
_i as TOLERANCIA_PONTO_PX,
|
|
9802
|
+
fi as TOLERANCIA_SNAP_PX,
|
|
9803
|
+
Hi as TileLayerRenderer,
|
|
9803
9804
|
sc as UICanvasCAD,
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9805
|
+
Ui as VectorLinesLayerRenderer,
|
|
9806
|
+
Wi as VectorPointsLayerRenderer,
|
|
9807
|
+
Xi as VectorPolygonsLayerRenderer,
|
|
9808
|
+
Gi as WmsLayerRenderer,
|
|
9808
9809
|
Yc as ZOOM_DESMEMBRAR,
|
|
9809
9810
|
Jc as ZOOM_MAX_MIUDA,
|
|
9810
9811
|
uo as ZOOM_SEM_SIMPLIFICACAO,
|
|
@@ -9815,11 +9816,11 @@ export {
|
|
|
9815
9816
|
qe as alcaLatente,
|
|
9816
9817
|
oo as alternarSuavidade,
|
|
9817
9818
|
wl as amostrarBezier,
|
|
9818
|
-
|
|
9819
|
+
jn as aplicarMargensHud,
|
|
9819
9820
|
mt as areaDaGeometria,
|
|
9820
9821
|
ll as areaMetros2,
|
|
9821
9822
|
Dt as bindPopupAcoesEvents,
|
|
9822
|
-
|
|
9823
|
+
mi as buscarSnap,
|
|
9823
9824
|
zc as caixaDaFeicao,
|
|
9824
9825
|
wc as caixaPx,
|
|
9825
9826
|
Nt as caixasSeTocam,
|
|
@@ -9830,7 +9831,7 @@ export {
|
|
|
9830
9831
|
nt as comNos,
|
|
9831
9832
|
Fe as comPontos,
|
|
9832
9833
|
ml as comVertices,
|
|
9833
|
-
|
|
9834
|
+
ai as comprimentoMetros,
|
|
9834
9835
|
yc as confrontanteParaFeicao,
|
|
9835
9836
|
ha as consultarFeicoesNoPonto,
|
|
9836
9837
|
na as consultarSigefParcelas,
|
|
@@ -9840,22 +9841,22 @@ export {
|
|
|
9840
9841
|
he as coordenadaDeReferencia,
|
|
9841
9842
|
Ke as corHexSegura,
|
|
9842
9843
|
lt as corSegura,
|
|
9843
|
-
|
|
9844
|
+
Ks as criarControladorTamanho,
|
|
9844
9845
|
_e as criarLinha,
|
|
9845
9846
|
ro as cssBotaoHud,
|
|
9846
9847
|
Ec as dashTipoLinha,
|
|
9847
9848
|
nl as ddParaDms,
|
|
9848
9849
|
Mt as deMetros,
|
|
9849
|
-
|
|
9850
|
+
ri as deslocarGeometria,
|
|
9850
9851
|
go as deveAgrupar,
|
|
9851
9852
|
mo as diagonalPx,
|
|
9852
9853
|
kc as distSegmentoPx,
|
|
9853
9854
|
bl as distanciaEntre,
|
|
9854
9855
|
Qo as distanciaMetros,
|
|
9855
|
-
|
|
9856
|
+
si as dividirPoligonoComLinha,
|
|
9856
9857
|
rl as dmsParaDd,
|
|
9857
9858
|
aa as ehFerramenta,
|
|
9858
|
-
|
|
9859
|
+
Ga as ehMarca,
|
|
9859
9860
|
Oe as ehMultilinha,
|
|
9860
9861
|
Ic as ehTipoLinha,
|
|
9861
9862
|
pt as entidadeDe,
|
|
@@ -9867,39 +9868,39 @@ export {
|
|
|
9867
9868
|
Te as estiloVetorDe,
|
|
9868
9869
|
gt as extensaoDaGeometria,
|
|
9869
9870
|
vo as extrairCentroDeWkt,
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9871
|
+
Si as extrairCodigoParcelaSigef,
|
|
9872
|
+
Zi as extrairCorPonto,
|
|
9873
|
+
Li as extrairParcelasSigef,
|
|
9873
9874
|
dl as extremosDoCirculoGeografico,
|
|
9874
9875
|
pa as fatorDensidade,
|
|
9875
|
-
|
|
9876
|
-
|
|
9876
|
+
vi as feicaoNaCaixa,
|
|
9877
|
+
gi as feicaoNoLaco,
|
|
9877
9878
|
_t as feicaoNoPonto,
|
|
9878
9879
|
gc as feicaoNoTopo,
|
|
9879
|
-
|
|
9880
|
+
Ln as feicoesEquivalentes,
|
|
9880
9881
|
bo as formatUTM,
|
|
9881
9882
|
Lt as formatarArea,
|
|
9882
9883
|
K as formatarExtensao,
|
|
9883
|
-
|
|
9884
|
-
|
|
9884
|
+
Fi as garantirCanvasSemEventos,
|
|
9885
|
+
ni as gerarBuffer,
|
|
9885
9886
|
ce as getPointShapeHtml,
|
|
9886
|
-
|
|
9887
|
+
pi as inserirPonto,
|
|
9887
9888
|
yl as inserirVertice,
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
|
|
9892
|
-
|
|
9889
|
+
Ba as juncaoCanvas,
|
|
9890
|
+
ci as juntarLinhas,
|
|
9891
|
+
li as juntarPoligonos,
|
|
9892
|
+
za as ladoEDistancia,
|
|
9893
|
+
Ua as ladoMarca,
|
|
9893
9894
|
$t as latLonDoMundo,
|
|
9894
|
-
|
|
9895
|
-
|
|
9895
|
+
Xa as latLonParaUtm,
|
|
9896
|
+
Cs as lerModoRenderizador,
|
|
9896
9897
|
co as ligarHoverHud,
|
|
9897
|
-
|
|
9898
|
+
oi as limitesDaGeometria,
|
|
9898
9899
|
hl as metrosPorGrau,
|
|
9899
9900
|
Oc as metrosPorPixel,
|
|
9900
9901
|
ea as minimoVertices,
|
|
9901
9902
|
Ve as modoDensidade,
|
|
9902
|
-
|
|
9903
|
+
Pi as montarUrlConsultaSigef,
|
|
9903
9904
|
oa as moverAlca,
|
|
9904
9905
|
xl as moverVertice,
|
|
9905
9906
|
al as nivelDetalhe,
|
|
@@ -9907,9 +9908,9 @@ export {
|
|
|
9907
9908
|
tt as normalizarCoordenada,
|
|
9908
9909
|
we as normalizarFeicaoEntrada,
|
|
9909
9910
|
No as normalizarLinha,
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9911
|
+
Pn as normalizarPoligono,
|
|
9912
|
+
ja as normalizarTipoLinha,
|
|
9913
|
+
hi as nosDe,
|
|
9913
9914
|
El as nosDeAncoras,
|
|
9914
9915
|
G as nosOuVertices,
|
|
9915
9916
|
ta as offsetParalelo,
|
|
@@ -9918,8 +9919,8 @@ export {
|
|
|
9918
9919
|
j as parseCoordenada,
|
|
9919
9920
|
Pl as parseDash,
|
|
9920
9921
|
se as partesDaLinha,
|
|
9921
|
-
|
|
9922
|
-
|
|
9922
|
+
Ha as pintarMarcas,
|
|
9923
|
+
di as planoLocal,
|
|
9923
9924
|
Cl as pontoDaBordaDoCirculo,
|
|
9924
9925
|
sa as pontoDoClique,
|
|
9925
9926
|
Sl as pontoMedio,
|
|
@@ -9929,8 +9930,8 @@ export {
|
|
|
9929
9930
|
ot as pontosDe,
|
|
9930
9931
|
xc as posicaoHud,
|
|
9931
9932
|
tr as previaOffset,
|
|
9932
|
-
|
|
9933
|
-
|
|
9933
|
+
Zs as processarAcaoPopup,
|
|
9934
|
+
Us as processarCliqueLivreCanvas,
|
|
9934
9935
|
Fc as projetarCentro,
|
|
9935
9936
|
qc as projetarEm,
|
|
9936
9937
|
il as projetarMercator,
|
|
@@ -9938,31 +9939,31 @@ export {
|
|
|
9938
9939
|
$c as projetarVertices,
|
|
9939
9940
|
Rc as raioCirculoPx,
|
|
9940
9941
|
po as raioPontoPx,
|
|
9941
|
-
|
|
9942
|
+
ds as regioesExpostas,
|
|
9942
9943
|
la as registrarFonteHit,
|
|
9943
9944
|
da as removerFonteHit,
|
|
9944
9945
|
fe as removerPonto,
|
|
9945
9946
|
Ll as removerVertice,
|
|
9946
9947
|
Tt as renderPopupAcoesHtml,
|
|
9947
|
-
|
|
9948
|
-
|
|
9948
|
+
Bs as renderizarPainelCamadas,
|
|
9949
|
+
Vi as resolverCliqueCentral,
|
|
9949
9950
|
It as segmentadoHud,
|
|
9950
9951
|
bc as segmentoParaFeicao,
|
|
9951
|
-
|
|
9952
|
+
ii as segmentosDe,
|
|
9952
9953
|
Po as segmentosDoEditor,
|
|
9953
9954
|
ct as separadorHud,
|
|
9954
9955
|
Bc as simplificarAnel,
|
|
9955
|
-
|
|
9956
|
+
$a as simplificarGeometria,
|
|
9956
9957
|
Vc as simplificarLinha,
|
|
9957
9958
|
jc as simplificarPx,
|
|
9958
9959
|
xt as statusDe,
|
|
9959
|
-
|
|
9960
|
-
|
|
9960
|
+
Va as terminacaoCanvas,
|
|
9961
|
+
ei as textoRotulo,
|
|
9961
9962
|
Hc as toleranciaPorZoom,
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9963
|
+
Ws as tratarCliqueMarcador,
|
|
9964
|
+
Xs as tratarCliqueSegmento,
|
|
9965
|
+
Ci as urlProxySigef,
|
|
9965
9966
|
Co as verificarEditavel,
|
|
9966
|
-
|
|
9967
|
+
qa as vertices,
|
|
9967
9968
|
Ml as verticesDe
|
|
9968
9969
|
};
|