@conboai/storybook.components 0.5.28 → 0.5.29
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/storybook.components.mjs +22 -21
- package/package.json +1 -1
|
@@ -80141,48 +80141,48 @@ const uhe = sr(
|
|
|
80141
80141
|
showOnlyPoints: c = !1,
|
|
80142
80142
|
scaleNumber: u
|
|
80143
80143
|
}) => {
|
|
80144
|
-
var S, w;
|
|
80144
|
+
var S, w, E;
|
|
80145
80145
|
const [d, h] = Ne(
|
|
80146
80146
|
(s == null ? void 0 : s.coordinates) || []
|
|
80147
80147
|
), f = ir(null), b = ss.isNumber(e) ? e : 0, p = In(() => {
|
|
80148
80148
|
if (f.current) {
|
|
80149
|
-
const
|
|
80150
|
-
(
|
|
80151
|
-
),
|
|
80152
|
-
|
|
80149
|
+
const I = f.current.getPath().getArray().map(
|
|
80150
|
+
(F) => new google.maps.LatLng(F.lat(), F.lng())
|
|
80151
|
+
), _ = Gd(I);
|
|
80152
|
+
_.length && (s != null && s.id) && (h(_), i == null || i(_, s == null ? void 0 : s.id, !0));
|
|
80153
80153
|
}
|
|
80154
80154
|
}, [s, i]), g = In(
|
|
80155
|
-
(
|
|
80156
|
-
google.maps.event.clearListeners(
|
|
80155
|
+
(I) => {
|
|
80156
|
+
google.maps.event.clearListeners(I.getPath(), "set_at"), google.maps.event.clearListeners(I.getPath(), "insert_at"), I.getPath().addListener("set_at", p), I.getPath().addListener("insert_at", p);
|
|
80157
80157
|
},
|
|
80158
80158
|
[p]
|
|
80159
80159
|
);
|
|
80160
80160
|
Ie(() => {
|
|
80161
80161
|
f != null && f.current && g(f == null ? void 0 : f.current);
|
|
80162
80162
|
}, [d, g]);
|
|
80163
|
-
const m = (
|
|
80164
|
-
const
|
|
80165
|
-
({ lat:
|
|
80166
|
-
var
|
|
80167
|
-
return
|
|
80163
|
+
const m = (I) => {
|
|
80164
|
+
const _ = d.filter(
|
|
80165
|
+
({ lat: F, lng: D }) => {
|
|
80166
|
+
var A;
|
|
80167
|
+
return F !== ((A = I.latLng) == null ? void 0 : A.lat()) || D !== I.latLng.lng();
|
|
80168
80168
|
}
|
|
80169
80169
|
);
|
|
80170
|
-
h(
|
|
80171
|
-
}, v = (
|
|
80172
|
-
f.current =
|
|
80170
|
+
h(_), s != null && s.id && (i == null || i(_, s == null ? void 0 : s.id, !0));
|
|
80171
|
+
}, v = (I) => {
|
|
80172
|
+
f.current = I, g(I);
|
|
80173
80173
|
};
|
|
80174
80174
|
Ie(() => {
|
|
80175
80175
|
h((s == null ? void 0 : s.coordinates) || []);
|
|
80176
80176
|
}, [s]);
|
|
80177
80177
|
const y = b - 13 || -1, C = y < 0 ? 0 : y;
|
|
80178
80178
|
return /* @__PURE__ */ V.jsxs(V.Fragment, { children: [
|
|
80179
|
-
l && (d == null ? void 0 : d.map(({ lat:
|
|
80179
|
+
l && (d == null ? void 0 : d.map(({ lat: I, lng: _ }, F) => /* @__PURE__ */ V.jsx(
|
|
80180
80180
|
b5,
|
|
80181
80181
|
{
|
|
80182
|
-
coordinates: { lat:
|
|
80183
|
-
index:
|
|
80182
|
+
coordinates: { lat: I, lng: _ },
|
|
80183
|
+
index: F + 1
|
|
80184
80184
|
},
|
|
80185
|
-
|
|
80185
|
+
I + _
|
|
80186
80186
|
))),
|
|
80187
80187
|
t && (d == null ? void 0 : d.length) > 0 && /* @__PURE__ */ V.jsx(
|
|
80188
80188
|
R4,
|
|
@@ -80198,7 +80198,8 @@ const uhe = sr(
|
|
|
80198
80198
|
path: d,
|
|
80199
80199
|
options: {
|
|
80200
80200
|
...Wp,
|
|
80201
|
-
|
|
80201
|
+
...s == null ? void 0 : s.styles,
|
|
80202
|
+
strokeColor: c ? "transparent" : ((w = s == null ? void 0 : s.styles) == null ? void 0 : w.strokeColor) || "#2196F3",
|
|
80202
80203
|
visible: !0,
|
|
80203
80204
|
editable: !1,
|
|
80204
80205
|
draggable: !0,
|
|
@@ -80212,7 +80213,7 @@ const uhe = sr(
|
|
|
80212
80213
|
R4,
|
|
80213
80214
|
{
|
|
80214
80215
|
position: d[d.length - 1],
|
|
80215
|
-
icon: y9(C, (
|
|
80216
|
+
icon: y9(C, (E = s == null ? void 0 : s.styles) == null ? void 0 : E.fillColor, u),
|
|
80216
80217
|
label: o
|
|
80217
80218
|
}
|
|
80218
80219
|
)
|