Skip to content

Commit

Permalink
Merge pull request antvis#5107 from antvis/bugfix-1026
Browse files Browse the repository at this point in the history
chore: refine demo and test data
  • Loading branch information
Yanyan-Wang authored Nov 1, 2023
2 parents 4ee202b + 0fbe76d commit c98eb8a
Show file tree
Hide file tree
Showing 4 changed files with 97,133 additions and 104,250 deletions.
4 changes: 2 additions & 2 deletions packages/g6/src/stdlib/data/mapNodeSize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ const handler = (
const sizeMap = scaleNodeProp(nodes, field, valueRange, range);
sizeMap.forEach((val, id) => {
let value = val;
if (isNaN(val)) value = range[0];
if (isNaN(val) || !val) value = range[0];
const node = nodeMap.get(id);
node.data.keyShape = {
...node.data.keyShape,
r: value / 2,
r: Math.round(value / 2),
width: value,
height: value,
};
Expand Down
Loading

0 comments on commit c98eb8a

Please sign in to comment.