@corpsmap/corpsmap 4.1.16 → 4.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/corpsmap.es.js
CHANGED
|
@@ -12841,7 +12841,7 @@ const config$1 = {
|
|
|
12841
12841
|
path: "depricated"
|
|
12842
12842
|
}
|
|
12843
12843
|
]
|
|
12844
|
-
}, version = "4.1.
|
|
12844
|
+
}, version = "4.1.18", pkg = {
|
|
12845
12845
|
version
|
|
12846
12846
|
};
|
|
12847
12847
|
console.log("------ RUNNING CORPSMAP V." + pkg.version + " ------");
|
|
@@ -33157,7 +33157,7 @@ class LegendButton extends React__default.Component {
|
|
|
33157
33157
|
}
|
|
33158
33158
|
}
|
|
33159
33159
|
let req$1 = null;
|
|
33160
|
-
const bundle$c = {
|
|
33160
|
+
const safeRgba = (e, t = [0, 0, 0, 0]) => e ? `rgba(${e.join()})` : `rgba(${t.join()})`, bundle$c = {
|
|
33161
33161
|
name: "legend",
|
|
33162
33162
|
getReducer: () => {
|
|
33163
33163
|
const e = {
|
|
@@ -33298,9 +33298,9 @@ const bundle$c = {
|
|
|
33298
33298
|
case "esriGeometryPolygon":
|
|
33299
33299
|
if (E.renderer.symbol && E.renderer.symbol.type === "esriSFS" && E.renderer.symbol.style === "esriSFSSolid") {
|
|
33300
33300
|
let I = new Image();
|
|
33301
|
-
const x = E.renderer.symbol.outline
|
|
33301
|
+
const x = E.renderer.symbol.outline?.color, S = E.renderer.symbol.color;
|
|
33302
33302
|
let T = document.createElement("canvas"), N = T.getContext("2d");
|
|
33303
|
-
T.width = 20, T.height = 20, b[o].widths.push(T.width), b[o].heights.push(T.height), N.beginPath(), N.lineWidth = "2", N.strokeStyle =
|
|
33303
|
+
T.width = 20, T.height = 20, b[o].widths.push(T.width), b[o].heights.push(T.height), N.beginPath(), N.lineWidth = "2", N.strokeStyle = safeRgba(x), N.rect(0, 0, 20, 20), N.stroke(), N.fillStyle = safeRgba(S), N.fillRect(1, 1, 18, 18), I.src = T.toDataURL(), I.alt = `Style for ${d}`, I.crossOrigin = "anonymous", b[o].canvas.push(T), r({
|
|
33304
33304
|
type: "LEGEND_CANVAS_ADDED",
|
|
33305
33305
|
payload: {
|
|
33306
33306
|
legendCanvases: b,
|
|
@@ -33315,10 +33315,10 @@ const bundle$c = {
|
|
|
33315
33315
|
});
|
|
33316
33316
|
} else if (E.renderer.symbol && E.renderer.symbol.type === "esriSFS" && E.renderer.symbol.style === "esriSFSBackwardDiagonal") {
|
|
33317
33317
|
let I = new Image();
|
|
33318
|
-
const x = E.renderer.symbol.outline
|
|
33318
|
+
const x = E.renderer.symbol.outline?.color;
|
|
33319
33319
|
E.renderer.symbol.color;
|
|
33320
33320
|
let S = document.createElement("canvas"), T = S.getContext("2d");
|
|
33321
|
-
S.width = 20, S.height = 20, b[o].widths.push(S.width), b[o].heights.push(S.height), T.beginPath(), T.moveTo(0, 10), T.lineTo(10, 0), T.moveTo(0, 20), T.lineTo(20, 0), T.moveTo(10, 20), T.lineTo(20, 10), T.lineWidth = "2", T.strokeStyle =
|
|
33321
|
+
S.width = 20, S.height = 20, b[o].widths.push(S.width), b[o].heights.push(S.height), T.beginPath(), T.moveTo(0, 10), T.lineTo(10, 0), T.moveTo(0, 20), T.lineTo(20, 0), T.moveTo(10, 20), T.lineTo(20, 10), T.lineWidth = "2", T.strokeStyle = safeRgba(x), T.rect(0, 0, 20, 20), T.stroke(), I.src = S.toDataURL(), I.alt = `Style for ${d}`, I.crossOrigin = "anonymous", b[o].canvas.push(S), r({
|
|
33322
33322
|
type: "LEGEND_CANVAS_ADDED",
|
|
33323
33323
|
payload: {
|
|
33324
33324
|
legendCanvases: b,
|
|
@@ -33331,32 +33331,36 @@ const bundle$c = {
|
|
|
33331
33331
|
loading: !1
|
|
33332
33332
|
}
|
|
33333
33333
|
});
|
|
33334
|
-
} else E.renderer.type === "uniqueValue" && E.renderer.uniqueValueInfos
|
|
33335
|
-
|
|
33336
|
-
|
|
33337
|
-
|
|
33338
|
-
|
|
33339
|
-
|
|
33340
|
-
|
|
33341
|
-
|
|
33334
|
+
} else if (E.renderer.type === "uniqueValue" && E.renderer.uniqueValueInfos) {
|
|
33335
|
+
const I = /* @__PURE__ */ new Set();
|
|
33336
|
+
E.renderer.uniqueValueInfos.forEach((x) => {
|
|
33337
|
+
if (!x.label || I.has(x.label)) return;
|
|
33338
|
+
I.add(x.label);
|
|
33339
|
+
let S = new Image();
|
|
33340
|
+
const T = x.symbol.color, N = x.symbol.outline && x.symbol.outline.color ? x.symbol.outline.color : T;
|
|
33341
|
+
let k = document.createElement("canvas"), L = k.getContext("2d");
|
|
33342
|
+
const G = Number(L.measureText(x.label).width);
|
|
33343
|
+
k.width = 20 + G + 4, k.height = 20, b[o].widths.push(k.width), b[o].heights.push(k.height), L.beginPath(), L.lineWidth = "2", L.strokeStyle = safeRgba(N), L.rect(0, 0, 20, 20), L.stroke(), L.fillStyle = safeRgba(T), L.fillRect(1, 1, 18, 18), L.font = "10px Arial", L.fillStyle = "black", L.fillText(x.label, 22, k.height / 2), S.src = k.toDataURL(), S.alt = `Style for ${d}`, S.crossOrigin = "anonymous", b[o].canvas.push(k), r({
|
|
33344
|
+
type: "LEGEND_CANVAS_ADDED",
|
|
33345
|
+
payload: {
|
|
33346
|
+
legendCanvases: b,
|
|
33347
|
+
loading: !1
|
|
33348
|
+
}
|
|
33349
|
+
}), y[o].push(S);
|
|
33350
|
+
}), r({
|
|
33351
|
+
type: "LEGEND_LAYERS_UPDATED",
|
|
33342
33352
|
payload: {
|
|
33343
|
-
|
|
33353
|
+
legendLayers: y,
|
|
33344
33354
|
loading: !1
|
|
33345
33355
|
}
|
|
33346
|
-
})
|
|
33347
|
-
}
|
|
33348
|
-
type: "LEGEND_LAYERS_UPDATED",
|
|
33349
|
-
payload: {
|
|
33350
|
-
legendLayers: y,
|
|
33351
|
-
loading: !1
|
|
33352
|
-
}
|
|
33353
|
-
}));
|
|
33356
|
+
});
|
|
33357
|
+
}
|
|
33354
33358
|
break;
|
|
33355
33359
|
case "esriGeometryPolyline":
|
|
33356
33360
|
if (E.renderer.symbol && E.renderer.symbol.type === "esriSLS" && E.renderer.symbol.style === "esriSLSSolid") {
|
|
33357
33361
|
let I = new Image(), x = document.createElement("canvas"), S = x.getContext("2d");
|
|
33358
33362
|
const T = E.renderer.symbol.color;
|
|
33359
|
-
x.width = 20, x.height = 20, b[o].widths.push(x.width), b[o].heights.push(x.height), S.beginPath(), S.strokeStyle =
|
|
33363
|
+
x.width = 20, x.height = 20, b[o].widths.push(x.width), b[o].heights.push(x.height), S.beginPath(), S.strokeStyle = safeRgba(T), S.moveTo(0, 0), S.lineTo(20, 20), S.stroke(), I.src = x.toDataURL(), I.alt = `Style for ${d}`, I.crossOrigin = "anonymous", b[o].canvas.push(x), r({
|
|
33360
33364
|
type: "LEGEND_CANVAS_ADDED",
|
|
33361
33365
|
payload: {
|
|
33362
33366
|
legendCanvases: b,
|
|
@@ -33369,23 +33373,28 @@ const bundle$c = {
|
|
|
33369
33373
|
loading: !1
|
|
33370
33374
|
}
|
|
33371
33375
|
});
|
|
33372
|
-
} else E.renderer.type === "uniqueValue" && E.renderer.uniqueValueInfos
|
|
33373
|
-
|
|
33374
|
-
|
|
33375
|
-
|
|
33376
|
-
|
|
33376
|
+
} else if (E.renderer.type === "uniqueValue" && E.renderer.uniqueValueInfos) {
|
|
33377
|
+
const I = /* @__PURE__ */ new Set();
|
|
33378
|
+
E.renderer.uniqueValueInfos.forEach((x) => {
|
|
33379
|
+
if (!x.label || I.has(x.label)) return;
|
|
33380
|
+
I.add(x.label);
|
|
33381
|
+
let S = new Image(), T = document.createElement("canvas"), N = T.getContext("2d");
|
|
33382
|
+
const k = Number(N.measureText(x.label).width), L = x.symbol.color;
|
|
33383
|
+
T.width = 20 + k + 4, T.height = 20, b[o].widths.push(T.width), b[o].heights.push(T.height), N.beginPath(), N.strokeStyle = safeRgba(L), N.moveTo(0, 0), N.lineTo(20, 20), N.stroke(), N.font = "10px Arial", N.fillStyle = "black", N.fillText(x.label, 22, T.height / 2), S.src = T.toDataURL(), S.alt = `Style for ${d}`, S.crossOrigin = "anonymous", b[o].canvas.push(T), r({
|
|
33384
|
+
type: "LEGEND_CANVAS_ADDED",
|
|
33385
|
+
payload: {
|
|
33386
|
+
legendCanvases: b,
|
|
33387
|
+
loading: !1
|
|
33388
|
+
}
|
|
33389
|
+
}), y[o].push(S);
|
|
33390
|
+
}), r({
|
|
33391
|
+
type: "LEGEND_LAYERS_UPDATED",
|
|
33377
33392
|
payload: {
|
|
33378
|
-
|
|
33393
|
+
legendLayers: y,
|
|
33379
33394
|
loading: !1
|
|
33380
33395
|
}
|
|
33381
|
-
})
|
|
33382
|
-
}
|
|
33383
|
-
type: "LEGEND_LAYERS_UPDATED",
|
|
33384
|
-
payload: {
|
|
33385
|
-
legendLayers: y,
|
|
33386
|
-
loading: !1
|
|
33387
|
-
}
|
|
33388
|
-
}));
|
|
33396
|
+
});
|
|
33397
|
+
}
|
|
33389
33398
|
break;
|
|
33390
33399
|
case "esriGeometryPoint":
|
|
33391
33400
|
if (E.renderer.symbol && E.renderer.symbol.type === "esriPMS") {
|
|
@@ -33412,9 +33421,9 @@ const bundle$c = {
|
|
|
33412
33421
|
});
|
|
33413
33422
|
} else if (E.renderer.symbol && E.renderer.symbol.type === "esriSMS") {
|
|
33414
33423
|
let I = new Image();
|
|
33415
|
-
const x = E.renderer.symbol.outline
|
|
33424
|
+
const x = E.renderer.symbol.outline?.color, S = E.renderer.symbol.outline?.width ?? 1, T = E.renderer.symbol.color, N = E.renderer.symbol.size;
|
|
33416
33425
|
let k = document.createElement("canvas"), L = k.getContext("2d");
|
|
33417
|
-
k.width = 20, k.height = 20, b[o].widths.push(k.width), b[o].heights.push(k.height), L.beginPath(), L.strokeStyle =
|
|
33426
|
+
k.width = 20, k.height = 20, b[o].widths.push(k.width), b[o].heights.push(k.height), L.beginPath(), L.strokeStyle = safeRgba(x), L.lineWidth = S, L.arc(N, N, N / 1.5, 0, Math.PI * 2), L.fillStyle = safeRgba(T), L.fill(), L.stroke(), I.src = k.toDataURL(), I.alt = `Style for ${d}`, I.crossOrigin = "anonymous", b[o].canvas.push(k), r({
|
|
33418
33427
|
type: "LEGEND_CANVAS_ADDED",
|
|
33419
33428
|
payload: {
|
|
33420
33429
|
legendCanvases: b,
|
|
@@ -33449,9 +33458,9 @@ const bundle$c = {
|
|
|
33449
33458
|
});
|
|
33450
33459
|
} else E.renderer.classBreakInfos ? E.renderer.classBreakInfos.forEach((I) => {
|
|
33451
33460
|
let x = new Image();
|
|
33452
|
-
const S = I.symbol.outline
|
|
33461
|
+
const S = I.symbol.outline?.color, T = I.symbol.outline?.width ?? 1, N = I.symbol.color, k = I.symbol.size;
|
|
33453
33462
|
let L = document.createElement("canvas"), G = L.getContext("2d");
|
|
33454
|
-
L.width = 20 * 2.5, L.height = 20, b[o].widths.push(L.width), b[o].heights.push(L.height), G.font = "11px Arial", G.fillText(I.label, k * 3, k * 2, 30), G.beginPath(), G.strokeStyle =
|
|
33463
|
+
L.width = 20 * 2.5, L.height = 20, b[o].widths.push(L.width), b[o].heights.push(L.height), G.font = "11px Arial", G.fillText(I.label, k * 3, k * 2, 30), G.beginPath(), G.strokeStyle = safeRgba(S), G.lineWidth = T, G.arc(k, k * 1.5, k / 1.5, 0, Math.PI * 2), G.fillStyle = safeRgba(N), G.fill(), G.stroke(), x.src = L.toDataURL(), x.alt = `Style for ${d}`, x.crossOrigin = "anonymous", b[o].canvas.push(L), r({
|
|
33455
33464
|
type: "LEGEND_CANVAS_ADDED",
|
|
33456
33465
|
payload: {
|
|
33457
33466
|
legendCanvases: b,
|
|
@@ -34450,7 +34459,7 @@ class QuestionsModal extends React__default.Component {
|
|
|
34450
34459
|
}, m = a(g);
|
|
34451
34460
|
this.setState({
|
|
34452
34461
|
errors: d
|
|
34453
|
-
}), m ? (r(g),
|
|
34462
|
+
}), m ? (r(g), this.close()) : o(m);
|
|
34454
34463
|
}
|
|
34455
34464
|
render() {
|
|
34456
34465
|
const { theme: t } = this.props;
|
|
@@ -34708,7 +34717,7 @@ const questionsTab$1 = connect(
|
|
|
34708
34717
|
payload: {
|
|
34709
34718
|
notification: {
|
|
34710
34719
|
title: "Success",
|
|
34711
|
-
message: "
|
|
34720
|
+
message: "Email successfully sent.",
|
|
34712
34721
|
level: "success"
|
|
34713
34722
|
}
|
|
34714
34723
|
}
|