@thibezer/ui-components-kit 2.31.4 → 2.32.1
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 +17 -0
- package/dist/canvas.cjs +4 -4
- package/dist/canvas.js +622 -604
- package/dist/components/ui-canvas-cad/cad-feicoes-operacoes.d.ts +6 -0
- package/dist/components/ui-canvas-cad/cad-feicoes.d.ts +5 -0
- package/dist/components/ui-canvas-cad/ui-canvas-cad.d.ts +5 -0
- package/dist/custom-elements.json +20709 -20577
- package/dist/feature_caixa-BRZGJHTG.cjs +1 -0
- package/dist/feature_caixa-DdI35r81.js +929 -0
- package/dist/{feature_desenho-fQfbVPvn.js → feature_desenho-BSuO-kdG.js} +1 -1
- package/dist/{feature_desenho-CESNXi8g.cjs → feature_desenho-BcvJt7r_.cjs} +1 -1
- package/dist/gerencigeo-canvas/feature_algoritmos.d.ts +10 -0
- package/dist/prancha-nucleo.cjs +2 -2
- package/dist/prancha-nucleo.d.ts +2 -0
- package/dist/prancha-nucleo.js +44 -43
- package/dist/prancha.cjs +1 -1
- package/dist/prancha.js +2 -2
- package/package.json +1 -1
- package/dist/feature_caixa-DAyED81R.cjs +0 -1
- package/dist/feature_caixa-zoUAn0qg.js +0 -877
package/dist/prancha-nucleo.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var lo = Object.defineProperty;
|
|
2
2
|
var fo = (t, a, n) => a in t ? lo(t, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[a] = n;
|
|
3
3
|
var P = (t, a, n) => fo(t, typeof a != "symbol" ? a + "" : a, n);
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { b as ho, a as mo, U as po, I as go, H as yo, p as bo, T as Mo, G as oa, r as lt, B as xo, n as za, q as vo, D as Ao, C as Po, u as Io, t as zn, f as At, d as $o, y as So, j as Eo, i as jo } from "./feature_caixa-DdI35r81.js";
|
|
5
|
+
import { E as $s, o as Ss } from "./feature_caixa-DdI35r81.js";
|
|
6
|
+
import { a as Pt, m as Wa, B as Lo, w as zo, x as Nn, u as No, H as Co, d as z, q as Za, I as To, D as pa, n as qo, f as Do, Q as Oo, S as wo, c as ko, p as Ro } from "./geometria-px-wXudjSxA.js";
|
|
7
7
|
import { l as Cn } from "./feature_metricas-hUren6kK.js";
|
|
8
8
|
import { e as Na } from "./cores-utils-DMyqWvZh.js";
|
|
9
9
|
function Ot(t) {
|
|
@@ -212,7 +212,7 @@ function Qo(t, a, n) {
|
|
|
212
212
|
const d = s * bt, l = c * bt, h = u * bt, m = f * bt, g = [];
|
|
213
213
|
s > 0 ? g.push({ ponto: [o + s, r], entrada: [o + s - d, r] }) : g.push({ ponto: [o, r] }), c > 0 ? g.push({ ponto: [e - c, r], saida: [e - c + l, r] }, { ponto: [e, r + c], entrada: [e, r + c - l] }) : g.push({ ponto: [e, r] }), u > 0 ? g.push({ ponto: [e, i - u], saida: [e, i - u + h] }, { ponto: [e - u, i], entrada: [e - u + h, i] }) : g.push({ ponto: [e, i] }), f > 0 ? g.push({ ponto: [o + f, i], saida: [o + f - m, i] }, { ponto: [o, i - f], entrada: [o, i - f + m] }) : g.push({ ponto: [o, i] }), s > 0 && g.push({ ponto: [o, r + s], saida: [o, r + s - d] });
|
|
214
214
|
const y = Jo(g);
|
|
215
|
-
return y.length < 3 ? null : { tipo: "Polygon", aneis: [
|
|
215
|
+
return y.length < 3 ? null : { tipo: "Polygon", aneis: [Pt(y, !0)], curva: y };
|
|
216
216
|
}
|
|
217
217
|
const Ko = (t, a, n) => [t * Math.cos(n), a * Math.sin(n)], te = (t, a, n) => [-t * Math.sin(n), a * Math.cos(n)];
|
|
218
218
|
function ae(t, a, n, o, e) {
|
|
@@ -240,21 +240,21 @@ function oe(t, a, n) {
|
|
|
240
240
|
{ ponto: [-t, 0], entrada: [-t, u], saida: [-t, -u] },
|
|
241
241
|
{ ponto: [0, -a], entrada: [-c, -a], saida: [c, -a] }
|
|
242
242
|
];
|
|
243
|
-
return { tipo: "Polygon", aneis: [
|
|
243
|
+
return { tipo: "Polygon", aneis: [Pt(f, !0)], curva: f };
|
|
244
244
|
}
|
|
245
245
|
const e = n.fechamento ?? "aberto", r = Math.max(e === "corda" ? 2 : 1, Math.ceil(o / (Math.PI / 2) - 1e-9)), i = ae(t, a, n.inicio, o, r);
|
|
246
|
-
if (e === "aberto") return { tipo: "LineString", coordenadas:
|
|
246
|
+
if (e === "aberto") return { tipo: "LineString", coordenadas: Pt(i, !1), curva: i };
|
|
247
247
|
const s = e === "fatia" ? [...i, { ponto: [0, 0] }] : i;
|
|
248
|
-
return { tipo: "Polygon", aneis: [
|
|
248
|
+
return { tipo: "Polygon", aneis: [Pt(s, !0)], curva: s };
|
|
249
249
|
}
|
|
250
250
|
function ee(t, a) {
|
|
251
251
|
if (!(S(t) && t > 0 && S(a))) return null;
|
|
252
|
-
const n =
|
|
252
|
+
const n = mo([0, 0], [0, -t], Math.round(a), A);
|
|
253
253
|
return n ? { tipo: "Polygon", aneis: [n] } : null;
|
|
254
254
|
}
|
|
255
255
|
function re(t, a, n) {
|
|
256
256
|
if (!(S(t) && S(a) && t > 0 && a > 0 && S(n))) return null;
|
|
257
|
-
const o =
|
|
257
|
+
const o = ho([0, 0], [0, -t], Math.round(n), A, Math.min(1, a / t));
|
|
258
258
|
return o ? { tipo: "Polygon", aneis: [o] } : null;
|
|
259
259
|
}
|
|
260
260
|
function ie(t) {
|
|
@@ -349,7 +349,7 @@ function St(t) {
|
|
|
349
349
|
const ii = (t) => !!t && t.tipo === "Polygon", qt = "#000000", wa = 0.25, ue = 4, Ka = 25.4 / 96, T = (t) => typeof t == "number" && Number.isFinite(t), Mt = (t, a) => T(t) ? Math.min(1, Math.max(0, t)) : a;
|
|
350
350
|
function le(t, a, n = 1, o = "butt") {
|
|
351
351
|
const e = T(a) && a > 0 ? a / Ka : 1;
|
|
352
|
-
return
|
|
352
|
+
return po(Lo(t, e, n, o)).map((r) => Math.round(r * Ka * 1e4) / 1e4);
|
|
353
353
|
}
|
|
354
354
|
const ya = {
|
|
355
355
|
normal: "source-over",
|
|
@@ -411,14 +411,14 @@ function ba(t) {
|
|
|
411
411
|
if (r !== null && !(n && r === void 0)) {
|
|
412
412
|
const m = r ?? {}, g = T(m.espessura) && m.espessura > 0 ? m.espessura : m.espessura === 0 ? 0 : wa;
|
|
413
413
|
if (g > 0) {
|
|
414
|
-
const y =
|
|
414
|
+
const y = zo(m.terminacao) ?? "butt", p = Nn(m.tipoLinha);
|
|
415
415
|
e = {
|
|
416
416
|
cor: z(m.cor, qt),
|
|
417
417
|
largura: g,
|
|
418
418
|
opacidade: Mt(m.opacidade, 1),
|
|
419
|
-
tracejado: p && p !== "continua" ? le(p, g,
|
|
419
|
+
tracejado: p && p !== "continua" ? le(p, g, Co(m.escalaTipoLinha), y) : [],
|
|
420
420
|
terminacao: y,
|
|
421
|
-
juncao:
|
|
421
|
+
juncao: No(m.juncao) ?? "miter",
|
|
422
422
|
limitePonta: T(m.limitePonta) && m.limitePonta >= 1 ? m.limitePonta : ue,
|
|
423
423
|
alinhamento: o && (m.alinhamento === "dentro" || m.alinhamento === "fora") ? m.alinhamento : "centro"
|
|
424
424
|
}, !o && m.pontaInicio && (e.pontaInicio = m.pontaInicio), !o && m.pontaFim && (e.pontaFim = m.pontaFim);
|
|
@@ -592,7 +592,7 @@ function Ie(t) {
|
|
|
592
592
|
cor: Dt(e.cor),
|
|
593
593
|
espessura: C(e.espessura) && e.espessura >= 0 ? Math.min(e.espessura, 1e3) : void 0,
|
|
594
594
|
opacidade: xt(e.opacidade),
|
|
595
|
-
tipoLinha:
|
|
595
|
+
tipoLinha: Nn(e.tipoLinha),
|
|
596
596
|
escalaTipoLinha: D(e.escalaTipoLinha) ? e.escalaTipoLinha : void 0,
|
|
597
597
|
terminacao: e.terminacao === "arredondada" || e.terminacao === "reta" || e.terminacao === "quadrada" ? e.terminacao : void 0,
|
|
598
598
|
juncao: e.juncao === "arredondada" || e.juncao === "chanfrada" || e.juncao === "angular" ? e.juncao : void 0,
|
|
@@ -900,7 +900,7 @@ function Ce(t, a, n = 1) {
|
|
|
900
900
|
if (!o || !e) return null;
|
|
901
901
|
const r = (V(n) && n >= 0 ? n : 1) + ze(t);
|
|
902
902
|
if (a[0] < o.x - r || a[0] > o.x + o.largura + r || a[1] < o.y - r || a[1] > o.y + o.altura + r) return null;
|
|
903
|
-
if (e.tipo === "Polygon" && (Le(t) || t.geometria.tipo === "texto") &&
|
|
903
|
+
if (e.tipo === "Polygon" && (Le(t) || t.geometria.tipo === "texto") && bo(a, e.aneis)) return 0;
|
|
904
904
|
const s = Ne(a, e);
|
|
905
905
|
return s <= r ? s : null;
|
|
906
906
|
}
|
|
@@ -937,7 +937,7 @@ function Ii(t, a, n, o = {}) {
|
|
|
937
937
|
return a.filter((s) => {
|
|
938
938
|
if (!Ga(s, r, i)) return !1;
|
|
939
939
|
const c = Xa(s);
|
|
940
|
-
return !!c &&
|
|
940
|
+
return !!c && go(c, e, qe, n, A);
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
943
|
function $i(t, a, n = {}) {
|
|
@@ -946,7 +946,7 @@ function $i(t, a, n = {}) {
|
|
|
946
946
|
return a.filter((i) => {
|
|
947
947
|
if (!Ga(i, o, e)) return !1;
|
|
948
948
|
const s = Xa(i);
|
|
949
|
-
return !!s &&
|
|
949
|
+
return !!s && yo(s, r);
|
|
950
950
|
});
|
|
951
951
|
}
|
|
952
952
|
function sn(t) {
|
|
@@ -957,7 +957,7 @@ function sn(t) {
|
|
|
957
957
|
}
|
|
958
958
|
class Si {
|
|
959
959
|
constructor() {
|
|
960
|
-
P(this, "indice", new
|
|
960
|
+
P(this, "indice", new To(A));
|
|
961
961
|
P(this, "elementos", /* @__PURE__ */ new Map());
|
|
962
962
|
}
|
|
963
963
|
get tamanho() {
|
|
@@ -1022,7 +1022,7 @@ class Si {
|
|
|
1022
1022
|
const De = ["vertice", "canto", "centro", "meio", "guia", "aresta", "grade"], W = (t) => typeof t == "number" && Number.isFinite(t);
|
|
1023
1023
|
function Ei(t, a, n, o = {}, e = []) {
|
|
1024
1024
|
if (!W(t == null ? void 0 : t[0]) || !W(t == null ? void 0 : t[1]) || !W(n) || n <= 0) return null;
|
|
1025
|
-
const r = W(o.toleranciaPx) && o.toleranciaPx >= 0 ? o.toleranciaPx :
|
|
1025
|
+
const r = W(o.toleranciaPx) && o.toleranciaPx >= 0 ? o.toleranciaPx : Mo, i = new Set(e), s = n, c = (p) => ({ x: p[0] * s, y: p[1] * s }), u = { x: t[0] * s, y: t[1] * s }, f = (p) => Math.hypot(p[0] * s - u.x, p[1] * s - u.y), d = a.filter((p) => p && !p.oculto && !i.has(p.id)), l = [];
|
|
1026
1026
|
for (const p of d) {
|
|
1027
1027
|
const M = Xa(p);
|
|
1028
1028
|
M && l.push({ ...M, bloqueada: !1 });
|
|
@@ -1099,7 +1099,7 @@ function Ni(t, a, n) {
|
|
|
1099
1099
|
const o = it(t), e = o ? Ba(t, n) : null;
|
|
1100
1100
|
if (!o || !e) return null;
|
|
1101
1101
|
const r = lt(o, A).slice();
|
|
1102
|
-
return !Number.isInteger(a) || a < 0 || a >= r.length ? null : (r[a] = e, jt(t,
|
|
1102
|
+
return !Number.isInteger(a) || a < 0 || a >= r.length ? null : (r[a] = e, jt(t, zn(o, r, A)));
|
|
1103
1103
|
}
|
|
1104
1104
|
function Ci(t, a, n, o) {
|
|
1105
1105
|
const e = it(t), r = L(t), i = dt(r);
|
|
@@ -1110,29 +1110,29 @@ function Ci(t, a, n, o) {
|
|
|
1110
1110
|
const f = I(r, s[u]);
|
|
1111
1111
|
s[u] = I(i, [f[0] + n, f[1] + o]);
|
|
1112
1112
|
}
|
|
1113
|
-
return jt(t,
|
|
1113
|
+
return jt(t, zn(e, s, A));
|
|
1114
1114
|
}
|
|
1115
1115
|
function Ti(t, a, n) {
|
|
1116
1116
|
const o = it(t), e = o ? Ba(t, n) : null;
|
|
1117
1117
|
if (!o || !e) return null;
|
|
1118
1118
|
const r = lt(o, A).length;
|
|
1119
|
-
return !Number.isInteger(a) || a < 0 || a >= r || o.tipo === "LineString" && a >= r - 1 ? null : jt(t,
|
|
1119
|
+
return !Number.isInteger(a) || a < 0 || a >= r || o.tipo === "LineString" && a >= r - 1 ? null : jt(t, xo(o, a, e));
|
|
1120
1120
|
}
|
|
1121
1121
|
function qi(t, a) {
|
|
1122
1122
|
const n = it(t);
|
|
1123
|
-
if (!n || !Number.isInteger(a) || lt(n, A).length <=
|
|
1124
|
-
const o =
|
|
1123
|
+
if (!n || !Number.isInteger(a) || lt(n, A).length <= Ao(n)) return null;
|
|
1124
|
+
const o = Po(n, a);
|
|
1125
1125
|
return o ? jt(t, o) : null;
|
|
1126
1126
|
}
|
|
1127
1127
|
function Di(t, a) {
|
|
1128
1128
|
const n = it(t), o = n ? lt(n, A).length : 0;
|
|
1129
1129
|
if (!n || !Number.isInteger(a) || a < 0 || a >= o) return null;
|
|
1130
|
-
const e =
|
|
1130
|
+
const e = vo(n, a);
|
|
1131
1131
|
return e === n ? null : jt(t, e);
|
|
1132
1132
|
}
|
|
1133
1133
|
function Oi(t, a, n, o, e = !0) {
|
|
1134
1134
|
const r = it(t), i = r ? Ba(t, o) : null, s = r ? lt(r, A).length : 0;
|
|
1135
|
-
return !r || !i || n !== "entrada" && n !== "saida" || !Number.isInteger(a) || a < 0 || a >= s ? null : jt(t,
|
|
1135
|
+
return !r || !i || n !== "entrada" && n !== "saida" || !Number.isInteger(a) || a < 0 || a >= s ? null : jt(t, Io(r, a, n, i, e));
|
|
1136
1136
|
}
|
|
1137
1137
|
const we = [
|
|
1138
1138
|
"retangulo",
|
|
@@ -1349,9 +1349,9 @@ function dn(t, a, n, o, e, r) {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
const gt = (t) => typeof t == "number" && Number.isFinite(t);
|
|
1351
1351
|
function Bn(t) {
|
|
1352
|
-
const a =
|
|
1352
|
+
const a = qo(t), n = t.tipo === "Polygon";
|
|
1353
1353
|
if (a) {
|
|
1354
|
-
const r =
|
|
1354
|
+
const r = Do(a, n).map((i) => i.cmd === "C" ? { c: "C", c1: i.pts[0], c2: i.pts[1], p: i.pts[2] } : { c: i.cmd, p: i.pts[0] });
|
|
1355
1355
|
return n && r.push({ c: "Z" }), r;
|
|
1356
1356
|
}
|
|
1357
1357
|
const o = t.tipo === "Polygon" ? t.aneis : t.partes && t.partes.length > 1 ? t.partes : [t.coordenadas], e = [];
|
|
@@ -1366,7 +1366,7 @@ function Bn(t) {
|
|
|
1366
1366
|
const Un = (t) => t.length < 3 ? [] : [{ c: "M", p: t[0] }, ...t.slice(1).map((a) => ({ c: "L", p: a })), { c: "Z" }];
|
|
1367
1367
|
function Ve(t, a) {
|
|
1368
1368
|
if (a.alinhamento === "centro" || t.tipo !== "Polygon") return null;
|
|
1369
|
-
const n = a.alinhamento === "fora" ? a.largura / 2 : -a.largura / 2, o =
|
|
1369
|
+
const n = a.alinhamento === "fora" ? a.largura / 2 : -a.largura / 2, o = At({ tipo: "Polygon", aneis: [t.aneis[0]] }, n, A);
|
|
1370
1370
|
return o ? Un(o) : null;
|
|
1371
1371
|
}
|
|
1372
1372
|
function Ye(t, a, n) {
|
|
@@ -1446,7 +1446,7 @@ function Ze(t) {
|
|
|
1446
1446
|
function Je(t, a, n) {
|
|
1447
1447
|
const o = (s, c) => ({ caminho: s, modo: "encher", regra: c, largura: 0, tracejado: [], terminacao: "butt", juncao: "miter" }), e = [], r = t.preenchimento ?? (t.hachura ? { caminho: t.hachura.recorte, regra: t.hachura.regra } : null), i = t.traco;
|
|
1448
1448
|
if (r && i && a && n.tipo === "Polygon" && n.aneis.length === 1 && a.alinhamento !== "dentro" && i.tracejado.length === 0) {
|
|
1449
|
-
const s =
|
|
1449
|
+
const s = At({ tipo: "Polygon", aneis: [n.aneis[0]] }, a.alinhamento === "fora" ? a.largura : a.largura / 2, A);
|
|
1450
1450
|
if (s) return [o(Un(s), "nonzero")];
|
|
1451
1451
|
}
|
|
1452
1452
|
r && e.push(o(r.caminho, r.regra)), i && e.push({ caminho: i.caminho, modo: "tracar", regra: "nonzero", largura: i.largura, tracejado: i.tracejado, terminacao: i.terminacao, juncao: i.juncao });
|
|
@@ -2254,11 +2254,11 @@ function cs(t, a = 0.01) {
|
|
|
2254
2254
|
const e = n.flatMap((i) => {
|
|
2255
2255
|
const s = i.c;
|
|
2256
2256
|
return s.partes && s.partes.length > 1 ? s.partes : [s.coordenadas];
|
|
2257
|
-
}), r =
|
|
2257
|
+
}), r = Eo(e, o, A);
|
|
2258
2258
|
return r ? { ok: et(n[0].e, { tipo: "LineString", coordenadas: r }) } : { motivo: "sem-ligacao" };
|
|
2259
2259
|
}
|
|
2260
2260
|
if (n.length === 2 && n.every((e) => e.c.tipo === "Polygon")) {
|
|
2261
|
-
const [e, r] = n.map((s) => s.c.aneis[0]), i =
|
|
2261
|
+
const [e, r] = n.map((s) => s.c.aneis[0]), i = jo(e, r, o, A);
|
|
2262
2262
|
return i ? { ok: et(n[0].e, { tipo: "Polygon", aneis: [i] }) } : { motivo: "sem-ligacao" };
|
|
2263
2263
|
}
|
|
2264
2264
|
return { motivo: "tipos-incompativeis" };
|
|
@@ -2268,7 +2268,7 @@ function us(t, a, n) {
|
|
|
2268
2268
|
if (!o || !e) return { motivo: "degenerado" };
|
|
2269
2269
|
if (o.tipo !== "Polygon" || t.geometria.tipo === "texto") return { motivo: "sem-forma-fechada" };
|
|
2270
2270
|
if (e.tipo !== "LineString") return { motivo: "tipos-incompativeis" };
|
|
2271
|
-
const r =
|
|
2271
|
+
const r = $o(o.aneis[0], e.coordenadas, A);
|
|
2272
2272
|
return r ? { ok: r.map((i) => et(t, { tipo: "Polygon", aneis: [i] }, n("caminho"))) } : { motivo: "sem-intersecao" };
|
|
2273
2273
|
}
|
|
2274
2274
|
function ls(t, a, n) {
|
|
@@ -2276,7 +2276,7 @@ function ls(t, a, n) {
|
|
|
2276
2276
|
const o = O(t);
|
|
2277
2277
|
if (!o || t.geometria.tipo === "texto") return { motivo: ((r = t.geometria) == null ? void 0 : r.tipo) === "texto" ? "texto" : "degenerado" };
|
|
2278
2278
|
if (!ut(a) || a === 0) return { motivo: "degenerado" };
|
|
2279
|
-
const e =
|
|
2279
|
+
const e = At(o.tipo === "Polygon" ? { tipo: "Polygon", aneis: [o.aneis[0]] } : { tipo: "LineString", coordenadas: o.coordenadas }, a, A);
|
|
2280
2280
|
return e ? { ok: et(t, { tipo: "Polygon", aneis: [e] }, n) } : { motivo: "degenerado" };
|
|
2281
2281
|
}
|
|
2282
2282
|
function fs(t, a) {
|
|
@@ -2284,8 +2284,8 @@ function fs(t, a) {
|
|
|
2284
2284
|
const n = O(t);
|
|
2285
2285
|
if (!n || t.geometria.tipo === "texto") return { motivo: ((r = t.geometria) == null ? void 0 : r.tipo) === "texto" ? "texto" : "degenerado" };
|
|
2286
2286
|
const o = ut(a) && a > 0 ? a : 0.1;
|
|
2287
|
-
if (n.tipo === "Polygon") return { ok: et(t, { tipo: "Polygon", aneis: n.aneis.map((i) =>
|
|
2288
|
-
const e = (n.partes && n.partes.length > 1 ? n.partes : [n.coordenadas]).map((i) =>
|
|
2287
|
+
if (n.tipo === "Polygon") return { ok: et(t, { tipo: "Polygon", aneis: n.aneis.map((i) => Oo(i, o, 1)) }) };
|
|
2288
|
+
const e = (n.partes && n.partes.length > 1 ? n.partes : [n.coordenadas]).map((i) => wo(i, o, 1));
|
|
2289
2289
|
return { ok: et(t, e.length > 1 ? { tipo: "LineString", coordenadas: e[0], partes: e } : { tipo: "LineString", coordenadas: e[0] }) };
|
|
2290
2290
|
}
|
|
2291
2291
|
function ds(t) {
|
|
@@ -2296,10 +2296,10 @@ function ds(t) {
|
|
|
2296
2296
|
const o = n.largura / 2;
|
|
2297
2297
|
let e = null;
|
|
2298
2298
|
if (a.tipo === "LineString") {
|
|
2299
|
-
const s =
|
|
2299
|
+
const s = At({ tipo: "LineString", coordenadas: a.coordenadas }, o, A);
|
|
2300
2300
|
e = s ? { tipo: "Polygon", aneis: [s] } : null;
|
|
2301
2301
|
} else {
|
|
2302
|
-
const s =
|
|
2302
|
+
const s = At({ tipo: "Polygon", aneis: [a.aneis[0]] }, o, A), c = At({ tipo: "Polygon", aneis: [a.aneis[0]] }, -o, A);
|
|
2303
2303
|
e = s ? { tipo: "Polygon", aneis: c ? [s, c] : [s] } : null;
|
|
2304
2304
|
}
|
|
2305
2305
|
if (!e) return { motivo: "degenerado" };
|
|
@@ -2346,11 +2346,11 @@ function gs(t, a, n) {
|
|
|
2346
2346
|
if (!o || !e || !ut(a == null ? void 0 : a[0]) || !ut(a == null ? void 0 : a[1])) return null;
|
|
2347
2347
|
const r = L(t);
|
|
2348
2348
|
let i = null;
|
|
2349
|
-
for (const [s, c] of
|
|
2350
|
-
const [u, f] =
|
|
2349
|
+
for (const [s, c] of So(o)) {
|
|
2350
|
+
const [u, f] = ko(e[s], e[c]);
|
|
2351
2351
|
let d = I(r, e[s].ponto);
|
|
2352
2352
|
for (let l = 1; l <= 16; l++) {
|
|
2353
|
-
const h = I(r,
|
|
2353
|
+
const h = I(r, Ro(e[s].ponto, u, f, e[c].ponto, l / 16)), m = pa(a[0], a[1], d[0], d[1], h[0], h[1]);
|
|
2354
2354
|
m <= n && (!i || m < i.d) && (i = { i: s, d: m }), d = h;
|
|
2355
2355
|
}
|
|
2356
2356
|
}
|
|
@@ -2657,10 +2657,10 @@ function Or(t) {
|
|
|
2657
2657
|
const a = O(t);
|
|
2658
2658
|
if (!a) return null;
|
|
2659
2659
|
if (a.tipo === "Polygon") {
|
|
2660
|
-
const s = a.curva && a.aneis.length === 1 ? [
|
|
2660
|
+
const s = a.curva && a.aneis.length === 1 ? [Pt(a.curva, !0)] : a.aneis, c = ((i = rt(t).preenchimento) == null ? void 0 : i.regra) ?? (s.length > 1 ? "evenodd" : "nonzero");
|
|
2661
2661
|
return { aneis: s, regra: c };
|
|
2662
2662
|
}
|
|
2663
|
-
const o = (a.partes && a.partes.length > 1 ? a.partes : [a.curva ?
|
|
2663
|
+
const o = (a.partes && a.partes.length > 1 ? a.partes : [a.curva ? Pt(a.curva, !1) : a.coordenadas]).filter((s) => s.length >= 3);
|
|
2664
2664
|
return o.length > 0 ? { aneis: o, regra: "nonzero" } : null;
|
|
2665
2665
|
}
|
|
2666
2666
|
function Ms(t, a) {
|
|
@@ -3105,6 +3105,7 @@ export {
|
|
|
3105
3105
|
Ae as normalizarGradiente,
|
|
3106
3106
|
Pe as normalizarHachura,
|
|
3107
3107
|
Gi as normalizarParaOrigem,
|
|
3108
|
+
Ss as offsetParalelo,
|
|
3108
3109
|
qr as operacaoBooleana,
|
|
3109
3110
|
_t as ordenarPorEmpilhamento,
|
|
3110
3111
|
le as padraoTipoLinhaMm,
|
package/dist/prancha.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var we=Object.defineProperty;var Le=(t,e,a)=>e in t?we(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var f=(t,e,a)=>Le(t,typeof e!="symbol"?e+"":e,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const n=require("./prancha-nucleo.cjs"),Ya=require("./geometria-px-C4xatxmY.cjs"),M=require("./kit-base-BmkPi5Rz.cjs"),ke=require("./feature_caixa-
|
|
1
|
+
"use strict";var we=Object.defineProperty;var Le=(t,e,a)=>e in t?we(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var f=(t,e,a)=>Le(t,typeof e!="symbol"?e+"":e,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const n=require("./prancha-nucleo.cjs"),Ya=require("./geometria-px-C4xatxmY.cjs"),M=require("./kit-base-BmkPi5Rz.cjs"),ke=require("./feature_caixa-BRZGJHTG.cjs"),qe=require("./feature_desenho-BcvJt7r_.cjs"),Be=":host{--ui-prancha-mesa: var(--ui-cor-fundo);--ui-prancha-papel: var(--ui-cor-papel);--ui-prancha-borda-papel: var(--ui-cor-borda);--ui-prancha-grade: var(--ui-cor-grade-papel);--ui-prancha-selecao: var(--ui-cor-primaria);--ui-prancha-alca: var(--ui-cor-superficie);--ui-prancha-guia: var(--ui-cor-guia);--ui-prancha-guia-inteligente: var(--ui-cor-guia-inteligente);--ui-prancha-snap: var(--ui-cor-destaque);--ui-prancha-regua: var(--ui-cor-fundo-elevado);--ui-prancha-texto-regua: var(--ui-cor-texto-secundario);--ui-prancha-tamanho-regua: 20px;display:block;position:relative;min-height:240px;min-width:240px;height:100%;background:var(--ui-cor-fundo);color:var(--ui-cor-texto);font-family:var(--ui-fonte-base);outline:none;contain:layout paint}:host([hidden]){display:none}.raiz{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;grid-template-columns:var(--ui-prancha-tamanho-regua) 1fr;grid-template-rows:var(--ui-prancha-tamanho-regua) 1fr}:host([sem-reguas]) .raiz{grid-template-columns:0 1fr;grid-template-rows:0 1fr}:host([sem-reguas]) .regua,:host([sem-reguas]) .canto{display:none}.canto{background:var(--ui-prancha-regua);border-right:1px solid var(--ui-cor-borda);border-bottom:1px solid var(--ui-cor-borda)}.regua{display:block;width:100%;height:100%;background:var(--ui-prancha-regua);cursor:default;touch-action:none}.regua-h{border-bottom:1px solid var(--ui-cor-borda);cursor:s-resize}.regua-v{border-right:1px solid var(--ui-cor-borda);cursor:e-resize}.viewport{position:relative;overflow:hidden;background:var(--ui-prancha-mesa);touch-action:none;cursor:default}.viewport:focus-visible{outline:2px solid var(--ui-cor-primaria);outline-offset:-2px}.viewport[data-cursor=mao]{cursor:grab}.viewport[data-cursor=arrastando]{cursor:grabbing}.viewport[data-cursor=mira]{cursor:crosshair}.viewport[data-cursor=mover]{cursor:move}.viewport[data-cursor=girar]{cursor:alias}.viewport[data-cursor=ancora]{cursor:pointer}.camada{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block;pointer-events:none}.status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}@media (pointer: coarse){:host{--ui-prancha-tamanho-regua: 24px}}";function Ge(){return`
|
|
2
2
|
<style>${Be}</style>
|
|
3
3
|
<div class="raiz" part="base">
|
|
4
4
|
<div class="canto" part="canto-reguas" aria-hidden="true"></div>
|
package/dist/prancha.js
CHANGED
|
@@ -6,8 +6,8 @@ import { IndicePrancha as at, Historico as et, normalizarElementos as tt, analis
|
|
|
6
6
|
import { DIMENSOES_FOLHA as So, EPSILON_DETERMINANTE as Po, ESCALA_MINIMA as Mo, ESPESSURA_PADRAO_MM as zo, ESTILOS_TRACO as xo, ESTILO_DO_TIPO_LINHA as Eo, FAIXAS_MAXIMO as Co, FAIXAS_PADRAO as To, FONTE_PADRAO as wo, FORMATOS_ABNT as Do, IDENTIDADE as Io, IDS_PROPRIEDADES_PRANCHA as Fo, KAPPA as _o, LIMITE_PONTA_PADRAO as No, MAX_LINHAS_HACHURA as Oo, MESCLAGEM_CSS as Ro, MM_POR_PX as Lo, MM_POR_UNIDADE as ko, PREDEFINICOES as qo, PRIORIDADE_SNAP_PRANCHA as Bo, ROTULOS_PREDEFINICOES as jo, SOMBRA_PADRAO as Go, TIPO_LINHA_DO_ESTILO as Ho, adaptarContextoRelativo as $o, ajustarAparenciaEmLote as Vo, ajustarElementosACaixa as Ko, aparenciaDe as Wo, aplicarTodos as Uo, aplicarVetor as Xo, areaComSinal as Zo, areaDosPoligonos as Jo, avisarUmaVez as Qo, caixaDoQuadroAbnt as Yo, caixaDoTexto as as, caixaNormalizada as es, caminhoDoContorno as ts, caminhoFinito as rs, caminhoParaSvg as is, cisalhamento as os, comoCaminhoNaFolha as ss, comprimentoDaPonta as ns, contornoElipse as ls, contornoEstrela as cs, contornoLocal as us, contornoLocalEmCache as ds, contornoPoligonoRegular as hs, contornoRetangulo as ms, corComOpacidade as fs, corNaPosicao as ps, decompor as gs, desenharPlano as vs, determinante as bs, diagnosticarContexto as ys, direcaoNaPonta as As, ehFechado as Ss, ehIdentidade as Ps, ehSingular as Ms, elementosNoLaco as zs, elementosNoPonto as xs, emTornoDe as Es, espelhamento as Cs, faixasDoGradienteLinear as Ts, feicaoDoElemento as ws, fonteSegura as Ds, geometriaDaPonta as Is, girarElementos as Fs, iguais as _s, inverter as Ns, limitesLocais as Os, linhasDeHachura as Rs, mapearPontoNaCaixa as Ls, margensAbnt as ks, matriz as qs, matrizDoElemento as Bs, meiaEspessura as js, modoDeTransformacao as Gs, moverElemento as Hs, multiplicar as $s, normalizarAparencia as Vs, normalizarGeometriaElemento as Ks, normalizarGradiente as Ws, normalizarHachura as Us, normalizarParaOrigem as Xs, operacaoBooleana as Zs, padraoTipoLinhaMm as Js, pivoNaFolha as Qs, planejar as Ys, planejarElemento as an, planejarElementos as en, planoDe as tn, pontoNoAnel as rn, raiosCabiveis as on, recompor as sn, redefinirAvisoContexto as nn, regiaoDoElemento as ln, resolverSombra as cn, resumirAparencia as un, temPreenchimento as dn, testarElemento as hn, transformarContorno as mn, varreduraDoArco as fn } from "./prancha-nucleo.js";
|
|
7
7
|
import { d as gr, T as vr } from "./geometria-px-wXudjSxA.js";
|
|
8
8
|
import { K as be, M as Ra, N as br, O as yr, U as ye, S as Ae, L as Ta, d as Se } from "./kit-base-CBXA66aM.js";
|
|
9
|
-
import { E as gn } from "./feature_caixa-
|
|
10
|
-
import { S as Ar } from "./feature_desenho-
|
|
9
|
+
import { E as gn } from "./feature_caixa-DdI35r81.js";
|
|
10
|
+
import { S as Ar } from "./feature_desenho-BSuO-kdG.js";
|
|
11
11
|
const Sr = ":host{--ui-prancha-mesa: var(--ui-cor-fundo);--ui-prancha-papel: var(--ui-cor-papel);--ui-prancha-borda-papel: var(--ui-cor-borda);--ui-prancha-grade: var(--ui-cor-grade-papel);--ui-prancha-selecao: var(--ui-cor-primaria);--ui-prancha-alca: var(--ui-cor-superficie);--ui-prancha-guia: var(--ui-cor-guia);--ui-prancha-guia-inteligente: var(--ui-cor-guia-inteligente);--ui-prancha-snap: var(--ui-cor-destaque);--ui-prancha-regua: var(--ui-cor-fundo-elevado);--ui-prancha-texto-regua: var(--ui-cor-texto-secundario);--ui-prancha-tamanho-regua: 20px;display:block;position:relative;min-height:240px;min-width:240px;height:100%;background:var(--ui-cor-fundo);color:var(--ui-cor-texto);font-family:var(--ui-fonte-base);outline:none;contain:layout paint}:host([hidden]){display:none}.raiz{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;grid-template-columns:var(--ui-prancha-tamanho-regua) 1fr;grid-template-rows:var(--ui-prancha-tamanho-regua) 1fr}:host([sem-reguas]) .raiz{grid-template-columns:0 1fr;grid-template-rows:0 1fr}:host([sem-reguas]) .regua,:host([sem-reguas]) .canto{display:none}.canto{background:var(--ui-prancha-regua);border-right:1px solid var(--ui-cor-borda);border-bottom:1px solid var(--ui-cor-borda)}.regua{display:block;width:100%;height:100%;background:var(--ui-prancha-regua);cursor:default;touch-action:none}.regua-h{border-bottom:1px solid var(--ui-cor-borda);cursor:s-resize}.regua-v{border-right:1px solid var(--ui-cor-borda);cursor:e-resize}.viewport{position:relative;overflow:hidden;background:var(--ui-prancha-mesa);touch-action:none;cursor:default}.viewport:focus-visible{outline:2px solid var(--ui-cor-primaria);outline-offset:-2px}.viewport[data-cursor=mao]{cursor:grab}.viewport[data-cursor=arrastando]{cursor:grabbing}.viewport[data-cursor=mira]{cursor:crosshair}.viewport[data-cursor=mover]{cursor:move}.viewport[data-cursor=girar]{cursor:alias}.viewport[data-cursor=ancora]{cursor:pointer}.camada{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block;pointer-events:none}.status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}@media (pointer: coarse){:host{--ui-prancha-tamanho-regua: 24px}}";
|
|
12
12
|
function Pr() {
|
|
13
13
|
return `
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thibezer/ui-components-kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.1",
|
|
4
4
|
"description": "Web Components nativos (W3C Custom Elements + Shadow DOM) para interfaces densas de GIS, CAD e formulários, sem dependência de framework.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Ct=Object.defineProperty;var Dt=(t,o,n)=>o in t?Ct(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n;var X=(t,o,n)=>Dt(t,typeof o!="symbol"?o+"":o,n);const D=require("./feature_metricas-CnSFE0at.cjs"),O=require("./geometria-px-C4xatxmY.cjs"),Et=111320;function It(t){const{lat:o,lng:n}=D.metrosPorGrau(t[0]),e=t[0],r=t[1],a=o,i=Math.max(n,1);return{paraXY:s=>[(s[1]-r)*i,(s[0]-e)*a],deXY:s=>[e+s[1]/a,r+s[0]/i]}}const E=Object.freeze({tipo:"geografico",unidade:"m",distancia:(t,o)=>D.distanciaMetros(t,o),comprimento:(t,o=!1)=>D.comprimentoMetros(t,o),area:t=>D.areaMetros2(t),planoLocal:It,deslocar(t,o,n){const e=D.metrosPorGrau(t[0]),r=n/e.lat,a=o/Math.max(e.lng,1);return[t[0]+r,t[1]+a]},pontoDaBorda(t,o){return[t[0],t[1]+o/Math.max(D.metrosPorGrau(t[0]).lng,1)]},pontoDeMedidaDoRaio:(t,o)=>[t[0]+o/Et,t[1]],extremosDoCirculo:D.extremosDoCirculoGeografico,fatorEixo:t=>Math.cos(t[0]*Math.PI/180)||1});function st(t,o){const n=e=>{let r=!1;for(let a=0,i=e.length-1;a<e.length;i=a++){const[s,l]=e[a],[u,c]=e[i];s>t[0]!=u>t[0]&&t[1]<(c-l)*(t[0]-s)/(u-s)+l&&(r=!r)}return r};return!o[0]||!n(o[0])?!1:!o.slice(1).some(n)}function ct(t,o,n,e){const r=o[0]-t[0],a=o[1]-t[1],i=e[0]-n[0],s=e[1]-n[1],l=r*s-a*i;if(Math.abs(l)<1e-12)return null;const u=((n[0]-t[0])*s-(n[1]-t[1])*i)/l,c=((n[0]-t[0])*a-(n[1]-t[1])*r)/l;return u<0||u>1||c<0||c>=1?null:{t:u,u:c}}function z(t){let o=0;for(let n=0;n<t.length;n++){const[e,r]=t[n],[a,i]=t[(n+1)%t.length];o+=e*i-a*r}return Math.abs(o)/2}function Ot(t,o,n=E){if(t.length<3||o.length<2)return null;const e=n.planoLocal(t[0]),r=k(t,e),a=k(o,e),i=lt(r,a,0);return i&&i.length>=2?i.map(s=>q(s,e)):null}function lt(t,o,n){if(n>8)return null;const e=t.length,r=[];for(let p=0;p<o.length-1;p++)for(let v=0;v<e;v++){const L=ct(o[p],o[p+1],t[v],t[(v+1)%e]);L&&r.push({tLinha:p+L.t,tAnel:v+L.u,ponto:[o[p][0]+L.t*(o[p+1][0]-o[p][0]),o[p][1]+L.t*(o[p+1][1]-o[p][1])]})}if(r.sort((p,v)=>p.tLinha-v.tLinha),r.length<2)return null;const[a,i]=r,s=[];for(let p=Math.floor(a.tLinha)+1;p<=Math.floor(i.tLinha);p++)p>a.tLinha&&p<i.tLinha&&s.push(o[p]);const l=[a.ponto,...s,i.ponto];let u=a,c=i,f=l;a.tAnel>i.tAnel&&(u=i,c=a,f=[...l].reverse());const h=Math.floor(u.tAnel),d=Math.floor(c.tAnel),y=f.slice(1,-1),g=[u.ponto];for(let p=h+1;p<=d;p++)g.push(t[p%e]);g.push(c.ponto,...[...y].reverse());const P=[c.ponto];for(let p=d+1;p<=h+e;p++)P.push(t[p%e]);P.push(u.ponto,...y);const C=z(t)*1e-9,A=[g,P].filter(p=>p.length>=3&&z(p)>C);if(A.length<2)return null;const m=[i.ponto,...o.slice(Math.floor(i.tLinha)+1)];if(r.length>2&&m.length>=2){const p=[];for(const v of A){const L=lt(v,m,n+1);L?p.push(...L):p.push(v)}return p}return A}function k(t,o){return t.map(n=>o.paraXY(n))}function q(t,o){return t.map(n=>o.deXY(n))}const R=(t,o)=>Math.hypot(t[0]-o[0],t[1]-o[1]);function _t(t,o=0,n=E){if(t.length===0||t.some(i=>i.length<2))return null;const e=n.planoLocal(t[0][0]),r=t.slice(1).map(i=>k(i,e));let a=k(t[0],e);for(;r.length>0;){let i=null;if(r.forEach((f,h)=>{const d=a[0],y=a[a.length-1],g=[{inverter:!1,noFim:!0,d:R(y,f[0])},{inverter:!0,noFim:!0,d:R(y,f[f.length-1])},{inverter:!1,noFim:!1,d:R(d,f[f.length-1])},{inverter:!0,noFim:!1,d:R(d,f[0])}];for(const P of g)(!i||P.d<i.d)&&(i={idx:h,...P})}),!i||i.d>o)return null;const{idx:s,inverter:l,noFim:u}=i;let c=r.splice(s,1)[0];l&&(c=[...c].reverse()),a=u?[...a,...R(a[a.length-1],c[0])>0?c:c.slice(1)]:[...c,...R(c[c.length-1],a[0])>0?a:a.slice(1)]}return q(a,e)}function Nt(t,o,n,e){const r=ct(t,o,n,e);return!!r&&r.t>1e-9&&r.t<1-1e-9&&r.u>1e-9}function Tt(t,o){for(let n=0;n<t.length;n++)for(let e=0;e<o.length;e++)if(Nt(t[n],t[(n+1)%t.length],o[e],o[(e+1)%o.length]))return!0;return!1}function bt(t,o,n=0,e=E){if(t.length<3||o.length<3)return null;const r=e.planoLocal(t[0]),a=k(t,r),i=k(o,r);if(Tt(a,i))return null;let s={i:0,j:0,d:1/0};for(let f=0;f<a.length;f++)for(let h=0;h<i.length;h++){const d=R(a[f],i[h]);d<s.d&&(s={i:f,j:h,d})}if(s.d>n)return null;const{i:l,j:u}=s,c=[];for(let f=0;f<=a.length;f++)c.push(a[(l+f)%a.length]);for(let f=0;f<=i.length;f++)c.push(i[(u+f)%i.length]);return q(c,r)}const Q=16;function Z(t,o,n,e){const r=[];for(let a=0;a<=Q;a++){const i=n+(e-n)*a/Q;r.push([t[0]+o*Math.cos(i),t[1]+o*Math.sin(i)])}return r}function B(t,o){const n=R(t,o)||1;return[-(o[1]-t[1])/n,(o[0]-t[0])/n]}function H(t,o,n){const e=t.length,r=[],a=e;for(let i=0;i<a;i++){const s=n?t[(i-1+e)%e]:t[Math.max(0,i-1)],l=t[i],u=n?t[(i+1)%e]:t[Math.min(e-1,i+1)],c=i===0&&!n?B(l,u):B(s,l),f=i===e-1&&!n?B(s,l):B(l,u);let h=c[0]+f[0],d=c[1]+f[1];const y=Math.hypot(h,d);if(y<1e-9){r.push([l[0]+c[0]*o,l[1]+c[1]*o]);continue}h/=y,d/=y;const g=h*c[0]+d*c[1],P=Math.min(1/Math.max(g,.5),2);r.push([l[0]+h*o*P,l[1]+d*o*P])}return r}function Rt(t){let o=0;for(let n=0;n<t.length;n++){const[e,r]=t[n],[a,i]=t[(n+1)%t.length];o+=(a-e)*(i+r)}return o>0}function kt(t,o,n=E){if(!Number.isFinite(o)||o===0)return null;if(t.tipo==="Point"||t.tipo==="Text"||t.tipo==="Circle"){const e=t.tipo==="Circle"?t.centro:t.coordenada,r=t.tipo==="Circle"?t.raioMetros+o:o;if(r<=0)return null;const a=n.planoLocal(e),i=64;return Array.from({length:i},(s,l)=>[r*Math.cos(2*Math.PI*l/i),r*Math.sin(2*Math.PI*l/i)]).map(s=>a.deXY(s))}if(t.tipo==="LineString"){if(o<0||t.coordenadas.length<2||D.ehMultilinha(t))return null;const e=n.planoLocal(t.coordenadas[0]),r=k(t.coordenadas,e),a=H(r,o,!1),i=H([...r].reverse(),o,!1),s=r[r.length-1],l=r[0],u=Math.atan2(s[1]-r[r.length-2][1],s[0]-r[r.length-2][0]),c=Math.atan2(l[1]-r[1][1],l[0]-r[1][0]),f=Z(s,o,u+Math.PI/2,u-Math.PI/2),h=Z(l,o,c+Math.PI/2,c-Math.PI/2);return q([...a,...f,...i,...h],e)}if(t.tipo==="Polygon"){const e=t.aneis[0];if(!e||e.length<3)return null;const r=n.planoLocal(e[0]);let a=k(e,r);Rt(a)&&(a=[...a].reverse());const s=H(a,-o,!0);return s.length<3||o<0&&z(s)>=z(a)?null:q(s,r)}return null}function Ft(t,o,n,e=E){const r=a=>e.deslocar(a,o,n);switch(t.tipo){case"Point":return{tipo:"Point",coordenada:r(t.coordenada)};case"Text":return{...t,coordenada:r(t.coordenada)};case"Circle":return{...t,centro:r(t.centro)};case"LineString":{const a=D.criarLinha(D.partesDaLinha(t).map(i=>i.map(r)));return t.curva?{...a,curva:O.moverNos(t.curva,r)}:a}case"Polygon":{const a={tipo:"Polygon",aneis:t.aneis.map(i=>i.map(r))};return t.curva?{...a,curva:O.moverNos(t.curva,r)}:a}}}const $={m:1,km:1e3,ft:.3048,mi:1609.344},tt={m2:1,ha:1e4,km2:1e6,ac:4046.8564224,alqueire:24200};function Vt(t,o,n){return t*$[o]/$[n]}function wt(t,o,n){return t*tt[o]/tt[n]}function Xt(t,o,n=E){return n.distancia(t,o)}function jt(t,o,n){return{...t,id:o,geometria:n??JSON.parse(JSON.stringify(t.geometria)),estilo:t.estilo?{...t.estilo}:void 0,propriedades:{...t.propriedades}}}const ut=5e3;function J(t){return t.tipo==="Polygon"?3:t.tipo==="LineString"?2:1}function Gt(t,o=!1){if(t.bloqueada||o)return"bloqueada";const n=t.geometria;return n.tipo!=="Point"&&n.tipo!=="LineString"&&n.tipo!=="Polygon"&&n.tipo!=="Circle"?"tipo-nao-suportado":n.tipo==="Polygon"&&n.aneis.length!==1?"poligono-com-furos":D.ehMultilinha(n)?"multiparte":_(n).length>ut?"muitos-vertices":null}function _(t){return t.tipo==="Point"?[t.coordenada]:t.tipo==="LineString"?t.coordenadas:t.tipo==="Polygon"?t.aneis[0]??[]:[]}function Y(t,o){return t.tipo==="Point"?{tipo:"Point",coordenada:o[0]}:t.tipo==="LineString"?{tipo:"LineString",coordenadas:o}:t.tipo==="Polygon"?{tipo:"Polygon",aneis:[o]}:t}function qt(t,o,n){const e=_(t).slice();return o<0||o>=e.length?t:(e[o]=n,Y(t,e))}function ft(t,o,n){if(t.tipo!=="LineString"&&t.tipo!=="Polygon")return t;const e=_(t).slice();return o<0||o>=e.length?t:(e.splice(o+1,0,n),Y(t,e))}function ht(t,o){if(t.tipo!=="LineString"&&t.tipo!=="Polygon")return null;const n=_(t);return o<0||o>=n.length||n.length<=J(t)?null:Y(t,n.filter((e,r)=>r!==o))}function K(t,o){return[(t[0]+o[0])/2,(t[1]+o[1])/2]}function mt(t){const o=_(t).length,n=[];if(t.tipo!=="LineString"&&t.tipo!=="Polygon")return n;for(let e=0;e<o-1;e++)n.push([e,e+1]);return t.tipo==="Polygon"&&o>2&&n.push([o-1,0]),n}function N(t){return(t.tipo==="LineString"||t.tipo==="Polygon")&&t.curva&&t.curva.length>=J(t)?t.curva:null}const pt=.5;function dt(t,o,n=E){return n.pontoDaBorda(t,o)}function Yt(t,o=E){var n;return t.tipo==="Circle"?[t.centro,dt(t.centro,t.raioMetros,o)]:((n=N(t))==null?void 0:n.map(e=>e.ponto))??_(t)}function V(t,o){const n=t.tipo==="Polygon",e=O.amostrarCurva(o,n);return n?{tipo:"Polygon",aneis:[e],curva:o}:{tipo:"LineString",coordenadas:e,curva:o}}function Bt(t,o,n=E){if(t.tipo==="Circle")return o.length<2?t:{...t,centro:o[0],raioMetros:Math.max(pt,n.distancia(o[0],o[1]))};const e=N(t);if(!e||e.length!==o.length)return Y(t,o);const r=e.map((a,i)=>{const s=o[i][0]-a.ponto[0],l=o[i][1]-a.ponto[1],u=f=>[f[0]+s,f[1]+l],c={ponto:o[i]};return a.entrada&&(c.entrada=u(a.entrada)),a.saida&&(c.saida=u(a.saida)),a.modo&&(c.modo=a.modo),c});return V(t,r)}function w(t,o,n){return[t[0]+(o[0]-t[0])*n,t[1]+(o[1]-t[1])*n]}function zt(t,o,n){const[e,r]=O.controlesDoSegmento(t,o);let a=.5,i=1/0;for(let s=1;s<64;s++){const l=s/64,u=O.pontoDaCubica(t.ponto,e,r,o.ponto,l),c=(u[0]-n[0])**2+(u[1]-n[1])**2;c<i&&(i=c,a=l)}return a}function gt(t,o,n){const e=N(t);if(!e){const i=_(t);return K(i[o],i[n])}const[r,a]=O.controlesDoSegmento(e[o],e[n]);return O.pontoDaCubica(e[o].ponto,r,a,e[n].ponto,.5)}function Pt(t){const o=N(t);if(!o)return mt(t);const n=[];for(let e=0;e<o.length-1;e++)n.push([e,e+1]);return t.tipo==="Polygon"&&o.length>2&&n.push([o.length-1,0]),n}function Jt(t,o,n){const e=N(t);if(!e)return ft(t,o,n);if(o<0||o>=e.length)return t;const r=(o+1)%e.length,a=e[o],i=e[r],s=a.saida===void 0&&i.entrada===void 0;let l,u=a,c=i;if(s)l={ponto:n};else{const h=zt(a,i,n),[d,y]=O.controlesDoSegmento(a,i),g=w(a.ponto,d,h),P=w(d,y,h),M=w(y,i.ponto,h),C=w(g,P,h),A=w(P,M,h);l={ponto:w(C,A,h),entrada:C,saida:A,modo:"suave"},u={...a,saida:g},c={...i,entrada:M},O.tipoDoNo(a)==="simetrico"&&a.entrada&&(u.modo="suave"),O.tipoDoNo(i)==="simetrico"&&i.saida&&(c.modo="suave")}const f=e.slice();return f[o]=u,f[r]=c,f.splice(o+1,0,l),V(t,f)}function Ut(t,o){const n=N(t);return n?o<0||o>=n.length||n.length<=J(t)?null:V(t,n.filter((e,r)=>r!==o)):ht(t,o)}function U(t){return t.tipo!=="LineString"&&t.tipo!=="Polygon"?null:N(t)??_(t).map(o=>({ponto:[o[0],o[1]]}))}const Ht=40;function Wt(t,o,n){const e=U(t);if(!e||o<0||o>=e.length)return null;const r=t.tipo==="Polygon",a=e.length,i=n==="saida"?o<a-1?e[o+1]:r?e[0]:null:o>0?e[o-1]:r?e[a-1]:null;if(!i)return null;const s=e[o].ponto;return[s[0]+(i.ponto[0]-s[0])/3,s[1]+(i.ponto[1]-s[1])/3]}function yt(t){const o=D.metrosPorGrau(t[0]);return{ref:t,mLat:Math.max(o.lat,1e-9),mLng:Math.max(o.lng,1e-9)}}const W=(t,o)=>[(o[1]-t.ref[1])*t.mLng,(o[0]-t.ref[0])*t.mLat],Mt=(t,o,n)=>[t.ref[0]+n/t.mLat,t.ref[1]+o/t.mLng],Kt=t=>Array.isArray(t)&&t.length===2&&Number.isFinite(t[0])&&Number.isFinite(t[1]);function vt(t,o,n,e,r=!1){const a=O.tipoDoNo(t),i=r?"livre":a==="canto"?e:a,s=o==="saida"?"entrada":"saida",l={...t,[o]:n,modo:i};if(i==="simetrico")l[s]=O.espelhoDaAlca(t.ponto,n);else if(i==="suave"){const u=yt(t.ponto),[c,f]=W(u,n),h=Math.hypot(c,f),d=t[s],[y,g]=d?W(u,d):[c,f],P=Math.hypot(y,g);h>0&&P>0&&(l[s]=Mt(u,-(c/h)*P,-(f/h)*P))}return l}function Qt(t,o,n,e,r=!0){const a=U(t);if(!a||o<0||o>=a.length||!Kt(e))return t;const i=a.slice();return i[o]=vt(a[o],n,e,"simetrico",!r),V(t,i)}function Zt(t,o){const n=U(t);if(!n||o<0||o>=n.length)return t;const e=n[o],r=n.slice();if(e.entrada||e.saida)return r[o]={ponto:e.ponto},V(t,r);const a=t.tipo==="Polygon",i=n.length,s=o>0?n[o-1]:a?n[i-1]:null,l=o<i-1?n[o+1]:a?n[0]:null;if(!s&&!l)return t;const u=e.ponto;let c,f;if(s&&l)c=(l.ponto[0]-s.ponto[0])/6,f=(l.ponto[1]-s.ponto[1])/6;else{const h=(l??s).ponto,d=l?1:-1;c=(h[0]-u[0])/3*d,f=(h[1]-u[1])/3*d}return r[o]={ponto:u,saida:[u[0]+c,u[1]+f],entrada:[u[0]-c,u[1]-f]},V(t,r)}const $t=128,to=()=>typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now(),oo="rgba(255,255,255,0.9)";function Lt(t){if(!t)return[];const o=t.split(/[\s,]+/).map(Number).filter(n=>Number.isFinite(n)&&n>=0);return o.length>0&&o.some(n=>n>0)?o.length%2===1?[...o,...o]:o:[]}const I=t=>Number.isFinite(t),no=new Set(["marca","caixa","poligono","circulo","linha","ponto"]);function eo(t){let o=0;if(t)for(const n of t.itens)no.has(n.forma)&&o++;return o}class ro{constructor(o){X(this,"destaques",new Set);X(this,"destruido",!1);X(this,"ultima",{itens:0,marcas:0,preenchimentos:0,tracos:0,chamadas:0});X(this,"semTracejado",!1);this.alvos=o}definirTracejado(o){this.semTracejado=!o}destacar(o){this.destaques=new Set(o)}limpar(){const o=this.alvos.sobreposicao();o&&this.limparSuperficie(o)}destruir(){this.destruido=!0,this.destaques.clear()}desenhar(o,n,e={}){const r=this.desenharFatiado(o,n,e);return r.passo(Number.POSITIVE_INFINITY),r.estatisticas}desenharFatiado(o,n,e={},r=to){const a={itens:0,marcas:0,caixas:0,preenchimentos:0,tracos:0,chamadas:0};if(this.destruido||!o)return{passo:()=>!0,estatisticas:a};const i=e.alvo==="sobreposicao",s=n&&I(n.dpr)&&n.dpr>0?n.dpr:1,l=o.origem;let u=null,c=0,f=0,h=0,d=!1;const y=()=>{const P=[];if(i){const M=this.alvos.sobreposicao();M&&e.limpar!==!1&&this.limparSuperficie(M,s)}for(const M of o.camadas){const C=i?this.alvos.sobreposicao():this.alvos.camada(M.camadaId);C&&(!i&&e.limpar!==!1&&this.limparSuperficie(C,s),P.push({sup:C,lotes:this.lotesDaCamada(M,i,a)}))}return P};return{passo:P=>{if(d)return!0;if(this.destruido)return d=!0,!0;u??(u=y());const M=e.recorte;for(;c<u.length;){const{sup:C,lotes:A}=u[c],m=C.ctx;m.setTransform(s,0,0,s,0,0),M&&(m.save(),m.beginPath(),m.rect(M.x,M.y,M.largura,M.altura),m.clip());let p=!1;try{for(m.lineJoin="round",m.lineCap="round";f<A.length;){const v=A[f],L=this.pintorDoLote(m,v,l,a,h===0);if(!L){f++,h=0;continue}const x=v.itens.length;for(;h<x;){const S=Math.min(x,h+$t);for(;h<S;h++)L(v.itens[h]);if(h<x&&r()>=P){p=!0;break}}if(p)break;if(f++,h=0,f<A.length&&r()>=P){p=!0;break}}p||(m.globalAlpha=1,m.setLineDash([]),m.lineDashOffset=0)}finally{M&&m.restore()}if(p)return!1;c++,f=0,h=0}return d=!0,this.ultima=a,!0},estatisticas:a}}limparSuperficie(o,n){const e=n??o.dpr;o.ctx.setTransform(1,0,0,1,0,0),o.ctx.clearRect(0,0,Math.ceil(o.largura*e),Math.ceil(o.altura*e)),o.ctx.setTransform(e,0,0,e,0,0)}lotesDaCamada(o,n,e){const r=[],a=[],i=[],s=[],l=[];for(const f of o.itens)switch(f.forma){case"marca":r.push(f);break;case"caixa":a.push(f);break;case"poligono":case"circulo":i.push(f);break;case"linha":s.push(f);break;case"ponto":l.push(f);break}e.itens+=r.length+a.length+i.length+s.length+l.length;const u=[];if(n){const f=[];for(const h of[i,s,l])for(const d of h)(d.destaque||this.destaques.has(d.id))&&f.push(d);f.length>0&&u.push({tipo:"halo",estilo:null,itens:f})}const c=(f,h)=>{for(const[d,y]of this.agrupar(h))u.push({tipo:f,estilo:d,itens:y})};return c("marca",r),c("caixa",a),c("area",i),c("linha",s),c("area",l),u}agrupar(o){const n=new Map;for(const e of o){const r=n.get(e.estilo);r?r.push(e):n.set(e.estilo,[e])}return n}pintorDoLote(o,n,e,r,a){const i=n.estilo;if(n.tipo==="halo")return f=>this.halo(o,f,e,r);if(!i)return null;if(n.tipo==="marca")return o.fillStyle=i.corPreenchimento,o.globalAlpha=i.opacidadePreenchimento,a&&(r.chamadas+=2),f=>{const h=f.geometriaEmPx[0];if(!h)return;const d=h[0]-e.x,y=h[1]-e.y;if(!(I(d)&&I(y)))return;const g=f.raioPx>=2?2:1;o.fillRect(Math.round(d-g/2),Math.round(y-g/2),g,g),r.marcas++,r.chamadas++};if(n.tipo==="caixa"){const f=i.traco&&i.peso>0,h=i.preencher&&i.opacidadePreenchimento>0;if(!f&&!h)return null;o.fillStyle=f?i.cor:i.corPreenchimento,o.globalAlpha=f?i.opacidadeTraco??1:i.opacidadePreenchimento;const d=f?i.peso/2:0;return a&&(r.chamadas+=2),y=>{const g=y.geometriaEmPx[0];if(!g||g.length<4)return;const P=Math.floor(g[0]-e.x-d),M=Math.floor(g[1]-e.y-d),C=Math.ceil(g[2]-e.x+d),A=Math.ceil(g[3]-e.y+d);I(P)&&I(M)&&I(C)&&I(A)&&(o.fillRect(P,M,Math.max(1,C-P),Math.max(1,A-M)),r.caixas=(r.caixas??0)+1,r.chamadas++)}}const s=n.tipo==="area"&&i.preencher&&i.opacidadePreenchimento>0,l=i.traco&&i.peso>0;if(!s&&!l)return null;s&&(o.fillStyle=i.corPreenchimento),l&&(o.strokeStyle=i.cor,o.lineWidth=i.peso,o.setLineDash(this.semTracejado?[]:Lt(i.dash)),o.lineDashOffset=this.semTracejado?0:i.deslocamentoDash??0,o.lineCap=i.terminacao??"round",o.lineJoin=i.juncao??"round"),a&&(r.chamadas+=3);const u=i.opacidadePreenchimento,c=i.opacidadeTraco??1;return f=>{o.beginPath(),this.caminho(o,f,e),s&&(o.globalAlpha=u,o.fill(),r.preenchimentos++,r.chamadas++),l&&(o.globalAlpha=c,o.stroke(),r.tracos++,r.chamadas++)}}caminho(o,n,e){if(n.forma==="circulo"||n.forma==="ponto"){const a=n.geometriaEmPx[0];if(!a)return;const i=a[0]-e.x,s=a[1]-e.y;I(i)&&I(s)&&I(n.raioPx)&&(o.moveTo(i+n.raioPx,s),o.arc(i,s,n.raioPx,0,Math.PI*2));return}const r=n.forma==="poligono";for(const a of n.geometriaEmPx){const i=a.length>>1;if(i<2)continue;let s=!1;for(let l=0;l<i;l++){const u=a[l*2]-e.x,c=a[l*2+1]-e.y;I(u)&&I(c)&&(s?o.lineTo(u,c):(o.moveTo(u,c),s=!0))}s&&r&&o.closePath()}}halo(o,n,e,r){o.strokeStyle=oo,o.lineWidth=Math.max(n.estilo.peso,1)+4,o.globalAlpha=.9,o.setLineDash([]),o.lineCap="round",o.lineJoin="round",o.beginPath(),this.caminho(o,n,e),o.stroke(),r.tracos++,r.chamadas+=4}}const ot=36,nt=.45;function io(t,o){const n=Math.abs(o[0]-t[0]),e=Math.abs(o[1]-t[1]);if(n===0&&e===0)return null;const r=[];for(let a=0;a<ot;a++){const i=a*2*Math.PI/ot;r.push([t[0]+n*Math.sin(i),t[1]+e*Math.cos(i)])}return r}function xt(t,o,n){const e=n.fatorEixo(t),r=o[0]-t[0],a=(o[1]-t[1])*e,i=Math.hypot(r,a);return i===0?null:{raio:i,inicio:Math.atan2(r,a),cosLat:e}}function ao(t,o,n=6,e=E){const r=xt(t,o,e);if(!r||n<3)return null;const a=[];for(let i=0;i<n;i++){const s=r.inicio+i*2*Math.PI/n;a.push([t[0]+r.raio*Math.sin(s),t[1]+r.raio*Math.cos(s)/r.cosLat])}return a}function so(t,o,n=5,e=E,r=nt){const a=xt(t,o,e);if(!a||n<3)return null;const i=Number.isFinite(r)&&r>0&&r<=1?r:nt,s=n*2,l=[];for(let u=0;u<s;u++){const c=u%2===0?a.raio:a.raio*i,f=a.inicio+u*2*Math.PI/s;l.push([t[0]+c*Math.sin(f),t[1]+c*Math.cos(f)/a.cosLat])}return l}const At=10,j=(t,o)=>Math.hypot(t.x-o.x,t.y-o.y);function et(t,o,n){const e=n.x-o.x,r=n.y-o.y,a=e*e+r*r,i=a===0?0:Math.max(0,Math.min(1,((t.x-o.x)*e+(t.y-o.y)*r)/a));return{t:i,d:Math.hypot(t.x-(o.x+i*e),t.y-(o.y+i*r))}}function co(t,o,n,e={},r){const a=e.toleranciaPx??At,i=e.vertice!==!1,s=e.meio!==!1,l=e.aresta!==!1;let u=null,c=null,f=null;const h=(d,y)=>!d||y.distanciaPx<d.distanciaPx?y:d;for(const d of o){if(d.excluida||d.oculta)continue;const y=!!r&&r.feicaoId===d.id&&(r.camadaId===void 0||r.camadaId===d.camadaId),g=d.geometria,P={feicaoId:d.id,camadaId:d.camadaId};if(g.tipo==="Point"||g.tipo==="Text"||g.tipo==="Circle"){if(!i||y)continue;const m=g.tipo==="Circle"?g.centro:g.coordenada,p=j(t,n(m));p<=a&&(u=h(u,{tipo:"vertice",coordenada:m,distanciaPx:p,...P}));continue}if(y&&(g.tipo==="LineString"||g.tipo==="Polygon")&&g.curva)continue;const M=g.tipo==="LineString"||g.tipo==="Polygon"?N(g):null;if(M){if(i)for(const m of M){const p=j(t,n(m.ponto));p<=a&&(u=h(u,{tipo:"vertice",coordenada:m.ponto,distanciaPx:p,...P}))}if(s)for(const[m,p]of Pt(g)){const v=gt(g,m,p),L=j(t,n(v));L<=a&&(c=h(c,{tipo:"meio",coordenada:v,distanciaPx:L,...P}))}if(l){const m=_(g),p=m.map(n),v=g.tipo==="Polygon"&&m.length>2?m.length:m.length-1;for(let L=0;L<v;L++){const x=L,S=(L+1)%m.length,{t:T,d:b}=et(t,p[x],p[S]);if(b<=a){const F=[m[x][0]+T*(m[S][0]-m[x][0]),m[x][1]+T*(m[S][1]-m[x][1])];f=h(f,{tipo:"aresta",coordenada:F,distanciaPx:b,...P})}}}continue}const C=g.tipo==="LineString"?D.partesDaLinha(g).map(m=>({pts:m,fechado:!1})):[{pts:_(g),fechado:g.tipo==="Polygon"}],A=y?r.vertice:void 0;for(const{pts:m,fechado:p}of C){const v=m.map(n);if(i)for(let x=0;x<m.length;x++){if(x===A)continue;const S=j(t,v[x]);S<=a&&(u=h(u,{tipo:"vertice",coordenada:m[x],distanciaPx:S,...P}))}if(!s&&!l)continue;const L=p&&m.length>2?m.length:m.length-1;for(let x=0;x<L;x++){const S=x,T=(x+1)%m.length;if(!(A!==void 0&&(S===A||T===A))&&!(y&&A===void 0)){if(s){const b=K(m[S],m[T]),F=j(t,n(b));F<=a&&(c=h(c,{tipo:"meio",coordenada:b,distanciaPx:F,...P}))}if(l){const{t:b,d:F}=et(t,v[S],v[T]);if(F<=a){const St=[m[S][0]+b*(m[T][0]-m[S][0]),m[S][1]+b*(m[T][1]-m[S][1])];f=h(f,{tipo:"aresta",coordenada:St,distanciaPx:F,...P})}}}}}}return u??c??f}function G(t,o){return t.x>=o.x1&&t.x<=o.x2&&t.y>=o.y1&&t.y<=o.y2}function rt(t,o,n){let e=0,r=1;const a=o.x-t.x,i=o.y-t.y,s=[-a,a,-i,i],l=[t.x-n.x1,n.x2-t.x,t.y-n.y1,n.y2-t.y];for(let u=0;u<4;u++)if(s[u]===0){if(l[u]<0)return!1}else{const c=l[u]/s[u];if(s[u]<0){if(c>r)return!1;c>e&&(e=c)}else{if(c<e)return!1;c<r&&(r=c)}}return!0}function it(t,o){let n=!1;for(let e=0,r=o.length-1;e<o.length;r=e++){const a=o[e],i=o[r];a.y>t.y!=i.y>t.y&&t.x<(i.x-a.x)*(t.y-a.y)/(i.y-a.y)+a.x&&(n=!n)}return n}function at(t,o,n){for(let e=1;e<t.length;e++)if(rt(t[e-1],t[e],o))return!0;return n&&t.length>2&&rt(t[t.length-1],t[0],o)}function lo(t,o,n,e){const r=n(t),a=n(e.pontoDeMedidaDoRaio(t,o));return Math.hypot(a.x-r.x,a.y-r.y)}function uo(t,o,n,e,r=E){if(t.oculta)return!1;const a=t.geometria,i=e==="window";switch(a.tipo){case"Point":case"Text":return G(n(a.coordenada),o);case"LineString":{const s=D.partesDaLinha(a).map(l=>l.map(n));return i?s.every(l=>l.every(u=>G(u,o))):s.some(l=>l.some(u=>G(u,o))||at(l,o,!1))}case"Polygon":{const s=a.aneis.map(c=>c.map(n)),l=s[0];if(!l)return!1;if(i)return l.every(c=>G(c,o));if(s.some(c=>c.some(f=>G(f,o))||at(c,o,!0)))return!0;const u={x:o.x1,y:o.y1};return it(u,l)&&!s.slice(1).some(c=>it(u,c))}case"Circle":{const s=n(a.centro),l=lo(a.centro,a.raioMetros,n,r);if(i)return s.x-l>=o.x1&&s.x+l<=o.x2&&s.y-l>=o.y1&&s.y+l<=o.y2;const u=Math.max(o.x1,Math.min(s.x,o.x2)),c=Math.max(o.y1,Math.min(s.y,o.y2));return Math.hypot(s.x-u,s.y-c)<=l}}}function fo(t,o){if(o.length<3||t.oculta)return!1;const n=r=>st(r,[o]),e=t.geometria;switch(e.tipo){case"Point":case"Text":return n(e.coordenada);case"Circle":return n(e.centro);case"LineString":return D.partesDaLinha(e).some(r=>r.some(n));case"Polygon":{const r=e.aneis[0]??[];if(r.some(n))return!0;if(r.length<3)return!1;const a=r.reduce((i,s)=>[i[0]+s[0],i[1]+s[1]],[0,0]);return n([a[0]/r.length,a[1]/r.length])}}}exports.ESPACO_GEOGRAFICO=E;exports.MAX_NOS_COM_ALCA_LATENTE=Ht;exports.MAX_VERTICES_EDICAO=ut;exports.PintorCanvas2D=ro;exports.RAIO_MINIMO_EDICAO_CIRCULO_M=pt;exports.TOLERANCIA_SNAP_PX=At;exports.alcaLatente=Wt;exports.alternarSuavidade=Zt;exports.buscarSnap=co;exports.clonarFeicao=jt;exports.comAlcaMovida=vt;exports.comNos=V;exports.comPontos=Bt;exports.comVertices=Y;exports.contarItensCanvas=eo;exports.converterArea=wt;exports.converterComprimento=Vt;exports.deMetros=Mt;exports.deslocarGeometria=Ft;exports.distanciaEntre=Xt;exports.dividirPoligonoComLinha=Ot;exports.feicaoNaCaixa=uo;exports.feicaoNoLaco=fo;exports.gerarBuffer=kt;exports.gerarElipse=io;exports.gerarEstrela=so;exports.gerarPoligonoRegular=ao;exports.inserirPonto=Jt;exports.inserirVertice=ft;exports.juntarLinhas=_t;exports.juntarPoligonos=bt;exports.minimoVertices=J;exports.moverAlca=Qt;exports.moverVertice=qt;exports.nosDe=N;exports.nosOuVertices=U;exports.paraMetros=W;exports.parseDash=Lt;exports.planoLocal=yt;exports.pontoDaBordaDoCirculo=dt;exports.pontoMedio=K;exports.pontoMedioDoSegmento=gt;exports.pontoNoPoligono=st;exports.pontosDe=Yt;exports.removerPonto=Ut;exports.removerVertice=ht;exports.segmentosDe=mt;exports.segmentosDoEditor=Pt;exports.verificarEditavel=Gt;exports.verticesDe=_;
|