We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f749d commit 4b59407Copy full SHA for 4b59407
src/dataStructureVis/index.jsx
@@ -275,7 +275,7 @@ export default function DataStrutureVis() {
275
}) => {
276
const { x = 0, y = 0 } = pointer;
277
console.log(pointer);
278
- if (x != 0 || y != 0) {
+ if (x !== 0 || y !== 0) {
279
// 将 data 中的坐标整体偏移(x,y)
280
data = data.map((el) => ({ ...el, x: el.x + x, y: el.y + y }));
281
}
0 commit comments