@evergis/react 3.1.31 → 3.1.32

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/index.js CHANGED
@@ -3972,7 +3972,7 @@ const areaGenerator = (height) => area()
3972
3972
  .y1(d => d[1])
3973
3973
  .curve(monotoneX);
3974
3974
  function getLinePoints(numPoints, svgLine) {
3975
- if (!svgLine) {
3975
+ if (!svgLine?.getTotalLength) {
3976
3976
  return [];
3977
3977
  }
3978
3978
  const lineLength = svgLine.getTotalLength();
@@ -3983,7 +3983,7 @@ function getLinePoints(numPoints, svgLine) {
3983
3983
  else {
3984
3984
  interval = lineLength / (numPoints - 1);
3985
3985
  }
3986
- return range(numPoints).map(d => {
3986
+ return range(numPoints).filter(d => d * interval).map(d => {
3987
3987
  const value = d * interval;
3988
3988
  const { x, y } = svgLine.getPointAtLength(value);
3989
3989
  return [x, y];
package/dist/react.esm.js CHANGED
@@ -3970,7 +3970,7 @@ const areaGenerator = (height) => area()
3970
3970
  .y1(d => d[1])
3971
3971
  .curve(monotoneX);
3972
3972
  function getLinePoints(numPoints, svgLine) {
3973
- if (!svgLine) {
3973
+ if (!svgLine?.getTotalLength) {
3974
3974
  return [];
3975
3975
  }
3976
3976
  const lineLength = svgLine.getTotalLength();
@@ -3981,7 +3981,7 @@ function getLinePoints(numPoints, svgLine) {
3981
3981
  else {
3982
3982
  interval = lineLength / (numPoints - 1);
3983
3983
  }
3984
- return range(numPoints).map(d => {
3984
+ return range(numPoints).filter(d => d * interval).map(d => {
3985
3985
  const value = d * interval;
3986
3986
  const { x, y } = svgLine.getPointAtLength(value);
3987
3987
  return [x, y];
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.1.31",
2
+ "version": "3.1.32",
3
3
  "name": "@evergis/react",
4
4
  "author": "Everpoint",
5
5
  "license": "MIT",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "@evergis/api": "^4.1.13",
56
- "@evergis/charts": "^3.1.15",
56
+ "@evergis/charts": "^3.1.16",
57
57
  "@evergis/color": "^1.0.0-alpha.1",
58
58
  "@evergis/uilib-gl": "^1.0.46",
59
59
  "@mapbox/mapbox-gl-draw": "^1.5.0",
@@ -75,5 +75,5 @@
75
75
  "swiper": "^8.3.2",
76
76
  "wkt": "^0.1.1"
77
77
  },
78
- "gitHead": "e160cb3332524f2c098a5ec892b2da7f5a16365a"
78
+ "gitHead": "a9c87d155180b63e8ee218dee70d849fc4390160"
79
79
  }