@telicent-oss/ds 0.18.0 → 0.18.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/dist/ds.js CHANGED
@@ -79548,12 +79548,10 @@ const FeatureMap = ({
79548
79548
  }, []);
79549
79549
  bounds = calculateBounds(selectedMarkers, selectedPolygons);
79550
79550
  }
79551
- map.on("render", () => {
79552
- map.fitBounds(bounds, {
79553
- padding: 20,
79554
- maxZoom: 8,
79555
- maxDuration: 1e3
79556
- });
79551
+ map.fitBounds(bounds, {
79552
+ padding: 20,
79553
+ maxZoom: 8,
79554
+ duration: 500
79557
79555
  });
79558
79556
  }, [geoPolygons, markers, selected]);
79559
79557
  return /* @__PURE__ */ jsx$1(UIThemeProvider, { dark: true, theme, children: /* @__PURE__ */ jsx$1(ErrorBoundary, { fallback: /* @__PURE__ */ jsx$1("p", { children: "Something went wrong: Failed to load map component" }), children: /* @__PURE__ */ jsx$1("div", { className: "contents", children: /* @__PURE__ */ jsxs(FlexGrid, { m: 0, direction: "column", style: W_H_100, children: [
package/dist/ds.umd.cjs CHANGED
@@ -79566,12 +79566,10 @@ uniform ${i3} ${s4} u_${a3};
79566
79566
  }, []);
79567
79567
  bounds = calculateBounds(selectedMarkers, selectedPolygons);
79568
79568
  }
79569
- map.on("render", () => {
79570
- map.fitBounds(bounds, {
79571
- padding: 20,
79572
- maxZoom: 8,
79573
- maxDuration: 1e3
79574
- });
79569
+ map.fitBounds(bounds, {
79570
+ padding: 20,
79571
+ maxZoom: 8,
79572
+ duration: 500
79575
79573
  });
79576
79574
  }, [geoPolygons, markers, selected]);
79577
79575
  return /* @__PURE__ */ jsx$1(UIThemeProvider, { dark: true, theme, children: /* @__PURE__ */ jsx$1(ErrorBoundary, { fallback: /* @__PURE__ */ jsx$1("p", { children: "Something went wrong: Failed to load map component" }), children: /* @__PURE__ */ jsx$1("div", { className: "contents", children: /* @__PURE__ */ jsxs(FlexGrid, { m: 0, direction: "column", style: W_H_100, children: [
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/telicent-oss/telicent-ds.git"
8
8
  },
9
9
  "type": "module",
10
- "version": "0.18.0",
10
+ "version": "0.18.1",
11
11
  "private": false,
12
12
  "dependencies": {
13
13
  "@emotion/react": "^11.10.6",