@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/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];
|
|
@@ -4166,6 +4166,12 @@ const applyQueryFilters = ({ parameters: configParameters, filters: configFilter
|
|
|
4166
4166
|
return {};
|
|
4167
4167
|
}
|
|
4168
4168
|
return Object.keys(configParameters).reduce((result, key) => {
|
|
4169
|
+
if (typeof configParameters[key] !== "string" || !configParameters[key].startsWith("%")) {
|
|
4170
|
+
return {
|
|
4171
|
+
...result,
|
|
4172
|
+
[key]: configParameters[key]
|
|
4173
|
+
};
|
|
4174
|
+
}
|
|
4169
4175
|
const filterFullName = configParameters[key].replace("%", "");
|
|
4170
4176
|
const [filterName, filterProp] = filterFullName.includes(".") ? filterFullName.split(".") : [filterFullName, null];
|
|
4171
4177
|
const { defaultValue, relatedDataSource, attributeAlias } = getConfigFilter(filterName, configFilters) || {};
|