React-diagram不会在拖放时更新

时间:2020-08-17 08:44:39

标签: reactjs diagram

反应图库(here)在安装时的行为非常奇怪:拖放操作不流畅且没有立即响应。

我拖放,没有任何动作,然后如果再次单击,则该节点将移至我之前离开的位置。因此,整个过程不会感觉很流畅。好像直到我再次单击它才会刷新。没有错误消息。

如果单击两个节点之间的链接,则会显示以下错误消息:

错误:属性d:预期数字“ MNaN,NaN L 280.23…”。

错误:属性cx:预期长度为“ NaN”。

错误:属性d:预期数字,“ ... 4000015258789 L NaN,NaN”。

警告:收到cy属性的NaN。如果期望如此,请将值转换为字符串。

我在doc之后进行了安装。我确实检查了他们的演示,并且perfectly可以正常工作。所以我想它来自我的设置。

这是我的package.json:

"@babel/compat-data": "7.9.0",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/polyfill": "^7.0.0",
"@emotion/core": "^10.0.34",
"@emotion/styled": "^10.0.27",
"@material-ui/core": "^4.10.1",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.56",
"@projectstorm/react-canvas-core": "^6.2.0",
"@projectstorm/react-diagrams": "^6.0.1-beta.7",
"@reach/window-size": "^0.10.3",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"axios": "^0.19.2",
"babel-eslint": "^10.1.0",
"babel-plugin-module-resolver": "^4.0.0",
"classnames": "^2.2.6",
"closest": "0.0.1",
"clsx": "^1.1.1",
"copy-webpack-plugin": "^5.1.1",
"core-js": "2",
"dagre": "^0.8.5",
"dhx-suite": "^6.4.3",
"env-cmd": "^10.1.0",
"eslint-plugin-flowtype": "^3.13.0",
"html-loader": "^0.5.5",
"jwt-decode": "^2.2.0",
"lodash": "^4.17.20",
"material-table": "^1.64.0",
"material-ui": "^0.20.2",
"ml-matrix": "^6.5.1",
"moment": "^2.26.0",
"moment-timezone": "^0.5.31",
"pathfinding": "^0.4.18",
"paths-js": "^0.4.11",
"prop-types": "^15.7.2",
"query-string": "^6.12.1",
"react": "^16.13.1",
"react-adal": "^0.5.0",
"react-app-polyfill": "^1.0.6",
"react-app-rewired": "^2.1.6",
"react-beautiful-dnd": "^13.0.0",
"react-content-loader": "^5.1.0",
"react-dom": "^16.13.1",
"react-draggable": "^4.4.3",
"react-feather": "^2.0.8",
"react-hot-loader": "^4.12.21",
"react-image-gallery": "^1.0.7",
"react-input-range": "^1.3.0",
"react-intl": "^4.6.4",
"react-paginate": "^6.3.2",
"react-redux": "^7.2.0",
"react-router-dom": "^5.1.2",
"react-scripts": "3.4.0",
"redux": "^4.0.5",
"resize-observer-polyfill": "^1.5.1"

0 个答案:

没有答案