ublo-lib 1.38.34 → 1.38.35
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.
|
@@ -140,7 +140,7 @@ button.resetCenter:hover {
|
|
|
140
140
|
|
|
141
141
|
.map :global(.leaflet-tooltip) {
|
|
142
142
|
padding: 10px 16px;
|
|
143
|
-
font-size:
|
|
143
|
+
font-size: 15px;
|
|
144
144
|
font-weight: 700;
|
|
145
145
|
font-family: inherit;
|
|
146
146
|
text-shadow: -1px 0px 1px white, 0px -1px 1px white, 1px 0px 1px white,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/index.js"],"names":[],"mappings":"AAQA;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/index.js"],"names":[],"mappings":"AAQA;;;gEAgFC"}
|
|
@@ -40,13 +40,11 @@ export default function EditableMap({ iconSet = "esf", hideSlopes }) {
|
|
|
40
40
|
}, 200);
|
|
41
41
|
}, [lang, path, refreshKey]);
|
|
42
42
|
React.useEffect(() => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
}, [formats]);
|
|
43
|
+
window.addEventListener("ublo-content-saved", refreshEditableMap);
|
|
44
|
+
return () => {
|
|
45
|
+
window.addEventListener("ublo-content-saved", refreshEditableMap);
|
|
46
|
+
};
|
|
47
|
+
}, []);
|
|
50
48
|
React.useEffect(() => {
|
|
51
49
|
const zones = Array.from(document.querySelectorAll(".cms"));
|
|
52
50
|
zones.forEach((zone) => {
|
|
@@ -67,6 +65,3 @@ export default function EditableMap({ iconSet = "esf", hideSlopes }) {
|
|
|
67
65
|
});
|
|
68
66
|
return formats.map((format) => ReactDOM.createPortal(_jsx(Map, { format: format, iconSet: iconSet, hideSlopes: hideSlopes }), format.element));
|
|
69
67
|
}
|
|
70
|
-
function reloadWindow() {
|
|
71
|
-
window.location.reload();
|
|
72
|
-
}
|