@thibezer/ui-components-kit 2.30.0 → 2.31.2

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/camadas.cjs +1 -1
  3. package/dist/camadas.js +1 -1
  4. package/dist/canvas.cjs +67 -67
  5. package/dist/canvas.js +1788 -1381
  6. package/dist/components/ui-seletor-mapa-base/ui-seletor-mapa-base.d.ts +6 -0
  7. package/dist/custom-elements.json +29797 -29723
  8. package/dist/feature_caixa-DAyED81R.cjs +1 -0
  9. package/dist/feature_caixa-zoUAn0qg.js +877 -0
  10. package/dist/{feature_desenho-eq3MIZR9.cjs → feature_desenho-CESNXi8g.cjs} +1 -1
  11. package/dist/{feature_desenho-Cq3H27as.js → feature_desenho-fQfbVPvn.js} +2 -2
  12. package/dist/feature_metricas-CnSFE0at.cjs +1 -0
  13. package/dist/feature_metricas-hUren6kK.js +135 -0
  14. package/dist/geometria-px-C4xatxmY.cjs +1 -0
  15. package/dist/{geometria-px-BxTQKrZN.js → geometria-px-wXudjSxA.js} +224 -206
  16. package/dist/gerencigeo-canvas/motor/motor-formas.d.ts +37 -1
  17. package/dist/gerencigeo-canvas/motor/tipos.d.ts +8 -2
  18. package/dist/gerencigeo-canvas/renderers/agenda_fatias.d.ts +56 -0
  19. package/dist/gerencigeo-canvas/renderers/canvas_formas_leaflet.d.ts +76 -2
  20. package/dist/gerencigeo-canvas/renderers/feicoes_canvas_renderer.d.ts +20 -0
  21. package/dist/gerencigeo-canvas/renderers/renderizador_formas.d.ts +21 -11
  22. package/dist/motor.cjs +1 -1
  23. package/dist/motor.js +445 -342
  24. package/dist/prancha-nucleo.cjs +1 -1
  25. package/dist/prancha-nucleo.js +4 -4
  26. package/dist/prancha.cjs +1 -1
  27. package/dist/prancha.js +3 -3
  28. package/dist/seletor-mapa-base.cjs +7 -7
  29. package/dist/seletor-mapa-base.js +50 -38
  30. package/package.json +1 -1
  31. package/dist/feature_caixa-DOchASgS.js +0 -828
  32. package/dist/feature_caixa-MrJEfMol.cjs +0 -1
  33. package/dist/feature_metricas-CKQGG2nz.cjs +0 -1
  34. package/dist/feature_metricas-DGfd21VR.js +0 -130
  35. package/dist/geometria-px-BlB0OczX.cjs +0 -1
package/dist/motor.js CHANGED
@@ -1,38 +1,38 @@
1
- var da = Object.defineProperty;
2
- var la = (d, a, i) => a in d ? da(d, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : d[a] = i;
3
- var g = (d, a, i) => la(d, typeof a != "symbol" ? a + "" : a, i);
4
- import { I as ua, s as S, i as j, y as ma, K as C, l as K, Z as fa, N as W, O as Y, P as ha, r as ga, d as pa, n as V, k as aa, h as G, M as va } from "./geometria-px-BxTQKrZN.js";
5
- import { C as Xa, R as ka, T as Ua, z as Ha, A as Ja, B as Qa, D as Ka, E as Wa, F as Ya, G as ai, H as ii, u as ei, o as oi, J as ti, x as si, L as ni, Q as ri, j as ci, S as di, U as li, w as ui, V as mi, v as fi } from "./geometria-px-BxTQKrZN.js";
6
- import { p as xa, t as Pa } from "./feature_metricas-DGfd21VR.js";
7
- import { b as gi, f as pi } from "./feature_metricas-DGfd21VR.js";
8
- const b = 55, La = 17, Ma = 8;
9
- function ta(d, a) {
10
- return a < La && d > Ma;
1
+ var ca = Object.defineProperty;
2
+ var da = (l, a, i) => a in l ? ca(l, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : l[a] = i;
3
+ var v = (l, a, i) => da(l, typeof a != "symbol" ? a + "" : a, i);
4
+ import { I as la, s as j, i as z, y as ua, K as O, n as b, l as Q, Z as ma, N as K, O as W, P as fa, r as ha, d as ga, k as Y, h as q, M as va } from "./geometria-px-wXudjSxA.js";
5
+ import { C as Ua, R as Xa, T as Ha, z as Ja, A as Qa, B as Ka, D as Wa, E as Ya, F as ai, G as ii, H as ei, u as oi, o as ti, J as si, x as ri, L as ni, Q as ci, j as di, S as li, U as ui, w as mi, V as fi, v as hi } from "./geometria-px-wXudjSxA.js";
6
+ import { p as pa, t as Pa } from "./feature_metricas-hUren6kK.js";
7
+ import { b as vi, f as pi } from "./feature_metricas-hUren6kK.js";
8
+ const F = 55, xa = 17, La = 8;
9
+ function oa(l, a) {
10
+ return a < xa && l > La;
11
11
  }
12
- function Da(d) {
12
+ function Ma(l) {
13
13
  let a = 0, i = 0;
14
- for (const e of d)
14
+ for (const e of l)
15
15
  a += e.coordenada[0], i += e.coordenada[1];
16
- return [a / d.length, i / d.length];
16
+ return [a / l.length, i / l.length];
17
17
  }
18
- function Va(d, a, i) {
19
- if (!ta(d.length, a)) return { clusters: [], isolados: d };
18
+ function qa(l, a, i) {
19
+ if (!oa(l.length, a)) return { clusters: [], isolados: l };
20
20
  const e = /* @__PURE__ */ new Map();
21
- for (const s of d) {
22
- const { x: n, y: l } = i(s.coordenada), r = `${a}:${Math.floor(n / b)}:${Math.floor(l / b)}`, c = e.get(r);
23
- c ? c.push(s) : e.set(r, [s]);
21
+ for (const s of l) {
22
+ const { x: r, y: d } = i(s.coordenada), n = `${a}:${Math.floor(r / F)}:${Math.floor(d / F)}`, c = e.get(n);
23
+ c ? c.push(s) : e.set(n, [s]);
24
24
  }
25
25
  const o = [], t = [];
26
- for (const [s, n] of e)
27
- n.length === 1 ? t.push(n[0]) : o.push({ chave: s, coordenada: Da(n), membros: n });
26
+ for (const [s, r] of e)
27
+ r.length === 1 ? t.push(r[0]) : o.push({ chave: s, coordenada: Ma(r), membros: r });
28
28
  return { clusters: o, isolados: t };
29
29
  }
30
- class Aa {
30
+ class Da {
31
31
  constructor(a, i) {
32
- g(this, "celulas", /* @__PURE__ */ new Map());
33
- g(this, "celulaDe", /* @__PURE__ */ new Map());
32
+ v(this, "celulas", /* @__PURE__ */ new Map());
33
+ v(this, "celulaDe", /* @__PURE__ */ new Map());
34
34
  /** Chaves das células com 2 ou mais pontos (as únicas que viram cluster). */
35
- g(this, "multiplas", /* @__PURE__ */ new Set());
35
+ v(this, "multiplas", /* @__PURE__ */ new Set());
36
36
  this.zoom = a, this.projetar = i;
37
37
  }
38
38
  /** Pontos agrupáveis na grade. */
@@ -62,7 +62,7 @@ class Aa {
62
62
  /** Insere (ou move) o ponto; devolve a chave da célula nova. */
63
63
  inserir(a) {
64
64
  this.remover(a.id);
65
- const { x: i, y: e } = this.projetar(a.coordenada), o = `${this.zoom}:${Math.floor(i / b)}:${Math.floor(e / b)}`;
65
+ const { x: i, y: e } = this.projetar(a.coordenada), o = `${this.zoom}:${Math.floor(i / F)}:${Math.floor(e / F)}`;
66
66
  let t = this.celulas.get(o);
67
67
  return t || (t = { membros: /* @__PURE__ */ new Map(), somaLat: 0, somaLon: 0 }, this.celulas.set(o, t)), t.membros.set(a.id, a), t.somaLat += a.coordenada[0], t.somaLon += a.coordenada[1], t.membros.size >= 2 && this.multiplas.add(o), this.celulaDe.set(a.id, o), o;
68
68
  }
@@ -75,83 +75,83 @@ class Aa {
75
75
  return e && o && (e.membros.delete(a), e.somaLat -= o.coordenada[0], e.somaLon -= o.coordenada[1], e.membros.size < 2 && this.multiplas.delete(i), e.membros.size === 0 && this.celulas.delete(i)), i;
76
76
  }
77
77
  }
78
- const $ = 3, sa = 0.75, ia = 85.0511287798, Oa = 256;
79
- function q(d, a, i) {
80
- const e = Oa * 2 ** i, o = Math.max(-ia, Math.min(ia, d)), t = Math.sin(o * Math.PI / 180);
78
+ const G = 3, ta = 0.75, aa = 85.0511287798, Aa = 256;
79
+ function B(l, a, i) {
80
+ const e = Aa * 2 ** i, o = Math.max(-aa, Math.min(aa, l)), t = Math.sin(o * Math.PI / 180);
81
81
  return {
82
82
  x: (a + 180) / 360 * e,
83
83
  y: (0.5 - Math.log((1 + t) / (1 - t)) / (4 * Math.PI)) * e
84
84
  };
85
85
  }
86
- const Ca = (d) => Number.isFinite(d.minLat) && Number.isFinite(d.maxLat) && Number.isFinite(d.minLon) && Number.isFinite(d.maxLon) && d.minLat <= d.maxLat && d.minLon <= d.maxLon;
87
- function Z(d, a) {
88
- if (!Number.isFinite(a) || a < 0 || !Ca(d)) return NaN;
89
- const i = q(d.minLat, d.minLon, a), e = q(d.maxLat, d.maxLon, a);
86
+ const Ca = (l) => Number.isFinite(l.minLat) && Number.isFinite(l.maxLat) && Number.isFinite(l.minLon) && Number.isFinite(l.maxLon) && l.minLat <= l.maxLat && l.minLon <= l.maxLon;
87
+ function $(l, a) {
88
+ if (!Number.isFinite(a) || a < 0 || !Ca(l)) return NaN;
89
+ const i = B(l.minLat, l.minLon, a), e = B(l.maxLat, l.maxLon, a);
90
90
  return Math.hypot(e.x - i.x, e.y - i.y);
91
91
  }
92
- function Ba(d, a, i = $) {
93
- if (!d) return !1;
94
- const e = Z(d, a);
92
+ function Ba(l, a, i = G) {
93
+ if (!l) return !1;
94
+ const e = $(l, a);
95
95
  return Number.isFinite(e) && e < i;
96
96
  }
97
- const na = 6, za = 16;
98
- function Ra(d, a, i = $, e = na) {
99
- if (!d) return "forma";
100
- const o = Z(d, a);
101
- return Number.isFinite(o) ? o < i ? "marca" : a < za && o < e ? "miuda" : "forma" : "forma";
97
+ const sa = 6, Oa = 16;
98
+ function Ea(l, a, i = G, e = sa) {
99
+ if (!l) return "forma";
100
+ const o = $(l, a);
101
+ return Number.isFinite(o) ? o < i ? "marca" : a < Oa && o < e ? "miuda" : "forma" : "forma";
102
102
  }
103
- function Sa(d) {
104
- return Number.isFinite(d) && d < 1.5 ? 1 : 2;
103
+ function Ra(l) {
104
+ return Number.isFinite(l) && l < 1.5 ? 1 : 2;
105
105
  }
106
- function ja(d) {
106
+ function ja(l) {
107
107
  const a = /* @__PURE__ */ new Map();
108
- for (const i of d) {
108
+ for (const i of l) {
109
109
  const e = a.get(i.cor);
110
110
  e ? e.push(i) : a.set(i.cor, [i]);
111
111
  }
112
112
  return a;
113
113
  }
114
- const Ea = "#38bdf8";
115
- function Ga(d, a, i, e, o, t, s) {
116
- let n = 0;
117
- const l = ja(a);
118
- for (const [r, c] of l) {
114
+ const za = "#38bdf8";
115
+ function Ga(l, a, i, e, o, t, s) {
116
+ let r = 0;
117
+ const d = ja(a);
118
+ for (const [n, c] of d) {
119
119
  let u = !1;
120
120
  for (const m of c) {
121
- const p = q(m.lat, m.lon, i), L = p.x - e, v = p.y - o;
122
- L >= -2 && v >= -2 && L <= t + 2 && v <= s + 2 && (u || (d.fillStyle = r || Ea, d.globalAlpha = sa, u = !0), d.fillRect(Math.round(L - m.lado / 2), Math.round(v - m.lado / 2), m.lado, m.lado), n++);
121
+ const g = B(m.lat, m.lon, i), p = g.x - e, P = g.y - o;
122
+ p >= -2 && P >= -2 && p <= t + 2 && P <= s + 2 && (u || (l.fillStyle = n || za, l.globalAlpha = ta, u = !0), l.fillRect(Math.round(p - m.lado / 2), Math.round(P - m.lado / 2), m.lado, m.lado), r++);
123
123
  }
124
124
  }
125
- return n;
125
+ return r;
126
126
  }
127
- const ea = 0.3, oa = (d) => !!d && typeof d.id == "string" && !!d.geometria && typeof d.geometria.tipo == "string";
128
- class wa {
127
+ const ia = 0.3, ea = (l) => !!l && typeof l.id == "string" && !!l.geometria && typeof l.geometria.tipo == "string";
128
+ class Sa {
129
129
  constructor() {
130
- g(this, "loja", /* @__PURE__ */ new Map());
131
- g(this, "indice", new ua());
130
+ v(this, "loja", /* @__PURE__ */ new Map());
131
+ v(this, "indice", new la());
132
132
  /** Muda a cada alteração dos dados (invalida cache de geometria por feição). */
133
- g(this, "revisao", 0);
133
+ v(this, "revisao", 0);
134
134
  /** Muda quando o agrupamento e a contagem de pontos precisam ser refeitos do zero. */
135
- g(this, "revisaoBase", 0);
136
- g(this, "listaSincronizada", null);
135
+ v(this, "revisaoBase", 0);
136
+ v(this, "listaSincronizada", null);
137
137
  /** Entidades com geometria oficial, e quantas oficiais cada uma tem. */
138
- g(this, "oficiais", /* @__PURE__ */ new Set());
139
- g(this, "contOficiais", /* @__PURE__ */ new Map());
138
+ v(this, "oficiais", /* @__PURE__ */ new Set());
139
+ v(this, "contOficiais", /* @__PURE__ */ new Map());
140
140
  /** Entidade -> quantas prévias (entidade com oficial E prévia forma um par: sempre em detalhe completo). */
141
- g(this, "contPrevias", /* @__PURE__ */ new Map());
142
- g(this, "nPrevias", 0);
143
- g(this, "selecionadas", /* @__PURE__ */ new Set());
144
- g(this, "regra", null);
141
+ v(this, "contPrevias", /* @__PURE__ */ new Map());
142
+ v(this, "nPrevias", 0);
143
+ v(this, "selecionadas", /* @__PURE__ */ new Set());
144
+ v(this, "regra", null);
145
145
  /** Revisão por feição (id → número crescente): chave do cache de geometria projetada. */
146
- g(this, "revisaoDe", /* @__PURE__ */ new Map());
147
- g(this, "contador", 0);
146
+ v(this, "revisaoDe", /* @__PURE__ */ new Map());
147
+ v(this, "contador", 0);
148
148
  }
149
149
  revisaoDaFeicao(a) {
150
150
  return this.revisaoDe.get(a) ?? 0;
151
151
  }
152
152
  /** Aparece segundo a regra (não oculta e visível por versão)? */
153
153
  desenhavel(a) {
154
- return a.oculta ? !1 : !this.regra || this.regra(a, this.oficiais);
154
+ return a.oculta ? !1 : !this.regra || this.regra.soPrevias === !0 && this.nPrevias === 0 && this.loja.get(a.id) === a ? !0 : this.regra(a, this.oficiais);
155
155
  }
156
156
  /** Visível pela regra de versões (ignora `oculta`: o hit-test e a seleção seguem regras próprias). */
157
157
  visivelPorVersao(a) {
@@ -165,45 +165,45 @@ class wa {
165
165
  * as versões de todas (~20 ms por camada).
166
166
  */
167
167
  sincronizar(a) {
168
- const i = a.filter((r) => oa(r) && !r.excluida), e = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
168
+ const i = a.filter((n) => ea(n) && !n.excluida), e = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set();
169
169
  let t = 0;
170
- for (const r of i)
171
- o.has(r.id) || (o.add(r.id), this.loja.has(r.id) || t++), this.loja.get(r.id) !== r && e.add(r.id);
172
- const n = this.loja.size - (o.size - t) > 0 ? [...this.loja.keys()].filter((r) => !o.has(r)) : [];
173
- if (this.loja.size > 0 && this.listaSincronizada !== null && (e.size > 0 || n.length > 0) && e.size + n.length <= i.length * ea) {
174
- const r = /* @__PURE__ */ new Map();
175
- for (const m of e) r.set(m, this.loja.get(m));
176
- for (const m of n) r.set(m, this.loja.get(m));
177
- const c = { base: this.listaSincronizada, mudadas: i.filter((m) => e.has(m.id)), removidas: n }, u = this.aplicarDelta(a, c);
178
- if (u) return { ...u, incremental: !0, antigas: r };
170
+ for (const n of i)
171
+ o.has(n.id) || (o.add(n.id), this.loja.has(n.id) || t++), this.loja.get(n.id) !== n && e.add(n.id);
172
+ const r = this.loja.size - (o.size - t) > 0 ? [...this.loja.keys()].filter((n) => !o.has(n)) : [];
173
+ if (this.loja.size > 0 && this.listaSincronizada !== null && (e.size > 0 || r.length > 0) && e.size + r.length <= i.length * ia) {
174
+ const n = /* @__PURE__ */ new Map();
175
+ for (const m of e) n.set(m, this.loja.get(m));
176
+ for (const m of r) n.set(m, this.loja.get(m));
177
+ const c = { base: this.listaSincronizada, mudadas: i.filter((m) => e.has(m.id)), removidas: r }, u = this.aplicarDelta(a, c);
178
+ if (u) return { ...u, incremental: !0, antigas: n };
179
179
  }
180
- if (e.size > 0 || n.length > 0) {
181
- if (this.revisao++, this.revisaoBase++, this.loja.size === 0 || e.size + n.length > i.length * ea)
180
+ if (e.size > 0 || r.length > 0) {
181
+ if (this.revisao++, this.revisaoBase++, this.loja.size === 0 || e.size + r.length > i.length * ia)
182
182
  this.indice.construir(i);
183
183
  else {
184
- for (const r of i) e.has(r.id) && this.indice.atualizar(r);
185
- for (const r of n) this.indice.remover(r);
184
+ for (const n of i) e.has(n.id) && this.indice.atualizar(n);
185
+ for (const n of r) this.indice.remover(n);
186
186
  }
187
187
  this.loja.clear();
188
- for (const r of i) this.loja.set(r.id, r);
189
- for (const r of n) this.revisaoDe.delete(r);
190
- for (const r of e) this.revisaoDe.set(r, ++this.contador);
188
+ for (const n of i) this.loja.set(n.id, n);
189
+ for (const n of r) this.revisaoDe.delete(n);
190
+ for (const n of e) this.revisaoDe.set(n, ++this.contador);
191
191
  this.recontarOficiais();
192
192
  }
193
193
  this.listaSincronizada = a;
194
- for (const r of [...this.selecionadas]) o.has(r) || this.selecionadas.delete(r);
195
- return { mudadas: [...e], removidas: n, oficiaisMudou: !1 };
194
+ for (const n of [...this.selecionadas]) o.has(n) || this.selecionadas.delete(n);
195
+ return { mudadas: [...e], removidas: r, oficiaisMudou: !1 };
196
196
  }
197
197
  recontarOficiais() {
198
198
  this.contOficiais = /* @__PURE__ */ new Map(), this.contPrevias = /* @__PURE__ */ new Map(), this.nPrevias = 0;
199
199
  for (const a of this.loja.values()) {
200
- if (S(a) !== "oficial") {
200
+ if (j(a) !== "oficial") {
201
201
  this.nPrevias++;
202
- const e = j(a);
202
+ const e = z(a);
203
203
  this.contPrevias.set(e, (this.contPrevias.get(e) ?? 0) + 1);
204
204
  continue;
205
205
  }
206
- const i = j(a);
206
+ const i = z(a);
207
207
  this.contOficiais.set(i, (this.contOficiais.get(i) ?? 0) + 1);
208
208
  }
209
209
  this.oficiais = new Set(this.contOficiais.keys());
@@ -212,50 +212,50 @@ class wa {
212
212
  aplicarDelta(a, i) {
213
213
  if (!i || i.base !== this.listaSincronizada) return null;
214
214
  const e = /* @__PURE__ */ new Map(), o = (c, u) => {
215
- if (!c || c.excluida || S(c) !== "oficial") return;
216
- const m = j(c);
215
+ if (!c || c.excluida || j(c) !== "oficial") return;
216
+ const m = z(c);
217
217
  e.has(m) || e.set(m, this.oficiais.has(m));
218
- const p = (this.contOficiais.get(m) ?? 0) + u;
219
- p <= 0 ? (this.contOficiais.delete(m), this.oficiais.delete(m)) : (this.contOficiais.set(m, p), this.oficiais.add(m));
218
+ const g = (this.contOficiais.get(m) ?? 0) + u;
219
+ g <= 0 ? (this.contOficiais.delete(m), this.oficiais.delete(m)) : (this.contOficiais.set(m, g), this.oficiais.add(m));
220
220
  }, t = (c, u) => {
221
- const m = j(c), p = (this.contPrevias.get(m) ?? 0) + u;
222
- p <= 0 ? this.contPrevias.delete(m) : this.contPrevias.set(m, p);
223
- }, s = [], n = [], l = (c) => {
221
+ const m = z(c), g = (this.contPrevias.get(m) ?? 0) + u;
222
+ g <= 0 ? this.contPrevias.delete(m) : this.contPrevias.set(m, g);
223
+ }, s = [], r = [], d = (c) => {
224
224
  const u = this.loja.get(c);
225
- u && (S(u) === "previa" && (this.nPrevias--, t(u, -1)), o(u, -1), this.loja.delete(c), this.indice.remover(c), this.selecionadas.delete(c), this.revisaoDe.delete(c), n.push(c));
225
+ u && (j(u) === "previa" && (this.nPrevias--, t(u, -1)), o(u, -1), this.loja.delete(c), this.indice.remover(c), this.selecionadas.delete(c), this.revisaoDe.delete(c), r.push(c));
226
226
  };
227
- for (const c of i.removidas ?? []) l(c);
227
+ for (const c of i.removidas ?? []) d(c);
228
228
  for (const c of i.mudadas ?? []) {
229
- if (!oa(c)) continue;
229
+ if (!ea(c)) continue;
230
230
  if (c.excluida) {
231
- l(c.id);
231
+ d(c.id);
232
232
  continue;
233
233
  }
234
234
  const u = this.loja.get(c.id);
235
- S(c) === "previa" && (this.nPrevias++, t(c, 1)), u && (S(u) === "previa" && (this.nPrevias--, t(u, -1)), o(u, -1)), this.loja.set(c.id, c), this.indice.atualizar(c), o(c, 1), this.revisaoDe.set(c.id, ++this.contador), s.push(c.id);
235
+ j(c) === "previa" && (this.nPrevias++, t(c, 1)), u && (j(u) === "previa" && (this.nPrevias--, t(u, -1)), o(u, -1)), this.loja.set(c.id, c), this.indice.atualizar(c), o(c, 1), this.revisaoDe.set(c.id, ++this.contador), s.push(c.id);
236
236
  }
237
- let r = !1;
237
+ let n = !1;
238
238
  if (this.nPrevias > 0)
239
- for (const [c, u] of e) u !== this.oficiais.has(c) && (r = !0);
240
- return this.listaSincronizada = a, this.revisao++, r && this.revisaoBase++, { mudadas: s, removidas: n, oficiaisMudou: r };
239
+ for (const [c, u] of e) u !== this.oficiais.has(c) && (n = !0);
240
+ return this.listaSincronizada = a, this.revisao++, n && this.revisaoBase++, { mudadas: s, removidas: r, oficiaisMudou: n };
241
241
  }
242
242
  }
243
- const Ia = 1.2, w = 1e-9, ba = 6, ra = 3, ya = 0.25, Fa = 3 * ra, I = {
244
- cor: G,
243
+ const ba = 1.2, w = 1e-9, wa = 6, ra = 5, ya = 0.25, Ia = 3 * ra, Fa = 64, _a = () => typeof performance < "u" && typeof performance.now == "function" ? performance.now() : Date.now(), y = {
244
+ cor: q,
245
245
  traco: !1,
246
246
  peso: 0,
247
247
  dash: void 0,
248
248
  preencher: !1,
249
- corPreenchimento: G,
249
+ corPreenchimento: q,
250
250
  opacidadePreenchimento: 0
251
- }, B = (d) => !!d && Number.isFinite(d.zoom) && d.zoom >= 0 && !!d.caixa && Number.isFinite(d.caixa.minLat) && Number.isFinite(d.caixa.maxLat) && Number.isFinite(d.caixa.minLon) && Number.isFinite(d.caixa.maxLon);
252
- class qa {
251
+ }, I = (l) => !!l && Number.isFinite(l.zoom) && l.zoom >= 0 && !!l.caixa && Number.isFinite(l.caixa.minLat) && Number.isFinite(l.caixa.maxLat) && Number.isFinite(l.caixa.minLon) && Number.isFinite(l.caixa.maxLon);
252
+ class $a {
253
253
  constructor() {
254
- g(this, "camadas", /* @__PURE__ */ new Map());
255
- g(this, "regra", null);
256
- g(this, "limiteMarcaPx", $);
257
- g(this, "limiteMiudaPx", na);
258
- g(this, "toleranciaPx", Ia);
254
+ v(this, "camadas", /* @__PURE__ */ new Map());
255
+ v(this, "regra", null);
256
+ v(this, "limiteMarcaPx", G);
257
+ v(this, "limiteMiudaPx", sa);
258
+ v(this, "toleranciaPx", ba);
259
259
  }
260
260
  /**
261
261
  * Ajusta o LOD (diagonal em px abaixo da qual a feição vira marca, e abaixo da qual é miúda) e a tolerância da
@@ -263,7 +263,7 @@ class qa {
263
263
  * caches por zoom são descartados.
264
264
  */
265
265
  definirQualidade(a) {
266
- const i = (s, n) => Number.isFinite(s) && s > 0 ? s : n, e = i(a == null ? void 0 : a.limiteMarcaPx, this.limiteMarcaPx), o = i(a == null ? void 0 : a.limiteMiudaPx, this.limiteMiudaPx), t = i(a == null ? void 0 : a.toleranciaPx, this.toleranciaPx);
266
+ const i = (s, r) => Number.isFinite(s) && s > 0 ? s : r, e = i(a == null ? void 0 : a.limiteMarcaPx, this.limiteMarcaPx), o = i(a == null ? void 0 : a.limiteMiudaPx, this.limiteMiudaPx), t = i(a == null ? void 0 : a.toleranciaPx, this.toleranciaPx);
267
267
  if (!(e === this.limiteMarcaPx && o === this.limiteMiudaPx && t === this.toleranciaPx)) {
268
268
  this.limiteMarcaPx = e, this.limiteMiudaPx = o, this.toleranciaPx = t;
269
269
  for (const s of this.camadas.values())
@@ -278,7 +278,7 @@ class qa {
278
278
  if (!i) {
279
279
  i = {
280
280
  def: a,
281
- dados: new wa(),
281
+ dados: new Sa(),
282
282
  zoomCache: -1,
283
283
  zooms: /* @__PURE__ */ new Map(),
284
284
  candidatasDom: [],
@@ -296,7 +296,7 @@ class qa {
296
296
  revEstilo: 0,
297
297
  revLista: 0,
298
298
  listasGuardadas: /* @__PURE__ */ new Map(),
299
- internador: new ma(),
299
+ internador: new ua(),
300
300
  ultima: { total: 0, desenhadas: 0, marcasLOD: 0, miudas: 0, clusters: 0, marcadoresDom: 0, avaliacoesLOD: 0 }
301
301
  }, i.dados.regra = this.regra, this.camadas.set(a.id, i);
302
302
  return;
@@ -328,8 +328,8 @@ class qa {
328
328
  const o = Array.isArray(i) ? i : [], t = e.dados.sincronizar(o);
329
329
  if (t.incremental && t.antigas) {
330
330
  let s = e.nPontos;
331
- for (const [n, l] of t.antigas)
332
- s += (this.pontoVisivel(e, e.dados.loja.get(n)) ? 1 : 0) - (this.pontoVisivel(e, l) ? 1 : 0);
331
+ for (const [r, d] of t.antigas)
332
+ s += (this.pontoVisivel(e, e.dados.loja.get(r)) ? 1 : 0) - (this.pontoVisivel(e, d) ? 1 : 0);
333
333
  e.nPontos = Math.max(0, s), this.aposMudanca(e, t.mudadas, t.removidas, t.oficiaisMudou), t.oficiaisMudou || this.manterAgrupador(e, t.mudadas, t.removidas);
334
334
  return;
335
335
  }
@@ -344,20 +344,20 @@ class qa {
344
344
  if (!o) return;
345
345
  const t = Array.isArray(i) ? i : [], s = /* @__PURE__ */ new Map();
346
346
  if (e) {
347
- for (const r of e.removidas ?? []) s.set(r, this.pontoVisivel(o, o.dados.loja.get(r)));
348
- for (const r of e.mudadas ?? []) r && typeof r.id == "string" && s.set(r.id, this.pontoVisivel(o, o.dados.loja.get(r.id)));
347
+ for (const n of e.removidas ?? []) s.set(n, this.pontoVisivel(o, o.dados.loja.get(n)));
348
+ for (const n of e.mudadas ?? []) n && typeof n.id == "string" && s.set(n.id, this.pontoVisivel(o, o.dados.loja.get(n.id)));
349
349
  }
350
- const n = o.dados.aplicarDelta(t, e);
351
- if (!n) {
350
+ const r = o.dados.aplicarDelta(t, e);
351
+ if (!r) {
352
352
  this.definirFeicoes(a, t);
353
353
  return;
354
354
  }
355
- let l = o.nPontos;
356
- for (const [r, c] of s) {
357
- const u = this.pontoVisivel(o, o.dados.loja.get(r));
358
- l += (u ? 1 : 0) - (c ? 1 : 0);
355
+ let d = o.nPontos;
356
+ for (const [n, c] of s) {
357
+ const u = this.pontoVisivel(o, o.dados.loja.get(n));
358
+ d += (u ? 1 : 0) - (c ? 1 : 0);
359
359
  }
360
- o.nPontos = Math.max(0, l), this.aposMudanca(o, n.mudadas, n.removidas, n.oficiaisMudou), n.oficiaisMudou || this.manterAgrupador(o, n.mudadas, n.removidas);
360
+ o.nPontos = Math.max(0, d), this.aposMudanca(o, r.mudadas, r.removidas, r.oficiaisMudou), r.oficiaisMudou || this.manterAgrupador(o, r.mudadas, r.removidas);
361
361
  }
362
362
  pontoVisivel(a, i) {
363
363
  var e;
@@ -366,13 +366,13 @@ class qa {
366
366
  aposMudanca(a, i, e, o) {
367
367
  const t = [...a.zooms.values()];
368
368
  for (const s of i) {
369
- for (const n of t)
370
- n.lod.delete(s), n.geom.delete(s);
369
+ for (const r of t)
370
+ r.lod.delete(s), r.geom.delete(s);
371
371
  a.estilos.delete(s), a.previas.delete(s);
372
372
  }
373
373
  for (const s of e) {
374
- for (const n of t)
375
- n.lod.delete(s), n.geom.delete(s);
374
+ for (const r of t)
375
+ r.lod.delete(s), r.geom.delete(s);
376
376
  a.estilos.delete(s), a.previas.delete(s), a.destaques.delete(s);
377
377
  }
378
378
  o && (a.agrupador = null);
@@ -395,12 +395,12 @@ class qa {
395
395
  const e = this.camadas.get(a);
396
396
  if (!e) return { entrou: [], saiu: [] };
397
397
  const o = /* @__PURE__ */ new Set();
398
- for (const n of i) e.dados.loja.has(n) && o.add(n);
398
+ for (const r of i) e.dados.loja.has(r) && o.add(r);
399
399
  const t = [], s = [];
400
- for (const n of o) e.dados.selecionadas.has(n) || t.push(n);
401
- for (const n of e.dados.selecionadas) o.has(n) || s.push(n);
400
+ for (const r of o) e.dados.selecionadas.has(r) || t.push(r);
401
+ for (const r of e.dados.selecionadas) o.has(r) || s.push(r);
402
402
  e.dados.selecionadas.clear();
403
- for (const n of o) e.dados.selecionadas.add(n);
403
+ for (const r of o) e.dados.selecionadas.add(r);
404
404
  return (t.length > 0 || s.length > 0) && e.revLista++, { entrou: t, saiu: s };
405
405
  }
406
406
  selecionadas(a) {
@@ -463,21 +463,21 @@ class qa {
463
463
  */
464
464
  listaDesenho(a, i) {
465
465
  const e = this.origemDe(a), o = { vista: a, origem: e, camadas: [] };
466
- if (!B(a)) return o;
467
- const t = i != null && i.camadas ? new Set(i.camadas) : null, s = [...this.camadas.values()].filter((n) => n.def.visivel && (!t || t.has(n.def.id)));
468
- s.sort((n, l) => n.def.zIndex - l.def.zIndex);
469
- for (const n of s)
466
+ if (!I(a)) return o;
467
+ const t = i != null && i.camadas ? new Set(i.camadas) : null, s = [...this.camadas.values()].filter((r) => r.def.visivel && (!t || t.has(r.def.id)));
468
+ s.sort((r, d) => r.def.zIndex - d.def.zIndex);
469
+ for (const r of s)
470
470
  try {
471
- o.camadas.push(this.listarCamada(n, a, (i == null ? void 0 : i.parte) ?? "tudo"));
471
+ o.camadas.push(this.listarCamada(r, a, (i == null ? void 0 : i.parte) ?? "tudo"));
472
472
  } catch {
473
- o.camadas.push(this.camadaVazia(n));
473
+ o.camadas.push(this.camadaVazia(r));
474
474
  }
475
475
  return o;
476
476
  }
477
477
  origemDe(a) {
478
478
  if (a != null && a.origemPx && Number.isFinite(a.origemPx.x) && Number.isFinite(a.origemPx.y)) return a.origemPx;
479
- if (!B(a)) return { x: 0, y: 0 };
480
- const i = C(a.caixa.maxLat, a.caixa.minLon, a.zoom);
479
+ if (!I(a)) return { x: 0, y: 0 };
480
+ const i = O(a.caixa.maxLat, a.caixa.minLon, a.zoom);
481
481
  return { x: i[0], y: i[1] };
482
482
  }
483
483
  camadaVazia(a) {
@@ -489,26 +489,120 @@ class qa {
489
489
  estatisticas: { total: a.dados.loja.size, desenhadas: 0, marcasLOD: 0, miudas: 0, clusters: 0, marcadoresDom: 0, avaliacoesLOD: a.avaliacoesLOD }
490
490
  };
491
491
  }
492
- /** Torna atual o cache do zoom (reaproveitando o de um zoom visitado há pouco) e descarta os mais antigos. */
493
- prepararZoom(a, i) {
492
+ /**
493
+ * Torna atual o cache do zoom (reaproveitando o de um zoom visitado ou aquecido há pouco). Acima de `ZOOMS_EM_CACHE`,
494
+ * descarta o zoom mais distante de `referencia` (o zoom que fica atual; no aquecimento, o atual de verdade), nunca o
495
+ * próprio `zoom` nem `referencia`; empate, o mais antigo.
496
+ */
497
+ prepararZoom(a, i, e = i) {
494
498
  if (i === a.zoomCache) return;
495
- let e = a.zooms.get(i);
496
- for (e ? a.zooms.delete(i) : e = { geom: /* @__PURE__ */ new Map(), lod: /* @__PURE__ */ new Map(), ag: null, agRev: -1 }, a.zooms.set(i, e); a.zooms.size > ra; ) {
497
- const o = a.zooms.keys().next().value;
498
- a.zooms.delete(o);
499
- for (const t of ["tudo", "canvas", "dom"]) a.listasGuardadas.delete(`${o}|${t}`);
499
+ let o = a.zooms.get(i);
500
+ for (o ? a.zooms.delete(i) : o = { geom: /* @__PURE__ */ new Map(), lod: /* @__PURE__ */ new Map(), ag: null, agRev: -1 }, a.zooms.set(i, o); a.zooms.size > ra; ) {
501
+ let t, s = -1;
502
+ for (const r of a.zooms.keys()) {
503
+ if (r === i || r === e) continue;
504
+ const d = Math.abs(r - e);
505
+ d > s && (s = d, t = r);
506
+ }
507
+ if (t === void 0) break;
508
+ a.zooms.delete(t);
509
+ for (const r of ["tudo", "canvas", "dom"]) a.listasGuardadas.delete(`${t}|${r}`);
510
+ }
511
+ a.geom = o.geom, a.lod = o.lod, a.zoomCache = i;
512
+ }
513
+ /**
514
+ * Roda `fn` com os caches de `zoom` no lugar dos atuais e devolve tudo como estava (o zoom atual, os caches dele e o
515
+ * agrupador que o hit-test usa). O motor é síncrono: não há reentrada no meio.
516
+ */
517
+ comZoom(a, i, e) {
518
+ if (i === a.zoomCache) return e();
519
+ const o = { zoom: a.zoomCache, geom: a.geom, lod: a.lod, ag: a.agrupador, agRev: a.agrupadorRev };
520
+ this.prepararZoom(a, i, o.zoom >= 0 ? o.zoom : i);
521
+ try {
522
+ return e();
523
+ } finally {
524
+ a.zoomCache = o.zoom, a.geom = o.geom, a.lod = o.lod, a.agrupador = o.ag, a.agrupadorRev = o.agRev;
525
+ }
526
+ }
527
+ /**
528
+ * Aquecimento dos caches de um zoom para a vista dada, em fatias: LOD, geometria projetada e simplificada e item pronto
529
+ * de cada feição pintada no canvas (o que a lista de desenho calcularia), e o agrupador de pontos. Não troca o zoom
530
+ * atual da camada (hit-test e lista seguem no zoom de agora). Serve para:
531
+ * - o redesenho fatiado de uma vista nova (a lista, depois do aquecimento, sai em poucos ms);
532
+ * - aquecer em segundo plano os zooms vizinhos (±1), antes de o usuário chegar neles.
533
+ * Dados que mudam no meio recomeçam a passada (o cache por feição se confere pela revisão). Camada inexistente,
534
+ * oculta ou vista inválida: termina de imediato. `agora` é o relógio de `passo(prazo)`.
535
+ */
536
+ criarAquecimento(a, i, e = _a, o = {}) {
537
+ let t = null, s = 0, r = -1, d = -1;
538
+ const n = this;
539
+ return {
540
+ get feitas() {
541
+ return s;
542
+ },
543
+ passo(c) {
544
+ const u = n.camadas.get(a);
545
+ if (!u || !u.def.visivel || !I(i)) return !0;
546
+ const m = i.zoom;
547
+ return n.comZoom(u, m, () => {
548
+ const g = n.agrupadorAtivo(u, m), p = n.caixaComFolga(i);
549
+ if (!t) {
550
+ const x = u.listasGuardadas.get(`${m}|tudo`);
551
+ if (x && x.chave === n.versaoLista(u) && n.cobreCamada(u, p)) return !0;
552
+ }
553
+ if ((!t || r !== u.dados.revisao || d !== u.revEstilo) && (t && e() >= c || (t = u.dados.indice.consultar(p), s = 0, r = u.dados.revisao, d = u.revEstilo, e() >= c)))
554
+ return !1;
555
+ const P = t;
556
+ for (; s < P.length; ) {
557
+ const x = Math.min(P.length, s + Fa);
558
+ for (; s < x; s++) n.aquecerFeicao(u, P[s], m, g);
559
+ if (s < P.length && e() >= c) return !1;
560
+ }
561
+ if (o.lista && n.cobreCamada(u, p)) {
562
+ const x = u.ultima;
563
+ try {
564
+ n.listarCamada(u, i, "tudo");
565
+ } finally {
566
+ u.ultima = x;
567
+ }
568
+ }
569
+ return !0;
570
+ });
571
+ }
572
+ };
573
+ }
574
+ /** O que `listarCamada` faria com a feição no canvas (LOD, geometria e item em cache), sem montar a lista. */
575
+ aquecerFeicao(a, i, e, o) {
576
+ var m;
577
+ const { dados: t } = a, s = t.loja.get(i);
578
+ if (!s) return;
579
+ const r = a.geom.get(i);
580
+ if (r != null && r.item && r.item.feicao === s && r.revEstilo === a.revEstilo || !t.desenhavel(s) || a.previas.has(i)) return;
581
+ const d = s.geometria;
582
+ if (d.tipo === "Point") {
583
+ if ((m = s.estilo) != null && m.icone || o && o.emCluster(i)) return;
584
+ const g = this.geometriaProjetada(a, s, e);
585
+ g && this.itemPronto(a, s, g, "ponto");
586
+ return;
587
+ }
588
+ if (d.tipo === "Text" || b(d)) return;
589
+ const n = this.nivel(a, s, e);
590
+ if (n === "marca") {
591
+ this.itemMarca(a, s, e);
592
+ return;
500
593
  }
501
- a.geom = e.geom, a.lod = e.lod, a.zoomCache = i;
594
+ const c = n === "miuda", u = c ? this.geometriaMiuda(a, s, e) : this.geometriaProjetada(a, s, e);
595
+ u && this.itemPronto(a, s, u, d.tipo === "LineString" ? "linha" : c ? "caixa" : d.tipo === "Circle" ? "circulo" : "poligono");
502
596
  }
503
597
  estiloDe(a, i) {
504
598
  const e = a.dados.revisaoDaFeicao(i.id), o = a.estilos.get(i.id);
505
599
  if (o && o.rev === e && o.revEstilo === a.revEstilo) return o.estilo;
506
- const t = a.internador.interno(K(i, a.def.estilo, !1));
600
+ const t = a.internador.interno(Q(i, a.def.estilo, !1));
507
601
  return a.estilos.set(i.id, { rev: e, revEstilo: a.revEstilo, estilo: t }), t;
508
602
  }
509
603
  emPar(a, i) {
510
604
  if (a.dados.contPrevias.size === 0) return !1;
511
- const e = j(i);
605
+ const e = z(i);
512
606
  return a.dados.contPrevias.has(e) && a.dados.oficiais.has(e);
513
607
  }
514
608
  /**
@@ -517,13 +611,13 @@ class qa {
517
611
  * selecionada em detalhe completo por cima).
518
612
  */
519
613
  nivel(a, i, e) {
520
- var n;
614
+ var r;
521
615
  const o = i.geometria.tipo;
522
- if (o === "Point" || o === "Text" || (n = i.estilo) != null && n.mostrarRotulo || this.emPar(a, i)) return "forma";
616
+ if (o === "Point" || o === "Text" || (r = i.estilo) != null && r.mostrarRotulo || this.emPar(a, i)) return "forma";
523
617
  const t = a.lod.get(i.id);
524
618
  if (t !== void 0) return t;
525
619
  a.avaliacoesLOD++;
526
- const s = Ra(a.dados.indice.caixaDe(i.id), e, this.limiteMarcaPx, this.limiteMiudaPx);
620
+ const s = Ea(a.dados.indice.caixaDe(i.id), e, this.limiteMarcaPx, this.limiteMiudaPx);
527
621
  return a.lod.set(i.id, s), s;
528
622
  }
529
623
  /** Geometria projetada e simplificada em px, em cache por (feição, revisão, zoom). `null` se não há o que desenhar. */
@@ -544,36 +638,36 @@ class qa {
544
638
  if (i.geometria.tipo === "LineString")
545
639
  s = this.construirGeometria(a, i, e, o, !0);
546
640
  else {
547
- const n = a.dados.indice.caixaDe(i.id);
548
- if (!n) return null;
549
- const l = C(n.maxLat, n.minLon, e), r = C(n.minLat, n.maxLon, e);
550
- if (!(Number.isFinite(l[0]) && Number.isFinite(l[1]) && Number.isFinite(r[0]) && Number.isFinite(r[1]))) return null;
551
- s = { rev: o, partes: [Float64Array.of(l[0], l[1], r[0], r[1])], raioPx: 0, marca: !1 };
641
+ const r = a.dados.indice.caixaDe(i.id);
642
+ if (!r) return null;
643
+ const d = O(r.maxLat, r.minLon, e), n = O(r.minLat, r.maxLon, e);
644
+ if (!(Number.isFinite(d[0]) && Number.isFinite(d[1]) && Number.isFinite(n[0]) && Number.isFinite(n[1]))) return null;
645
+ s = { rev: o, partes: [Float64Array.of(d[0], d[1], n[0], n[1])], raioPx: 0, marca: !1 };
552
646
  }
553
647
  return s ? (s.miuda = !0, a.geom.set(i.id, s), s) : null;
554
648
  }
555
649
  /** `simplificarSempre`: linha miúda, simplificada mesmo abaixo de `MIN_VERTICES_SIMPLIFICAR`. */
556
650
  construirGeometria(a, i, e, o, t = !1) {
557
- const s = i.geometria, n = e < fa ? this.toleranciaPx : 0, l = t ? 3 : va;
651
+ const s = i.geometria, r = e < ma ? this.toleranciaPx : 0, d = t ? 3 : va;
558
652
  if (s.tipo === "Polygon") {
559
- const r = [];
653
+ const n = [];
560
654
  for (const c of s.aneis ?? [])
561
- !Array.isArray(c) || c.length < 3 || r.push(n > 0 && c.length >= l ? W(c, e, n, !0) : Y(c, e));
562
- return r.length > 0 ? { rev: o, partes: r, raioPx: 0, marca: !1 } : null;
655
+ !Array.isArray(c) || c.length < 3 || n.push(r > 0 && c.length >= d ? K(c, e, r, !0) : W(c, e));
656
+ return n.length > 0 ? { rev: o, partes: n, raioPx: 0, marca: !1 } : null;
563
657
  }
564
658
  if (s.tipo === "LineString") {
565
- const r = [];
566
- for (const c of xa(s))
567
- !Array.isArray(c) || c.length < 2 || r.push(n > 0 && c.length >= l ? W(c, e, n, !1) : Y(c, e));
568
- return r.length > 0 ? { rev: o, partes: r, raioPx: 0, marca: !1 } : null;
659
+ const n = [];
660
+ for (const c of pa(s))
661
+ !Array.isArray(c) || c.length < 2 || n.push(r > 0 && c.length >= d ? K(c, e, r, !1) : W(c, e));
662
+ return n.length > 0 ? { rev: o, partes: n, raioPx: 0, marca: !1 } : null;
569
663
  }
570
664
  if (s.tipo === "Circle") {
571
- const r = s.centro;
572
- if (!Array.isArray(r)) return null;
573
- const c = C(r[0], r[1], e);
574
- return { rev: o, partes: [c], raioPx: ha(r[0], s.raioMetros, e), marca: !1 };
665
+ const n = s.centro;
666
+ if (!Array.isArray(n)) return null;
667
+ const c = O(n[0], n[1], e);
668
+ return { rev: o, partes: [c], raioPx: fa(n[0], s.raioMetros, e), marca: !1 };
575
669
  }
576
- return s.tipo === "Point" || s.tipo === "Text" ? { rev: o, partes: [C(s.coordenada[0], s.coordenada[1], e)], raioPx: s.tipo === "Point" ? ga(i, a.def.estilo) : 0, marca: !1 } : null;
670
+ return s.tipo === "Point" || s.tipo === "Text" ? { rev: o, partes: [O(s.coordenada[0], s.coordenada[1], e)], raioPx: s.tipo === "Point" ? ha(i, a.def.estilo) : 0, marca: !1 } : null;
577
671
  }
578
672
  /** Marca de LOD: centro do envelope, lado de 1–2 px, cor do preenchimento/contorno. */
579
673
  marcaDe(a, i, e) {
@@ -581,10 +675,10 @@ class qa {
581
675
  if (t && t.rev === o && t.marca) return t;
582
676
  const s = a.dados.indice.caixaDe(i.id);
583
677
  if (!s) return null;
584
- const n = C((s.minLat + s.maxLat) / 2, (s.minLon + s.maxLon) / 2, e);
585
- if (!(Number.isFinite(n[0]) && Number.isFinite(n[1]))) return null;
586
- const l = { rev: o, partes: [n], raioPx: Sa(Z(s, e)), marca: !0 };
587
- return a.geom.set(i.id, l), l;
678
+ const r = O((s.minLat + s.maxLat) / 2, (s.minLon + s.maxLon) / 2, e);
679
+ if (!(Number.isFinite(r[0]) && Number.isFinite(r[1]))) return null;
680
+ const d = { rev: o, partes: [r], raioPx: Ra($(s, e)), marca: !0 };
681
+ return a.geom.set(i.id, d), d;
588
682
  }
589
683
  /**
590
684
  * Item da marca, em cache junto com a geometria por (feição, zoom). Com 100 mil marcas na tela, montar o item e internar
@@ -599,29 +693,29 @@ class qa {
599
693
  return o.item = s, o.revEstilo = a.revEstilo, s;
600
694
  }
601
695
  estiloMarca(a, i) {
602
- const e = i.estilo ?? {}, o = pa(e.corPreenchimento ?? e.corTraco ?? a.def.estilo.corPrimaria, G);
603
- return a.internador.interno({ cor: o, traco: !1, peso: 0, dash: void 0, preencher: !0, corPreenchimento: o, opacidadePreenchimento: sa });
696
+ const e = i.estilo ?? {}, o = ga(e.corPreenchimento ?? e.corTraco ?? a.def.estilo.corPrimaria, q);
697
+ return a.internador.interno({ cor: o, traco: !1, peso: 0, dash: void 0, preencher: !0, corPreenchimento: o, opacidadePreenchimento: ta });
604
698
  }
605
699
  agrupadorAtivo(a, i) {
606
700
  const { dados: e } = a;
607
701
  if (a.nPontosRev !== e.revisaoBase) {
608
- let n = 0;
609
- for (const l of e.loja.values()) l.geometria.tipo === "Point" && e.desenhavel(l) && n++;
610
- a.nPontos = n, a.nPontosRev = e.revisaoBase;
702
+ let r = 0;
703
+ for (const d of e.loja.values()) d.geometria.tipo === "Point" && e.desenhavel(d) && r++;
704
+ a.nPontos = r, a.nPontosRev = e.revisaoBase;
611
705
  }
612
- if (!ta(a.nPontos, i))
706
+ if (!oa(a.nPontos, i))
613
707
  return a.agrupador = null, null;
614
708
  const o = a.agrupador;
615
709
  if (o && o.zoom === i && a.agrupadorRev === e.revisaoBase) return o;
616
710
  const t = a.zooms.get(i);
617
711
  if (t != null && t.ag && t.ag.zoom === i && t.agRev === e.revisaoBase)
618
712
  return a.agrupador = t.ag, a.agrupadorRev = t.agRev, t.ag;
619
- const s = new Aa(i, (n) => {
620
- const l = C(n[0], n[1], i);
621
- return { x: l[0], y: l[1] };
713
+ const s = new Da(i, (r) => {
714
+ const d = O(r[0], r[1], i);
715
+ return { x: d[0], y: d[1] };
622
716
  });
623
- for (const n of e.loja.values())
624
- n.geometria.tipo === "Point" && e.desenhavel(n) && s.inserir({ id: n.id, coordenada: n.geometria.coordenada });
717
+ for (const r of e.loja.values())
718
+ r.geometria.tipo === "Point" && e.desenhavel(r) && s.inserir({ id: r.id, coordenada: r.geometria.coordenada });
625
719
  return a.agrupador = s, a.agrupadorRev = e.revisaoBase, t && (t.ag = s, t.agRev = e.revisaoBase), s;
626
720
  }
627
721
  /**
@@ -631,14 +725,14 @@ class qa {
631
725
  itemPronto(a, i, e, o) {
632
726
  const t = e.item;
633
727
  if (t && t.feicao === i && t.forma === o && e.revEstilo === a.revEstilo && t.selecionada === a.dados.selecionadas.has(i.id) && t.destaque === !0 === a.destaques.has(i.id)) return t;
634
- const s = o === "circulo" || o === "ponto" ? e.raioPx : 0, n = this.itemBase(a, i, o, e.partes, s, this.estiloDe(a, i));
635
- return this.emPar(a, i) || (e.item = n, e.revEstilo = a.revEstilo), n;
728
+ const s = o === "circulo" || o === "ponto" ? e.raioPx : 0, r = this.itemBase(a, i, o, e.partes, s, this.estiloDe(a, i));
729
+ return this.emPar(a, i) || (e.item = r, e.revEstilo = a.revEstilo), r;
636
730
  }
637
731
  /** Gera marcador DOM (ícone, texto, curva) ou rótulo? Pontos sem ícone e formas comuns são só do canvas. */
638
732
  candidataDom(a) {
639
733
  var e, o;
640
734
  const i = a.geometria;
641
- return (e = a.estilo) != null && e.mostrarRotulo || i.tipo === "Text" ? !0 : i.tipo === "Point" ? !!((o = a.estilo) != null && o.icone) : !!V(i);
735
+ return (e = a.estilo) != null && e.mostrarRotulo || i.tipo === "Text" ? !0 : i.tipo === "Point" ? !!((o = a.estilo) != null && o.icone) : !!b(i);
642
736
  }
643
737
  /**
644
738
  * Ids para a passada só de DOM: as candidatas cujo envelope toca a vista, quando são poucas; senão o índice. Clusters
@@ -655,7 +749,7 @@ class qa {
655
749
  const o = [];
656
750
  for (const t of a.candidatasDom) {
657
751
  const s = e.indice.caixaDe(t);
658
- s && aa(s, i) && o.push(t);
752
+ s && Y(s, i) && o.push(t);
659
753
  }
660
754
  return o;
661
755
  }
@@ -677,95 +771,104 @@ class qa {
677
771
  * (o índice é por envelope). Sem isto, o pan incremental e o quadro completo divergem na borda do canvas.
678
772
  */
679
773
  caixaComFolga(a) {
680
- const i = a.caixa, o = 360 / (256 * 2 ** a.zoom) * ba, t = o * Math.cos((i.minLat + i.maxLat) / 2 * Math.PI / 180);
774
+ const i = a.caixa, o = 360 / (256 * 2 ** a.zoom) * wa, t = o * Math.cos((i.minLat + i.maxLat) / 2 * Math.PI / 180);
681
775
  return { minLat: i.minLat - t, maxLat: i.maxLat + t, minLon: i.minLon - o, maxLon: i.maxLon + o };
682
776
  }
777
+ /** A caixa cobre o envelope da camada inteira (então a lista não depende de onde a vista está)? */
778
+ cobreCamada(a, i) {
779
+ const e = a.dados.indice.envelope();
780
+ return !!e && i.minLat <= e.minLat && i.maxLat >= e.maxLat && i.minLon <= e.minLon && i.maxLon >= e.maxLon;
781
+ }
782
+ /** O que invalida uma lista guardada: dados, conjunto, estilo, seleção, destaque, prévia e definição da camada. */
783
+ versaoLista(a) {
784
+ return `${a.dados.revisao}|${a.dados.revisaoBase}|${a.revEstilo}|${a.revLista}`;
785
+ }
683
786
  listarCamada(a, i, e) {
684
- var H;
685
- const { dados: o, def: t } = a, s = e !== "dom", n = e !== "canvas", l = i.zoom;
686
- this.prepararZoom(a, l);
687
- const r = this.caixaComFolga(i), c = this.agrupadorAtivo(a, l), u = o.indice.envelope(), m = !!u && r.minLat <= u.minLat && r.maxLat >= u.maxLat && r.minLon <= u.minLon && r.maxLon >= u.maxLon, p = `${l}|${e}`, L = `${o.revisao}|${o.revisaoBase}|${a.revEstilo}|${a.revLista}`, v = a.listasGuardadas.get(p);
688
- if (m && v && v.chave === L)
689
- return e === "tudo" && (a.ultima = v.camada.estatisticas), v.camada;
690
- const O = e === "dom" ? this.idsDom(a, r) : o.indice.consultar(r), A = [], y = [];
691
- let F = 0;
692
- const _ = [], N = [], X = [], z = [], P = { total: o.loja.size, desenhadas: 0, marcasLOD: 0, miudas: 0, clusters: 0, marcadoresDom: 0, avaliacoesLOD: 0 }, R = (h) => {
693
- var M;
694
- if (!n || !((M = h.estilo) != null && M.mostrarRotulo) || h.geometria.tipo === "Text") return;
695
- const f = Pa(h, h.estilo.campoRotulo), x = o.indice.caixaDe(h.id);
696
- !f || !x || (z.push({
787
+ var X;
788
+ const { dados: o, def: t } = a, s = e !== "dom", r = e !== "canvas", d = i.zoom;
789
+ this.prepararZoom(a, d);
790
+ const n = this.caixaComFolga(i), c = this.agrupadorAtivo(a, d), u = this.cobreCamada(a, n), m = `${d}|${e}`, g = this.versaoLista(a), p = a.listasGuardadas.get(m);
791
+ if (u && p && p.chave === g)
792
+ return e === "tudo" && (a.ultima = p.camada.estatisticas), p.camada;
793
+ const P = e === "dom" ? this.idsDom(a, n) : o.indice.consultar(n), x = [], C = [];
794
+ let _ = 0;
795
+ const N = [], T = [], Z = [], E = [], M = { total: o.loja.size, desenhadas: 0, marcasLOD: 0, miudas: 0, clusters: 0, marcadoresDom: 0, avaliacoesLOD: 0 }, R = (h) => {
796
+ var D;
797
+ if (!r || !((D = h.estilo) != null && D.mostrarRotulo) || h.geometria.tipo === "Text") return;
798
+ const f = Pa(h, h.estilo.campoRotulo), L = o.indice.caixaDe(h.id);
799
+ !f || !L || (E.push({
697
800
  camadaId: t.id,
698
801
  id: `rotulo:${h.id}`,
699
802
  forma: "rotulo",
700
803
  geometriaEmPx: [],
701
804
  raioPx: 0,
702
- estilo: I,
805
+ estilo: y,
703
806
  selecionada: !1,
704
807
  feicao: h,
705
808
  texto: f,
706
- coordenada: [(x.minLat + x.maxLat) / 2, (x.minLon + x.maxLon) / 2]
707
- }), P.marcadoresDom++);
708
- }, ca = (h) => {
709
- var M;
809
+ coordenada: [(L.minLat + L.maxLat) / 2, (L.minLon + L.maxLon) / 2]
810
+ }), M.marcadoresDom++);
811
+ }, na = (h) => {
812
+ var D;
710
813
  const f = h.geometria;
711
814
  if (f.tipo !== "Point") return;
712
- if ((M = h.estilo) != null && M.icone) {
713
- if (!n) return;
714
- z.push({ ...this.itemBase(a, h, "icone", [], 0, I), coordenada: f.coordenada }), P.marcadoresDom++;
815
+ if ((D = h.estilo) != null && D.icone) {
816
+ if (!r) return;
817
+ E.push({ ...this.itemBase(a, h, "icone", [], 0, y), coordenada: f.coordenada }), M.marcadoresDom++;
715
818
  return;
716
819
  }
717
820
  if (!s) return;
718
- const x = this.geometriaProjetada(a, h, l);
719
- x && (X.push(this.itemPronto(a, h, x, "ponto")), P.desenhadas++);
821
+ const L = this.geometriaProjetada(a, h, d);
822
+ L && (Z.push(this.itemPronto(a, h, L, "ponto")), M.desenhadas++);
720
823
  };
721
- for (const h of O) {
824
+ for (const h of P) {
722
825
  const f = o.loja.get(h);
723
826
  if (!f || !o.desenhavel(f) || a.previas.has(h)) continue;
724
- const x = f.geometria;
725
- if (x.tipo === "Point") {
726
- if (c && c.emCluster(h) && (!((H = f.estilo) != null && H.icone) || !n || !this.soltoDoCluster(a, c, h)))
827
+ const L = f.geometria;
828
+ if (L.tipo === "Point") {
829
+ if (c && c.emCluster(h) && (!((X = f.estilo) != null && X.icone) || !r || !this.soltoDoCluster(a, c, h)))
727
830
  continue;
728
- ca(f), R(f);
831
+ na(f), R(f);
729
832
  continue;
730
833
  }
731
- if (x.tipo === "Text") {
732
- if (!n) continue;
733
- z.push({ ...this.itemBase(a, f, "texto", [], 0, I), coordenada: x.coordenada }), P.marcadoresDom++;
834
+ if (L.tipo === "Text") {
835
+ if (!r) continue;
836
+ E.push({ ...this.itemBase(a, f, "texto", [], 0, y), coordenada: L.coordenada }), M.marcadoresDom++;
734
837
  continue;
735
838
  }
736
- if (V(x)) {
737
- if (!n) continue;
738
- z.push(this.itemBase(a, f, "curva", [], 0, this.estiloDe(a, f))), P.marcadoresDom++, R(f);
839
+ if (b(L)) {
840
+ if (!r) continue;
841
+ E.push(this.itemBase(a, f, "curva", [], 0, this.estiloDe(a, f))), M.marcadoresDom++, R(f);
739
842
  continue;
740
843
  }
741
844
  if (!s) {
742
845
  R(f);
743
846
  continue;
744
847
  }
745
- const M = a.geom.get(h), D = M == null ? void 0 : M.item;
746
- if (D && D.feicao === f && M.revEstilo === a.revEstilo && !this.emPar(a, f) && D.selecionada === o.selecionadas.has(h) && D.destaque === !0 === a.destaques.has(h)) {
747
- if (D.forma === "marca") {
748
- A.push(D), P.marcasLOD++;
848
+ const D = a.geom.get(h), A = D == null ? void 0 : D.item;
849
+ if (A && A.feicao === f && D.revEstilo === a.revEstilo && !this.emPar(a, f) && A.selecionada === o.selecionadas.has(h) && A.destaque === !0 === a.destaques.has(h)) {
850
+ if (A.forma === "marca") {
851
+ x.push(A), M.marcasLOD++;
749
852
  continue;
750
853
  }
751
- D.forma === "caixa" ? y.push(D) : (D.forma === "linha" ? N : _).push(D), P.desenhadas++, M.miuda && F++, R(f);
854
+ A.forma === "caixa" ? C.push(A) : (A.forma === "linha" ? T : N).push(A), M.desenhadas++, D.miuda && _++, R(f);
752
855
  continue;
753
856
  }
754
- const J = this.nivel(a, f, l);
755
- if (J === "marca") {
756
- const Q = this.itemMarca(a, f, l);
757
- Q && (A.push(Q), P.marcasLOD++);
857
+ const H = this.nivel(a, f, d);
858
+ if (H === "marca") {
859
+ const J = this.itemMarca(a, f, d);
860
+ J && (x.push(J), M.marcasLOD++);
758
861
  continue;
759
862
  }
760
- const T = J === "miuda", E = T ? this.geometriaMiuda(a, f, l) : this.geometriaProjetada(a, f, l);
761
- E && (x.tipo === "LineString" ? N.push(this.itemPronto(a, f, E, "linha")) : T ? y.push(this.itemPronto(a, f, E, "caixa")) : _.push(this.itemPronto(a, f, E, x.tipo === "Circle" ? "circulo" : "poligono")), P.desenhadas++, T && F++, R(f));
863
+ const V = H === "miuda", S = V ? this.geometriaMiuda(a, f, d) : this.geometriaProjetada(a, f, d);
864
+ S && (L.tipo === "LineString" ? T.push(this.itemPronto(a, f, S, "linha")) : V ? C.push(this.itemPronto(a, f, S, "caixa")) : N.push(this.itemPronto(a, f, S, L.tipo === "Circle" ? "circulo" : "poligono")), M.desenhadas++, V && _++, R(f));
762
865
  }
763
- c && n && this.listarClusters(a, i, c, z, P, n), P.avaliacoesLOD = a.avaliacoesLOD, P.miudas = F, e === "tudo" && (a.ultima = P);
764
- const k = A;
765
- for (const h of [y, _, N, X, z]) for (const f of h) k.push(f);
766
- const U = { camadaId: t.id, zIndex: t.zIndex, opacidade: t.opacidade, itens: k, estatisticas: P };
767
- if (a.listasGuardadas.delete(p), m)
768
- for (a.listasGuardadas.set(p, { chave: L, camada: U }); a.listasGuardadas.size > Fa; ) a.listasGuardadas.delete(a.listasGuardadas.keys().next().value);
866
+ c && r && this.listarClusters(a, i, c, E, M, r), M.avaliacoesLOD = a.avaliacoesLOD, M.miudas = _, e === "tudo" && (a.ultima = M);
867
+ const k = x;
868
+ for (const h of [C, N, T, Z, E]) for (const f of h) k.push(f);
869
+ const U = { camadaId: t.id, zIndex: t.zIndex, opacidade: t.opacidade, itens: k, estatisticas: M };
870
+ if (a.listasGuardadas.delete(m), u)
871
+ for (a.listasGuardadas.set(m, { chave: g, camada: U }); a.listasGuardadas.size > Ia; ) a.listasGuardadas.delete(a.listasGuardadas.keys().next().value);
769
872
  return U;
770
873
  }
771
874
  /**
@@ -774,24 +877,24 @@ class qa {
774
877
  * célula) são da sobreposição: o canvas base não depende da seleção.
775
878
  */
776
879
  listarClusters(a, i, e, o, t, s) {
777
- const { dados: n, def: l } = a;
778
- for (const [r, c] of e.celulasAgrupadas()) {
880
+ const { dados: r, def: d } = a;
881
+ for (const [n, c] of e.celulasAgrupadas()) {
779
882
  const u = c.membros.size;
780
- let m = 0, p = c.somaLat, L = c.somaLon;
781
- for (const A of c.membros.values())
782
- n.selecionadas.has(A.id) && (m++, p -= A.coordenada[0], L -= A.coordenada[1]);
783
- const v = u - m, O = [c.somaLat / u, c.somaLon / u];
784
- O[0] >= i.caixa.minLat - w && O[0] <= i.caixa.maxLat + w && O[1] >= i.caixa.minLon - w && O[1] <= i.caixa.maxLon + w && (v < 2 || !s || (o.push({
785
- camadaId: l.id,
786
- id: r,
883
+ let m = 0, g = c.somaLat, p = c.somaLon;
884
+ for (const C of c.membros.values())
885
+ r.selecionadas.has(C.id) && (m++, g -= C.coordenada[0], p -= C.coordenada[1]);
886
+ const P = u - m, x = [c.somaLat / u, c.somaLon / u];
887
+ x[0] >= i.caixa.minLat - w && x[0] <= i.caixa.maxLat + w && x[1] >= i.caixa.minLon - w && x[1] <= i.caixa.maxLon + w && (P < 2 || !s || (o.push({
888
+ camadaId: d.id,
889
+ id: n,
787
890
  forma: "cluster",
788
891
  geometriaEmPx: [],
789
892
  raioPx: 0,
790
- estilo: I,
893
+ estilo: y,
791
894
  selecionada: !1,
792
- coordenada: [p / v, L / v],
895
+ coordenada: [g / P, p / P],
793
896
  total: u,
794
- restantes: v
897
+ restantes: P
795
898
  }), t.clusters++, t.marcadoresDom++));
796
899
  }
797
900
  }
@@ -806,7 +909,7 @@ class qa {
806
909
  const o = i.chaveDoPonto(e), t = o === void 0 ? void 0 : i.celula(o);
807
910
  if (!t) return !1;
808
911
  let s = 0;
809
- for (const n of t.membros.keys()) a.dados.selecionadas.has(n) || s++;
912
+ for (const r of t.membros.keys()) a.dados.selecionadas.has(r) || s++;
810
913
  return s === 1;
811
914
  }
812
915
  /** Membros (id e coordenada) da célula de cluster: o clique no cluster enquadra o grupo. */
@@ -821,46 +924,46 @@ class qa {
821
924
  * de seleção. Custo O(selecionadas): selecionar não repinta o canvas base.
822
925
  */
823
926
  listaSobreposicao(a, i) {
824
- var n;
927
+ var r;
825
928
  const e = this.camadas.get(a);
826
- if (!e || !B(i)) return null;
929
+ if (!e || !I(i)) return null;
827
930
  this.prepararZoom(e, i.zoom);
828
931
  const o = [], t = /* @__PURE__ */ new Set([...e.dados.selecionadas, ...e.previas.keys(), ...e.destaques]), s = e.agrupador;
829
932
  if (s && e.dados.selecionadas.size > 0) {
830
- const l = /* @__PURE__ */ new Set();
831
- for (const r of e.dados.selecionadas) {
832
- const c = s.chaveDoPonto(r);
833
- c !== void 0 && l.add(c);
933
+ const d = /* @__PURE__ */ new Set();
934
+ for (const n of e.dados.selecionadas) {
935
+ const c = s.chaveDoPonto(n);
936
+ c !== void 0 && d.add(c);
834
937
  }
835
- for (const r of l) {
836
- const c = s.celula(r);
938
+ for (const n of d) {
939
+ const c = s.celula(n);
837
940
  if (!c || c.membros.size < 2) continue;
838
941
  const u = [...c.membros.keys()].filter((m) => !e.dados.selecionadas.has(m));
839
942
  u.length === 1 && t.add(u[0]);
840
943
  }
841
944
  }
842
- for (const l of t) {
843
- const r = e.dados.loja.get(l);
844
- if (!r || !e.dados.desenhavel(r)) continue;
845
- const c = e.previas.get(l), u = c ?? r, m = u.geometria;
846
- if (m.tipo === "Text" || V(m) || m.tipo === "Point" && ((n = u.estilo) != null && n.icone)) continue;
847
- const p = c ? null : e.dados.indice.caixaDe(l);
848
- if (p && !aa(p, i.caixa)) continue;
849
- const L = e.dados.selecionadas.has(l) || !!c;
850
- if (!L && !e.destaques.has(l) && !(m.tipo === "Point" && (s != null && s.emCluster(l)))) continue;
851
- const v = c ? this.construirGeometria(e, u, i.zoom, -1) : this.geometriaProjetada(e, u, i.zoom);
852
- if (!v) continue;
853
- const O = e.internador.interno(K(u, e.def.estilo, L)), A = m.tipo === "LineString" ? "linha" : m.tipo === "Circle" ? "circulo" : m.tipo === "Point" ? "ponto" : "poligono";
945
+ for (const d of t) {
946
+ const n = e.dados.loja.get(d);
947
+ if (!n || !e.dados.desenhavel(n)) continue;
948
+ const c = e.previas.get(d), u = c ?? n, m = u.geometria;
949
+ if (m.tipo === "Text" || b(m) || m.tipo === "Point" && ((r = u.estilo) != null && r.icone)) continue;
950
+ const g = c ? null : e.dados.indice.caixaDe(d);
951
+ if (g && !Y(g, i.caixa)) continue;
952
+ const p = e.dados.selecionadas.has(d) || !!c;
953
+ if (!p && !e.destaques.has(d) && !(m.tipo === "Point" && (s != null && s.emCluster(d)))) continue;
954
+ const P = c ? this.construirGeometria(e, u, i.zoom, -1) : this.geometriaProjetada(e, u, i.zoom);
955
+ if (!P) continue;
956
+ const x = e.internador.interno(Q(u, e.def.estilo, p)), C = m.tipo === "LineString" ? "linha" : m.tipo === "Circle" ? "circulo" : m.tipo === "Point" ? "ponto" : "poligono";
854
957
  o.push({
855
958
  camadaId: a,
856
- id: l,
857
- forma: A,
858
- geometriaEmPx: v.partes,
859
- raioPx: v.raioPx,
860
- estilo: O,
861
- selecionada: L,
959
+ id: d,
960
+ forma: C,
961
+ geometriaEmPx: P.partes,
962
+ raioPx: P.raioPx,
963
+ estilo: x,
964
+ selecionada: p,
862
965
  feicao: u,
863
- ...e.destaques.has(l) ? { destaque: !0 } : {}
966
+ ...e.destaques.has(d) ? { destaque: !0 } : {}
864
967
  });
865
968
  }
866
969
  return {
@@ -881,65 +984,65 @@ class qa {
881
984
  }
882
985
  }
883
986
  export {
884
- Aa as AgrupadorCluster,
885
- b as CELULA_CLUSTER_PX,
886
- G as COR_PADRAO,
887
- Xa as COR_SELECAO,
888
- wa as DadosCamada,
889
- ua as IndiceEspacial,
890
- ma as InternadorEstilos,
891
- $ as LIMITE_MARCA_PX,
892
- na as LIMITE_MIUDA_PX,
893
- Ma as MAX_PONTOS_SEM_CLUSTER,
987
+ Da as AgrupadorCluster,
988
+ F as CELULA_CLUSTER_PX,
989
+ q as COR_PADRAO,
990
+ Ua as COR_SELECAO,
991
+ Sa as DadosCamada,
992
+ la as IndiceEspacial,
993
+ ua as InternadorEstilos,
994
+ G as LIMITE_MARCA_PX,
995
+ sa as LIMITE_MIUDA_PX,
996
+ La as MAX_PONTOS_SEM_CLUSTER,
894
997
  va as MIN_VERTICES_SIMPLIFICAR,
895
- qa as MotorFormas,
896
- sa as OPACIDADE_MARCA,
897
- ka as RegraVersoes,
898
- Ua as TIPOS_LINHA,
899
- La as ZOOM_DESMEMBRAR,
900
- za as ZOOM_MAX_MIUDA,
901
- fa as ZOOM_SEM_SIMPLIFICACAO,
998
+ $a as MotorFormas,
999
+ ta as OPACIDADE_MARCA,
1000
+ Xa as RegraVersoes,
1001
+ Ha as TIPOS_LINHA,
1002
+ xa as ZOOM_DESMEMBRAR,
1003
+ Oa as ZOOM_MAX_MIUDA,
1004
+ ma as ZOOM_SEM_SIMPLIFICACAO,
902
1005
  ja as agruparMarcasPorCor,
903
- Va as agruparPontos,
904
- Ha as caixaDaFeicao,
905
- Ja as caixaPx,
906
- aa as caixasSeTocam,
907
- Da as centroDe,
908
- pa as corSegura,
909
- gi as criarLinha,
910
- Qa as dashTipoLinha,
911
- ta as deveAgrupar,
912
- Z as diagonalPx,
913
- Ka as distSegmentoPx,
1006
+ qa as agruparPontos,
1007
+ Ja as caixaDaFeicao,
1008
+ Qa as caixaPx,
1009
+ Y as caixasSeTocam,
1010
+ Ma as centroDe,
1011
+ ga as corSegura,
1012
+ vi as criarLinha,
1013
+ Ka as dashTipoLinha,
1014
+ oa as deveAgrupar,
1015
+ $ as diagonalPx,
1016
+ Wa as distSegmentoPx,
914
1017
  Ba as ehMarca,
915
1018
  pi as ehMultilinha,
916
- Wa as ehTipoLinha,
917
- j as entidadeDe,
918
- Ya as escalaDoZoom,
919
- ai as escalaLatitude,
920
- ii as escalaTipoLinhaSegura,
921
- K as estiloVetorDe,
922
- ei as juncaoCanvas,
923
- Sa as ladoMarca,
924
- oi as latLonDoMundo,
925
- ti as metrosPorPixel,
926
- Ra as nivelDetalhe,
927
- si as normalizarTipoLinha,
928
- xa as partesDaLinha,
1019
+ Ya as ehTipoLinha,
1020
+ z as entidadeDe,
1021
+ ai as escalaDoZoom,
1022
+ ii as escalaLatitude,
1023
+ ei as escalaTipoLinhaSegura,
1024
+ Q as estiloVetorDe,
1025
+ oi as juncaoCanvas,
1026
+ Ra as ladoMarca,
1027
+ ti as latLonDoMundo,
1028
+ si as metrosPorPixel,
1029
+ Ea as nivelDetalhe,
1030
+ ri as normalizarTipoLinha,
1031
+ pa as partesDaLinha,
929
1032
  Ga as pintarMarcas,
930
- C as projetarCentro,
1033
+ O as projetarCentro,
931
1034
  ni as projetarEm,
932
- q as projetarMercator,
933
- W as projetarSimplificado,
934
- Y as projetarVertices,
935
- ha as raioCirculoPx,
936
- ga as raioPontoPx,
937
- ri as simplificarAnel,
938
- ci as simplificarGeometria,
939
- di as simplificarLinha,
940
- li as simplificarPx,
941
- S as statusDe,
942
- ui as terminacaoCanvas,
943
- mi as toleranciaPorZoom,
944
- fi as vertices
1035
+ B as projetarMercator,
1036
+ K as projetarSimplificado,
1037
+ W as projetarVertices,
1038
+ fa as raioCirculoPx,
1039
+ ha as raioPontoPx,
1040
+ ci as simplificarAnel,
1041
+ di as simplificarGeometria,
1042
+ li as simplificarLinha,
1043
+ ui as simplificarPx,
1044
+ j as statusDe,
1045
+ mi as terminacaoCanvas,
1046
+ fi as toleranciaPorZoom,
1047
+ hi as vertices
945
1048
  };