Skip to content

Commit

Permalink
fix: querySelectorAll topology-svg path
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtengjin committed Dec 5, 2023
1 parent 0e2dbf5 commit 7bb02d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/topology/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ class Topology extends React.Component<ITopologyProps, ITopologyState> {
* 遍历所有线条,生成[{ data: {origin, po}, point: [] }] 结构
*/
getCurvePointsAndLineOriginMap = () => {
const pathElements = document.getElementsByTagName('path');
const pathElements = document.querySelectorAll('svg.topology-svg path');
// 创建一个空数组来存储匹配的路径点
let linePointsMap = [];
// 遍历路径标签,筛选出 stroke-width 属性为"20"的路径
Expand Down

0 comments on commit 7bb02d7

Please sign in to comment.