@evergis/react 3.1.30 → 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 +8 -2
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +8 -2
- package/dist/react.esm.js.map +1 -1
- package/package.json +3 -3
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];
|
|
@@ -4164,6 +4164,12 @@ const applyQueryFilters = ({ parameters: configParameters, filters: configFilter
|
|
|
4164
4164
|
return {};
|
|
4165
4165
|
}
|
|
4166
4166
|
return Object.keys(configParameters).reduce((result, key) => {
|
|
4167
|
+
if (typeof configParameters[key] !== "string" || !configParameters[key].startsWith("%")) {
|
|
4168
|
+
return {
|
|
4169
|
+
...result,
|
|
4170
|
+
[key]: configParameters[key]
|
|
4171
|
+
};
|
|
4172
|
+
}
|
|
4167
4173
|
const filterFullName = configParameters[key].replace("%", "");
|
|
4168
4174
|
const [filterName, filterProp] = filterFullName.includes(".") ? filterFullName.split(".") : [filterFullName, null];
|
|
4169
4175
|
const { defaultValue, relatedDataSource, attributeAlias } = getConfigFilter(filterName, configFilters) || {};
|