@thibezer/ui-components-kit 2.29.0 → 2.30.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 +1260 -1240
- package/dist/canvas.cjs +31 -30
- package/dist/canvas.js +483 -457
- package/dist/components/ui-canvas-cad/cad-hud-coordenadas.d.ts +4 -0
- package/dist/components/ui-canvas-cad/ui-canvas-cad.d.ts +10 -0
- package/dist/components/ui-seletor-mapa-base/index.d.ts +1 -0
- package/dist/components/ui-seletor-mapa-base/seletor-mapa-base-util.d.ts +32 -0
- package/dist/components/ui-seletor-mapa-base/tipos.d.ts +8 -1
- package/dist/components/ui-seletor-mapa-base/ui-seletor-mapa-base.d.ts +9 -0
- package/dist/custom-elements.json +15771 -15328
- package/dist/seletor-mapa-base.cjs +16 -16
- package/dist/seletor-mapa-base.js +183 -102
- package/dist/tipos-elementos.d.ts +2 -0
- package/dist/tipos-vue.d.ts +2 -0
- package/package.json +1 -1
package/dist/canvas.js
CHANGED
|
@@ -3,19 +3,19 @@ var da = (n, t, e) => t in n ? la(n, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var p = (n, t, e) => da(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { n as mt, f as ha, g as ua, C as Bt, d as et, h as Oe, I as pa, s as pt, i as st, v as fa, M as ma, Z as Ue, j as ga, k as zt, l as ye, r as Ze, o as We, a as Xe, q as va, R as Ne, b as gt, p as To, c as ba, u as ya, w as xa, x as Pa } from "./geometria-px-BxTQKrZN.js";
|
|
6
|
-
import { y as
|
|
7
|
-
import { pintarMarcas as
|
|
8
|
-
import { CELULA_CLUSTER_PX as
|
|
6
|
+
import { y as Zr, T as Wr, z as Xr, A as Kr, B as Yr, D as Qr, E as Jr, F as tc, G as ec, H as oc, J as ac, K as ic, L as nc, N as sc, O as rc, P as cc, Q as lc, S as dc, U as hc, V as uc } from "./geometria-px-BxTQKrZN.js";
|
|
7
|
+
import { pintarMarcas as Ca, ehMarca as Sa, ladoMarca as La, diagonalPx as Ke, deveAgrupar as Ye, AgrupadorCluster as Ma, MotorFormas as Aa } from "./motor.js";
|
|
8
|
+
import { CELULA_CLUSTER_PX as fc, DadosCamada as mc, LIMITE_MARCA_PX as gc, LIMITE_MIUDA_PX as vc, MAX_PONTOS_SEM_CLUSTER as bc, OPACIDADE_MARCA as yc, ZOOM_DESMEMBRAR as xc, ZOOM_MAX_MIUDA as Pc, agruparMarcasPorCor as Cc, agruparPontos as Sc, centroDe as Lc, nivelDetalhe as Mc, projetarMercator as Ac } from "./motor.js";
|
|
9
9
|
import b from "leaflet";
|
|
10
|
-
import { e as I, p as V, r as
|
|
11
|
-
import { d as
|
|
10
|
+
import { e as I, p as V, r as St, b as Lt, a as Vt, o as jt, c as Qe, l as za, f as Je } from "./utils-B2HuBLwz.js";
|
|
11
|
+
import { d as wc, g as Ec } from "./utils-B2HuBLwz.js";
|
|
12
12
|
import { K as vt, M as Jt, L as Gt, l as wa, S as Ea, A as ka, g as to, s as Ia, d as Ta } from "./kit-base-CBXA66aM.js";
|
|
13
13
|
import { p as Ht, t as Da, b as xe, g as ct, h as lt, i as bt, j as W, f as eo, l as _a, d as Do, c as qa } from "./feature_metricas-DGfd21VR.js";
|
|
14
|
-
import { a as
|
|
15
|
-
import { E as
|
|
16
|
-
import { I as
|
|
17
|
-
import { S as oe, e as so, a as
|
|
18
|
-
import { R as
|
|
14
|
+
import { a as Ic, e as Tc, m as Dc } from "./feature_metricas-DGfd21VR.js";
|
|
15
|
+
import { E as Fa, s as $a, p as Oa, c as oo, P as _o, d as Na, e as ee, f as Ra, h as Ba, j as Va, i as ja, k as X, l as yt, n as U, m as dt, o as qo, q as Q, r as Pe, t as Fo, u as ao, v as Ga, w as Ce, x as io, y as Ha, M as Ua, z as wt, A as Za, B as Wa, C as Xa, D as no, T as Ka, F as Ya, G as Qa, H as Ja } from "./feature_caixa-DOchASgS.js";
|
|
16
|
+
import { I as qc, R as Fc, J as $c, K as Oc, L as Nc, N as Rc, O as Bc, Q as Vc, S as jc, U as Gc, V as Hc, W as Uc, X as Zc } from "./feature_caixa-DOchASgS.js";
|
|
17
|
+
import { S as oe, e as so, a as $o, F as ro } from "./feature_desenho-Cq3H27as.js";
|
|
18
|
+
import { R as Xc, b as Kc, n as Yc } from "./feature_desenho-Cq3H27as.js";
|
|
19
19
|
const co = {
|
|
20
20
|
perimetroWeight: 1,
|
|
21
21
|
fechamentoWeight: 1,
|
|
@@ -59,19 +59,19 @@ const co = {
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
p(rt, "instance");
|
|
62
|
-
let
|
|
62
|
+
let Se = rt;
|
|
63
63
|
const Re = "sob-demanda", ti = 700;
|
|
64
64
|
function Ut(n) {
|
|
65
65
|
const t = typeof n == "string" ? n.trim().toLowerCase() : "";
|
|
66
66
|
return t === "automatico" || t === "desligado" || t === "sob-demanda" ? t : Re;
|
|
67
67
|
}
|
|
68
|
-
const
|
|
68
|
+
const $t = /* @__PURE__ */ new WeakMap();
|
|
69
69
|
function ei(n) {
|
|
70
70
|
const t = n && typeof n == "object" ? n.options : void 0;
|
|
71
71
|
return !!t && t.closeButton !== void 0 && t.autoPan !== void 0;
|
|
72
72
|
}
|
|
73
73
|
function Be(n, t) {
|
|
74
|
-
const e = n ?
|
|
74
|
+
const e = n ? $t.get(n) : void 0;
|
|
75
75
|
return e ? e.liberar(t) : t();
|
|
76
76
|
}
|
|
77
77
|
class oi {
|
|
@@ -94,7 +94,7 @@ class oi {
|
|
|
94
94
|
const o = this;
|
|
95
95
|
t.addLayer = function(i) {
|
|
96
96
|
return ei(i) ? o.aoAbrir(this, i) : o.original.call(this, i);
|
|
97
|
-
}, this.container = typeof t.getContainer == "function" ? t.getContainer() : null, (a = this.container) == null || a.addEventListener("click", this.marcarClique, !0),
|
|
97
|
+
}, this.container = typeof t.getContainer == "function" ? t.getContainer() : null, (a = this.container) == null || a.addEventListener("click", this.marcarClique, !0), $t.set(t, this);
|
|
98
98
|
}
|
|
99
99
|
get modo() {
|
|
100
100
|
return this.modoAtual;
|
|
@@ -113,7 +113,7 @@ class oi {
|
|
|
113
113
|
}
|
|
114
114
|
destruir() {
|
|
115
115
|
var t;
|
|
116
|
-
this.instalado && (this.instalado = !1, this.cancelarPendentes(), (t = this.container) == null || t.removeEventListener("click", this.marcarClique, !0), delete this.map.addLayer,
|
|
116
|
+
this.instalado && (this.instalado = !1, this.cancelarPendentes(), (t = this.container) == null || t.removeEventListener("click", this.marcarClique, !0), delete this.map.addLayer, $t.get(this.map) === this && $t.delete(this.map));
|
|
117
117
|
}
|
|
118
118
|
aoAbrir(t, e) {
|
|
119
119
|
return this.modoAtual === "automatico" ? this.original.call(t, e) : this.emClique && this.liberados === 0 ? (this.modoAtual === "sob-demanda" && this.aguardarDuploClique(e), t) : (e.options && (e.options.autoPan = !1), this.original.call(t, e));
|
|
@@ -343,7 +343,7 @@ function ui(n) {
|
|
|
343
343
|
class pi {
|
|
344
344
|
constructor(t) {
|
|
345
345
|
p(this, "map", null);
|
|
346
|
-
p(this, "configManager",
|
|
346
|
+
p(this, "configManager", Se.getInstance());
|
|
347
347
|
p(this, "config", this.configManager.getConfig());
|
|
348
348
|
p(this, "apiBaseUrl", "/api");
|
|
349
349
|
p(this, "bancoPontosGroup", b.layerGroup());
|
|
@@ -523,7 +523,7 @@ class mi {
|
|
|
523
523
|
this.selectionDiv.style.left = `${Math.round(r)}px`, this.selectionDiv.style.top = `${Math.round(c)}px`, this.selectionDiv.style.width = `${Math.round(i)}px`, this.selectionDiv.style.height = `${Math.round(s)}px`, t.ctrlKey || t.metaKey ? (this.selectionDiv.style.background = "rgba(239, 68, 68, 0.22)", this.selectionDiv.style.border = o >= this.selectStartPos.x ? "1px solid #ef4444" : "1px dashed #ef4444") : o >= this.selectStartPos.x ? (this.selectionDiv.style.background = "rgba(14, 116, 144, 0.22)", this.selectionDiv.style.border = "1px solid #06b6d4") : (this.selectionDiv.style.background = "rgba(16, 185, 129, 0.22)", this.selectionDiv.style.border = "1px dashed #10b981");
|
|
524
524
|
}
|
|
525
525
|
finalizarSelecao(t, e, o) {
|
|
526
|
-
var z, P,
|
|
526
|
+
var z, P, S, A, E, C, k, T, D;
|
|
527
527
|
if (!this.isSelecting) return !1;
|
|
528
528
|
this.isSelecting = !1, this.selectionDiv && (this.selectionDiv.style.display = "none"), this.map.closePopup();
|
|
529
529
|
try {
|
|
@@ -533,9 +533,9 @@ class mi {
|
|
|
533
533
|
const a = this.mapContainer.getBoundingClientRect(), i = t.clientX - a.left, s = t.clientY - a.top, r = this.map.mouseEventToContainerPoint(t), c = Math.abs(i - this.selectStartPos.x), l = Math.abs(s - this.selectStartPos.y);
|
|
534
534
|
if (c < 4 && l < 4) {
|
|
535
535
|
const w = t.target;
|
|
536
|
-
if (w && ((P = w.classList) != null && P.contains("leaflet-container") || w.id === "mapa-triagem" || (
|
|
537
|
-
const
|
|
538
|
-
|
|
536
|
+
if (w && ((P = w.classList) != null && P.contains("leaflet-container") || w.id === "mapa-triagem" || (S = w.closest) != null && S.call(w, ".leaflet-pane"))) {
|
|
537
|
+
const F = ((A = w.closest) == null ? void 0 : A.call(w, ".custom-leaflet-marker")) || ((E = w.closest) == null ? void 0 : E.call(w, ".custom-div-icon")), q = t.ctrlKey || t.metaKey || t.shiftKey;
|
|
538
|
+
!F && !q && o();
|
|
539
539
|
}
|
|
540
540
|
return !1;
|
|
541
541
|
}
|
|
@@ -546,18 +546,18 @@ class mi {
|
|
|
546
546
|
x2: Math.max(this.selectStartPoint.x, r.x),
|
|
547
547
|
y2: Math.max(this.selectStartPoint.y, r.y)
|
|
548
548
|
}, h = r.x >= this.selectStartPoint.x ? "window" : "crossing", f = !!(t.ctrlKey || t.metaKey), g = !!t.shiftKey, m = g ? "adicionar" : f ? "subtrair" : "substituir";
|
|
549
|
-
(k = (
|
|
549
|
+
(k = (C = this.ctx).selecionarFeicoesNaCaixa) == null || k.call(C, d, h, m);
|
|
550
550
|
const u = ((T = this.ctx.mapaController) == null ? void 0 : T.getMarkers()) || [], v = ((D = this.ctx.mapaController) == null ? void 0 : D.getVizinhosMarkers()) || [], y = [], L = [], x = !this.ctx.layerManager || this.ctx.layerManager.isLayerActiveAndSelectable("vertices"), M = !this.ctx.layerManager || this.ctx.layerManager.isLayerActiveAndSelectable("vizinhos");
|
|
551
551
|
return x && u.forEach((w) => {
|
|
552
|
-
const
|
|
553
|
-
if (
|
|
552
|
+
const F = w.pontoId;
|
|
553
|
+
if (!F) return;
|
|
554
554
|
const q = this.map.latLngToContainerPoint(w.getLatLng());
|
|
555
|
-
q.x >= d.x1 && q.x <= d.x2 && q.y >= d.y1 && q.y <= d.y2 && y.push(
|
|
555
|
+
q.x >= d.x1 && q.x <= d.x2 && q.y >= d.y1 && q.y <= d.y2 && y.push(F);
|
|
556
556
|
}), M && v.forEach((w) => {
|
|
557
|
-
const
|
|
558
|
-
if (
|
|
557
|
+
const F = w.pontoId;
|
|
558
|
+
if (!F) return;
|
|
559
559
|
const q = this.map.latLngToContainerPoint(w.getLatLng());
|
|
560
|
-
q.x >= d.x1 && q.x <= d.x2 && q.y >= d.y1 && q.y <= d.y2 && L.push(
|
|
560
|
+
q.x >= d.x1 && q.x <= d.x2 && q.y >= d.y1 && q.y <= d.y2 && L.push(F);
|
|
561
561
|
}), g ? (y.forEach((w) => {
|
|
562
562
|
this.ctx.selectedPontoIds.includes(w) || this.ctx.selectedPontoIds.push(w);
|
|
563
563
|
}), L.forEach((w) => {
|
|
@@ -633,7 +633,7 @@ function Pi(n, t, e) {
|
|
|
633
633
|
}
|
|
634
634
|
return (i = n._containsPoint) != null && i.call(n, t) ? 0 : null;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function Ci(n) {
|
|
637
637
|
const t = [];
|
|
638
638
|
for (let e = n._drawFirst; e; e = e.next) t.push(e.layer);
|
|
639
639
|
return t;
|
|
@@ -647,7 +647,7 @@ function Ho(n, t, e) {
|
|
|
647
647
|
for (const l of Bo) {
|
|
648
648
|
const d = o[Vo(r.id, l)];
|
|
649
649
|
if (d)
|
|
650
|
-
for (const h of
|
|
650
|
+
for (const h of Ci(d).reverse()) {
|
|
651
651
|
const f = Pi(h, e, l);
|
|
652
652
|
f !== null && i.push({ camada: r, tipo: l, alvo: h, distancia: f, area: xi(h) });
|
|
653
653
|
}
|
|
@@ -663,7 +663,7 @@ function Ho(n, t, e) {
|
|
|
663
663
|
return i.sort((r, c) => Et[r.tipo] !== Et[c.tipo] ? Et[c.tipo] - Et[r.tipo] : r.camada.zIndex !== c.camada.zIndex ? c.camada.zIndex - r.camada.zIndex : r.tipo === "poligono" && r.area !== c.area ? r.area - c.area : 0);
|
|
664
664
|
}
|
|
665
665
|
const Me = /* @__PURE__ */ new WeakMap();
|
|
666
|
-
function
|
|
666
|
+
function Si(n, t, e) {
|
|
667
667
|
const o = e.map((s) => s.chave === void 0 ? String(b.Util.stamp(s.alvo)) : `${b.Util.stamp(s.alvo)}:${s.chave}`), a = Me.get(n);
|
|
668
668
|
let i = 0;
|
|
669
669
|
return a && Math.hypot(a.x - t.x, a.y - t.y) <= vi && a.ids.length === o.length && a.ids.every((s, r) => s === o[r]) && (i = (a.indice + 1) % e.length), Me.set(n, { x: t.x, y: t.y, ids: o, indice: i }), e[i];
|
|
@@ -672,7 +672,7 @@ function Li(n, t, e) {
|
|
|
672
672
|
const o = n.mouseEventToLayerPoint(e), a = Ho(n, t, o);
|
|
673
673
|
if (a.length === 0)
|
|
674
674
|
return Me.delete(n), !1;
|
|
675
|
-
const i =
|
|
675
|
+
const i = Si(n, o, a);
|
|
676
676
|
return i.alvo.fire(
|
|
677
677
|
e.type,
|
|
678
678
|
{
|
|
@@ -685,7 +685,7 @@ function Li(n, t, e) {
|
|
|
685
685
|
!0
|
|
686
686
|
), !0;
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function Or(n, t, e) {
|
|
689
689
|
return Ho(n, t, n.mouseEventToLayerPoint(e))[0] ?? null;
|
|
690
690
|
}
|
|
691
691
|
const po = ".cad-vertex-handle, .cad-vertex-ghost, .cad-bezier-handle, #cm-vertex-edit-hud, #cm-draw-hud";
|
|
@@ -953,12 +953,12 @@ function fo(n, t, e, o, a) {
|
|
|
953
953
|
var m, u, v, y, L, x, M, z;
|
|
954
954
|
const i = n.id === "homologados", s = ((m = n.dados) == null ? void 0 : m.conexoes) ?? (Array.isArray(n.dados) && n.dados.length > 0 && "origemId" in n.dados[0] ? n.dados : null), r = ((u = n.dados) == null ? void 0 : u.segmentos) || o.segmentos || [], c = ((v = n.dados) == null ? void 0 : v.pontos) || (i ? o.bancoPontos || [] : o.pontos) || [], l = Uo(n, e, o), d = 1, h = n.interativo && !n.bloqueada, f = [];
|
|
955
955
|
c.forEach((P) => {
|
|
956
|
-
const
|
|
957
|
-
|
|
956
|
+
const S = V(P.lat ?? P.latitude ?? P.y, P.lon ?? P.lng ?? P.longitude ?? P.x);
|
|
957
|
+
S && f.push({ ...P, lat: S.lat, lon: S.lon });
|
|
958
958
|
});
|
|
959
959
|
const g = (P) => {
|
|
960
|
-
const
|
|
961
|
-
if (
|
|
960
|
+
const S = f.find((A) => String(A.id) === String(P));
|
|
961
|
+
if (S) return S;
|
|
962
962
|
if (o.pontos) {
|
|
963
963
|
const A = o.pontos.find((E) => String(E.id) === String(P));
|
|
964
964
|
if (A) {
|
|
@@ -970,21 +970,21 @@ function fo(n, t, e, o, a) {
|
|
|
970
970
|
};
|
|
971
971
|
if (s && Array.isArray(s)) {
|
|
972
972
|
s.forEach((P) => {
|
|
973
|
-
var E,
|
|
974
|
-
const
|
|
975
|
-
if (
|
|
976
|
-
const q = P.tipoLinha === "tracejada" || ((E = P.estilo) == null ? void 0 : E.tipoLinha) === "tracejada", _ = ((
|
|
977
|
-
ut(t, O,
|
|
973
|
+
var E, C, k, T, D, w, F;
|
|
974
|
+
const S = g(P.origemId), A = g(P.destinoId);
|
|
975
|
+
if (S && A && S.lat && S.lon && A.lat && A.lon) {
|
|
976
|
+
const q = P.tipoLinha === "tracejada" || ((E = P.estilo) == null ? void 0 : E.tipoLinha) === "tracejada", _ = ((C = P.estilo) == null ? void 0 : C.cor) || ((k = P.estilo) == null ? void 0 : k.color) || n.estilo.corPrimaria || "#00f5a0", $ = ((T = P.estilo) == null ? void 0 : T.espessura) || ((D = P.estilo) == null ? void 0 : D.weight) || l, O = [[S.lat, S.lon], [A.lat, A.lon]], B = q ? "6, 6" : n.estilo.dashArray;
|
|
977
|
+
ut(t, O, $, a, B);
|
|
978
978
|
const N = b.polyline(O, {
|
|
979
979
|
color: _,
|
|
980
|
-
weight:
|
|
980
|
+
weight: $,
|
|
981
981
|
opacity: ((w = P.estilo) == null ? void 0 : w.opacidade) ?? d,
|
|
982
982
|
dashArray: B,
|
|
983
983
|
pane: a,
|
|
984
984
|
interactive: h
|
|
985
985
|
});
|
|
986
986
|
if (h) {
|
|
987
|
-
const j = P.acoes || n.acoes || ((
|
|
987
|
+
const j = P.acoes || n.acoes || ((F = n.dados) == null ? void 0 : F.acoes) || [], H = `${P.origemId}-${P.destinoId}`, Y = St(j, H);
|
|
988
988
|
N.bindPopup(`
|
|
989
989
|
<div style="font-family:sans-serif; color:rgba(255, 255, 255, 0.9); line-height:1.3;">
|
|
990
990
|
<div style="font-weight:700; font-size:12px; margin-bottom:3px; color:#ffffff;">Conexão ${I(String(P.origemId))} ↔ ${I(String(P.destinoId))}</div>
|
|
@@ -1005,11 +1005,11 @@ function fo(n, t, e, o, a) {
|
|
|
1005
1005
|
return;
|
|
1006
1006
|
}
|
|
1007
1007
|
if ((y = n.dados) != null && y.polilinhaSequencial || ((L = n.dados) == null ? void 0 : L.fechar) !== void 0 && f.length >= 2) {
|
|
1008
|
-
const P = ((x = n.dados) == null ? void 0 : x.chaveGrupo) || o.chaveGrupo,
|
|
1009
|
-
Object.entries(
|
|
1008
|
+
const P = ((x = n.dados) == null ? void 0 : x.chaveGrupo) || o.chaveGrupo, S = Vt(f, P), A = ((M = n.dados) == null ? void 0 : M.fechar) !== !1, E = n.estilo.corPrimaria || "#00f5a0";
|
|
1009
|
+
Object.entries(S).forEach(([C, k]) => {
|
|
1010
1010
|
const T = jt(k);
|
|
1011
1011
|
if (T.length < 2) return;
|
|
1012
|
-
const D = T.map((
|
|
1012
|
+
const D = T.map((F) => [F.lat, F.lon]);
|
|
1013
1013
|
ut(t, D, l, a, n.estilo.dashArray);
|
|
1014
1014
|
const w = b.polyline(D, {
|
|
1015
1015
|
color: E,
|
|
@@ -1021,11 +1021,11 @@ function fo(n, t, e, o, a) {
|
|
|
1021
1021
|
});
|
|
1022
1022
|
if (h && w.bindPopup(`
|
|
1023
1023
|
<div style="font-family:sans-serif; color:rgba(255, 255, 255, 0.9); line-height:1.3;">
|
|
1024
|
-
<div style="font-weight:700; font-size:12px; margin-bottom:3px; color:#ffffff;">Polilinha: Grupo ${I(
|
|
1024
|
+
<div style="font-weight:700; font-size:12px; margin-bottom:3px; color:#ffffff;">Polilinha: Grupo ${I(C)}</div>
|
|
1025
1025
|
<div style="font-size:11px; color:rgba(255, 255, 255, 0.65);">Vértices: ${T.length}</div>
|
|
1026
1026
|
</div>
|
|
1027
1027
|
`, { className: "compact-popup", maxWidth: 220 }), w.addTo(t), A && D.length >= 3) {
|
|
1028
|
-
const
|
|
1028
|
+
const F = D[D.length - 1], q = D[0], _ = [F, q];
|
|
1029
1029
|
ut(t, _, l, a, "4, 4"), b.polyline(_, {
|
|
1030
1030
|
color: E,
|
|
1031
1031
|
weight: l,
|
|
@@ -1041,30 +1041,30 @@ function fo(n, t, e, o, a) {
|
|
|
1041
1041
|
if (!i && r && r.length > 0)
|
|
1042
1042
|
r.forEach((P) => {
|
|
1043
1043
|
var E;
|
|
1044
|
-
const
|
|
1045
|
-
if (
|
|
1046
|
-
const
|
|
1047
|
-
ut(t, q, w ? _ + 2 : _, a,
|
|
1044
|
+
const S = f.find((C) => String(C.id) === String(P.ponto_inicio_id)), A = f.find((C) => String(C.id) === String(P.ponto_fim_id));
|
|
1045
|
+
if (S && A && S.lat && S.lon && A.lat && A.lon) {
|
|
1046
|
+
const C = P.tipo_limite_sigef || P.tipo_limite || "", k = P.metodo_posicionamento_sigef || P.metodo_posicionamento || "", T = C === "LA1" ? "#10b981" : C === "LN1" ? "#3b82f6" : "#00f5a0", D = P.id != null ? P.id : `${P.ponto_inicio_id}-${P.ponto_fim_id}`, w = o.selectedSegmentoId != null && (String(o.selectedSegmentoId) === String(P.id) || String(o.selectedSegmentoId) === String(D)), F = w ? "#facc15" : n.estilo.corPrimaria || T, q = [[S.lat, S.lon], [A.lat, A.lon]], _ = w ? l + 3 : l, $ = C === "LN1" ? "6, 6" : n.estilo.dashArray;
|
|
1047
|
+
ut(t, q, w ? _ + 2 : _, a, $);
|
|
1048
1048
|
const O = b.polyline(q, {
|
|
1049
|
-
color:
|
|
1049
|
+
color: F,
|
|
1050
1050
|
weight: _,
|
|
1051
1051
|
opacity: w ? 1 : d,
|
|
1052
|
-
dashArray:
|
|
1052
|
+
dashArray: $,
|
|
1053
1053
|
pane: a,
|
|
1054
1054
|
interactive: h
|
|
1055
1055
|
});
|
|
1056
1056
|
if (O.segmentoId = D, O.segmento = P, h) {
|
|
1057
1057
|
O.on("click", (H) => {
|
|
1058
1058
|
H && H.originalEvent && H.originalEvent.stopPropagation(), o.onSegmentoClick && o.onSegmentoClick(D, P, {
|
|
1059
|
-
lat: (
|
|
1060
|
-
lon: (
|
|
1059
|
+
lat: (S.lat + A.lat) / 2,
|
|
1060
|
+
lon: (S.lon + A.lon) / 2
|
|
1061
1061
|
});
|
|
1062
1062
|
});
|
|
1063
|
-
const B = P.acoes || n.acoes || ((E = n.dados) == null ? void 0 : E.acoes) || [], N = `${P.ponto_inicio_id}-${P.ponto_fim_id}`, j =
|
|
1063
|
+
const B = P.acoes || n.acoes || ((E = n.dados) == null ? void 0 : E.acoes) || [], N = `${P.ponto_inicio_id}-${P.ponto_fim_id}`, j = St(B, N);
|
|
1064
1064
|
O.bindPopup(`
|
|
1065
1065
|
<div style="font-family:sans-serif; color:rgba(255, 255, 255, 0.9); line-height:1.3;">
|
|
1066
|
-
<div style="font-weight:700; font-size:12px; margin-bottom:3px; color:#ffffff;">${I(
|
|
1067
|
-
<div style="font-size:11px; color:rgba(255, 255, 255, 0.65);">Limite: ${I(
|
|
1066
|
+
<div style="font-weight:700; font-size:12px; margin-bottom:3px; color:#ffffff;">${I(S.nome_vertice)} ↔ ${I(A.nome_vertice)}</div>
|
|
1067
|
+
<div style="font-size:11px; color:rgba(255, 255, 255, 0.65);">Limite: ${I(C || "N/A")} · ${I(k || "N/A")}</div>
|
|
1068
1068
|
${j}
|
|
1069
1069
|
</div>
|
|
1070
1070
|
`, { className: "compact-popup", maxWidth: 220 }), O.on("popupopen", (H) => {
|
|
@@ -1081,21 +1081,21 @@ function fo(n, t, e, o, a) {
|
|
|
1081
1081
|
else if (f && f.length >= 2) {
|
|
1082
1082
|
const P = f.filter(
|
|
1083
1083
|
(k) => k.lat && k.lon && k.tipo_ponto !== "B" && k.tipo !== "B" && k.ignorar_poligono !== 1
|
|
1084
|
-
),
|
|
1084
|
+
), S = ((z = n.dados) == null ? void 0 : z.chaveGrupo) || o.chaveGrupo, A = Vt(P, S), E = n.estilo.corPrimaria || (i ? "#f59e0b" : "#10b981"), C = n.estilo.dashArray || (i ? "6, 8" : void 0);
|
|
1085
1085
|
Object.values(A).forEach((k) => {
|
|
1086
1086
|
const T = jt(k);
|
|
1087
1087
|
if (T.length < 2) return;
|
|
1088
|
-
const D = T.map((
|
|
1089
|
-
if (ut(t, D, l, a,
|
|
1088
|
+
const D = T.map((F) => [F.lat, F.lon]);
|
|
1089
|
+
if (ut(t, D, l, a, C), b.polyline(D, {
|
|
1090
1090
|
color: E,
|
|
1091
1091
|
weight: l,
|
|
1092
1092
|
opacity: d,
|
|
1093
|
-
dashArray:
|
|
1093
|
+
dashArray: C,
|
|
1094
1094
|
pane: a,
|
|
1095
1095
|
interactive: h
|
|
1096
1096
|
}).addTo(t), D.length >= 3) {
|
|
1097
|
-
const
|
|
1098
|
-
ut(t,
|
|
1097
|
+
const F = D[D.length - 1], q = D[0], _ = i ? "6, 8" : "4, 4", $ = [F, q];
|
|
1098
|
+
ut(t, $, l, a, _), b.polyline($, {
|
|
1099
1099
|
color: E,
|
|
1100
1100
|
weight: l,
|
|
1101
1101
|
opacity: d,
|
|
@@ -1175,10 +1175,10 @@ const ne = {
|
|
|
1175
1175
|
x: ["M2 2L10 10", "M10 2L2 10"]
|
|
1176
1176
|
};
|
|
1177
1177
|
function Wt(n, t, e, o = "", a = "", i = !1, s = {}) {
|
|
1178
|
-
const r = i || o.includes("ponto-selecionado") || o.includes("cad-marker-selected"), c = s.densidade === "compacta", l = mo(Ei(e)), d = t + 6, h = r ? `color-mix(in srgb, ${l} 38%, #000000)` : l, f = r ? 1 : c ? 0.72 : 0.9, g = r ? "rgba(255,255,255,0.95)" : c ? "rgba(0,0,0,0.55)" : "rgba(0,0,0,0.7)", m = r ? 1.3 : c ? 0.8 : 1, u = r ? "rgba(255,255,255,0.9)" : "rgba(0,0,0,0.6)", v = (
|
|
1179
|
-
(
|
|
1178
|
+
const r = i || o.includes("ponto-selecionado") || o.includes("cad-marker-selected"), c = s.densidade === "compacta", l = mo(Ei(e)), d = t + 6, h = r ? `color-mix(in srgb, ${l} 38%, #000000)` : l, f = r ? 1 : c ? 0.72 : 0.9, g = r ? "rgba(255,255,255,0.95)" : c ? "rgba(0,0,0,0.55)" : "rgba(0,0,0,0.7)", m = r ? 1.3 : c ? 0.8 : 1, u = r ? "rgba(255,255,255,0.9)" : "rgba(0,0,0,0.6)", v = (S, A, E, C = "") => `class="${S}" stroke="${A}" stroke-width="${E}" vector-effect="non-scaling-stroke" ${C}`, y = n in ne ? `<polygon points="${ne[n]}" style="fill:${h}" fill-opacity="${f}" stroke-linejoin="round" ${v("cad-pt-contorno", g, m)} />` : n in se ? se[n].map(
|
|
1179
|
+
(S) => (
|
|
1180
1180
|
// Traço = halo escuro (contraste sobre satélite) + traço colorido por cima
|
|
1181
|
-
`<path d="${
|
|
1181
|
+
`<path d="${S}" fill="none" stroke-linecap="round" ${v("cad-pt-halo", u, c ? 2.6 : 3.4)} /><path d="${S}" fill="none" stroke-linecap="round" ${v("cad-pt-traco", r ? h : l, c ? 1.3 : 1.8, `stroke-opacity="${r ? 1 : c ? 0.9 : 1}"`)} />`
|
|
1182
1182
|
)
|
|
1183
1183
|
).join("") : n === "square" ? `<rect x="1.2" y="1.2" width="9.6" height="9.6" rx="1.4" style="fill:${h}" fill-opacity="${f}" ${v("cad-pt-contorno", g, m)} />` : `<circle cx="6" cy="6" r="5.2" style="fill:${h}" fill-opacity="${f}" ${v("cad-pt-contorno", g, m)} />`, L = !c && !r && !(n in se) ? n in ne ? "" : n === "square" ? '<rect x="2.2" y="2.2" width="7.6" height="7.6" rx="0.9" fill="none" stroke="rgba(255,255,255,0.45)" stroke-width="0.8" vector-effect="non-scaling-stroke" />' : '<circle cx="6" cy="6" r="4.3" fill="none" stroke="rgba(255,255,255,0.45)" stroke-width="0.8" vector-effect="non-scaling-stroke" />' : "", x = n === "circle-dot" ? '<circle cx="6" cy="6" r="1.7" fill="#ffffff" stroke="rgba(0,0,0,0.45)" stroke-width="0.6" vector-effect="non-scaling-stroke" />' : "", M = `cad-pt ${c ? "cad-pt-compacto" : ""} ${e} ${o} ${r ? "ponto-selecionado" : ""}`.replace(/\s+/g, " ").trim(), z = t;
|
|
1184
1184
|
return `
|
|
@@ -1242,14 +1242,14 @@ class ki {
|
|
|
1242
1242
|
const L = m.tipo_ponto === "B" || m.tipo === "B", x = m.tipo_ponto === "M" || m.tipo === "M";
|
|
1243
1243
|
let M = t.estilo.estiloMarcador || "x", z = t.estilo.corPrimaria || "bg-mint-vibrant", P = t.estilo.tamanhoMarcador || 7;
|
|
1244
1244
|
d ? (M = "circle", z = t.estilo.corPrimaria || "#f59e0b", P = 8) : l ? (M = x ? "circle-dot" : t.estilo.estiloMarcador || "cross", z = t.estilo.corPrimaria || "#a855f7", P = x ? 10 : 8) : x ? (z = "#6366f1", M = "circle-dot", P = 10) : L && (z = "#f43f5e", M = "square", P = 9);
|
|
1245
|
-
const
|
|
1245
|
+
const S = !!(m.selecionado || h.length > 0 && (h.includes(m.id) || h.includes(String(m.id)) || h.includes(Number(m.id)))), A = this.calculateSize(t, o, a, P, f), E = this.criarIcone(t, a, M, A, z, m.id, S, f), C = b.marker([Number(u), Number(v)], {
|
|
1246
1246
|
icon: E,
|
|
1247
1247
|
pane: i,
|
|
1248
1248
|
interactive: c
|
|
1249
1249
|
});
|
|
1250
|
-
if (
|
|
1251
|
-
const k = d ? "Vértice Homologado SIGEF" : l ? "Confrontante (Importado)" : x ? "Base Homologada PPP" : L ? "Base de Campo (Translação)" : "Vértice de Perímetro", T = m.acoes || t.acoes || ((y = t.dados) == null ? void 0 : y.acoes) || [], D =
|
|
1252
|
-
|
|
1250
|
+
if (S && C.setZIndexOffset(2e3), C.pontoId = m.id, C.layerId = t.id, C.isVizinho = l, C.baseSize = P, C.shapeStyle = M, C.markerBg = z, C.isSelected = S, C.densTotal = f, C.tamanhoPx = A, c) {
|
|
1251
|
+
const k = d ? "Vértice Homologado SIGEF" : l ? "Confrontante (Importado)" : x ? "Base Homologada PPP" : L ? "Base de Campo (Translação)" : "Vértice de Perímetro", T = m.acoes || t.acoes || ((y = t.dados) == null ? void 0 : y.acoes) || [], D = St(T, m.id);
|
|
1252
|
+
C.bindPopup(`
|
|
1253
1253
|
<div style="font-family:var(--ui-fonte-base, sans-serif); color:rgba(255, 255, 255, 0.9); line-height:1.3;">
|
|
1254
1254
|
<div style="font-weight:700; font-size:13px; margin-bottom:4px; color:#ffffff;">${I(m.nome_vertice || String(m.id))}</div>
|
|
1255
1255
|
<div style="font-size:11px; color:rgba(255, 255, 255, 0.65);">${I(k)} · ${I(m.tipo_ponto || m.tipo || "Vértice")}</div>
|
|
@@ -1259,13 +1259,13 @@ class ki {
|
|
|
1259
1259
|
`, {
|
|
1260
1260
|
className: "compact-popup",
|
|
1261
1261
|
maxWidth: 240
|
|
1262
|
-
}), T && T.length > 0 &&
|
|
1263
|
-
Lt(w.popup, m, a,
|
|
1264
|
-
}),
|
|
1262
|
+
}), T && T.length > 0 && C.on("popupopen", (w) => {
|
|
1263
|
+
Lt(w.popup, m, a, C);
|
|
1264
|
+
}), C.on("click", () => {
|
|
1265
1265
|
a.onMarkerClick && a.onMarkerClick(m.id, l, m, { lat: Number(u), lon: Number(v) });
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
|
-
|
|
1268
|
+
C.addTo(e);
|
|
1269
1269
|
}
|
|
1270
1270
|
});
|
|
1271
1271
|
}
|
|
@@ -1286,22 +1286,22 @@ class Ii {
|
|
|
1286
1286
|
var g, m;
|
|
1287
1287
|
const i = Z(a, t.id, "poligono"), s = Z(a, t.id, "ponto"), c = (((g = t.dados) == null ? void 0 : g.poligonos) ?? (Array.isArray(t.dados) ? t.dados : null)) || ((m = t.dados) == null ? void 0 : m.confrontantes) || o.confrontantes || [], l = t.interativo && !t.bloqueada, d = t.estilo.corPrimaria || "#a855f7", h = t.estilo.espessuraLinha || 1, f = 1;
|
|
1288
1288
|
c.forEach((u) => {
|
|
1289
|
-
var
|
|
1289
|
+
var S, A, E, C, k, T, D, w, F, q;
|
|
1290
1290
|
if (!u) return;
|
|
1291
|
-
const v = ((
|
|
1291
|
+
const v = ((S = u.estilo) == null ? void 0 : S.cor) || ((A = u.estilo) == null ? void 0 : A.color) || d, y = ((E = u.estilo) == null ? void 0 : E.espessura) || ((C = u.estilo) == null ? void 0 : C.weight) || h, L = ((k = u.estilo) == null ? void 0 : k.opacidade) ?? f, x = ((T = u.estilo) == null ? void 0 : T.fillColor) || v, M = ((D = u.estilo) == null ? void 0 : D.fillOpacity) ?? Math.min(0.14, L * 0.1), z = ((w = u.estilo) == null ? void 0 : w.dashArray) || t.estilo.dashArray || "4, 6";
|
|
1292
1292
|
if (u.coordenadas && Array.isArray(u.coordenadas) && u.coordenadas.length >= 3) {
|
|
1293
1293
|
const _ = Array.isArray(u.coordenadas[0]) && Array.isArray(u.coordenadas[0][0]);
|
|
1294
|
-
let
|
|
1295
|
-
if (_ ?
|
|
1294
|
+
let $;
|
|
1295
|
+
if (_ ? $ = u.coordenadas.map(
|
|
1296
1296
|
(O) => O.map((B) => {
|
|
1297
1297
|
const N = V(B[0], B[1]);
|
|
1298
1298
|
return N ? [N.lat, N.lon] : null;
|
|
1299
1299
|
}).filter(Boolean)
|
|
1300
|
-
) :
|
|
1300
|
+
) : $ = u.coordenadas.map((O) => {
|
|
1301
1301
|
const B = V(O[0], O[1]);
|
|
1302
1302
|
return B ? [B.lat, B.lon] : null;
|
|
1303
|
-
}).filter(Boolean),
|
|
1304
|
-
const O = b.polygon(
|
|
1303
|
+
}).filter(Boolean), $ && (_ ? ((F = $[0]) == null ? void 0 : F.length) >= 3 : $.length >= 3)) {
|
|
1304
|
+
const O = b.polygon($, {
|
|
1305
1305
|
color: v,
|
|
1306
1306
|
weight: y,
|
|
1307
1307
|
opacity: L,
|
|
@@ -1331,7 +1331,7 @@ class Ii {
|
|
|
1331
1331
|
if (P) {
|
|
1332
1332
|
const _ = [...P.matchAll(/\(([^()]+)\)/g)];
|
|
1333
1333
|
if (_.length > 0) {
|
|
1334
|
-
const
|
|
1334
|
+
const $ = I(u.nome_propriedade || `Polígono ${String(u.id || "")}`), O = I(u.nome || "Proprietário"), B = [];
|
|
1335
1335
|
if (_.forEach((N) => {
|
|
1336
1336
|
const j = N[1].split(",").map((H) => {
|
|
1337
1337
|
const Y = H.trim().split(/\s+/);
|
|
@@ -1353,10 +1353,10 @@ class Ii {
|
|
|
1353
1353
|
interactive: l
|
|
1354
1354
|
});
|
|
1355
1355
|
if (j.poligonoId = u.id, j.layerId = t.id, l) {
|
|
1356
|
-
const H = u.acoes || t.acoes || ((q = t.dados) == null ? void 0 : q.acoes) || [], Y =
|
|
1356
|
+
const H = u.acoes || t.acoes || ((q = t.dados) == null ? void 0 : q.acoes) || [], Y = St(H, u.id);
|
|
1357
1357
|
j.bindPopup(`
|
|
1358
1358
|
<div style="font-family:var(--ui-fonte-base, sans-serif); color:rgba(255, 255, 255, 0.9); line-height:1.3; min-width:180px;">
|
|
1359
|
-
<div style="font-weight:700; font-size:12px; color:#c084fc; margin-bottom:3px; border-bottom:1px solid rgba(255,255,255,0.1); padding-bottom:3px;">${
|
|
1359
|
+
<div style="font-weight:700; font-size:12px; color:#c084fc; margin-bottom:3px; border-bottom:1px solid rgba(255,255,255,0.1); padding-bottom:3px;">${$}</div>
|
|
1360
1360
|
<div style="font-size:11px; margin-bottom:2px;"><strong>Identificador:</strong> ${I(String(u.id ?? ""))}</div>
|
|
1361
1361
|
${u.nome ? `<div style="font-size:11px;"><strong>Proprietário:</strong> ${O}</div>` : ""}
|
|
1362
1362
|
${Y}
|
|
@@ -1375,28 +1375,28 @@ class Ii {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
u.pontos && u.pontos.length > 0 && u.pontos.forEach((_) => {
|
|
1377
1377
|
var O;
|
|
1378
|
-
const
|
|
1379
|
-
if (
|
|
1378
|
+
const $ = V(_.lat ?? _.latitude ?? _.y, _.lon ?? _.lng ?? _.longitude ?? _.x);
|
|
1379
|
+
if ($) {
|
|
1380
1380
|
const B = b.divIcon({
|
|
1381
1381
|
html: '<div class="cad-pt" style="width:12px; height:12px; display:flex; align-items:center; justify-content:center;"><svg width="8" height="8" viewBox="0 0 12 12" style="overflow:visible; display:block;"><circle cx="6" cy="6" r="5.2" fill="#a855f7" fill-opacity="0.85" stroke="rgba(0,0,0,0.65)" stroke-width="1" vector-effect="non-scaling-stroke" /><circle cx="6" cy="6" r="4.3" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="0.8" vector-effect="non-scaling-stroke" /></svg></div>',
|
|
1382
1382
|
className: "custom-leaflet-marker",
|
|
1383
1383
|
iconSize: [12, 12]
|
|
1384
|
-
}), N = b.marker([
|
|
1384
|
+
}), N = b.marker([$.lat, $.lon], {
|
|
1385
1385
|
icon: B,
|
|
1386
1386
|
pane: s,
|
|
1387
1387
|
interactive: l
|
|
1388
1388
|
});
|
|
1389
1389
|
if (N.pontoId = _.id, N.isVizinho = !0, N.layerId = t.id, l) {
|
|
1390
|
-
const j = _.acoes || u.acoes || t.acoes || ((O = t.dados) == null ? void 0 : O.acoes) || [], H =
|
|
1390
|
+
const j = _.acoes || u.acoes || t.acoes || ((O = t.dados) == null ? void 0 : O.acoes) || [], H = St(j, _.id);
|
|
1391
1391
|
N.bindPopup(`
|
|
1392
1392
|
<div style="font-family:var(--ui-fonte-base, sans-serif); color:rgba(255, 255, 255, 0.9); line-height:1.3; min-width:170px;">
|
|
1393
1393
|
<div style="font-weight:700; font-size:12px; color:#c084fc; margin-bottom:3px;">${I(_.nome_vertice || String(_.id))}</div>
|
|
1394
1394
|
<div style="font-size:11px; color:rgba(255, 255, 255, 0.65);">Confrontante: ${I(u.nome || "Desconhecido")}</div>
|
|
1395
|
-
<div style="font-size:10px; color:rgba(255, 255, 255, 0.45); font-family:var(--ui-fonte-codigo, monospace); margin-top:3px;">Lat ${
|
|
1395
|
+
<div style="font-size:10px; color:rgba(255, 255, 255, 0.45); font-family:var(--ui-fonte-codigo, monospace); margin-top:3px;">Lat ${$.lat.toFixed(6)} Lon ${$.lon.toFixed(6)}</div>
|
|
1396
1396
|
${H}
|
|
1397
1397
|
</div>
|
|
1398
1398
|
`, { className: "compact-popup", maxWidth: 220 }), N.on("click", () => {
|
|
1399
|
-
o.modoSequencial && N.closePopup(), o.onMarkerClick && o.onMarkerClick(_.id, !0, _, { lat:
|
|
1399
|
+
o.modoSequencial && N.closePopup(), o.onMarkerClick && o.onMarkerClick(_.id, !0, _, { lat: $.lat, lon: $.lon });
|
|
1400
1400
|
}), N.on("popupopen", (Y) => {
|
|
1401
1401
|
if (o.modoSequencial) {
|
|
1402
1402
|
N.closePopup();
|
|
@@ -1522,7 +1522,7 @@ function _i(n, t) {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
return (a - o) * (s - i);
|
|
1524
1524
|
}
|
|
1525
|
-
function te(n, t, e, o = Di, a =
|
|
1525
|
+
function te(n, t, e, o = Di, a = Fa) {
|
|
1526
1526
|
let i = null, s = null, r = null;
|
|
1527
1527
|
for (const c of t) {
|
|
1528
1528
|
if (c.excluida || c.oculta) continue;
|
|
@@ -1546,7 +1546,7 @@ function te(n, t, e, o = Di, a = $a) {
|
|
|
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 $a(l)) h = Math.min(h, go(n, d[g], d[m]));
|
|
1550
1550
|
if (Oa([n.y, n.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
1551
|
const g = _i(c, e);
|
|
1552
1552
|
(!r || g < r.a) && (r = { f: c, a: g });
|
|
@@ -1555,12 +1555,12 @@ function te(n, t, e, o = Di, a = $a) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
return (i == null ? void 0 : i.f) ?? (s == null ? void 0 : s.f) ?? (r == null ? void 0 : r.f) ?? null;
|
|
1557
1557
|
}
|
|
1558
|
-
const kt = 0.1, qi = 2,
|
|
1558
|
+
const kt = 0.1, qi = 2, Fi = typeof requestAnimationFrame == "function" ? (n) => {
|
|
1559
1559
|
requestAnimationFrame(n);
|
|
1560
1560
|
} : (n) => {
|
|
1561
1561
|
setTimeout(n, 16);
|
|
1562
1562
|
};
|
|
1563
|
-
class
|
|
1563
|
+
class $i extends b.Layer {
|
|
1564
1564
|
constructor(e, o) {
|
|
1565
1565
|
super();
|
|
1566
1566
|
p(this, "canvas", null);
|
|
@@ -1584,7 +1584,7 @@ class Fi 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, Fi(() => {
|
|
1588
1588
|
this.agendado = !1, this.vivo && this.redesenhar();
|
|
1589
1589
|
}));
|
|
1590
1590
|
}
|
|
@@ -1604,7 +1604,7 @@ class Fi extends b.Layer {
|
|
|
1604
1604
|
if (!l) return;
|
|
1605
1605
|
l.setTransform(r, 0, 0, r, 0, 0), l.clearRect(0, 0, i, s);
|
|
1606
1606
|
const d = e.getPixelOrigin().add(c);
|
|
1607
|
-
this.ultimaPintura =
|
|
1607
|
+
this.ultimaPintura = Ca(l, this.obterMarcas(), e.getZoom(), d.x, d.y, i, s);
|
|
1608
1608
|
} catch {
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
@@ -1885,7 +1885,7 @@ class Vi {
|
|
|
1885
1885
|
const s = t.lod.get(e.id);
|
|
1886
1886
|
if (s !== void 0) return s;
|
|
1887
1887
|
t.avaliacoesLOD++;
|
|
1888
|
-
const r =
|
|
1888
|
+
const r = Sa(t.indice.caixaDe(e.id), o);
|
|
1889
1889
|
return t.lod.set(e.id, r), r;
|
|
1890
1890
|
}
|
|
1891
1891
|
novaMarca(t, e, o) {
|
|
@@ -1925,7 +1925,7 @@ class Vi {
|
|
|
1925
1925
|
return;
|
|
1926
1926
|
}
|
|
1927
1927
|
if (!t.camadaMarcas) {
|
|
1928
|
-
const e = Z(t.map, t.layerDef.id, "poligono"), o = new
|
|
1928
|
+
const e = Z(t.map, t.layerDef.id, "poligono"), o = new $i(e, () => t.marcas.values());
|
|
1929
1929
|
t.camadaMarcas = o, o.addTo(t.map), o.on("click", (a) => {
|
|
1930
1930
|
var r, c;
|
|
1931
1931
|
const { feicaoHit: i, originalEvent: s } = a;
|
|
@@ -2061,30 +2061,30 @@ class Vi {
|
|
|
2061
2061
|
for (const M of c) {
|
|
2062
2062
|
const z = v.chaveDoPonto(M), P = z === void 0 || (L = v.celula(z)) == null ? void 0 : L.membros.get(M);
|
|
2063
2063
|
if (z !== void 0 && P) {
|
|
2064
|
-
const
|
|
2065
|
-
|
|
2064
|
+
const S = x.get(z);
|
|
2065
|
+
S ? S.push(P) : x.set(z, [P]);
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
2068
2068
|
for (const [M, z] of v.celulasAgrupadas()) {
|
|
2069
2069
|
const P = x.get(M);
|
|
2070
2070
|
if (P) for (const E of P) m.add(E.id);
|
|
2071
|
-
const
|
|
2071
|
+
const S = z.membros.size, A = S - ((P == null ? void 0 : P.length) ?? 0);
|
|
2072
2072
|
if (A === 1)
|
|
2073
2073
|
for (const E of z.membros.values()) {
|
|
2074
2074
|
if (c != null && c.has(E.id)) continue;
|
|
2075
|
-
const
|
|
2076
|
-
(!f ||
|
|
2075
|
+
const C = e.indice.caixaDe(E.id);
|
|
2076
|
+
(!f || C && zt(C, f)) && m.add(E.id);
|
|
2077
2077
|
break;
|
|
2078
2078
|
}
|
|
2079
|
-
if (!(h && !h.contains([z.somaLat /
|
|
2080
|
-
let E = z.somaLat,
|
|
2079
|
+
if (!(h && !h.contains([z.somaLat / S, z.somaLon / S])) && A >= 2) {
|
|
2080
|
+
let E = z.somaLat, C = z.somaLon;
|
|
2081
2081
|
if (P) for (const T of P)
|
|
2082
|
-
E -= T.coordenada[0],
|
|
2083
|
-
const k = [E / A,
|
|
2082
|
+
E -= T.coordenada[0], C -= T.coordenada[1];
|
|
2083
|
+
const k = [E / A, C / A];
|
|
2084
2084
|
u.set(M, {
|
|
2085
2085
|
coordenada: k,
|
|
2086
|
-
total:
|
|
2087
|
-
assinatura: `${M}:${
|
|
2086
|
+
total: S,
|
|
2087
|
+
assinatura: `${M}:${S}:${A}:${k[0].toFixed(7)}:${k[1].toFixed(7)}`
|
|
2088
2088
|
});
|
|
2089
2089
|
}
|
|
2090
2090
|
}
|
|
@@ -2116,60 +2116,60 @@ class Vi {
|
|
|
2116
2116
|
this.reconciliar(t, e, !1, new Set(o));
|
|
2117
2117
|
return;
|
|
2118
2118
|
}
|
|
2119
|
-
const m = this.selecionadas.get(r), u = (
|
|
2120
|
-
const E = c.get(
|
|
2119
|
+
const m = this.selecionadas.get(r), u = (S) => this.desenhavel(e, S), v = h ? s.getBounds().pad(le) : null, y = v ? this.caixaDe(v) : null, L = l ? d : -1, x = (S, A) => {
|
|
2120
|
+
const E = c.get(S);
|
|
2121
2121
|
if (!E || !u(E)) {
|
|
2122
|
-
this.tirarEntrada(t, e,
|
|
2122
|
+
this.tirarEntrada(t, e, S), e.marcas.delete(S);
|
|
2123
2123
|
return;
|
|
2124
2124
|
}
|
|
2125
|
-
const
|
|
2126
|
-
if (!
|
|
2127
|
-
const k = e.indice.caixaDe(
|
|
2125
|
+
const C = !!(m != null && m.has(S));
|
|
2126
|
+
if (!C && y) {
|
|
2127
|
+
const k = e.indice.caixaDe(S);
|
|
2128
2128
|
if (!k || !zt(k, y)) {
|
|
2129
|
-
this.tirarEntrada(t, e,
|
|
2129
|
+
this.tirarEntrada(t, e, S), e.marcas.delete(S);
|
|
2130
2130
|
return;
|
|
2131
2131
|
}
|
|
2132
2132
|
}
|
|
2133
|
-
this.colocarFeicao(t, e, E, d, L,
|
|
2133
|
+
this.colocarFeicao(t, e, E, d, L, C, A);
|
|
2134
2134
|
}, M = /* @__PURE__ */ new Set(), z = [];
|
|
2135
|
-
for (const
|
|
2136
|
-
this.tirarEntrada(t, e,
|
|
2137
|
-
const A = g == null ? void 0 : g.remover(
|
|
2135
|
+
for (const S of a) {
|
|
2136
|
+
this.tirarEntrada(t, e, S), e.marcas.delete(S);
|
|
2137
|
+
const A = g == null ? void 0 : g.remover(S);
|
|
2138
2138
|
A !== void 0 && M.add(A);
|
|
2139
2139
|
}
|
|
2140
|
-
for (const
|
|
2141
|
-
e.marcas.delete(
|
|
2142
|
-
const A = c.get(
|
|
2140
|
+
for (const S of o) {
|
|
2141
|
+
e.marcas.delete(S);
|
|
2142
|
+
const A = c.get(S);
|
|
2143
2143
|
if (!A) continue;
|
|
2144
|
-
const E = g == null ? void 0 : g.remover(
|
|
2145
|
-
E !== void 0 && M.add(E), g && A.geometria.tipo === "Point" && u(A) ? M.add(g.inserir({ id:
|
|
2144
|
+
const E = g == null ? void 0 : g.remover(S);
|
|
2145
|
+
E !== void 0 && M.add(E), g && A.geometria.tipo === "Point" && u(A) ? M.add(g.inserir({ id: S, coordenada: A.geometria.coordenada })) : z.push(S);
|
|
2146
2146
|
}
|
|
2147
|
-
for (const
|
|
2147
|
+
for (const S of z) x(S, !0);
|
|
2148
2148
|
if (!g) return;
|
|
2149
2149
|
const P = new Set(o);
|
|
2150
|
-
for (const
|
|
2151
|
-
const A = g.celula(
|
|
2150
|
+
for (const S of M) {
|
|
2151
|
+
const A = g.celula(S);
|
|
2152
2152
|
if (!A || A.membros.size < 2) {
|
|
2153
|
-
if (this.tirarCluster(t, e,
|
|
2153
|
+
if (this.tirarCluster(t, e, S), A) for (const q of A.membros.keys()) x(q, P.has(q));
|
|
2154
2154
|
continue;
|
|
2155
2155
|
}
|
|
2156
2156
|
const E = A.membros.size;
|
|
2157
|
-
let
|
|
2157
|
+
let C = A.somaLat, k = A.somaLon, T = 0;
|
|
2158
2158
|
for (const q of A.membros.values())
|
|
2159
|
-
m != null && m.has(q.id) && (T++,
|
|
2159
|
+
m != null && m.has(q.id) && (T++, C -= q.coordenada[0], k -= q.coordenada[1]);
|
|
2160
2160
|
const D = E - T;
|
|
2161
2161
|
for (const q of A.membros.values())
|
|
2162
2162
|
m != null && m.has(q.id) || D === 1 ? x(q.id, P.has(q.id)) : this.tirarEntrada(t, e, q.id);
|
|
2163
2163
|
const w = [A.somaLat / E, A.somaLon / E];
|
|
2164
2164
|
if (v && !v.contains(w) || D < 2) {
|
|
2165
|
-
this.tirarCluster(t, e,
|
|
2165
|
+
this.tirarCluster(t, e, S);
|
|
2166
2166
|
continue;
|
|
2167
2167
|
}
|
|
2168
|
-
const
|
|
2169
|
-
this.colocarCluster(t, e,
|
|
2170
|
-
coordenada:
|
|
2168
|
+
const F = [C / D, k / D];
|
|
2169
|
+
this.colocarCluster(t, e, S, {
|
|
2170
|
+
coordenada: F,
|
|
2171
2171
|
total: E,
|
|
2172
|
-
assinatura: `${
|
|
2172
|
+
assinatura: `${S}:${E}:${D}:${F[0].toFixed(7)}:${F[1].toFixed(7)}`
|
|
2173
2173
|
});
|
|
2174
2174
|
}
|
|
2175
2175
|
}
|
|
@@ -4046,7 +4046,7 @@ function Pn(n) {
|
|
|
4046
4046
|
const t = n, e = je(n), o = typeof e.composedPath == "function" ? e.composedPath() : [];
|
|
4047
4047
|
return o.length > 0 ? o[0] : e.target || (t == null ? void 0 : t.target) || null;
|
|
4048
4048
|
}
|
|
4049
|
-
function
|
|
4049
|
+
function Cn(n, t, e) {
|
|
4050
4050
|
var i, s, r, c;
|
|
4051
4051
|
if (t) return { x: Math.round(t.x), y: Math.round(t.y) };
|
|
4052
4052
|
const o = n;
|
|
@@ -4061,7 +4061,7 @@ function Sn(n, t, e) {
|
|
|
4061
4061
|
y: Math.round((a.clientY ?? 0) - e.top)
|
|
4062
4062
|
};
|
|
4063
4063
|
}
|
|
4064
|
-
function
|
|
4064
|
+
function Sn(n, t) {
|
|
4065
4065
|
const e = t || (n == null ? void 0 : n.latlng);
|
|
4066
4066
|
return e && typeof e.lat == "number" ? { lat: e.lat, lng: e.lng ?? e.lon ?? 0 } : null;
|
|
4067
4067
|
}
|
|
@@ -4075,7 +4075,7 @@ function Ln(n, t, e, o) {
|
|
|
4075
4075
|
}
|
|
4076
4076
|
const s = n.controller.getMap();
|
|
4077
4077
|
if (!s || !n.mapContainer) return !1;
|
|
4078
|
-
const r =
|
|
4078
|
+
const r = Cn(t, o, n.mapContainer.getBoundingClientRect()), l = Sn(t, e) ?? s.containerPointToLatLng(b.point(r.x, r.y)), d = l.lat, h = l.lng, f = n.controller.layerManager ? n.controller.layerManager.getLayers().filter((v) => v.visivel).map((v) => v.id) : [], g = a;
|
|
4079
4079
|
return n.host.dispatchEvent(new CustomEvent("ui-canvas-clique", {
|
|
4080
4080
|
detail: {
|
|
4081
4081
|
coordenadas: {
|
|
@@ -4438,7 +4438,7 @@ class In {
|
|
|
4438
4438
|
return this.contexto.obterController().getVizinhosMarkers();
|
|
4439
4439
|
}
|
|
4440
4440
|
}
|
|
4441
|
-
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;bottom:8px;right:12px;z-index:var(--ui-z-workspace-hud, 500);display:flex;align-items:center;gap:8px;padding:3px 8px;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}';
|
|
4441
|
+
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}';
|
|
4442
4442
|
function Dn() {
|
|
4443
4443
|
return `
|
|
4444
4444
|
<style>
|
|
@@ -4476,9 +4476,10 @@ function Dn() {
|
|
|
4476
4476
|
</button>
|
|
4477
4477
|
</div>
|
|
4478
4478
|
<div class="cad-coordenadas-hud" id="cad-coordenadas-hud" aria-hidden="true">
|
|
4479
|
-
<span class="cad-coord-fuso" id="cad-coord-fuso"
|
|
4479
|
+
<span class="cad-coord-fuso" id="cad-coord-fuso">—</span>
|
|
4480
4480
|
<span class="cad-coord-utm" id="cad-coord-utm">E: — | N: —</span>
|
|
4481
4481
|
<span class="cad-coord-geo" id="cad-coord-geo">Lat: — Lon: —</span>
|
|
4482
|
+
<span class="cad-coord-zoom" id="cad-coord-zoom">Zoom: —</span>
|
|
4482
4483
|
</div>
|
|
4483
4484
|
</div>
|
|
4484
4485
|
`;
|
|
@@ -4491,7 +4492,17 @@ function Kt(n) {
|
|
|
4491
4492
|
else return null;
|
|
4492
4493
|
return Number.isInteger(t) && t >= _n && t <= qn ? t : null;
|
|
4493
4494
|
}
|
|
4494
|
-
|
|
4495
|
+
const Fn = Object.freeze({
|
|
4496
|
+
fuso: "—",
|
|
4497
|
+
utm: "E: — | N: —",
|
|
4498
|
+
geo: "Lat: — Lon: —"
|
|
4499
|
+
});
|
|
4500
|
+
function $n(n) {
|
|
4501
|
+
if (typeof n != "number" || !Number.isFinite(n)) return "Zoom: —";
|
|
4502
|
+
const t = Math.round(n * 10) / 10;
|
|
4503
|
+
return `Zoom: ${Number.isInteger(t) ? t.toFixed(0) : t.toFixed(1)}`;
|
|
4504
|
+
}
|
|
4505
|
+
function On(n, t, e) {
|
|
4495
4506
|
if (!Number.isFinite(n) || !Number.isFinite(t)) return null;
|
|
4496
4507
|
const o = za(n, t, Kt(e) ?? void 0);
|
|
4497
4508
|
return {
|
|
@@ -4500,7 +4511,7 @@ function $n(n, t, e) {
|
|
|
4500
4511
|
geo: `Lat: ${n.toFixed(6)}° Lon: ${t.toFixed(6)}°`
|
|
4501
4512
|
};
|
|
4502
4513
|
}
|
|
4503
|
-
function
|
|
4514
|
+
function Nn(n, t, e, o) {
|
|
4504
4515
|
if (e !== o) {
|
|
4505
4516
|
if (t === "sat-opacity") {
|
|
4506
4517
|
const a = parseFloat(o);
|
|
@@ -4538,7 +4549,7 @@ function ea(n) {
|
|
|
4538
4549
|
}
|
|
4539
4550
|
return !0;
|
|
4540
4551
|
}
|
|
4541
|
-
function
|
|
4552
|
+
function Rn(n) {
|
|
4542
4553
|
if (!n.mapContainer) return;
|
|
4543
4554
|
if (n.controller.getMap() || ea(n.mapContainer), n.controller.init(n.mapContainer, n.shadow), n.toolbarPainel.vincularEventos(), n.renderLayersUI(), n.host.hasAttribute("modo-sequencial") && (n.controller.modoCliqueSequencialAtivo = !0, n.controller.context.modoSequencial = !0), n.host.hasAttribute("chave-grupo")) {
|
|
4544
4555
|
const o = n.host.getAttribute("chave-grupo");
|
|
@@ -4587,12 +4598,12 @@ function On(n) {
|
|
|
4587
4598
|
n.invalidateSizeSafely();
|
|
4588
4599
|
}, 150);
|
|
4589
4600
|
}
|
|
4590
|
-
const
|
|
4601
|
+
const Bn = {
|
|
4591
4602
|
"sem-camada": "Escolha uma camada de desenho antes de usar esta ferramenta.",
|
|
4592
4603
|
"camada-invalida": "A camada de desenho não é uma camada de feições.",
|
|
4593
4604
|
"camada-bloqueada": "A camada de desenho está bloqueada.",
|
|
4594
4605
|
"geometria-invalida": "Não foi possível criar a figura: a geometria é inválida."
|
|
4595
|
-
},
|
|
4606
|
+
}, Vn = {
|
|
4596
4607
|
bloqueada: "Esta feição (ou a camada dela) está bloqueada e não pode ser editada.",
|
|
4597
4608
|
"poligono-com-furos": "Polígono com furos não pode ser editado no mapa.",
|
|
4598
4609
|
multiparte: "Feição com várias partes não pode ser editada no mapa.",
|
|
@@ -4604,54 +4615,54 @@ const Nn = {
|
|
|
4604
4615
|
function oa(n, t, e) {
|
|
4605
4616
|
return typeof t == "string" && Object.prototype.hasOwnProperty.call(n, t) ? n[t] : e;
|
|
4606
4617
|
}
|
|
4607
|
-
function
|
|
4608
|
-
return oa(
|
|
4618
|
+
function jn(n) {
|
|
4619
|
+
return oa(Bn, n, "Não foi possível ativar a ferramenta de desenho.");
|
|
4609
4620
|
}
|
|
4610
|
-
function
|
|
4611
|
-
return oa(
|
|
4621
|
+
function Gn(n) {
|
|
4622
|
+
return oa(Vn, n, "Não foi possível editar os vértices desta feição.");
|
|
4612
4623
|
}
|
|
4613
|
-
function
|
|
4624
|
+
function Hn(n) {
|
|
4614
4625
|
n.querySelectorAll(".cad-quick-toolbar .cad-btn-tool, .layer-panel-close").forEach((t) => {
|
|
4615
4626
|
const e = t.getAttribute("title");
|
|
4616
4627
|
e && !t.hasAttribute("aria-label") && t.setAttribute("aria-label", e);
|
|
4617
4628
|
});
|
|
4618
4629
|
}
|
|
4619
|
-
function
|
|
4630
|
+
function Co(n, t) {
|
|
4620
4631
|
const e = n.getElementById("btn-toggle-snap");
|
|
4621
4632
|
e == null || e.classList.toggle("active", t), e == null || e.setAttribute("aria-pressed", String(t));
|
|
4622
4633
|
}
|
|
4623
|
-
function
|
|
4634
|
+
function Un(n) {
|
|
4624
4635
|
return n <= 0 ? "Nenhuma feição selecionada" : n === 1 ? "1 feição selecionada" : `${n} feições selecionadas`;
|
|
4625
4636
|
}
|
|
4626
|
-
function
|
|
4637
|
+
function Zn(n) {
|
|
4627
4638
|
return n ? `Ferramenta ${n} ativa` : "Ferramenta desativada";
|
|
4628
4639
|
}
|
|
4629
4640
|
function fe(n, t) {
|
|
4630
4641
|
const e = n.getElementById("cad-status");
|
|
4631
4642
|
e && e.textContent !== t && (e.textContent = t);
|
|
4632
4643
|
}
|
|
4633
|
-
const
|
|
4634
|
-
function
|
|
4644
|
+
const Wn = 5e3;
|
|
4645
|
+
function Xn(n, t, e) {
|
|
4635
4646
|
const o = n.getElementById("cad-aviso");
|
|
4636
4647
|
return o ? (e !== void 0 && window.clearTimeout(e), o.textContent = t, o.hidden = !1, window.setTimeout(() => {
|
|
4637
4648
|
o.hidden = !0, o.textContent = "";
|
|
4638
|
-
},
|
|
4649
|
+
}, Wn)) : e;
|
|
4639
4650
|
}
|
|
4640
|
-
function
|
|
4651
|
+
function Kn(n, t) {
|
|
4641
4652
|
let e;
|
|
4642
4653
|
const o = (c) => (l) => {
|
|
4643
4654
|
var h;
|
|
4644
4655
|
if (n.hasAttribute("sem-avisos")) return;
|
|
4645
4656
|
const d = c((h = l.detail) == null ? void 0 : h.motivo);
|
|
4646
|
-
fe(t, d), e =
|
|
4647
|
-
}, a = o(
|
|
4657
|
+
fe(t, d), e = Xn(t, d, e);
|
|
4658
|
+
}, a = o(jn), i = o(Gn), s = (c) => {
|
|
4648
4659
|
var d;
|
|
4649
4660
|
const l = (d = c.detail) == null ? void 0 : d.feicoes;
|
|
4650
|
-
fe(t,
|
|
4661
|
+
fe(t, Un(Array.isArray(l) ? l.length : 0));
|
|
4651
4662
|
}, r = (c) => {
|
|
4652
4663
|
var d;
|
|
4653
4664
|
const l = ((d = c.detail) == null ? void 0 : d.ferramenta) ?? null;
|
|
4654
|
-
fe(t,
|
|
4665
|
+
fe(t, Zn(l));
|
|
4655
4666
|
};
|
|
4656
4667
|
return n.addEventListener("cad-selecao", s), n.addEventListener("cad-ferramenta", r), n.addEventListener("cad-desenho-recusado", a), n.addEventListener("cad-edicao-recusada", i), () => {
|
|
4657
4668
|
n.removeEventListener("cad-selecao", s), n.removeEventListener("cad-ferramenta", r), n.removeEventListener("cad-desenho-recusado", a), n.removeEventListener("cad-edicao-recusada", i), e !== void 0 && window.clearTimeout(e), e = void 0;
|
|
@@ -4671,23 +4682,23 @@ function K(n, t) {
|
|
|
4671
4682
|
const a = V(e, o, t);
|
|
4672
4683
|
return !a || !Number.isFinite(a.lat) || !Number.isFinite(a.lon) ? null : [a.lat, a.lon];
|
|
4673
4684
|
}
|
|
4674
|
-
function
|
|
4685
|
+
function Yn(n, t) {
|
|
4675
4686
|
return n[0] === t[0] && n[1] === t[1];
|
|
4676
4687
|
}
|
|
4677
4688
|
function aa(n, t) {
|
|
4678
4689
|
const e = n.map((o) => K(o, t)).filter((o) => o !== null);
|
|
4679
|
-
return e.length > 1 &&
|
|
4690
|
+
return e.length > 1 && Yn(e[0], e[e.length - 1]) && e.pop(), e.length >= 3 ? e : null;
|
|
4680
4691
|
}
|
|
4681
|
-
function
|
|
4692
|
+
function So(n, t) {
|
|
4682
4693
|
const e = n.map((o) => K(o, t)).filter((o) => o !== null);
|
|
4683
4694
|
return e.length >= 2 ? e : null;
|
|
4684
4695
|
}
|
|
4685
|
-
function
|
|
4696
|
+
function Qn(n, t) {
|
|
4686
4697
|
if (!Array.isArray(n) || n.length === 0) return null;
|
|
4687
4698
|
const o = (Array.isArray(n[0]) && Array.isArray(n[0][0]) ? n : [n]).map((a) => aa(a, t));
|
|
4688
4699
|
return o.some((a) => a === null) ? null : o;
|
|
4689
4700
|
}
|
|
4690
|
-
function
|
|
4701
|
+
function Nr(n, t) {
|
|
4691
4702
|
const e = V(n.lat, n.lon);
|
|
4692
4703
|
return e ? {
|
|
4693
4704
|
id: String(n.id),
|
|
@@ -4696,7 +4707,7 @@ function Fr(n, t) {
|
|
|
4696
4707
|
propriedades: { ...n }
|
|
4697
4708
|
} : null;
|
|
4698
4709
|
}
|
|
4699
|
-
function
|
|
4710
|
+
function Rr(n, t, e) {
|
|
4700
4711
|
const o = t.get(String(n.ponto_inicio_id)), a = t.get(String(n.ponto_fim_id));
|
|
4701
4712
|
if (!o || !a) return null;
|
|
4702
4713
|
const i = V(o.lat, o.lon), s = V(a.lat, a.lon);
|
|
@@ -4710,7 +4721,7 @@ function Or(n, t, e) {
|
|
|
4710
4721
|
propriedades: { ...n }
|
|
4711
4722
|
};
|
|
4712
4723
|
}
|
|
4713
|
-
function
|
|
4724
|
+
function Br(n, t) {
|
|
4714
4725
|
if (!n.poligono_wkt) return null;
|
|
4715
4726
|
const e = /POLYGON\s*\(\s*\(\s*(.*?)\s*\)\s*\)/i.exec(n.poligono_wkt);
|
|
4716
4727
|
if (!e) return null;
|
|
@@ -4737,11 +4748,11 @@ function Lo(n, t) {
|
|
|
4737
4748
|
}
|
|
4738
4749
|
return o;
|
|
4739
4750
|
}
|
|
4740
|
-
const
|
|
4751
|
+
const Jn = /* @__PURE__ */ new Set(["Point", "LineString", "Polygon", "Circle", "Text"]);
|
|
4741
4752
|
function me(n, t, e) {
|
|
4742
4753
|
if (!n || typeof n != "object") return null;
|
|
4743
4754
|
const o = n, a = o.geometria;
|
|
4744
|
-
if (!a || !
|
|
4755
|
+
if (!a || !Jn.has(a.tipo) || o.id === void 0 || o.id === null || o.id === "") return null;
|
|
4745
4756
|
let i = null;
|
|
4746
4757
|
switch (a.tipo) {
|
|
4747
4758
|
case "Point": {
|
|
@@ -4755,11 +4766,11 @@ function me(n, t, e) {
|
|
|
4755
4766
|
break;
|
|
4756
4767
|
}
|
|
4757
4768
|
case "LineString": {
|
|
4758
|
-
const r = Array.isArray(a.partes) ? a.partes.map((l) => Array.isArray(l) ?
|
|
4769
|
+
const r = Array.isArray(a.partes) ? a.partes.map((l) => Array.isArray(l) ? So(l, e) : null).filter((l) => l !== null) : [];
|
|
4759
4770
|
if (r.length > 0)
|
|
4760
4771
|
i = xe(r);
|
|
4761
4772
|
else {
|
|
4762
|
-
const l = Array.isArray(a.coordenadas) ?
|
|
4773
|
+
const l = Array.isArray(a.coordenadas) ? So(a.coordenadas, e) : null;
|
|
4763
4774
|
l && (i = xe([l]));
|
|
4764
4775
|
}
|
|
4765
4776
|
const c = r.length <= 1 ? Lo(a.curva, e) : null;
|
|
@@ -4767,7 +4778,7 @@ function me(n, t, e) {
|
|
|
4767
4778
|
break;
|
|
4768
4779
|
}
|
|
4769
4780
|
case "Polygon": {
|
|
4770
|
-
const r = Array.isArray(a.aneis) ?
|
|
4781
|
+
const r = Array.isArray(a.aneis) ? Qn(a.aneis, e) : null;
|
|
4771
4782
|
r && (i = { tipo: "Polygon", aneis: r });
|
|
4772
4783
|
const c = r && r.length === 1 ? Lo(a.curva, e) : null;
|
|
4773
4784
|
i && c && c.length >= 3 && (i = { tipo: "Polygon", aneis: [Xe(c, !0)], curva: c });
|
|
@@ -4792,7 +4803,7 @@ function me(n, t, e) {
|
|
|
4792
4803
|
};
|
|
4793
4804
|
return o.oculta && (s.oculta = !0), (typeof o.entidadeId == "string" || typeof o.entidadeId == "number") && (s.entidadeId = String(o.entidadeId)), s.status = pt({ ...s, status: o.status }), s;
|
|
4794
4805
|
}
|
|
4795
|
-
const
|
|
4806
|
+
const ts = 8;
|
|
4796
4807
|
function qe(n, t, e) {
|
|
4797
4808
|
if (n === t) return !0;
|
|
4798
4809
|
if (typeof n != "object" || typeof t != "object" || n === null || t === null || e <= 0) return !1;
|
|
@@ -4811,21 +4822,21 @@ function qe(n, t, e) {
|
|
|
4811
4822
|
for (const r in a) Object.prototype.hasOwnProperty.call(a, r) && s++;
|
|
4812
4823
|
return i === s;
|
|
4813
4824
|
}
|
|
4814
|
-
function
|
|
4815
|
-
return !n || !t ? !1 : n === t ? !0 : qe(n, t,
|
|
4825
|
+
function es(n, t) {
|
|
4826
|
+
return !n || !t ? !1 : n === t ? !0 : qe(n, t, ts);
|
|
4816
4827
|
}
|
|
4817
|
-
const ge = "cad-cursores",
|
|
4818
|
-
function
|
|
4819
|
-
return typeof n == "string" &&
|
|
4828
|
+
const ge = "cad-cursores", os = /^#[0-9a-f]{3,8}$/i, as = "#94a3b8";
|
|
4829
|
+
function Fe(n) {
|
|
4830
|
+
return typeof n == "string" && os.test(n.trim()) ? n.trim() : as;
|
|
4820
4831
|
}
|
|
4821
|
-
const
|
|
4832
|
+
const is = '<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>';
|
|
4822
4833
|
function Mo(n) {
|
|
4823
4834
|
const t = document.createElement("div");
|
|
4824
|
-
t.style.cssText = `color:${
|
|
4835
|
+
t.style.cssText = `color:${Fe(n.cor)};position:relative;pointer-events:none`, t.innerHTML = is;
|
|
4825
4836
|
const e = document.createElement("span");
|
|
4826
|
-
return e.textContent = String(n.nome ?? n.id), e.style.cssText = `position:absolute;left:16px;top:14px;white-space:nowrap;font:600 11px sans-serif;color:#fff;background:${
|
|
4837
|
+
return e.textContent = String(n.nome ?? n.id), e.style.cssText = `position:absolute;left:16px;top:14px;white-space:nowrap;font:600 11px sans-serif;color:#fff;background:${Fe(n.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 });
|
|
4827
4838
|
}
|
|
4828
|
-
class
|
|
4839
|
+
class ns {
|
|
4829
4840
|
constructor(t) {
|
|
4830
4841
|
p(this, "marcadores", /* @__PURE__ */ new Map());
|
|
4831
4842
|
this.obterMapa = t;
|
|
@@ -4836,7 +4847,7 @@ class as {
|
|
|
4836
4847
|
atualizar(t, e) {
|
|
4837
4848
|
const o = this.obterMapa();
|
|
4838
4849
|
if (!o || !t || t.id === void 0 || t.id === null || t.id === "" || !Number.isFinite(e == null ? void 0 : e[0]) || !Number.isFinite(e == null ? void 0 : e[1])) return !1;
|
|
4839
|
-
const a = String(t.id), i = `${t.nome ?? ""}\0${
|
|
4850
|
+
const a = String(t.id), i = `${t.nome ?? ""}\0${Fe(t.cor)}`, s = this.marcadores.get(a);
|
|
4840
4851
|
if (s)
|
|
4841
4852
|
return s.marker.setLatLng(e), s.assinatura !== i && (s.marker.setIcon(Mo(t)), s.assinatura = i), !0;
|
|
4842
4853
|
o.getPane(ge) || (o.createPane(ge).style.zIndex = "9500");
|
|
@@ -4853,7 +4864,7 @@ class as {
|
|
|
4853
4864
|
}
|
|
4854
4865
|
}
|
|
4855
4866
|
const xt = (n) => `${n.camadaId}\0${n.id}`;
|
|
4856
|
-
class
|
|
4867
|
+
class ss {
|
|
4857
4868
|
constructor(t) {
|
|
4858
4869
|
p(this, "itens", /* @__PURE__ */ new Map());
|
|
4859
4870
|
this.dep = t;
|
|
@@ -4940,13 +4951,13 @@ class is {
|
|
|
4940
4951
|
this.dep.aoSelecionar(o), o.length <= 1 && this.dep.aoSelecionarUma(o[0] ?? null);
|
|
4941
4952
|
}
|
|
4942
4953
|
}
|
|
4943
|
-
const
|
|
4954
|
+
const rs = {
|
|
4944
4955
|
Point: "Ponto",
|
|
4945
4956
|
LineString: "Linha",
|
|
4946
4957
|
Polygon: "Polígono",
|
|
4947
4958
|
Circle: "Círculo",
|
|
4948
4959
|
Text: "Texto"
|
|
4949
|
-
},
|
|
4960
|
+
}, cs = /* @__PURE__ */ new Set([
|
|
4950
4961
|
"name",
|
|
4951
4962
|
"nome",
|
|
4952
4963
|
"category",
|
|
@@ -4968,11 +4979,11 @@ function Pt(n, t) {
|
|
|
4968
4979
|
}
|
|
4969
4980
|
return "";
|
|
4970
4981
|
}
|
|
4971
|
-
function
|
|
4982
|
+
function ls(n) {
|
|
4972
4983
|
const t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(n), e = t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3])) : new Date(n);
|
|
4973
4984
|
return Number.isNaN(e.getTime()) ? n : e.toLocaleDateString("pt-BR");
|
|
4974
4985
|
}
|
|
4975
|
-
function
|
|
4986
|
+
function ds(n) {
|
|
4976
4987
|
const t = typeof n == "object" ? JSON.stringify(n) : String(n);
|
|
4977
4988
|
return t.length > 80 ? `${t.slice(0, 77)}...` : t;
|
|
4978
4989
|
}
|
|
@@ -4992,7 +5003,7 @@ function Yt(n) {
|
|
|
4992
5003
|
}
|
|
4993
5004
|
}
|
|
4994
5005
|
}
|
|
4995
|
-
function
|
|
5006
|
+
function hs(n) {
|
|
4996
5007
|
const t = n.geometria, e = [], o = ct(t), a = lt(t);
|
|
4997
5008
|
if (t.tipo === "Polygon")
|
|
4998
5009
|
e.push(["Área", bt(o ?? 0)], ["Perímetro", W(a ?? 0)]), e.push(["Vértices", String(t.aneis.reduce((r, c) => r + c.length, 0))]);
|
|
@@ -5003,7 +5014,7 @@ function ls(n) {
|
|
|
5003
5014
|
const [i, s] = Yt(n);
|
|
5004
5015
|
return e.push(["Coordenadas", `${i.toFixed(6)}, ${s.toFixed(6)}`]), e;
|
|
5005
5016
|
}
|
|
5006
|
-
class
|
|
5017
|
+
class us {
|
|
5007
5018
|
constructor(t) {
|
|
5008
5019
|
p(this, "popup", null);
|
|
5009
5020
|
p(this, "feicaoAtual", null);
|
|
@@ -5047,7 +5058,7 @@ class ds {
|
|
|
5047
5058
|
return y && (x.style.cssText = y), L !== void 0 && (x.textContent = L), x;
|
|
5048
5059
|
}, 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");
|
|
5049
5060
|
i.className = "cad-feicao-popup", i.appendChild(a("div", "font-weight:700;font-size:13px;margin-bottom:1px", Pt(t, ["name", "nome"]) || t.id));
|
|
5050
|
-
const s = Pt(t, ["category", "categoria"]), r = [
|
|
5061
|
+
const s = Pt(t, ["category", "categoria"]), r = [rs[t.geometria.tipo], (e == null ? void 0 : e.nome) ?? t.camadaId, s].filter(Boolean).join(" · ");
|
|
5051
5062
|
i.appendChild(a("div", "font-size:11px;color:rgba(255,255,255,.6);margin-bottom:4px", r));
|
|
5052
5063
|
const c = Pt(t, ["description", "descricao"]);
|
|
5053
5064
|
c && i.appendChild(a("div", "font-size:11px;margin-bottom:4px", c));
|
|
@@ -5059,12 +5070,12 @@ class ds {
|
|
|
5059
5070
|
}
|
|
5060
5071
|
return y;
|
|
5061
5072
|
};
|
|
5062
|
-
i.appendChild(l(
|
|
5063
|
-
const d = Object.entries(t.propriedades ?? {}).filter(([v, y]) => !
|
|
5064
|
-
d.length > 0 && (i.appendChild(l(d.slice(0, Ao).map(([v, y]) => [v,
|
|
5073
|
+
i.appendChild(l(hs(t)));
|
|
5074
|
+
const d = Object.entries(t.propriedades ?? {}).filter(([v, y]) => !cs.has(v) && y !== void 0 && y !== null && y !== "");
|
|
5075
|
+
d.length > 0 && (i.appendChild(l(d.slice(0, Ao).map(([v, y]) => [v, ds(y)]))), d.length > Ao && i.appendChild(a("div", "font-size:10px;color:rgba(255,255,255,.55);margin-bottom:4px", `${d.length} atributos`)));
|
|
5065
5076
|
const h = Pt(t, ["author", "autor"]), f = Pt(t, ["date", "data", "created_at", "criadoEm"]);
|
|
5066
5077
|
if (h || f) {
|
|
5067
|
-
const v = [h, f ?
|
|
5078
|
+
const v = [h, f ? ls(f) : ""].filter(Boolean).join(" · ");
|
|
5068
5079
|
i.appendChild(a("div", "font-size:10px;color:rgba(255,255,255,.55);margin-bottom:4px", v));
|
|
5069
5080
|
}
|
|
5070
5081
|
const g = a("div", "display:flex;gap:4px;flex-wrap:wrap;margin-top:6px"), m = [["inspecionar", "Inspecionar"], ["zoom", "Zoom"]];
|
|
@@ -5078,7 +5089,7 @@ class ds {
|
|
|
5078
5089
|
return i.appendChild(g), i;
|
|
5079
5090
|
}
|
|
5080
5091
|
}
|
|
5081
|
-
class
|
|
5092
|
+
class ps {
|
|
5082
5093
|
constructor(t) {
|
|
5083
5094
|
p(this, "_ligado", !0);
|
|
5084
5095
|
p(this, "_altSegurado", !1);
|
|
@@ -5135,7 +5146,7 @@ class hs {
|
|
|
5135
5146
|
}
|
|
5136
5147
|
}
|
|
5137
5148
|
const G = "feicoes";
|
|
5138
|
-
class
|
|
5149
|
+
class fs {
|
|
5139
5150
|
constructor(t) {
|
|
5140
5151
|
this.p = t;
|
|
5141
5152
|
}
|
|
@@ -5235,7 +5246,7 @@ class us {
|
|
|
5235
5246
|
return this.p.emitir("cad-feicao-unida", { origens: s, resultado: d }), d;
|
|
5236
5247
|
}
|
|
5237
5248
|
}
|
|
5238
|
-
class
|
|
5249
|
+
class ms {
|
|
5239
5250
|
constructor(t, e) {
|
|
5240
5251
|
p(this, "cacheOficiais", /* @__PURE__ */ new WeakMap());
|
|
5241
5252
|
this.p = t, this.regra = e;
|
|
@@ -5295,7 +5306,7 @@ class ps {
|
|
|
5295
5306
|
}
|
|
5296
5307
|
}
|
|
5297
5308
|
}
|
|
5298
|
-
class
|
|
5309
|
+
class gs {
|
|
5299
5310
|
constructor(t) {
|
|
5300
5311
|
this.p = t;
|
|
5301
5312
|
}
|
|
@@ -5337,28 +5348,28 @@ class fs {
|
|
|
5337
5348
|
return !o || o.tipo !== G ? !1 : (o.visivel || e.setLayerVisibility(t, !0), this.enquadrar(this.p.lista(t).filter((a) => this.p.desenhada(a))));
|
|
5338
5349
|
}
|
|
5339
5350
|
}
|
|
5340
|
-
const
|
|
5351
|
+
const vs = { topo: 0, base: 16, esquerda: 0, direita: 0 }, bs = 16, ys = 0.92, ve = {
|
|
5341
5352
|
topo: "--cad-hud-topo",
|
|
5342
5353
|
base: "--cad-hud-base",
|
|
5343
5354
|
esquerda: "--cad-hud-esquerda",
|
|
5344
5355
|
direita: "--cad-hud-direita"
|
|
5345
5356
|
}, ia = "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;";
|
|
5346
|
-
function
|
|
5347
|
-
const o = { ...
|
|
5357
|
+
function Vr(n, t, e = {}) {
|
|
5358
|
+
const o = { ...vs, ...e }, a = Math.max(0, n - o.esquerda - o.direita);
|
|
5348
5359
|
return {
|
|
5349
5360
|
centroX: o.esquerda + a / 2,
|
|
5350
5361
|
base: o.base,
|
|
5351
|
-
larguraMax: Math.max(0, Math.min(n *
|
|
5362
|
+
larguraMax: Math.max(0, Math.min(n * ys, a - bs)),
|
|
5352
5363
|
alturaMax: Math.max(0, t - o.topo - o.base - 8)
|
|
5353
5364
|
};
|
|
5354
5365
|
}
|
|
5355
|
-
function
|
|
5366
|
+
function xs(n, t) {
|
|
5356
5367
|
for (const e of Object.keys(ve)) {
|
|
5357
5368
|
const o = t[e];
|
|
5358
5369
|
typeof o == "number" && Number.isFinite(o) && o >= 0 ? n.style.setProperty(ve[e], `${o}px`) : n.style.removeProperty(ve[e]);
|
|
5359
5370
|
}
|
|
5360
5371
|
}
|
|
5361
|
-
const
|
|
5372
|
+
const Ps = "cm-draw-hud", zo = "cad-ferramenta-ativa", J = "cad-desenho", at = "#22d3ee", Cs = 4, Ss = 450, Ls = 10, Ms = 8, As = 2500, zs = {
|
|
5362
5373
|
ponto: "Ponto",
|
|
5363
5374
|
linha: "Linha",
|
|
5364
5375
|
poligono: "Polígono",
|
|
@@ -5374,7 +5385,7 @@ const ys = "cm-draw-hud", zo = "cad-ferramenta-ativa", J = "cad-desenho", at = "
|
|
|
5374
5385
|
dividir: "Dividir polígono",
|
|
5375
5386
|
"selecao-laco": "Seleção por laço",
|
|
5376
5387
|
"conta-gotas": "Conta-gotas"
|
|
5377
|
-
},
|
|
5388
|
+
}, ws = {
|
|
5378
5389
|
ponto: "Clique para colocar",
|
|
5379
5390
|
linha: "Clique nos vértices · Enter ou duplo clique conclui",
|
|
5380
5391
|
poligono: "Clique nos vértices · Enter ou duplo clique conclui",
|
|
@@ -5391,7 +5402,7 @@ const ys = "cm-draw-hud", zo = "cad-ferramenta-ativa", J = "cad-desenho", at = "
|
|
|
5391
5402
|
"selecao-laco": "Desenhe o laço · Enter ou 1º ponto fecha e seleciona",
|
|
5392
5403
|
"conta-gotas": "Clique numa feição para copiar o estilo"
|
|
5393
5404
|
};
|
|
5394
|
-
class
|
|
5405
|
+
class Es {
|
|
5395
5406
|
constructor(t) {
|
|
5396
5407
|
p(this, "sessao", null);
|
|
5397
5408
|
p(this, "fechar", !1);
|
|
@@ -5517,7 +5528,7 @@ class zs {
|
|
|
5517
5528
|
return o ? (this.mostrarSnap(o.coordenada), o.coordenada) : (this.esconderSnap(), e);
|
|
5518
5529
|
}
|
|
5519
5530
|
repetido(t) {
|
|
5520
|
-
const e = this.ultimoClique, o = Date.now(), a = t.containerPoint, i = !!e && Math.hypot(e.x - a.x, e.y - a.y) <=
|
|
5531
|
+
const e = this.ultimoClique, o = Date.now(), a = t.containerPoint, i = !!e && Math.hypot(e.x - a.x, e.y - a.y) <= Cs && o - e.t <= Ss;
|
|
5521
5532
|
return this.ultimoClique = { x: a.x, y: a.y, t: o }, i;
|
|
5522
5533
|
}
|
|
5523
5534
|
/** Com 3+ vértices, um clique perto do primeiro fecha a figura em polígono. */
|
|
@@ -5525,7 +5536,7 @@ class zs {
|
|
|
5525
5536
|
const e = this.sessao, o = e == null ? void 0 : e.primeiro;
|
|
5526
5537
|
if (!e || !o || !e.fechaNoPrimeiro) return !1;
|
|
5527
5538
|
const a = this.dep.map.latLngToContainerPoint(o);
|
|
5528
|
-
if (Math.hypot(a.x - t.containerPoint.x, a.y - t.containerPoint.y) >
|
|
5539
|
+
if (Math.hypot(a.x - t.containerPoint.x, a.y - t.containerPoint.y) > Ls) return !1;
|
|
5529
5540
|
const i = e.concluirFechando();
|
|
5530
5541
|
return i && this.finalizar(i), !!i;
|
|
5531
5542
|
}
|
|
@@ -5535,7 +5546,7 @@ class zs {
|
|
|
5535
5546
|
if (!e) return null;
|
|
5536
5547
|
const o = this.dep.map, a = (i) => {
|
|
5537
5548
|
const s = o.latLngToContainerPoint(i);
|
|
5538
|
-
return Math.hypot(s.x - t.containerPoint.x, s.y - t.containerPoint.y) <=
|
|
5549
|
+
return Math.hypot(s.x - t.containerPoint.x, s.y - t.containerPoint.y) <= Ms;
|
|
5539
5550
|
};
|
|
5540
5551
|
for (let i = e.ancoras.length - 1; i >= 0; i--) {
|
|
5541
5552
|
const s = e.ancoras[i];
|
|
@@ -5561,7 +5572,7 @@ class zs {
|
|
|
5561
5572
|
const e = (o = this.hud) == null ? void 0 : o.querySelector('[data-campo="aviso"]');
|
|
5562
5573
|
e && (e.textContent = t, this.avisoTimer && clearTimeout(this.avisoTimer), this.avisoTimer = setTimeout(() => {
|
|
5563
5574
|
e.textContent = "", this.avisoTimer = null;
|
|
5564
|
-
},
|
|
5575
|
+
}, As));
|
|
5565
5576
|
}
|
|
5566
5577
|
/**
|
|
5567
5578
|
* Botão direito com a ferramenta ativa: conclui se já dá figura; senão desfaz o último vértice;
|
|
@@ -5694,14 +5705,14 @@ class zs {
|
|
|
5694
5705
|
const t = this.sessao;
|
|
5695
5706
|
if (!t) return;
|
|
5696
5707
|
const e = document.createElement("div");
|
|
5697
|
-
e.id =
|
|
5708
|
+
e.id = Ps, e.style.cssText = ia + "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";
|
|
5698
5709
|
const o = (c) => {
|
|
5699
5710
|
const l = document.createElement("span");
|
|
5700
5711
|
return l.dataset.campo = c, l;
|
|
5701
5712
|
}, a = document.createElement("strong");
|
|
5702
|
-
a.textContent =
|
|
5713
|
+
a.textContent = zs[t.ferramenta];
|
|
5703
5714
|
const i = o("dica");
|
|
5704
|
-
i.style.opacity = ".7", i.textContent =
|
|
5715
|
+
i.style.opacity = ".7", i.textContent = ws[t.ferramenta];
|
|
5705
5716
|
const s = (c, l, d = !1) => {
|
|
5706
5717
|
const h = document.createElement("button");
|
|
5707
5718
|
return h.type = "button", h.textContent = c, h.style.cssText = `padding:3px 10px;border-radius:4px;border:1px solid ${d ? at : "rgba(255,255,255,.3)"};background:${d ? at : "transparent"};color:${d ? "#111" : "#fff"};cursor:pointer;font-weight:600`, h.addEventListener("click", l), h;
|
|
@@ -5735,8 +5746,8 @@ class zs {
|
|
|
5735
5746
|
(e = this.sessao) == null || e.mover(t), this.atualizar();
|
|
5736
5747
|
}
|
|
5737
5748
|
}
|
|
5738
|
-
const
|
|
5739
|
-
class
|
|
5749
|
+
const ks = ["tipoLinha", "escalaTipoLinha", "deslocamentoTracejado", "opacidadeTraco", "terminacaoTraco", "juncaoTraco"], Is = /* @__PURE__ */ new Set(["ponto", "linha", "poligono", "retangulo", "elipse", "poligono-regular", "estrela", "circulo", "texto", "caneta"]);
|
|
5750
|
+
class Ts {
|
|
5740
5751
|
constructor(t) {
|
|
5741
5752
|
p(this, "desenho", null);
|
|
5742
5753
|
p(this, "camadaDesenho", null);
|
|
@@ -5787,15 +5798,15 @@ class ks {
|
|
|
5787
5798
|
}
|
|
5788
5799
|
ativarFerramenta(t, e = {}) {
|
|
5789
5800
|
var i, s;
|
|
5790
|
-
if (
|
|
5801
|
+
if (!$o(t)) return { ok: !1, motivo: "ferramenta-invalida" };
|
|
5791
5802
|
const o = this.p.obterMapa();
|
|
5792
5803
|
if (!o) return { ok: !1, motivo: "sem-mapa" };
|
|
5793
|
-
if (
|
|
5804
|
+
if (Is.has(t)) {
|
|
5794
5805
|
const r = this.motivoCamadaDesenhoInvalida();
|
|
5795
5806
|
if (r)
|
|
5796
5807
|
return this.p.emitir("cad-desenho-recusado", { ferramenta: t, motivo: r }), { ok: !1, motivo: r };
|
|
5797
5808
|
}
|
|
5798
|
-
this.p.prepararDesenho(), this.desenho || (this.desenho = new
|
|
5809
|
+
this.p.prepararDesenho(), this.desenho || (this.desenho = new Es({
|
|
5799
5810
|
map: o,
|
|
5800
5811
|
buscarSnap: (r) => this.p.buscarSnapEm(r),
|
|
5801
5812
|
snapAtivo: () => this.p.snapAtivo(),
|
|
@@ -5884,11 +5895,11 @@ class ks {
|
|
|
5884
5895
|
}
|
|
5885
5896
|
const s = this.p.obterLayerManager().getLayerDef(i.camadaId), r = i.estilo ?? {}, c = {}, l = r.corTraco ?? (s == null ? void 0 : s.estilo.corPrimaria);
|
|
5886
5897
|
l && (c.corTraco = l), r.corPreenchimento && (c.corPreenchimento = r.corPreenchimento), r.espessuraTraco !== void 0 && (c.espessuraTraco = r.espessuraTraco), r.opacidadePreenchimento !== void 0 && (c.opacidadePreenchimento = r.opacidadePreenchimento), r.dashArray && (c.dashArray = r.dashArray);
|
|
5887
|
-
for (const d of
|
|
5898
|
+
for (const d of ks) r[d] !== void 0 && (c[d] = r[d]);
|
|
5888
5899
|
this.estiloDesenho = { ...this.estiloDesenho, ...c }, this.p.emitir("cad-conta-gotas", { cor: l ?? r.corPreenchimento ?? "", feicao: i, estilo: c });
|
|
5889
5900
|
}
|
|
5890
5901
|
}
|
|
5891
|
-
class
|
|
5902
|
+
class Ds {
|
|
5892
5903
|
constructor(t) {
|
|
5893
5904
|
/** id -> posição na lista da camada (válido enquanto `lista` for a lista atual); evita varrer a camada a cada consulta. */
|
|
5894
5905
|
p(this, "posicoes", /* @__PURE__ */ new Map());
|
|
@@ -5930,7 +5941,7 @@ class Is {
|
|
|
5930
5941
|
const l = me(r, t, this.p.opcoesNormalizacao());
|
|
5931
5942
|
if (l) {
|
|
5932
5943
|
const d = s.get(l.id);
|
|
5933
|
-
i.set(l.id, d &&
|
|
5944
|
+
i.set(l.id, d && es(d, l) ? d : l);
|
|
5934
5945
|
} else a.push(String((r == null ? void 0 : r.id) ?? `#${c}`));
|
|
5935
5946
|
}), this.p.obterLayerManager().setLayerData(t, { feicoes: [...i.values()] }), this.p.aposDados(), { aceitas: i.size, recusadas: a };
|
|
5936
5947
|
}
|
|
@@ -5969,41 +5980,41 @@ class Is {
|
|
|
5969
5980
|
}, o, this.p.opcoesNormalizacao());
|
|
5970
5981
|
}
|
|
5971
5982
|
aplicar(t, e, o = {}) {
|
|
5972
|
-
const a = { adicionadas: 0, atualizadas: 0, removidas: 0, recusadas: [] }, i = [], s = [], r = Array.isArray(e == null ? void 0 : e.adicionar) ? e.adicionar : [], c = Array.isArray(e == null ? void 0 : e.atualizar) ? e.atualizar : [], l = Array.isArray(e == null ? void 0 : e.remover) ? e.remover : [], d = (
|
|
5973
|
-
r.forEach((
|
|
5974
|
-
const T = me(
|
|
5975
|
-
T ? g.push(T) : h.push(d(
|
|
5983
|
+
const a = { adicionadas: 0, atualizadas: 0, removidas: 0, recusadas: [] }, i = [], s = [], r = Array.isArray(e == null ? void 0 : e.adicionar) ? e.adicionar : [], c = Array.isArray(e == null ? void 0 : e.atualizar) ? e.atualizar : [], l = Array.isArray(e == null ? void 0 : e.remover) ? e.remover : [], d = (C, k) => String((C == null ? void 0 : C.id) ?? `#${k}`), h = [], f = (C) => (a.recusadas.push(...h), C), g = [];
|
|
5984
|
+
r.forEach((C, k) => {
|
|
5985
|
+
const T = me(C, t, this.p.opcoesNormalizacao());
|
|
5986
|
+
T ? g.push(T) : h.push(d(C, k));
|
|
5976
5987
|
});
|
|
5977
5988
|
const m = this.p.obterLayerManager(), u = m.getLayerDef(t);
|
|
5978
5989
|
if (!(!u || u.tipo === G) || !u && g.length === 0)
|
|
5979
|
-
return c.forEach((
|
|
5990
|
+
return c.forEach((C, k) => a.recusadas.push(d(C, k))), g.forEach((C) => h.push(C.id)), f({ resultado: a, adicionadas: i, atualizadas: s });
|
|
5980
5991
|
if ((g.length > 0 || u) && !this.garantirCamada(t, o))
|
|
5981
|
-
return g.forEach((
|
|
5992
|
+
return g.forEach((C) => h.push(C.id)), f({ resultado: a, adicionadas: i, atualizadas: s });
|
|
5982
5993
|
const y = this.lista(t), L = this.posicaoDe(t), x = y.slice(), M = [], z = [];
|
|
5983
5994
|
let P = !1;
|
|
5984
|
-
for (const
|
|
5985
|
-
const k = String(
|
|
5995
|
+
for (const C of l) {
|
|
5996
|
+
const k = String(C), T = L.get(k);
|
|
5986
5997
|
T === void 0 || x[T] === null || (x[T] = null, M.push(k), a.removidas++, P = !0);
|
|
5987
5998
|
}
|
|
5988
|
-
c.forEach((
|
|
5989
|
-
const T =
|
|
5990
|
-
if (
|
|
5991
|
-
a.recusadas.push(T || d(
|
|
5999
|
+
c.forEach((C, k) => {
|
|
6000
|
+
const T = C && typeof C == "object" && C.id !== void 0 && C.id !== null ? String(C.id) : "", D = L.get(T), w = D === void 0 ? null : x[D], F = w ? this.mesclar(w, C, t, !!o.substituirPropriedades) : null;
|
|
6001
|
+
if (!F || D === void 0) {
|
|
6002
|
+
a.recusadas.push(T || d(C, k));
|
|
5992
6003
|
return;
|
|
5993
6004
|
}
|
|
5994
|
-
x[D] =
|
|
6005
|
+
x[D] = F, z.push(F), s.push(F), a.atualizadas++;
|
|
5995
6006
|
});
|
|
5996
|
-
for (const
|
|
5997
|
-
const k = L.get(
|
|
5998
|
-
k !== void 0 && x[k] !== null ? x[k] =
|
|
6007
|
+
for (const C of g) {
|
|
6008
|
+
const k = L.get(C.id);
|
|
6009
|
+
k !== void 0 && x[k] !== null ? x[k] = C : (L.set(C.id, x.length), x.push(C)), z.push(C), i.push(C), a.adicionadas++;
|
|
5999
6010
|
}
|
|
6000
6011
|
if (z.length === 0 && M.length === 0) return f({ resultado: a, adicionadas: i, atualizadas: s });
|
|
6001
|
-
const
|
|
6002
|
-
return m.setLayerData(t, E), delete E.delta, P ? this.posicoes.delete(t) : this.posicoes.set(t, { lista:
|
|
6012
|
+
const S = P ? x.filter((C) => C !== null) : x, E = { feicoes: S, delta: { base: y, mudadas: z, removidas: M } };
|
|
6013
|
+
return m.setLayerData(t, E), delete E.delta, P ? this.posicoes.delete(t) : this.posicoes.set(t, { lista: S, pos: L }), this.p.aposDados(), f({ resultado: a, adicionadas: i, atualizadas: s });
|
|
6003
6014
|
}
|
|
6004
6015
|
}
|
|
6005
|
-
const Mt = (n) => Array.isArray(n) && n.length === 2 && Number.isFinite(n[0]) && Number.isFinite(n[1]), Ge = Math.PI / 180,
|
|
6006
|
-
function
|
|
6016
|
+
const Mt = (n) => Array.isArray(n) && n.length === 2 && Number.isFinite(n[0]) && Number.isFinite(n[1]), Ge = Math.PI / 180, $e = 0.01, ht = Ga;
|
|
6017
|
+
function _s(n, t, e) {
|
|
6007
6018
|
let o = U(n);
|
|
6008
6019
|
if (!o || t < 0 || t >= o.length) return n;
|
|
6009
6020
|
if (e === "canto") {
|
|
@@ -6025,28 +6036,28 @@ function Ts(n, t, e) {
|
|
|
6025
6036
|
const d = o.slice();
|
|
6026
6037
|
return d[t] = r, dt(a, d);
|
|
6027
6038
|
}
|
|
6028
|
-
function
|
|
6039
|
+
function qs(n, t, e = 45) {
|
|
6029
6040
|
if (!Mt(n) || !Mt(t) || !(e > 0)) return t;
|
|
6030
6041
|
const o = ht(n), [a, i] = X(o, t), s = Math.hypot(a, i);
|
|
6031
6042
|
if (s === 0) return t;
|
|
6032
6043
|
const r = e * Ge, c = Math.round(Math.atan2(i, a) / r) * r;
|
|
6033
6044
|
return yt(o, Math.cos(c) * s, Math.sin(c) * s);
|
|
6034
6045
|
}
|
|
6035
|
-
function
|
|
6046
|
+
function Fs(n, t, e) {
|
|
6036
6047
|
var c;
|
|
6037
6048
|
const o = (c = U(n)) == null ? void 0 : c[t], a = o == null ? void 0 : o[e];
|
|
6038
6049
|
if (!o || !a) return null;
|
|
6039
6050
|
const [i, s] = X(ht(o.ponto), a), r = (Math.atan2(i, s) / Ge + 360) % 360;
|
|
6040
6051
|
return { comprimentoM: Math.hypot(i, s), azimuteGraus: r };
|
|
6041
6052
|
}
|
|
6042
|
-
function
|
|
6053
|
+
function $s(n, t, e, o, a = !0) {
|
|
6043
6054
|
var l;
|
|
6044
6055
|
const i = (l = U(n)) == null ? void 0 : l[t];
|
|
6045
6056
|
if (!i || !Number.isFinite(o.comprimentoM) || !Number.isFinite(o.azimuteGraus) || o.comprimentoM < 0) return n;
|
|
6046
6057
|
const s = ht(i.ponto), r = o.azimuteGraus * Ge, c = yt(s, Math.sin(r) * o.comprimentoM, Math.cos(r) * o.comprimentoM);
|
|
6047
|
-
return
|
|
6058
|
+
return Fo(n, t, e, c, a);
|
|
6048
6059
|
}
|
|
6049
|
-
function
|
|
6060
|
+
function Os(n, t, e) {
|
|
6050
6061
|
if (!Mt(e)) return n;
|
|
6051
6062
|
const o = Q(n).map((a) => [a[0], a[1]]);
|
|
6052
6063
|
return n.tipo === "Circle" || n.tipo === "Point" || t < 0 || t >= o.length ? n : (o[t] = [e[0], e[1]], Pe(n, o));
|
|
@@ -6055,10 +6066,10 @@ function At(n, t, e) {
|
|
|
6055
6066
|
return e < 0 || e >= t ? null : e < t - 1 ? e + 1 : n.tipo === "Polygon" && t > 2 ? 0 : null;
|
|
6056
6067
|
}
|
|
6057
6068
|
function He(n, t, e, o) {
|
|
6058
|
-
const [a, i] = ba(t[e], t[o]), s = t[e].saida ??
|
|
6069
|
+
const [a, i] = ba(t[e], t[o]), s = t[e].saida ?? Ce(n, e, "saida"), r = t[o].entrada ?? Ce(n, o, "entrada");
|
|
6059
6070
|
return !s || !r ? null : [t[e].saida ? a : s, t[o].entrada ? i : r];
|
|
6060
6071
|
}
|
|
6061
|
-
function
|
|
6072
|
+
function Ns(n, t, e) {
|
|
6062
6073
|
const o = U(n);
|
|
6063
6074
|
if (!o || !Mt(e)) return null;
|
|
6064
6075
|
const a = At(n, o.length, t);
|
|
@@ -6097,7 +6108,7 @@ function wo(n, t, e, o) {
|
|
|
6097
6108
|
const r = Math.min(sa, Math.max(na, e)), c = 1 - r, l = To(a[t].ponto, s[0], s[1], a[i].ponto, r), d = o[0] - l[0], h = o[1] - l[1], f = c * c + r * r, g = 1 / (3 * r * f), m = 1 / (3 * c * f), u = [s[0][0] + d * g, s[0][1] + h * g], v = [s[1][0] + d * m, s[1][1] + h * m], y = a.slice();
|
|
6098
6109
|
return y[t] = ao(a[t], "saida", u, "livre"), y[i] = ao(i === t ? y[t] : a[i], "entrada", v, "livre"), dt(n, y);
|
|
6099
6110
|
}
|
|
6100
|
-
function
|
|
6111
|
+
function Rs(n, t) {
|
|
6101
6112
|
const e = U(n);
|
|
6102
6113
|
if (!e) return n;
|
|
6103
6114
|
const o = At(n, e.length, t);
|
|
@@ -6110,7 +6121,7 @@ function Os(n, t) {
|
|
|
6110
6121
|
function Eo(n) {
|
|
6111
6122
|
return !n.entrada && !n.saida ? (delete n.modo, n) : { ...n, modo: "livre" };
|
|
6112
6123
|
}
|
|
6113
|
-
function
|
|
6124
|
+
function Bs(n, t) {
|
|
6114
6125
|
const e = U(n);
|
|
6115
6126
|
if (!e) return n;
|
|
6116
6127
|
const o = At(n, e.length, t);
|
|
@@ -6120,7 +6131,7 @@ function Ns(n, t) {
|
|
|
6120
6131
|
const i = e.slice();
|
|
6121
6132
|
return e[t].saida || (i[t] = { ...e[t], saida: a[0], modo: gt(e[t]) === "canto" ? "livre" : e[t].modo }), e[o].entrada || (i[o] = { ...o === t ? i[t] : e[o], entrada: a[1], modo: gt(e[o]) === "canto" ? "livre" : e[o].modo }), dt(n, i);
|
|
6122
6133
|
}
|
|
6123
|
-
function
|
|
6134
|
+
function Vs(n, t, e, o) {
|
|
6124
6135
|
const a = Math.max(1, Math.ceil(Math.abs(o) / (Math.PI / 2) - 1e-9)), i = o / a, s = 4 / 3 * Math.tan(i / 4), r = [];
|
|
6125
6136
|
for (let c = 0; c < a; c++) {
|
|
6126
6137
|
const l = e + c * i, d = l + i, h = [n[0] + t * Math.cos(l), n[1] + t * Math.sin(l)], f = [n[0] + t * Math.cos(d), n[1] + t * Math.sin(d)];
|
|
@@ -6133,15 +6144,15 @@ function Rs(n, t, e, o) {
|
|
|
6133
6144
|
return r;
|
|
6134
6145
|
}
|
|
6135
6146
|
function ra(n, t, e, o, a, i, s) {
|
|
6136
|
-
const r =
|
|
6147
|
+
const r = Vs(o, a, i, s), c = (f) => yt(n, f[0], f[1]), l = { ...t, saida: c(r[0].c1), modo: "livre" }, d = [];
|
|
6137
6148
|
for (let f = 0; f < r.length - 1; f++)
|
|
6138
6149
|
d.push({ ponto: c(r[f].fim), entrada: c(r[f].c2), saida: c(r[f + 1].c1), modo: "simetrico" });
|
|
6139
6150
|
const h = { ...e, entrada: c(r[r.length - 1].c2), modo: "livre" };
|
|
6140
6151
|
return { a: l, meio: d, b: h };
|
|
6141
6152
|
}
|
|
6142
|
-
function
|
|
6153
|
+
function js(n, t, e, o = "esquerda") {
|
|
6143
6154
|
const a = U(n);
|
|
6144
|
-
if (!a || !Number.isFinite(e) || e <
|
|
6155
|
+
if (!a || !Number.isFinite(e) || e < $e) return null;
|
|
6145
6156
|
const i = At(n, a.length, t);
|
|
6146
6157
|
if (i === null) return null;
|
|
6147
6158
|
const s = ht(a[t].ponto), r = X(s, a[t].ponto), c = X(s, a[i].ponto), l = Math.hypot(c[0] - r[0], c[1] - r[1]);
|
|
@@ -6149,9 +6160,9 @@ function Bs(n, t, e, o = "esquerda") {
|
|
|
6149
6160
|
const d = Math.max(e, l / 2), h = Math.sqrt(Math.max(0, d * d - (l / 2) ** 2)), f = (c[0] - r[0]) / l, m = [-((c[1] - r[1]) / l), f], u = o === "esquerda" ? -1 : 1, v = [(r[0] + c[0]) / 2, (r[1] + c[1]) / 2], y = [v[0] + m[0] * h * u, v[1] + m[1] * h * u], L = Math.atan2(r[1] - y[1], r[0] - y[0]), x = Math.asin(Math.min(1, l / (2 * d))), M = ra(s, a[t], a[i], y, d, L, u * 2 * x), z = a.slice();
|
|
6150
6161
|
return z[t] = M.a, z[i] = i === t ? M.a : M.b, z.splice(t + 1, 0, ...M.meio), dt(n, z);
|
|
6151
6162
|
}
|
|
6152
|
-
function
|
|
6163
|
+
function Gs(n, t, e) {
|
|
6153
6164
|
const o = U(n);
|
|
6154
|
-
if (!o || !Number.isFinite(e) || e <
|
|
6165
|
+
if (!o || !Number.isFinite(e) || e < $e || t < 0 || t >= o.length || gt(o[t]) !== "canto") return null;
|
|
6155
6166
|
const a = o.length, i = n.tipo === "Polygon", s = t > 0 ? o[t - 1] : i ? o[a - 1] : null, r = t < a - 1 ? o[t + 1] : i ? o[0] : null;
|
|
6156
6167
|
if (!s || !r) return null;
|
|
6157
6168
|
const c = ht(o[t].ponto), l = X(c, o[t].ponto), d = X(c, s.ponto), h = X(c, r.ponto), f = Math.hypot(d[0] - l[0], d[1] - l[1]), g = Math.hypot(h[0] - l[0], h[1] - l[1]);
|
|
@@ -6159,28 +6170,28 @@ function Vs(n, t, e) {
|
|
|
6159
6170
|
const m = [(d[0] - l[0]) / f, (d[1] - l[1]) / f], u = [(h[0] - l[0]) / g, (h[1] - l[1]) / g], v = Math.max(-1, Math.min(1, m[0] * u[0] + m[1] * u[1])), y = Math.acos(v);
|
|
6160
6171
|
if (y < 1e-3 || Math.PI - y < 1e-3) return null;
|
|
6161
6172
|
const L = Math.tan(y / 2), x = Math.min(e, Math.min(f, g) * L);
|
|
6162
|
-
if (!(x >=
|
|
6163
|
-
const M = x / L, z = [l[0] + m[0] * M, l[1] + m[1] * M], P = [l[0] + u[0] * M, l[1] + u[1] * M],
|
|
6173
|
+
if (!(x >= $e)) return null;
|
|
6174
|
+
const M = x / L, z = [l[0] + m[0] * M, l[1] + m[1] * M], P = [l[0] + u[0] * M, l[1] + u[1] * M], S = m[0] + u[0], A = m[1] + u[1], E = Math.hypot(S, A), C = x / Math.sin(y / 2), k = [l[0] + S / E * C, l[1] + A / E * C], T = Math.atan2(z[1] - k[1], z[0] - k[0]);
|
|
6164
6175
|
let w = Math.atan2(P[1] - k[1], P[0] - k[0]) - T;
|
|
6165
6176
|
for (; w > Math.PI; ) w -= 2 * Math.PI;
|
|
6166
6177
|
for (; w < -Math.PI; ) w += 2 * Math.PI;
|
|
6167
|
-
const
|
|
6168
|
-
return
|
|
6178
|
+
const F = { ponto: yt(c, z[0], z[1]) }, q = { ponto: yt(c, P[0], P[1]) }, _ = ra(c, F, q, k, x, T, w), $ = o.slice();
|
|
6179
|
+
return $.splice(t, 1, _.a, ..._.meio, _.b), dt(n, $);
|
|
6169
6180
|
}
|
|
6170
|
-
const
|
|
6181
|
+
const Hs = 10, Us = [
|
|
6171
6182
|
{ tipo: "canto", rotulo: "Canto", titulo: "Sem alças: o traçado muda de direção no nó" },
|
|
6172
6183
|
{ tipo: "suave", rotulo: "Suave", titulo: "Alças alinhadas, cada uma com o seu comprimento" },
|
|
6173
6184
|
{ tipo: "simetrico", rotulo: "Simétrico", titulo: "Alças alinhadas e do mesmo comprimento" },
|
|
6174
6185
|
{ tipo: "livre", rotulo: "Livre", titulo: "Alças independentes (cúspide)" }
|
|
6175
6186
|
];
|
|
6176
|
-
function
|
|
6187
|
+
function Ct(n) {
|
|
6177
6188
|
const t = n.trim().replace(",", ".");
|
|
6178
6189
|
if (t === "") return null;
|
|
6179
6190
|
const e = Number(t);
|
|
6180
6191
|
return Number.isFinite(e) ? e : null;
|
|
6181
6192
|
}
|
|
6182
|
-
const
|
|
6183
|
-
class
|
|
6193
|
+
const Zs = "padding:2px 7px;font-size:11px;border-radius:4px;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff;cursor:pointer", Ws = "width:84px;padding:1px 4px;font-size:11px;border-radius:4px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.08);color:#fff", Xs = "#22d3ee";
|
|
6194
|
+
class Ks {
|
|
6184
6195
|
constructor(t) {
|
|
6185
6196
|
p(this, "el");
|
|
6186
6197
|
p(this, "campos", /* @__PURE__ */ new Map());
|
|
@@ -6196,7 +6207,7 @@ class Ws {
|
|
|
6196
6207
|
}
|
|
6197
6208
|
campo(t, e, o, a) {
|
|
6198
6209
|
const i = document.createElement("input");
|
|
6199
|
-
i.type = "text", i.inputMode = "decimal", i.autocomplete = "off", i.spellcheck = !1, i.dataset.campo = t, i.title = e, i.setAttribute("aria-label", e), i.style.cssText =
|
|
6210
|
+
i.type = "text", i.inputMode = "decimal", i.autocomplete = "off", i.spellcheck = !1, i.dataset.campo = t, i.title = e, i.setAttribute("aria-label", e), i.style.cssText = Ws + (a ? `;width:${a}px` : "");
|
|
6200
6211
|
const s = () => o();
|
|
6201
6212
|
return i.addEventListener("change", s), i.addEventListener("keydown", (r) => {
|
|
6202
6213
|
r.stopPropagation(), r.key === "Enter" && (r.preventDefault(), s());
|
|
@@ -6204,14 +6215,14 @@ class Ws {
|
|
|
6204
6215
|
}
|
|
6205
6216
|
botao(t, e, o, a) {
|
|
6206
6217
|
const i = document.createElement("button");
|
|
6207
|
-
return i.type = "button", i.dataset.acao = t, i.textContent = e, i.title = o, i.style.cssText =
|
|
6218
|
+
return i.type = "button", i.dataset.acao = t, i.textContent = e, i.title = o, i.style.cssText = Zs, i.addEventListener("click", a), this.botoes.set(t, i), i;
|
|
6208
6219
|
}
|
|
6209
6220
|
montar() {
|
|
6210
6221
|
const t = (...r) => {
|
|
6211
6222
|
const c = document.createElement("span");
|
|
6212
6223
|
return c.style.cssText = "display:inline-flex;gap:4px;align-items:center", c.append(...r), c;
|
|
6213
6224
|
}, e = t(this.rotulo("Nó"));
|
|
6214
|
-
for (const r of
|
|
6225
|
+
for (const r of Us) {
|
|
6215
6226
|
const c = this.botao(`tipo-${r.tipo}`, r.rotulo, r.titulo, () => this.acoes.definirTipo(r.tipo));
|
|
6216
6227
|
this.botoesTipo.set(r.tipo, c), e.append(c);
|
|
6217
6228
|
}
|
|
@@ -6237,10 +6248,10 @@ class Ws {
|
|
|
6237
6248
|
this.botao("arco-dir", "Arco ⟳", "Troca o trecho que sai deste nó por um arco abaulado para a direita", () => this.pedirArco("direita")),
|
|
6238
6249
|
this.botao("concordar", "Concordar", "Arredonda o canto deste nó com um arco tangente aos dois trechos (raio ao lado)", () => this.pedirConcordar())
|
|
6239
6250
|
);
|
|
6240
|
-
this.campos.get("raio").value = String(
|
|
6251
|
+
this.campos.get("raio").value = String(Hs), this.el.append(e, o, a("entrada", "Alça ←"), a("saida", "Alça →"), i, s);
|
|
6241
6252
|
}
|
|
6242
6253
|
confirmarCoordenada() {
|
|
6243
|
-
const t =
|
|
6254
|
+
const t = Ct(this.campos.get("lat").value), e = Ct(this.campos.get("lon").value);
|
|
6244
6255
|
if (t === null || e === null || Math.abs(t) > 90 || Math.abs(e) > 180) {
|
|
6245
6256
|
this.acoes.avisar("Coordenada inválida (latitude -90 a 90, longitude -180 a 180).");
|
|
6246
6257
|
return;
|
|
@@ -6248,7 +6259,7 @@ class Ws {
|
|
|
6248
6259
|
this.acoes.moverNo([t, e]);
|
|
6249
6260
|
}
|
|
6250
6261
|
confirmarAlca(t) {
|
|
6251
|
-
const e =
|
|
6262
|
+
const e = Ct(this.campos.get(`${t}-comp`).value), o = Ct(this.campos.get(`${t}-az`).value);
|
|
6252
6263
|
if (e === null || o === null || e < 0) {
|
|
6253
6264
|
this.acoes.avisar("Alça: informe o comprimento (m, ≥ 0) e o azimute (°).");
|
|
6254
6265
|
return;
|
|
@@ -6256,7 +6267,7 @@ class Ws {
|
|
|
6256
6267
|
this.acoes.definirAlca(t, { comprimentoM: e, azimuteGraus: o });
|
|
6257
6268
|
}
|
|
6258
6269
|
raio() {
|
|
6259
|
-
const t =
|
|
6270
|
+
const t = Ct(this.campos.get("raio").value);
|
|
6260
6271
|
return t === null || t <= 0 ? (this.acoes.avisar("Informe um raio maior que zero (metros)."), null) : t;
|
|
6261
6272
|
}
|
|
6262
6273
|
pedirArco(t) {
|
|
@@ -6278,7 +6289,7 @@ class Ws {
|
|
|
6278
6289
|
const i = gt(a);
|
|
6279
6290
|
for (const [c, l] of this.botoesTipo) {
|
|
6280
6291
|
const d = c === i;
|
|
6281
|
-
l.style.background = d ?
|
|
6292
|
+
l.style.background = d ? Xs : "transparent", l.style.color = d ? "#111" : "#fff", l.setAttribute("aria-pressed", String(d));
|
|
6282
6293
|
}
|
|
6283
6294
|
const s = (c, l, d = !0) => {
|
|
6284
6295
|
const h = this.campos.get(c);
|
|
@@ -6286,7 +6297,7 @@ class Ws {
|
|
|
6286
6297
|
};
|
|
6287
6298
|
s("lat", a.ponto[0].toFixed(7)), s("lon", a.ponto[1].toFixed(7));
|
|
6288
6299
|
for (const c of ["entrada", "saida"]) {
|
|
6289
|
-
const l =
|
|
6300
|
+
const l = Fs(t, e, c);
|
|
6290
6301
|
s(`${c}-comp`, l ? l.comprimentoM.toFixed(3) : "", !!l), s(`${c}-az`, l ? l.azimuteGraus.toFixed(2) : "", !!l);
|
|
6291
6302
|
}
|
|
6292
6303
|
const r = e < o.length - 1 || t.tipo === "Polygon";
|
|
@@ -6298,8 +6309,8 @@ class Ws {
|
|
|
6298
6309
|
o && (o.disabled = !e, o.style.opacity = e ? "1" : ".4", o.style.cursor = e ? "pointer" : "default");
|
|
6299
6310
|
}
|
|
6300
6311
|
}
|
|
6301
|
-
const
|
|
6302
|
-
class
|
|
6312
|
+
const Ys = "cm-vertex-edit-hud", it = "cad-edicao-vertices", _t = "#facc15", be = "#f472b6", Qs = "#22d3ee", Js = 600, tr = 100, er = 24, or = 2500, ar = 7, ir = 3, nr = 45, qt = (n, t) => n === t || JSON.stringify(n) === JSON.stringify(t);
|
|
6313
|
+
class sr {
|
|
6303
6314
|
constructor(t) {
|
|
6304
6315
|
p(this, "feicaoAtual", null);
|
|
6305
6316
|
/** Feição como foi gravada pela última vez (base do histórico). */
|
|
@@ -6346,7 +6357,7 @@ class ir {
|
|
|
6346
6357
|
const e = this.molde, o = this.feicaoAtual;
|
|
6347
6358
|
if (!e || !o) return;
|
|
6348
6359
|
const a = this.dep.map.mouseEventToContainerPoint(t);
|
|
6349
|
-
if (!e.moveu && Math.hypot(a.x - e.x, a.y - e.y) <
|
|
6360
|
+
if (!e.moveu && Math.hypot(a.x - e.x, a.y - e.y) < ir) return;
|
|
6350
6361
|
e.moveu = !0;
|
|
6351
6362
|
const i = this.dep.map.containerPointToLatLng(a), s = wo(e.antes.geometria, e.i, e.t, [i.lat, i.lng]);
|
|
6352
6363
|
s && (this.feicaoAtual = { ...o, geometria: s }, this.sincronizarAlcasBezier(), this.dep.previsualizar(this.feicaoAtual), this.atualizarHud(s));
|
|
@@ -6483,7 +6494,7 @@ class ir {
|
|
|
6483
6494
|
const o = this.pts[t], a = this.pts[e];
|
|
6484
6495
|
if (!o || !a) return !1;
|
|
6485
6496
|
const i = this.dep.map.latLngToContainerPoint(o), s = this.dep.map.latLngToContainerPoint(a);
|
|
6486
|
-
return Math.hypot(i.x - s.x, i.y - s.y) >=
|
|
6497
|
+
return Math.hypot(i.x - s.x, i.y - s.y) >= er;
|
|
6487
6498
|
}
|
|
6488
6499
|
icone(t, e, o) {
|
|
6489
6500
|
return b.divIcon({
|
|
@@ -6493,7 +6504,7 @@ class ir {
|
|
|
6493
6504
|
});
|
|
6494
6505
|
}
|
|
6495
6506
|
iconeAlca(t) {
|
|
6496
|
-
const e = this.ehCirculo && t === 1, o = this.selecionado === t, a = o ?
|
|
6507
|
+
const e = this.ehCirculo && t === 1, o = this.selecionado === t, a = o ? Qs : _t, i = o ? "2px solid #fff;box-shadow:0 0 0 2px #0e7490" : "2px solid #111";
|
|
6497
6508
|
return this.icone("cad-vertex-handle", 12, `background:${a};border:${i};border-radius:${e ? "50%" : "2px"};cursor:${e ? "ew-resize" : "move"}`);
|
|
6498
6509
|
}
|
|
6499
6510
|
criarAlca(t, e) {
|
|
@@ -6515,7 +6526,7 @@ class ir {
|
|
|
6515
6526
|
}), o.on("contextmenu", (a) => {
|
|
6516
6527
|
b.DomEvent.preventDefault(a.originalEvent), b.DomEvent.stopPropagation(a.originalEvent), this.excluir(e);
|
|
6517
6528
|
}), o.on("dblclick", (a) => {
|
|
6518
|
-
b.DomEvent.stopPropagation(a.originalEvent), !(Date.now() - this.ultimaInsercao <
|
|
6529
|
+
b.DomEvent.stopPropagation(a.originalEvent), !(Date.now() - this.ultimaInsercao < Js) && this.alternarSuave(e);
|
|
6519
6530
|
}), o;
|
|
6520
6531
|
}
|
|
6521
6532
|
detectarRetanguloDe(t) {
|
|
@@ -6566,7 +6577,7 @@ class ir {
|
|
|
6566
6577
|
const a = (r = (s = Ha(t)) == null ? void 0 : s[e]) == null ? void 0 : r[o];
|
|
6567
6578
|
if (a) return { pos: a, latente: !1 };
|
|
6568
6579
|
if (this.pts.length > Ua) return null;
|
|
6569
|
-
const i =
|
|
6580
|
+
const i = Ce(t, e, o);
|
|
6570
6581
|
return i ? { pos: i, latente: !0 } : null;
|
|
6571
6582
|
}
|
|
6572
6583
|
iconeDaAlca(t) {
|
|
@@ -6621,13 +6632,13 @@ class ir {
|
|
|
6621
6632
|
let i = [t.marker.getLatLng().lat, t.marker.getLatLng().lng];
|
|
6622
6633
|
const s = (c = U(a.geometria)) == null ? void 0 : c[t.i];
|
|
6623
6634
|
if (o && s)
|
|
6624
|
-
i =
|
|
6635
|
+
i = qs(s.ponto, i, nr), t.marker.setLatLng(i), this.esconderSnap();
|
|
6625
6636
|
else if (this.dep.snapLigado()) {
|
|
6626
6637
|
const l = this.dep.buscarSnap(i, { feicaoId: a.id, camadaId: a.camadaId, vertice: t.i });
|
|
6627
6638
|
l && l.feicaoId !== a.id ? (i = l.coordenada, t.marker.setLatLng(i), this.mostrarSnap(i)) : this.esconderSnap();
|
|
6628
6639
|
} else
|
|
6629
6640
|
this.esconderSnap();
|
|
6630
|
-
const r =
|
|
6641
|
+
const r = Fo(a.geometria, t.i, t.qual, i, e);
|
|
6631
6642
|
this.feicaoAtual = { ...a, geometria: r }, this.completarAlcasDoNo(t.i), this.sincronizarAlcasBezier(), this.dep.previsualizar(this.feicaoAtual), this.atualizarHud();
|
|
6632
6643
|
}
|
|
6633
6644
|
alternarSuave(t) {
|
|
@@ -6710,7 +6721,7 @@ class ir {
|
|
|
6710
6721
|
/** Grava o gesto: guarda a geometria anterior no histórico (se mudou) e avisa quem escuta. */
|
|
6711
6722
|
confirmar(t) {
|
|
6712
6723
|
const e = this.base;
|
|
6713
|
-
e && !qt(e.geometria, t.geometria) && (this.historico.push(e), this.historico.length >
|
|
6724
|
+
e && !qt(e.geometria, t.geometria) && (this.historico.push(e), this.historico.length > tr && this.historico.shift(), this.refeitos = []), this.feicaoAtual = t, this.base = t, this.gravar(t), this.atualizarBotoes();
|
|
6714
6725
|
}
|
|
6715
6726
|
gravar(t) {
|
|
6716
6727
|
this.gravando = !0;
|
|
@@ -6756,45 +6767,45 @@ class ir {
|
|
|
6756
6767
|
/** Muda o tipo do nó selecionado (canto, suave, simétrico, livre). */
|
|
6757
6768
|
definirTipoDoNoSelecionado(t) {
|
|
6758
6769
|
const e = this.noParaEditar();
|
|
6759
|
-
return e !== null && this.aplicarGeometria(
|
|
6770
|
+
return e !== null && this.aplicarGeometria(_s(this.geometriaAtual(), e, t), e, "");
|
|
6760
6771
|
}
|
|
6761
6772
|
/** Move o nó selecionado para a coordenada digitada, levando as alças junto. */
|
|
6762
6773
|
moverNoSelecionadoPara(t) {
|
|
6763
6774
|
const e = this.noParaEditar();
|
|
6764
6775
|
if (e === null) return !1;
|
|
6765
|
-
const o = this.geometriaAtual(), a =
|
|
6776
|
+
const o = this.geometriaAtual(), a = Os(o, e, t);
|
|
6766
6777
|
return this.aplicarGeometria(a === o ? null : a, e, "Coordenada inválida.");
|
|
6767
6778
|
}
|
|
6768
6779
|
/** Põe a alça do nó selecionado a `comprimentoM` metros, no azimute dado (0 = norte, horário). */
|
|
6769
6780
|
definirAlcaDoNoSelecionado(t, e) {
|
|
6770
6781
|
const o = this.noParaEditar();
|
|
6771
6782
|
if (o === null) return !1;
|
|
6772
|
-
const a = this.geometriaAtual(), i =
|
|
6783
|
+
const a = this.geometriaAtual(), i = $s(a, o, t, e);
|
|
6773
6784
|
return this.aplicarGeometria(i === a ? null : i, o, "Alça inválida.");
|
|
6774
6785
|
}
|
|
6775
6786
|
/** O trecho que sai do nó selecionado perde as alças (vira reta). */
|
|
6776
6787
|
endireitarSegmentoSeguinte() {
|
|
6777
6788
|
const t = this.noParaEditar();
|
|
6778
|
-
return t !== null && this.aplicarGeometria(
|
|
6789
|
+
return t !== null && this.aplicarGeometria(Rs(this.geometriaAtual(), t), t, "");
|
|
6779
6790
|
}
|
|
6780
6791
|
/** O trecho que sai do nó selecionado ganha alças (as latentes viram reais). */
|
|
6781
6792
|
curvarSegmentoSeguinte() {
|
|
6782
6793
|
const t = this.noParaEditar();
|
|
6783
|
-
return t !== null && this.aplicarGeometria(
|
|
6794
|
+
return t !== null && this.aplicarGeometria(Bs(this.geometriaAtual(), t), t, "");
|
|
6784
6795
|
}
|
|
6785
6796
|
/** Troca o trecho que sai do nó selecionado por um arco de raio `raioM`, abaulado para `lado`. */
|
|
6786
6797
|
arcoNoSegmentoSeguinte(t, e = "esquerda") {
|
|
6787
6798
|
const o = this.noParaEditar();
|
|
6788
|
-
return o !== null && this.aplicarGeometria(
|
|
6799
|
+
return o !== null && this.aplicarGeometria(js(this.geometriaAtual(), o, t, e), o, "Arco: o nó precisa ter um trecho seguinte e o raio deve ser maior que zero.");
|
|
6789
6800
|
}
|
|
6790
6801
|
/** Arredonda o canto do nó selecionado com um arco tangente de raio `raioM` (reduzido se os vizinhos forem curtos). */
|
|
6791
6802
|
concordarNoSelecionado(t) {
|
|
6792
6803
|
const e = this.noParaEditar();
|
|
6793
|
-
return e !== null && this.aplicarGeometria(
|
|
6804
|
+
return e !== null && this.aplicarGeometria(Gs(this.geometriaAtual(), e, t), null, "Concordância: só em nó de canto com dois trechos que não estejam alinhados.");
|
|
6794
6805
|
}
|
|
6795
6806
|
// ---- moldar o segmento arrastando o traçado ----
|
|
6796
6807
|
/** Segmento mais perto de `coord` (a até `toleranciaPx` pixels) e o parâmetro `t` do ponto dele; `null` se nenhum. */
|
|
6797
|
-
segmentoMaisProximo(t, e =
|
|
6808
|
+
segmentoMaisProximo(t, e = ar) {
|
|
6798
6809
|
if (!this.feicaoAtual || !Number.isFinite(t[0]) || !Number.isFinite(t[1])) return null;
|
|
6799
6810
|
const a = this.geometriaAtual(), i = U(a);
|
|
6800
6811
|
if (!i || a.tipo !== "LineString" && a.tipo !== "Polygon") return null;
|
|
@@ -6803,7 +6814,7 @@ class ir {
|
|
|
6803
6814
|
for (const [d, h] of io(a)) {
|
|
6804
6815
|
const f = i[d], g = i[h], m = [f.ponto, g.ponto, f.saida, g.entrada].filter((M) => !!M).map((M) => s.latLngToContainerPoint(M)), u = m.map((M) => M.x), v = m.map((M) => M.y);
|
|
6805
6816
|
if (r.x < Math.min(...u) - e || r.x > Math.max(...u) + e || r.y < Math.min(...v) - e || r.y > Math.max(...v) + e) continue;
|
|
6806
|
-
const y =
|
|
6817
|
+
const y = Ns(a, d, t);
|
|
6807
6818
|
if (!y) continue;
|
|
6808
6819
|
const L = s.latLngToContainerPoint(y.ponto), x = Math.hypot(L.x - r.x, L.y - r.y);
|
|
6809
6820
|
x <= l && (l = x, c = { i: d, t: y.t });
|
|
@@ -6859,7 +6870,7 @@ class ir {
|
|
|
6859
6870
|
montarHud() {
|
|
6860
6871
|
var d;
|
|
6861
6872
|
const t = this.dep.map.getContainer(), e = document.createElement("div");
|
|
6862
|
-
e.id =
|
|
6873
|
+
e.id = Ys, e.style.cssText = ia + "gap:8px;align-items:center;padding:4px 10px;border-radius:8px;background:rgba(15,23,42,.92);color:#fff;font:11px var(--ui-fonte-base,sans-serif);border:1px solid rgba(255,255,255,.2);pointer-events:auto";
|
|
6863
6874
|
const o = (h) => {
|
|
6864
6875
|
const f = document.createElement("span");
|
|
6865
6876
|
return f.dataset.campo = h, f;
|
|
@@ -6873,7 +6884,7 @@ class ir {
|
|
|
6873
6884
|
const c = o("dica");
|
|
6874
6885
|
c.style.opacity = ".7", c.textContent = i === "Circle" ? "Ctrl+Z desfaz · Enter conclui" : i === "Point" ? "Arraste para mover · Ctrl+Z desfaz · Enter conclui" : "Arraste o traçado p/ curvar · clique no nó: alças e painel · ponto do meio: novo nó · botão direito ou Delete: excluir · Shift: alça livre · Ctrl: 45°", c.title = "Alças pontilhadas ainda são retas. Shift e Ctrl valem durante o arraste de uma alça. Enter, Esc ou Concluir sai; clicar fora não sai.", c.style.fontSize = "10px";
|
|
6875
6886
|
const l = o("aviso");
|
|
6876
|
-
l.style.color = "#fbbf24", l.setAttribute("role", "status"), e.append(s, o("nos"), o("medida"), r, c, l), e.append(a("desfazer", "Desfazer", "Desfazer o último gesto (Ctrl+Z)", () => this.desfazer())), e.append(a("refazer", "Refazer", "Refazer (Ctrl+Shift+Z ou Ctrl+Y)", () => this.refazer())), (i === "LineString" || i === "Polygon") && e.append(a("excluir-no", "Excluir nó", "Exclui o nó selecionado (Delete); clique num nó para selecioná-lo", () => this.excluirSelecionado())), e.append(a("cancelar", "Cancelar", "Descartar tudo o que foi alterado nesta edição", () => this.cancelar())), e.append(a("concluir", "Concluir", "Concluir a edição (Enter ou Esc)", () => this.parar(), !0)), (i === "LineString" || i === "Polygon") && (this.painel = new
|
|
6887
|
+
l.style.color = "#fbbf24", l.setAttribute("role", "status"), e.append(s, o("nos"), o("medida"), r, c, l), e.append(a("desfazer", "Desfazer", "Desfazer o último gesto (Ctrl+Z)", () => this.desfazer())), e.append(a("refazer", "Refazer", "Refazer (Ctrl+Shift+Z ou Ctrl+Y)", () => this.refazer())), (i === "LineString" || i === "Polygon") && e.append(a("excluir-no", "Excluir nó", "Exclui o nó selecionado (Delete); clique num nó para selecioná-lo", () => this.excluirSelecionado())), e.append(a("cancelar", "Cancelar", "Descartar tudo o que foi alterado nesta edição", () => this.cancelar())), e.append(a("concluir", "Concluir", "Concluir a edição (Enter ou Esc)", () => this.parar(), !0)), (i === "LineString" || i === "Polygon") && (this.painel = new Ks({
|
|
6877
6888
|
moverNo: (h) => this.moverNoSelecionadoPara(h),
|
|
6878
6889
|
definirAlca: (h, f) => this.definirAlcaDoNoSelecionado(h, f),
|
|
6879
6890
|
definirTipo: (h) => this.definirTipoDoNoSelecionado(h),
|
|
@@ -6906,7 +6917,7 @@ class ir {
|
|
|
6906
6917
|
const e = (o = this.hud) == null ? void 0 : o.querySelector('[data-campo="aviso"]');
|
|
6907
6918
|
e && (e.textContent = t, this.avisoTimer && clearTimeout(this.avisoTimer), this.avisoTimer = setTimeout(() => {
|
|
6908
6919
|
e.textContent = "", this.avisoTimer = null;
|
|
6909
|
-
},
|
|
6920
|
+
}, or));
|
|
6910
6921
|
}
|
|
6911
6922
|
atualizarHud(t) {
|
|
6912
6923
|
if (!this.hud || !this.feicaoAtual) return;
|
|
@@ -6937,7 +6948,7 @@ class ir {
|
|
|
6937
6948
|
a && (a.setLatLng(e), this.aoArrastar(a, t, o), a.fire("dragend"));
|
|
6938
6949
|
}
|
|
6939
6950
|
}
|
|
6940
|
-
class
|
|
6951
|
+
class rr {
|
|
6941
6952
|
constructor(t) {
|
|
6942
6953
|
p(this, "editor", null);
|
|
6943
6954
|
p(this, "pararDeVigiarCamada", null);
|
|
@@ -6974,7 +6985,7 @@ class nr {
|
|
|
6974
6985
|
const s = this.p.obterMapa();
|
|
6975
6986
|
if (!s) return { ok: !1, motivo: "sem-mapa" };
|
|
6976
6987
|
this.p.desativarFerramenta(), (d = this.editor) == null || d.parar(), this.p.aplicarMargensHud(), this.p.selecionarUma({ camadaId: t, id: e }), this.p.fecharPopup();
|
|
6977
|
-
const r = this.p.obterLayerManager(), c = R.get(G), l = new
|
|
6988
|
+
const r = this.p.obterLayerManager(), c = R.get(G), l = new sr({
|
|
6978
6989
|
map: s,
|
|
6979
6990
|
snapLigado: () => this.p.snapAtivo(),
|
|
6980
6991
|
alternarSnap: () => this.p.alternarSnap(),
|
|
@@ -7034,7 +7045,7 @@ class nr {
|
|
|
7034
7045
|
(t = this.editor) == null || t.parar();
|
|
7035
7046
|
}
|
|
7036
7047
|
}
|
|
7037
|
-
class
|
|
7048
|
+
class cr {
|
|
7038
7049
|
constructor(t) {
|
|
7039
7050
|
this.p = t;
|
|
7040
7051
|
}
|
|
@@ -7069,7 +7080,7 @@ class sr {
|
|
|
7069
7080
|
return { feicao: te({ x: i.x, y: i.y }, this.candidatasEm(r, 8), (l) => o.latLngToContainerPoint(l)), coordenada: r };
|
|
7070
7081
|
}
|
|
7071
7082
|
}
|
|
7072
|
-
class
|
|
7083
|
+
class lr {
|
|
7073
7084
|
constructor(t) {
|
|
7074
7085
|
p(this, "hoverId", null);
|
|
7075
7086
|
p(this, "hoverAgendado", !1);
|
|
@@ -7114,7 +7125,7 @@ class rr {
|
|
|
7114
7125
|
this.hoverId = null;
|
|
7115
7126
|
}
|
|
7116
7127
|
}
|
|
7117
|
-
class
|
|
7128
|
+
class dr {
|
|
7118
7129
|
constructor(t) {
|
|
7119
7130
|
this.p = t;
|
|
7120
7131
|
}
|
|
@@ -7139,15 +7150,15 @@ class cr {
|
|
|
7139
7150
|
o === "adicionar" ? this.p.adicionar ? this.p.adicionar(s) : this.p.alternarVarias(s) : o === "subtrair" ? this.p.subtrair ? this.p.subtrair(s) : this.p.alternarVarias(s) : o === !0 ? this.p.alternarVarias(s) : this.p.selecionar(s);
|
|
7140
7151
|
}
|
|
7141
7152
|
}
|
|
7142
|
-
function
|
|
7153
|
+
function hr(n) {
|
|
7143
7154
|
return n.key !== "Enter" || n.defaultPrevented || n.ctrlKey || n.metaKey || n.altKey || n.shiftKey ? !1 : !vt(n) && !Jt(n);
|
|
7144
7155
|
}
|
|
7145
|
-
class
|
|
7156
|
+
class ur {
|
|
7146
7157
|
constructor(t) {
|
|
7147
7158
|
p(this, "ouvintes", new Gt());
|
|
7148
7159
|
p(this, "aoTecla", (t) => {
|
|
7149
7160
|
try {
|
|
7150
|
-
if (!
|
|
7161
|
+
if (!hr(t) || this.p.ocupado() || !this.p.atalhosValem()) return;
|
|
7151
7162
|
this.p.editarSelecionada() && t.preventDefault();
|
|
7152
7163
|
} catch (e) {
|
|
7153
7164
|
console.error("[ui-canvas-cad] falha no atalho Enter da edição", e);
|
|
@@ -7163,7 +7174,7 @@ class dr {
|
|
|
7163
7174
|
this.ouvintes.cleanup();
|
|
7164
7175
|
}
|
|
7165
7176
|
}
|
|
7166
|
-
class
|
|
7177
|
+
class pr {
|
|
7167
7178
|
constructor(t) {
|
|
7168
7179
|
p(this, "operacoes");
|
|
7169
7180
|
p(this, "selecao");
|
|
@@ -7183,22 +7194,22 @@ class hr {
|
|
|
7183
7194
|
/** Aceita a coordenada (0, 0) exata nas feições de entrada (atributo `aceitar-origem`). */
|
|
7184
7195
|
p(this, "aceitarOrigem", !1);
|
|
7185
7196
|
p(this, "opcoesPopup", { copiarParaAreaDeTransferencia: !0 });
|
|
7186
|
-
this.contexto = t, this.repositorio = new
|
|
7197
|
+
this.contexto = t, this.repositorio = new Ds({
|
|
7187
7198
|
obterLayerManager: () => this.contexto.obterLayerManager(),
|
|
7188
7199
|
opcoesNormalizacao: () => this.opcoesNormalizacao(),
|
|
7189
7200
|
aposDados: () => this.aposDados()
|
|
7190
|
-
}), this.consulta = new
|
|
7201
|
+
}), this.consulta = new cr({
|
|
7191
7202
|
obterMapa: () => this.contexto.obterMapa(),
|
|
7192
7203
|
obterLayerManager: () => this.contexto.obterLayerManager(),
|
|
7193
7204
|
desenhada: (e) => this.desenhada(e)
|
|
7194
|
-
}), this.ponteiro = new
|
|
7205
|
+
}), this.ponteiro = new lr({
|
|
7195
7206
|
emitir: (e, o, a) => this.contexto.emitir(e, o, a),
|
|
7196
7207
|
feicaoSob: (e, o) => this.consulta.feicaoSob(e, o),
|
|
7197
7208
|
interacaoAtiva: () => this.ferramentas.ativo || this.edicao.editando,
|
|
7198
7209
|
popupNoDuploClique: () => this.modoPopups() !== "desligado",
|
|
7199
7210
|
botaoDireitoDaFerramenta: () => this.ferramentas.ativo ? (this.ferramentas.botaoDireito(), !0) : !1,
|
|
7200
7211
|
abrirPopup: (e) => this.popup.abrir(e)
|
|
7201
|
-
}), this.regiao = new
|
|
7212
|
+
}), this.regiao = new dr({
|
|
7202
7213
|
obterMapa: () => this.contexto.obterMapa(),
|
|
7203
7214
|
obterLayerManager: () => this.contexto.obterLayerManager(),
|
|
7204
7215
|
lista: (e) => this.lista(e),
|
|
@@ -7208,7 +7219,7 @@ class hr {
|
|
|
7208
7219
|
adicionar: (e) => this.selecao.adicionar(e),
|
|
7209
7220
|
subtrair: (e) => this.selecao.subtrair(e),
|
|
7210
7221
|
alternarVarias: (e) => this.selecao.alternarVarias(e)
|
|
7211
|
-
}), this.edicao = new
|
|
7222
|
+
}), this.edicao = new rr({
|
|
7212
7223
|
obterMapa: () => this.contexto.obterMapa(),
|
|
7213
7224
|
obterLayerManager: () => this.contexto.obterLayerManager(),
|
|
7214
7225
|
emitir: (e, o) => this.contexto.emitir(e, o),
|
|
@@ -7231,17 +7242,17 @@ class hr {
|
|
|
7231
7242
|
snapAtivo: () => this.snap.ativo,
|
|
7232
7243
|
alternarSnap: () => this.snap.alternar(),
|
|
7233
7244
|
buscarSnapEm: (e, o) => this.buscarSnapEm(e, o)
|
|
7234
|
-
}), this.teclado = new
|
|
7245
|
+
}), this.teclado = new ur({
|
|
7235
7246
|
ocupado: () => this.edicao.editando || this.ferramentas.ativo,
|
|
7236
7247
|
atalhosValem: () => this.atalhosValem(),
|
|
7237
7248
|
editarSelecionada: () => this.edicao.editarSelecionada()
|
|
7238
|
-
}), this.versoes = new
|
|
7249
|
+
}), this.versoes = new ms({
|
|
7239
7250
|
obterLayerManager: () => this.contexto.obterLayerManager(),
|
|
7240
7251
|
emitir: (e, o) => this.contexto.emitir(e, o),
|
|
7241
7252
|
buscar: (e, o) => this.buscar(e, o),
|
|
7242
7253
|
lista: (e) => this.lista(e),
|
|
7243
7254
|
aposDados: () => this.aposDados()
|
|
7244
|
-
}, t.regra ?? new Ne()), this.ferramentas = new
|
|
7255
|
+
}, t.regra ?? new Ne()), this.ferramentas = new Ts({
|
|
7245
7256
|
obterMapa: () => this.contexto.obterMapa(),
|
|
7246
7257
|
obterLayerManager: () => this.contexto.obterLayerManager(),
|
|
7247
7258
|
emitir: (e, o, a) => this.contexto.emitir(e, o, a),
|
|
@@ -7260,14 +7271,14 @@ class hr {
|
|
|
7260
7271
|
dividirComLinha: (e) => this.dividirComLinha(e),
|
|
7261
7272
|
selecionarNoLaco: (e) => this.selecionarNoLaco(e),
|
|
7262
7273
|
candidatasEm: (e, o) => this.candidatasEm(e, o)
|
|
7263
|
-
}), this.camera = new
|
|
7274
|
+
}), this.camera = new gs({
|
|
7264
7275
|
obterMapa: () => this.contexto.obterMapa(),
|
|
7265
7276
|
obterLayerManager: () => this.contexto.obterLayerManager(),
|
|
7266
7277
|
buscar: (e, o) => this.buscar(e, o),
|
|
7267
7278
|
lista: (e) => this.lista(e),
|
|
7268
7279
|
desenhada: (e) => this.desenhada(e),
|
|
7269
7280
|
garantirVisivel: (e) => this.versoes.garantirVisivel(e)
|
|
7270
|
-
}), this.operacoes = new
|
|
7281
|
+
}), this.operacoes = new fs({
|
|
7271
7282
|
emitir: (e, o) => this.contexto.emitir(e, o),
|
|
7272
7283
|
obterLayerManager: () => this.contexto.obterLayerManager(),
|
|
7273
7284
|
buscar: (e, o) => this.buscar(e, o),
|
|
@@ -7280,18 +7291,18 @@ class hr {
|
|
|
7280
7291
|
estaSelecionada: (e) => this.selecao.contem(e),
|
|
7281
7292
|
divisaoAtiva: () => this.ferramentas.ferramentaAtiva === "dividir",
|
|
7282
7293
|
encerrarDesenho: () => this.ferramentas.desativarFerramenta()
|
|
7283
|
-
}), this.cursores = new
|
|
7294
|
+
}), this.cursores = new ns(() => this.contexto.obterMapa()), this.snap = new ps({
|
|
7284
7295
|
aplica: () => this.atalhosValem(),
|
|
7285
7296
|
aoMudar: (e) => {
|
|
7286
7297
|
var o, a;
|
|
7287
7298
|
this.contexto.emitir("cad-snap", e), this.edicao.atualizarSnapNoHud(), (a = (o = this.contexto).aoSnapMudar) == null || a.call(o, e.ligado);
|
|
7288
7299
|
}
|
|
7289
|
-
}), this.popup = new
|
|
7300
|
+
}), this.popup = new us({
|
|
7290
7301
|
obterMapa: () => this.contexto.obterMapa(),
|
|
7291
7302
|
obterCamada: (e) => this.contexto.obterLayerManager().getLayerDef(e),
|
|
7292
7303
|
aoAcao: (e, o) => this.tratarAcaoPopup(e, o),
|
|
7293
7304
|
liberar: (e) => this.contexto.liberarPopups ? this.contexto.liberarPopups(e) : e()
|
|
7294
|
-
}), this.selecao = new
|
|
7305
|
+
}), this.selecao = new ss({
|
|
7295
7306
|
obterFeicao: (e) => this.buscar(e.camadaId, e.id),
|
|
7296
7307
|
aplicarVisual: (e, o) => {
|
|
7297
7308
|
const a = this.contexto.obterLayerManager().getLayerInstance(e), i = R.get(G);
|
|
@@ -7428,7 +7439,7 @@ class hr {
|
|
|
7428
7439
|
}
|
|
7429
7440
|
aplicarMargensHud() {
|
|
7430
7441
|
const t = this.contexto.obterMapa();
|
|
7431
|
-
t &&
|
|
7442
|
+
t && xs(t.getContainer(), this.margensHud);
|
|
7432
7443
|
}
|
|
7433
7444
|
// ---- versões (oficial × prévia) ----
|
|
7434
7445
|
// ---- versões (oficial × prévia) ----
|
|
@@ -7657,19 +7668,19 @@ const ko = {
|
|
|
7657
7668
|
"selecao-laco": "Laço",
|
|
7658
7669
|
"conta-gotas": "Cor"
|
|
7659
7670
|
};
|
|
7660
|
-
function
|
|
7671
|
+
function fr(n) {
|
|
7661
7672
|
if (!n) return [];
|
|
7662
7673
|
const t = n.split(/[\s,]+/).map((o) => o.trim().toLowerCase()).filter(Boolean);
|
|
7663
7674
|
if (t.includes("todas")) return [...ro];
|
|
7664
|
-
const e = new Set(t.filter(
|
|
7675
|
+
const e = new Set(t.filter($o));
|
|
7665
7676
|
return ro.filter((o) => e.has(o));
|
|
7666
7677
|
}
|
|
7667
|
-
function
|
|
7678
|
+
function mr(n) {
|
|
7668
7679
|
if (!n) return !1;
|
|
7669
7680
|
const t = n.split(/[\s,]+/).map((e) => e.trim().toLowerCase());
|
|
7670
7681
|
return t.includes("todas") || t.includes("editar");
|
|
7671
7682
|
}
|
|
7672
|
-
class
|
|
7683
|
+
class gr {
|
|
7673
7684
|
constructor(t) {
|
|
7674
7685
|
p(this, "barra", null);
|
|
7675
7686
|
p(this, "editando", !1);
|
|
@@ -7711,8 +7722,8 @@ class fr {
|
|
|
7711
7722
|
(t = this.barra) == null || t.remove(), this.barra = null;
|
|
7712
7723
|
}
|
|
7713
7724
|
}
|
|
7714
|
-
const
|
|
7715
|
-
function
|
|
7725
|
+
const vr = "data-cad-estilos-externos";
|
|
7726
|
+
function br(n) {
|
|
7716
7727
|
try {
|
|
7717
7728
|
return Array.from(n.cssRules, (t) => t.cssText).join(`
|
|
7718
7729
|
`);
|
|
@@ -7720,10 +7731,10 @@ function gr(n) {
|
|
|
7720
7731
|
return "";
|
|
7721
7732
|
}
|
|
7722
7733
|
}
|
|
7723
|
-
function
|
|
7724
|
-
return typeof n == "string" ? n.trim() ? [n] : [] : Array.isArray(n) ? n.map((t) => typeof t == "string" ? t :
|
|
7734
|
+
function yr(n) {
|
|
7735
|
+
return typeof n == "string" ? n.trim() ? [n] : [] : Array.isArray(n) ? n.map((t) => typeof t == "string" ? t : br(t)).filter((t) => t.trim() !== "") : [];
|
|
7725
7736
|
}
|
|
7726
|
-
class
|
|
7737
|
+
class xr {
|
|
7727
7738
|
constructor(t) {
|
|
7728
7739
|
p(this, "textos", []);
|
|
7729
7740
|
p(this, "adotadas", []);
|
|
@@ -7735,7 +7746,7 @@ class br {
|
|
|
7735
7746
|
return this.textos;
|
|
7736
7747
|
}
|
|
7737
7748
|
definir(t) {
|
|
7738
|
-
this.textos =
|
|
7749
|
+
this.textos = yr(t), this.aplicar();
|
|
7739
7750
|
}
|
|
7740
7751
|
/** Tira as folhas do shadow root, mantendo o pedido para `aplicar()` depois. */
|
|
7741
7752
|
limpar() {
|
|
@@ -7755,7 +7766,7 @@ class br {
|
|
|
7755
7766
|
this.adotadas = [];
|
|
7756
7767
|
}
|
|
7757
7768
|
const e = document.createElement("style");
|
|
7758
|
-
e.setAttribute(
|
|
7769
|
+
e.setAttribute(vr, ""), e.textContent = this.textos.join(`
|
|
7759
7770
|
`), this.shadow.appendChild(e), this.fallback = e;
|
|
7760
7771
|
}
|
|
7761
7772
|
remover() {
|
|
@@ -7784,37 +7795,37 @@ const ca = {
|
|
|
7784
7795
|
opacidade: "opacidadeTraco",
|
|
7785
7796
|
terminacao: "terminacaoTraco",
|
|
7786
7797
|
juncao: "juncaoTraco"
|
|
7787
|
-
},
|
|
7788
|
-
function
|
|
7798
|
+
}, Pr = 100, Cr = /^\s*\d+(\.\d+)?([\s,]+\d+(\.\d+)?)*\s*$/;
|
|
7799
|
+
function Sr(n) {
|
|
7789
7800
|
return Object.prototype.hasOwnProperty.call(ca, n);
|
|
7790
7801
|
}
|
|
7791
|
-
const
|
|
7802
|
+
const Ft = (n) => {
|
|
7792
7803
|
const t = typeof n == "number" ? n : typeof n == "string" && n.trim() !== "" ? Number(n) : NaN;
|
|
7793
7804
|
return Number.isFinite(t) ? t : void 0;
|
|
7794
7805
|
};
|
|
7795
|
-
function
|
|
7806
|
+
function Lr(n, t) {
|
|
7796
7807
|
if (t != null)
|
|
7797
7808
|
switch (n) {
|
|
7798
7809
|
case "cor":
|
|
7799
7810
|
return (typeof t == "string" ? et(t, "") : "") || void 0;
|
|
7800
7811
|
case "espessura": {
|
|
7801
|
-
const e =
|
|
7802
|
-
return e !== void 0 && e >= 0 ? Math.min(
|
|
7812
|
+
const e = Ft(t);
|
|
7813
|
+
return e !== void 0 && e >= 0 ? Math.min(Pr, e) : void 0;
|
|
7803
7814
|
}
|
|
7804
7815
|
case "escala": {
|
|
7805
|
-
const e =
|
|
7816
|
+
const e = Ft(t);
|
|
7806
7817
|
return e !== void 0 && e > 0 ? e : void 0;
|
|
7807
7818
|
}
|
|
7808
7819
|
case "deslocamento":
|
|
7809
|
-
return
|
|
7820
|
+
return Ft(t);
|
|
7810
7821
|
case "opacidade": {
|
|
7811
|
-
const e =
|
|
7822
|
+
const e = Ft(t);
|
|
7812
7823
|
return e !== void 0 ? Math.min(1, Math.max(0, e)) : void 0;
|
|
7813
7824
|
}
|
|
7814
7825
|
case "tipo":
|
|
7815
7826
|
return Pa(t);
|
|
7816
7827
|
case "tracejado":
|
|
7817
|
-
return typeof t == "string" &&
|
|
7828
|
+
return typeof t == "string" && Cr.test(t) ? t.trim() : void 0;
|
|
7818
7829
|
case "terminacao":
|
|
7819
7830
|
return xa(t) ? t : void 0;
|
|
7820
7831
|
case "juncao":
|
|
@@ -7828,12 +7839,12 @@ function Io(n, t) {
|
|
|
7828
7839
|
if (!t || typeof t != "object") return e;
|
|
7829
7840
|
for (const o of Object.keys(Rt)) {
|
|
7830
7841
|
if (!Object.prototype.hasOwnProperty.call(t, o)) continue;
|
|
7831
|
-
const a =
|
|
7842
|
+
const a = Lr(o, t[o]);
|
|
7832
7843
|
a === void 0 ? delete e[Rt[o]] : e[Rt[o]] = a;
|
|
7833
7844
|
}
|
|
7834
7845
|
return e;
|
|
7835
7846
|
}
|
|
7836
|
-
function
|
|
7847
|
+
function Mr(n) {
|
|
7837
7848
|
const t = {};
|
|
7838
7849
|
for (const [e, o] of Object.entries(Rt)) {
|
|
7839
7850
|
const a = n[o];
|
|
@@ -7841,10 +7852,10 @@ function Cr(n) {
|
|
|
7841
7852
|
}
|
|
7842
7853
|
return t;
|
|
7843
7854
|
}
|
|
7844
|
-
function
|
|
7855
|
+
function Ar(n, t) {
|
|
7845
7856
|
return { [ca[n]]: t };
|
|
7846
7857
|
}
|
|
7847
|
-
class
|
|
7858
|
+
class zr extends Ea {
|
|
7848
7859
|
constructor() {
|
|
7849
7860
|
super();
|
|
7850
7861
|
p(this, "shadow");
|
|
@@ -7870,7 +7881,8 @@ class Mr extends Ea {
|
|
|
7870
7881
|
/** Fuso declarado (`zona-projecao`/`fuso`/propriedade); `undefined` = o HUD usa o fuso natural do cursor. */
|
|
7871
7882
|
p(this, "_zonaProjecao");
|
|
7872
7883
|
p(this, "hudCoordAgendado", !1);
|
|
7873
|
-
|
|
7884
|
+
p(this, "hudCursorFora", !0);
|
|
7885
|
+
this.shadow = this.attachShadow({ mode: "open" }), this.controller = new bn(), this.controladorTamanho = wn(this, this.controller), this.shadow.innerHTML = Dn(), this.estilosExternos = new xr(this.shadow), this.mapContainer = this.shadow.getElementById("cad-map-container"), this.layersPanel = this.shadow.getElementById("qgis-layer-panel"), this.toolbarPainel = new kn({
|
|
7874
7886
|
shadow: this.shadow,
|
|
7875
7887
|
mapContainer: this.mapContainer,
|
|
7876
7888
|
layersPanel: this.layersPanel,
|
|
@@ -7892,7 +7904,7 @@ class Mr extends Ea {
|
|
|
7892
7904
|
setLayerVisibility: (i, s) => this.setLayerVisibility(i, s)
|
|
7893
7905
|
});
|
|
7894
7906
|
const e = new Ne(), o = this.controller.context, a = this.controller.canvasInteracao.ctx;
|
|
7895
|
-
Object.assign(o, { regraVersoes: e, renderizador: () => this.renderizador, qualidade: () => this.perfilQualidade }), this.feicoes = new
|
|
7907
|
+
Object.assign(o, { regraVersoes: e, renderizador: () => this.renderizador, qualidade: () => this.perfilQualidade }), this.feicoes = new pr({
|
|
7896
7908
|
obterLayerManager: () => this.controller.layerManager,
|
|
7897
7909
|
obterMapa: () => this.controller.getMap(),
|
|
7898
7910
|
regra: e,
|
|
@@ -7902,7 +7914,7 @@ class Mr extends Ea {
|
|
|
7902
7914
|
this.barraFerramentas.marcar(i);
|
|
7903
7915
|
},
|
|
7904
7916
|
aoSnapMudar: (i) => {
|
|
7905
|
-
|
|
7917
|
+
Co(this.shadow, i);
|
|
7906
7918
|
},
|
|
7907
7919
|
aoEdicao: (i) => {
|
|
7908
7920
|
this.barraFerramentas.marcarEdicao(i);
|
|
@@ -7917,7 +7929,7 @@ class Mr extends Ea {
|
|
|
7917
7929
|
const r = this.feicoes.tratarAcaoCamada(i, s);
|
|
7918
7930
|
r && this.dispatchEvent(new CustomEvent(r, { detail: s, bubbles: !0, composed: !0 }));
|
|
7919
7931
|
}
|
|
7920
|
-
}), this.barraFerramentas = new
|
|
7932
|
+
}), this.barraFerramentas = new gr({
|
|
7921
7933
|
raiz: this.shadow.getElementById("cad-root"),
|
|
7922
7934
|
aoEscolher: (i) => {
|
|
7923
7935
|
this.feicoes.alternarFerramenta(i);
|
|
@@ -7931,7 +7943,7 @@ class Mr extends Ea {
|
|
|
7931
7943
|
edicaoAtiva: () => this.feicoes.editando,
|
|
7932
7944
|
aoLimparSelecao: () => this.feicoes.aoPedirLimpeza(),
|
|
7933
7945
|
selecionarFeicoesNaCaixa: (i, s, r) => this.feicoes.selecionarNaCaixa(i, s, r)
|
|
7934
|
-
}),
|
|
7946
|
+
}), Hn(this.shadow), Co(this.shadow, !0);
|
|
7935
7947
|
}
|
|
7936
7948
|
static get observedAttributes() {
|
|
7937
7949
|
return [
|
|
@@ -7972,34 +7984,48 @@ class Mr extends Ea {
|
|
|
7972
7984
|
var o;
|
|
7973
7985
|
const e = Kt(this.getAttribute("zona-projecao") || this.getAttribute("fuso"));
|
|
7974
7986
|
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) => {
|
|
7975
|
-
this.feicoes.aoMoverMouse(a), this.atualizarHudCoordenadas(a);
|
|
7987
|
+
this.feicoes.aoMoverMouse(a), this.hudCursorFora = !1, this.atualizarHudCoordenadas(a);
|
|
7988
|
+
}), this.hoverListeners.add(this.mapContainer, "mouseleave", () => {
|
|
7989
|
+
this.hudCursorFora = !0, this.escreverHudCoordenadas(Fn);
|
|
7976
7990
|
}), this.hoverListeners.add(this.mapContainer, "dblclick", (a) => this.feicoes.aoDuploClique(a))), this.hoverListeners.add(this, "mouseenter", () => {
|
|
7977
7991
|
this.ponteiroSobre = !0;
|
|
7978
7992
|
}), this.hoverListeners.add(this, "mouseleave", () => {
|
|
7979
7993
|
this.ponteiroSobre = !1;
|
|
7980
|
-
}), this.montarBarra(this.getAttribute("ferramentas")), this.broadcastConfig.conectar(), (o = this.desligarAnuncios) == null || o.call(this), this.desligarAnuncios =
|
|
7994
|
+
}), this.montarBarra(this.getAttribute("ferramentas")), this.broadcastConfig.conectar(), (o = this.desligarAnuncios) == null || o.call(this), this.desligarAnuncios = Kn(this, this.shadow), this.estilosExternos.aplicar(), to(this, this.layersPanel), this.initTimeout = window.setTimeout(() => {
|
|
7981
7995
|
this.initTimeout = void 0, this.inicializarAgora();
|
|
7982
7996
|
}, 0);
|
|
7983
7997
|
}
|
|
7998
|
+
escreverHudCoordenadas(e) {
|
|
7999
|
+
const o = this.shadow.getElementById("cad-coord-fuso"), a = this.shadow.getElementById("cad-coord-utm"), i = this.shadow.getElementById("cad-coord-geo");
|
|
8000
|
+
o && (o.textContent = e.fuso), a && (a.textContent = e.utm), i && (i.textContent = e.geo);
|
|
8001
|
+
}
|
|
8002
|
+
atualizarHudZoom() {
|
|
8003
|
+
var o;
|
|
8004
|
+
const e = this.shadow.getElementById("cad-coord-zoom");
|
|
8005
|
+
e && (e.textContent = $n((o = this.controller.getMap()) == null ? void 0 : o.getZoom()));
|
|
8006
|
+
}
|
|
8007
|
+
/** Zoom no HUD desde a criação do mapa e a cada `zoomend` (o `map.remove()` do destroy solta o ouvinte). */
|
|
8008
|
+
conectarHudZoom() {
|
|
8009
|
+
const e = this.controller.getMap();
|
|
8010
|
+
e && (e.on("zoomend", () => this.atualizarHudZoom()), this.atualizarHudZoom());
|
|
8011
|
+
}
|
|
7984
8012
|
atualizarHudCoordenadas(e) {
|
|
7985
8013
|
if (this.hasAttribute("sem-hud-coordenadas") || this.hudCoordAgendado) return;
|
|
7986
8014
|
this.hudCoordAgendado = !0;
|
|
7987
8015
|
const { clientX: o, clientY: a } = e, i = () => {
|
|
7988
|
-
this.hudCoordAgendado = !1;
|
|
8016
|
+
if (this.hudCoordAgendado = !1, this.hudCursorFora) return;
|
|
7989
8017
|
const s = this.controller.getMap();
|
|
7990
8018
|
if (!s || !this.mapContainer) return;
|
|
7991
8019
|
const r = this.mapContainer.getBoundingClientRect(), c = b.point(o - r.left, a - r.top), l = s.containerPointToLatLng(c);
|
|
7992
8020
|
if (!l || !Number.isFinite(l.lat) || !Number.isFinite(l.lng)) return;
|
|
7993
|
-
const d =
|
|
7994
|
-
|
|
7995
|
-
const h = this.shadow.getElementById("cad-coord-fuso"), f = this.shadow.getElementById("cad-coord-utm"), g = this.shadow.getElementById("cad-coord-geo");
|
|
7996
|
-
h && (h.textContent = d.fuso), f && (f.textContent = d.utm), g && (g.textContent = d.geo);
|
|
8021
|
+
const d = On(l.lat, l.lng, this._zonaProjecao);
|
|
8022
|
+
d && this.escreverHudCoordenadas(d);
|
|
7997
8023
|
};
|
|
7998
8024
|
typeof requestAnimationFrame == "function" ? requestAnimationFrame(i) : setTimeout(i, 16);
|
|
7999
8025
|
}
|
|
8000
8026
|
montarBarra(e) {
|
|
8001
8027
|
var o;
|
|
8002
|
-
(o = this.barraFerramentas) == null || o.montar(
|
|
8028
|
+
(o = this.barraFerramentas) == null || o.montar(fr(e), mr(e));
|
|
8003
8029
|
}
|
|
8004
8030
|
/** Único canvas da página: os atalhos valem em qualquer lugar (comportamento de sempre). Com vários, só no que está sob o mouse ou com foco. */
|
|
8005
8031
|
ehUnicoCanvas() {
|
|
@@ -8058,8 +8084,8 @@ class Mr extends Ea {
|
|
|
8058
8084
|
this.aplicarQualidadeAoMapa(), (l = this.controller) == null || l.layerManager.recriarCamadasDoTipo("feicoes");
|
|
8059
8085
|
return;
|
|
8060
8086
|
}
|
|
8061
|
-
if (
|
|
8062
|
-
(d = this.feicoes) == null || d.definirEstiloDesenho(Io(this.feicoes.obterEstiloDesenho(),
|
|
8087
|
+
if (Sr(e)) {
|
|
8088
|
+
(d = this.feicoes) == null || d.definirEstiloDesenho(Io(this.feicoes.obterEstiloDesenho(), Ar(e, a)));
|
|
8063
8089
|
return;
|
|
8064
8090
|
}
|
|
8065
8091
|
if (e === "aceitar-origem") {
|
|
@@ -8070,7 +8096,7 @@ class Mr extends Ea {
|
|
|
8070
8096
|
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));
|
|
8071
8097
|
return;
|
|
8072
8098
|
}
|
|
8073
|
-
|
|
8099
|
+
Nn(
|
|
8074
8100
|
{
|
|
8075
8101
|
host: this,
|
|
8076
8102
|
controller: this.controller,
|
|
@@ -8106,7 +8132,7 @@ class Mr extends Ea {
|
|
|
8106
8132
|
this.estilosExternos.definir(e);
|
|
8107
8133
|
}
|
|
8108
8134
|
initCAD() {
|
|
8109
|
-
|
|
8135
|
+
Rn({
|
|
8110
8136
|
host: this,
|
|
8111
8137
|
shadow: this.shadow,
|
|
8112
8138
|
mapContainer: this.mapContainer,
|
|
@@ -8118,7 +8144,7 @@ class Mr extends Ea {
|
|
|
8118
8144
|
invalidateSizeSafely: () => this.invalidateSizeSafely(),
|
|
8119
8145
|
tratarCliqueLivreCanvas: (e, o, a) => this.tratarCliqueLivreCanvas(e, o, a),
|
|
8120
8146
|
dispararAcaoPopup: (e, o, a) => this.dispararAcaoPopup(e, o, a)
|
|
8121
|
-
}), this.aplicarQualidadeAoMapa();
|
|
8147
|
+
}), this.aplicarQualidadeAoMapa(), this.conectarHudZoom();
|
|
8122
8148
|
}
|
|
8123
8149
|
obterContextoEventos() {
|
|
8124
8150
|
return {
|
|
@@ -8496,7 +8522,7 @@ class Mr extends Ea {
|
|
|
8496
8522
|
this.feicoes.definirEstiloDesenho(Io(this.feicoes.obterEstiloDesenho(), e));
|
|
8497
8523
|
}
|
|
8498
8524
|
obterLinhaPadrao() {
|
|
8499
|
-
return
|
|
8525
|
+
return Mr(this.feicoes.obterEstiloDesenho());
|
|
8500
8526
|
}
|
|
8501
8527
|
/**
|
|
8502
8528
|
* Ferramentas: ponto, linha, poligono, retangulo, elipse, poligono-regular, estrela, circulo, texto, caneta,
|
|
@@ -8609,8 +8635,8 @@ class Mr extends Ea {
|
|
|
8609
8635
|
return this.controller.layerManager;
|
|
8610
8636
|
}
|
|
8611
8637
|
}
|
|
8612
|
-
Ta("ui-canvas-cad",
|
|
8613
|
-
class
|
|
8638
|
+
Ta("ui-canvas-cad", zr);
|
|
8639
|
+
class jr {
|
|
8614
8640
|
constructor(t, e) {
|
|
8615
8641
|
p(this, "polylines", []);
|
|
8616
8642
|
p(this, "bancoPontosAtivo", !1);
|
|
@@ -8676,13 +8702,13 @@ class Br {
|
|
|
8676
8702
|
interactive: !1
|
|
8677
8703
|
}).addTo(this.core.map);
|
|
8678
8704
|
this.polylines.push(P);
|
|
8679
|
-
const
|
|
8705
|
+
const S = b.polyline(z, {
|
|
8680
8706
|
color: i,
|
|
8681
8707
|
weight: s,
|
|
8682
8708
|
opacity: r,
|
|
8683
8709
|
pane: "perimetroPane"
|
|
8684
8710
|
}).addTo(this.core.map);
|
|
8685
|
-
this.polylines.push(
|
|
8711
|
+
this.polylines.push(S);
|
|
8686
8712
|
}
|
|
8687
8713
|
const g = f[f.length - 1], m = f[0], u = [[g.lat, g.lon], [m.lat, m.lon]], v = b.polyline(u, {
|
|
8688
8714
|
color: "#080d0a",
|
|
@@ -8753,7 +8779,7 @@ class Br {
|
|
|
8753
8779
|
this.core.map && this.polylines.forEach((t) => this.core.map.removeLayer(t)), this.core.bancoPontosGroup && this.core.bancoPontosGroup.clearLayers(), this.polylines = [];
|
|
8754
8780
|
}
|
|
8755
8781
|
}
|
|
8756
|
-
class
|
|
8782
|
+
class Gr {
|
|
8757
8783
|
constructor(t, e) {
|
|
8758
8784
|
p(this, "markers", []);
|
|
8759
8785
|
p(this, "vizinhosMarkers", []);
|
|
@@ -8896,7 +8922,7 @@ export {
|
|
|
8896
8922
|
Ma as AgrupadorCluster,
|
|
8897
8923
|
bn as CADMapaController,
|
|
8898
8924
|
fi as CAD_INTERACTIVE_PANES,
|
|
8899
|
-
|
|
8925
|
+
fc as CELULA_CLUSTER_PX,
|
|
8900
8926
|
zo as CLASSE_FERRAMENTA_ATIVA,
|
|
8901
8927
|
Oe as COR_PADRAO,
|
|
8902
8928
|
Bt as COR_SELECAO,
|
|
@@ -8905,117 +8931,117 @@ export {
|
|
|
8905
8931
|
Xt as CanvasFormas,
|
|
8906
8932
|
Mi as CanvasInteracao,
|
|
8907
8933
|
on as CanvasLayerManager,
|
|
8908
|
-
|
|
8909
|
-
|
|
8934
|
+
Es as ControleDesenho,
|
|
8935
|
+
ns as CursoresRemotos,
|
|
8910
8936
|
co as DEFAULT_CONFIG,
|
|
8911
8937
|
xo as DEFAULT_LAYERS,
|
|
8912
|
-
|
|
8938
|
+
mc as DadosCamada,
|
|
8913
8939
|
tn as DespachanteFeicoes,
|
|
8914
|
-
|
|
8940
|
+
sr as EditorVertices,
|
|
8915
8941
|
ro as FERRAMENTAS,
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8942
|
+
bs as FOLGA_HUD,
|
|
8943
|
+
ys as FRACAO_LARGURA_HUD,
|
|
8944
|
+
us as FeicaoPopup,
|
|
8919
8945
|
Qi as FeicoesCanvasRenderer,
|
|
8920
8946
|
Vi as FeicoesLayerRenderer,
|
|
8921
8947
|
bn as GerenciGeoMapaController,
|
|
8922
8948
|
Ti as GridLayerRenderer,
|
|
8923
8949
|
we as ICONES_FEICAO,
|
|
8924
|
-
|
|
8925
|
-
|
|
8950
|
+
Ps as ID_HUD_DESENHO,
|
|
8951
|
+
Ys as ID_HUD_EDICAO,
|
|
8926
8952
|
pa as IndiceEspacial,
|
|
8927
|
-
|
|
8953
|
+
Zr as InternadorEstilos,
|
|
8928
8954
|
Ae as LIMIAR_DENSIDADE_ALTA,
|
|
8929
8955
|
ce as LIMITE_CULLING,
|
|
8930
|
-
|
|
8931
|
-
|
|
8956
|
+
gc as LIMITE_MARCA_PX,
|
|
8957
|
+
vc as LIMITE_MIUDA_PX,
|
|
8932
8958
|
R as LayerRendererFactory,
|
|
8933
|
-
|
|
8959
|
+
vs as MARGEM_HUD_PADRAO,
|
|
8934
8960
|
Ua as MAX_NOS_COM_ALCA_LATENTE,
|
|
8935
|
-
|
|
8936
|
-
|
|
8961
|
+
bc as MAX_PONTOS_SEM_CLUSTER,
|
|
8962
|
+
qc as MAX_VERTICES_EDICAO,
|
|
8937
8963
|
ma as MIN_VERTICES_SIMPLIFICAR,
|
|
8938
|
-
|
|
8964
|
+
Se as MapaConfigManager,
|
|
8939
8965
|
pi as MapaCore,
|
|
8940
|
-
|
|
8941
|
-
|
|
8966
|
+
jr as MapaLinhas,
|
|
8967
|
+
Gr as MapaMarcadores,
|
|
8942
8968
|
Aa as MotorFormas,
|
|
8943
|
-
|
|
8969
|
+
yc as OPACIDADE_MARCA,
|
|
8944
8970
|
ve as PROPRIEDADES_HUD,
|
|
8945
8971
|
_o as PintorCanvas2D,
|
|
8946
|
-
|
|
8947
|
-
|
|
8972
|
+
Xc as RAIO_MINIMO_CIRCULO_M,
|
|
8973
|
+
Fc as RAIO_MINIMO_EDICAO_CIRCULO_M,
|
|
8948
8974
|
Ne as RegraVersoes,
|
|
8949
8975
|
Le as SIGEF_WMS_CAMADA,
|
|
8950
8976
|
Oo as SIGEF_WMS_URL,
|
|
8951
|
-
|
|
8977
|
+
ss as SelecaoFeicoes,
|
|
8952
8978
|
oe as SessaoDesenho,
|
|
8953
|
-
|
|
8979
|
+
Wr as TIPOS_LINHA,
|
|
8954
8980
|
Di as TOLERANCIA_AMOSTRA_PX,
|
|
8955
8981
|
ae as TOLERANCIA_LINHA_PX,
|
|
8956
8982
|
gi as TOLERANCIA_PONTO_PX,
|
|
8957
8983
|
Ka as TOLERANCIA_SNAP_PX,
|
|
8958
8984
|
Ai as TileLayerRenderer,
|
|
8959
|
-
|
|
8985
|
+
zr as UICanvasCAD,
|
|
8960
8986
|
wi as VectorLinesLayerRenderer,
|
|
8961
8987
|
ki as VectorPointsLayerRenderer,
|
|
8962
8988
|
Ii as VectorPolygonsLayerRenderer,
|
|
8963
8989
|
zi as WmsLayerRenderer,
|
|
8964
|
-
|
|
8965
|
-
|
|
8990
|
+
xc as ZOOM_DESMEMBRAR,
|
|
8991
|
+
Pc as ZOOM_MAX_MIUDA,
|
|
8966
8992
|
Ue as ZOOM_SEM_SIMPLIFICACAO,
|
|
8967
|
-
|
|
8968
|
-
|
|
8993
|
+
Cc as agruparMarcasPorCor,
|
|
8994
|
+
Sc as agruparPontos,
|
|
8969
8995
|
Vt as agruparPontosPorChave,
|
|
8970
|
-
|
|
8996
|
+
Ce as alcaLatente,
|
|
8971
8997
|
qo as alternarSuavidade,
|
|
8972
|
-
|
|
8973
|
-
|
|
8998
|
+
Kc as amostrarBezier,
|
|
8999
|
+
xs as aplicarMargensHud,
|
|
8974
9000
|
ct as areaDaGeometria,
|
|
8975
|
-
|
|
9001
|
+
Ic as areaMetros2,
|
|
8976
9002
|
Lt as bindPopupAcoesEvents,
|
|
8977
9003
|
Ya as buscarSnap,
|
|
8978
|
-
|
|
8979
|
-
|
|
9004
|
+
Xr as caixaDaFeicao,
|
|
9005
|
+
Kr as caixaPx,
|
|
8980
9006
|
zt as caixasSeTocam,
|
|
8981
|
-
|
|
9007
|
+
Lc as centroDe,
|
|
8982
9008
|
ee as clonarFeicao,
|
|
8983
9009
|
ao as comAlcaMovida,
|
|
8984
9010
|
dt as comNos,
|
|
8985
9011
|
Pe as comPontos,
|
|
8986
|
-
|
|
9012
|
+
$c as comVertices,
|
|
8987
9013
|
qa as comprimentoMetros,
|
|
8988
|
-
|
|
9014
|
+
Br as confrontanteParaFeicao,
|
|
8989
9015
|
Ho as consultarFeicoesNoPonto,
|
|
8990
9016
|
Ro as consultarSigefParcelas,
|
|
8991
9017
|
oo as contarItensCanvas,
|
|
8992
|
-
|
|
8993
|
-
|
|
9018
|
+
Oc as converterArea,
|
|
9019
|
+
Nc as converterComprimento,
|
|
8994
9020
|
Yt as coordenadaDeReferencia,
|
|
8995
|
-
|
|
9021
|
+
Fe as corHexSegura,
|
|
8996
9022
|
et as corSegura,
|
|
8997
9023
|
wn as criarControladorTamanho,
|
|
8998
9024
|
xe as criarLinha,
|
|
8999
|
-
|
|
9000
|
-
|
|
9025
|
+
Yr as dashTipoLinha,
|
|
9026
|
+
wc as ddParaDms,
|
|
9001
9027
|
yt as deMetros,
|
|
9002
9028
|
Ba as deslocarGeometria,
|
|
9003
9029
|
Ye as deveAgrupar,
|
|
9004
9030
|
Ke as diagonalPx,
|
|
9005
|
-
|
|
9006
|
-
|
|
9031
|
+
Qr as distSegmentoPx,
|
|
9032
|
+
Rc as distanciaEntre,
|
|
9007
9033
|
Do as distanciaMetros,
|
|
9008
9034
|
Na as dividirPoligonoComLinha,
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9035
|
+
Ec as dmsParaDd,
|
|
9036
|
+
$o as ehFerramenta,
|
|
9037
|
+
Sa as ehMarca,
|
|
9012
9038
|
eo as ehMultilinha,
|
|
9013
|
-
|
|
9039
|
+
Jr as ehTipoLinha,
|
|
9014
9040
|
st as entidadeDe,
|
|
9015
9041
|
so as entradaDaAncora,
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9042
|
+
tc as escalaDoZoom,
|
|
9043
|
+
ec as escalaLatitude,
|
|
9044
|
+
oc as escalaTipoLinhaSegura,
|
|
9019
9045
|
I as escapeHtml,
|
|
9020
9046
|
ye as estiloVetorDe,
|
|
9021
9047
|
lt as extensaoDaGeometria,
|
|
@@ -9023,13 +9049,13 @@ export {
|
|
|
9023
9049
|
ni as extrairCodigoParcelaSigef,
|
|
9024
9050
|
Ei as extrairCorPonto,
|
|
9025
9051
|
si as extrairParcelasSigef,
|
|
9026
|
-
|
|
9052
|
+
Tc as extremosDoCirculoGeografico,
|
|
9027
9053
|
Zo as fatorDensidade,
|
|
9028
9054
|
Ja as feicaoNaCaixa,
|
|
9029
9055
|
Qa as feicaoNoLaco,
|
|
9030
9056
|
te as feicaoNoPonto,
|
|
9031
|
-
|
|
9032
|
-
|
|
9057
|
+
Or as feicaoNoTopo,
|
|
9058
|
+
es as feicoesEquivalentes,
|
|
9033
9059
|
Je as formatUTM,
|
|
9034
9060
|
bt as formatarArea,
|
|
9035
9061
|
W as formatarExtensao,
|
|
@@ -9037,7 +9063,7 @@ export {
|
|
|
9037
9063
|
Ra as gerarBuffer,
|
|
9038
9064
|
Wt as getPointShapeHtml,
|
|
9039
9065
|
Za as inserirPonto,
|
|
9040
|
-
|
|
9066
|
+
Bc as inserirVertice,
|
|
9041
9067
|
ya as juncaoCanvas,
|
|
9042
9068
|
Va as juntarLinhas,
|
|
9043
9069
|
ja as juntarPoligonos,
|
|
@@ -9046,70 +9072,70 @@ export {
|
|
|
9046
9072
|
za as latLonParaUtm,
|
|
9047
9073
|
Ji as lerModoRenderizador,
|
|
9048
9074
|
_a as limitesDaGeometria,
|
|
9049
|
-
|
|
9050
|
-
|
|
9075
|
+
Dc as metrosPorGrau,
|
|
9076
|
+
ac as metrosPorPixel,
|
|
9051
9077
|
Xa as minimoVertices,
|
|
9052
9078
|
ze as modoDensidade,
|
|
9053
9079
|
ai as montarUrlConsultaSigef,
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9080
|
+
Fo as moverAlca,
|
|
9081
|
+
Vc as moverVertice,
|
|
9082
|
+
Mc as nivelDetalhe,
|
|
9057
9083
|
aa as normalizarAnel,
|
|
9058
9084
|
K as normalizarCoordenada,
|
|
9059
9085
|
me as normalizarFeicaoEntrada,
|
|
9060
|
-
|
|
9061
|
-
|
|
9086
|
+
So as normalizarLinha,
|
|
9087
|
+
Qn as normalizarPoligono,
|
|
9062
9088
|
Pa as normalizarTipoLinha,
|
|
9063
9089
|
Ha as nosDe,
|
|
9064
|
-
|
|
9090
|
+
Yc as nosDeAncoras,
|
|
9065
9091
|
U as nosOuVertices,
|
|
9066
9092
|
jt as ordenarPontosPorSequencia,
|
|
9067
9093
|
X as paraMetros,
|
|
9068
9094
|
V as parseCoordenada,
|
|
9069
|
-
|
|
9095
|
+
jc as parseDash,
|
|
9070
9096
|
Ht as partesDaLinha,
|
|
9071
|
-
|
|
9097
|
+
Ca as pintarMarcas,
|
|
9072
9098
|
Ga as planoLocal,
|
|
9073
|
-
|
|
9099
|
+
Gc as pontoDaBordaDoCirculo,
|
|
9074
9100
|
No as pontoDoClique,
|
|
9075
|
-
|
|
9101
|
+
Hc as pontoMedio,
|
|
9076
9102
|
wt as pontoMedioDoSegmento,
|
|
9077
9103
|
Oa as pontoNoPoligono,
|
|
9078
|
-
|
|
9104
|
+
Nr as pontoParaFeicao,
|
|
9079
9105
|
Q as pontosDe,
|
|
9080
|
-
|
|
9106
|
+
Vr as posicaoHud,
|
|
9081
9107
|
Mn as processarAcaoPopup,
|
|
9082
9108
|
Ln as processarCliqueLivreCanvas,
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9109
|
+
ic as projetarCentro,
|
|
9110
|
+
nc as projetarEm,
|
|
9111
|
+
Ac as projetarMercator,
|
|
9112
|
+
sc as projetarSimplificado,
|
|
9113
|
+
rc as projetarVertices,
|
|
9114
|
+
cc as raioCirculoPx,
|
|
9089
9115
|
Ze as raioPontoPx,
|
|
9090
9116
|
ji as regioesExpostas,
|
|
9091
9117
|
jo as registrarFonteHit,
|
|
9092
9118
|
Go as removerFonteHit,
|
|
9093
9119
|
Wa as removerPonto,
|
|
9094
|
-
|
|
9095
|
-
|
|
9120
|
+
Uc as removerVertice,
|
|
9121
|
+
St as renderPopupAcoesHtml,
|
|
9096
9122
|
yn as renderizarPainelCamadas,
|
|
9097
9123
|
Li as resolverCliqueCentral,
|
|
9098
|
-
|
|
9099
|
-
|
|
9124
|
+
Rr as segmentoParaFeicao,
|
|
9125
|
+
$a as segmentosDe,
|
|
9100
9126
|
io as segmentosDoEditor,
|
|
9101
|
-
|
|
9127
|
+
lc as simplificarAnel,
|
|
9102
9128
|
ga as simplificarGeometria,
|
|
9103
|
-
|
|
9104
|
-
|
|
9129
|
+
dc as simplificarLinha,
|
|
9130
|
+
hc as simplificarPx,
|
|
9105
9131
|
pt as statusDe,
|
|
9106
9132
|
xa as terminacaoCanvas,
|
|
9107
9133
|
Da as textoRotulo,
|
|
9108
|
-
|
|
9134
|
+
uc as toleranciaPorZoom,
|
|
9109
9135
|
An as tratarCliqueMarcador,
|
|
9110
9136
|
zn as tratarCliqueSegmento,
|
|
9111
9137
|
ii as urlProxySigef,
|
|
9112
9138
|
no as verificarEditavel,
|
|
9113
9139
|
fa as vertices,
|
|
9114
|
-
|
|
9140
|
+
Zc as verticesDe
|
|
9115
9141
|
};
|