@smart-factor/gem-ui-map-component 0.0.7 → 0.0.8
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MapLayer } from '../components/Map/types';
|
|
2
2
|
export declare const GEOLOCATION_LAYER = "geolocationLayer";
|
|
3
|
-
export declare const useSetupMap: (mapLayers: MapLayer[], caseObjectId: number
|
|
3
|
+
export declare const useSetupMap: (mapLayers: MapLayer[], caseObjectId: number) => void;
|
package/dist/main.js
CHANGED
|
@@ -14,7 +14,7 @@ var ts = (t, e, r, n) => ({
|
|
|
14
14
|
import { jsx as m, jsxs as se, Fragment as ft } from "react/jsx-runtime";
|
|
15
15
|
import * as Y from "react";
|
|
16
16
|
import ke, { useState as re, forwardRef as Il, useEffect as Ve, createContext as Nl, useContext as Ll, useRef as ma, useMemo as gs, useCallback as Tn } from "react";
|
|
17
|
-
import { a as mn, b as Ml, r as Da, i as fo, c as ho, t as Vl, d as po, e as Fl, _ as tt, s as Dl, f as A, g as et, h as $l, j as jl, k as zl, l as Ul, u as Zl, m as oi, n as Br, P as l, o as mo, p as qe, q as li, v as sa, w as Bl, x as ql, y as Wl, z as Dt, A as $t, B as ci, C as jt, D as zt, E as $e, F as kr, G as vs, H as Gn, I as Gl, T as Hl, J as bs, K as Ql, L as ui, N as Kl, O as Yl, Q as _s, R as jr, S as $a, U as Hn, V as Jl, W as pe, X as rs, Y as di, Z as ns, $ as Ue, a0 as Ht, a1 as fi, a2 as Xl, a3 as ec, a4 as yo, a5 as tc, a6 as go, a7 as Hr, a8 as rc, a9 as nc, aa as sc, ab as ac, ac as aa, ad as ds, ae as ia, af as ic, ag as rr, ah as hi, ai as pi, aj as vo, ak as We, al as xs, am as Mt, an as zr, ao as Xt, ap as bo, aq as Qn, ar as oc, as as lc, at as Gt, au as _o, av as ws, aw as cc, ax as uc, ay as dc, az as fc, aA as En, aB as hc, aC as fs, aD as pc, aE as mc, aF as yc, aG as gc, aH as vc, aI as bc, aJ as _c, aK as xc, aL as wc, aM as kc, aN as Cc, aO as Sc, M as Tc, aP as Ec, aQ as Oc, aR as Ac, aS as Rc } from "./MapButtons-
|
|
17
|
+
import { a as mn, b as Ml, r as Da, i as fo, c as ho, t as Vl, d as po, e as Fl, _ as tt, s as Dl, f as A, g as et, h as $l, j as jl, k as zl, l as Ul, u as Zl, m as oi, n as Br, P as l, o as mo, p as qe, q as li, v as sa, w as Bl, x as ql, y as Wl, z as Dt, A as $t, B as ci, C as jt, D as zt, E as $e, F as kr, G as vs, H as Gn, I as Gl, T as Hl, J as bs, K as Ql, L as ui, N as Kl, O as Yl, Q as _s, R as jr, S as $a, U as Hn, V as Jl, W as pe, X as rs, Y as di, Z as ns, $ as Ue, a0 as Ht, a1 as fi, a2 as Xl, a3 as ec, a4 as yo, a5 as tc, a6 as go, a7 as Hr, a8 as rc, a9 as nc, aa as sc, ab as ac, ac as aa, ad as ds, ae as ia, af as ic, ag as rr, ah as hi, ai as pi, aj as vo, ak as We, al as xs, am as Mt, an as zr, ao as Xt, ap as bo, aq as Qn, ar as oc, as as lc, at as Gt, au as _o, av as ws, aw as cc, ax as uc, ay as dc, az as fc, aA as En, aB as hc, aC as fs, aD as pc, aE as mc, aF as yc, aG as gc, aH as vc, aI as bc, aJ as _c, aK as xc, aL as wc, aM as kc, aN as Cc, aO as Sc, M as Tc, aP as Ec, aQ as Oc, aR as Ac, aS as Rc } from "./MapButtons-D9EHNd00.js";
|
|
18
18
|
var yn = class {
|
|
19
19
|
constructor() {
|
|
20
20
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
@@ -11288,14 +11288,13 @@ const Vm = Gn`
|
|
|
11288
11288
|
caseObjectId: t,
|
|
11289
11289
|
mapButtonsConfig: e,
|
|
11290
11290
|
mapElementsConfig: r,
|
|
11291
|
-
sidebarConfig: n
|
|
11292
|
-
setOuterDrawnGeometries: s
|
|
11291
|
+
sidebarConfig: n
|
|
11293
11292
|
}) => {
|
|
11294
|
-
const { isMeasurementHidden:
|
|
11295
|
-
wc(
|
|
11296
|
-
const
|
|
11297
|
-
|
|
11298
|
-
|
|
11293
|
+
const { isMeasurementHidden: s, angleValue: a, isAngleHidden: i } = $a(), { mapLayers: o, isDrawing: c, isEditing: u, selectedGeometry: d } = Qn(), { distanceOverlayElement: p, angleOverlayElement: v, interactions: b } = Hn();
|
|
11294
|
+
wc(o, t);
|
|
11295
|
+
const w = kc(
|
|
11296
|
+
d == null ? void 0 : d.value,
|
|
11297
|
+
o
|
|
11299
11298
|
);
|
|
11300
11299
|
return /* @__PURE__ */ se(ft, { children: [
|
|
11301
11300
|
n.sidebarVisible && /* @__PURE__ */ m(Um, { sidebarConfig: n }),
|
|
@@ -11311,33 +11310,33 @@ const Vm = Gn`
|
|
|
11311
11310
|
/* @__PURE__ */ m(
|
|
11312
11311
|
Ec,
|
|
11313
11312
|
{
|
|
11314
|
-
ref:
|
|
11315
|
-
hidden:
|
|
11313
|
+
ref: p,
|
|
11314
|
+
hidden: s
|
|
11316
11315
|
}
|
|
11317
11316
|
),
|
|
11318
11317
|
/* @__PURE__ */ m(
|
|
11319
11318
|
Ho,
|
|
11320
11319
|
{
|
|
11321
|
-
angle:
|
|
11322
|
-
ref:
|
|
11323
|
-
hidden:
|
|
11320
|
+
angle: a ?? 0,
|
|
11321
|
+
ref: v,
|
|
11322
|
+
hidden: i || typeof a != "number"
|
|
11324
11323
|
}
|
|
11325
11324
|
),
|
|
11326
11325
|
/* @__PURE__ */ m(Xt, { children: /* @__PURE__ */ m(Ph, {}) }),
|
|
11327
11326
|
r.mapElementsVisible && /* @__PURE__ */ se(ft, { children: [
|
|
11328
|
-
|
|
11327
|
+
w === "LineString" && r.items.drawCreator && /* @__PURE__ */ m(
|
|
11329
11328
|
bh,
|
|
11330
11329
|
{
|
|
11331
|
-
addDrawCreatorPoint: (
|
|
11330
|
+
addDrawCreatorPoint: (_) => {
|
|
11332
11331
|
Oc({
|
|
11333
|
-
...
|
|
11334
|
-
drawInteraction:
|
|
11332
|
+
..._,
|
|
11333
|
+
drawInteraction: b.current.draw
|
|
11335
11334
|
});
|
|
11336
11335
|
},
|
|
11337
|
-
onDrawEnd: () =>
|
|
11336
|
+
onDrawEnd: () => b.current.draw.finishDrawing()
|
|
11338
11337
|
}
|
|
11339
11338
|
),
|
|
11340
|
-
(
|
|
11339
|
+
(c || u) && r.items.snapBar && /* @__PURE__ */ m(qm, {})
|
|
11341
11340
|
] })
|
|
11342
11341
|
] })
|
|
11343
11342
|
}
|