소스 검색

调整动画速度

zhangxc 5 년 전
부모
커밋
e6db3ee14b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/js/graphMap.js

+ 1 - 0
src/js/graphMap.js

@@ -84,6 +84,7 @@ function drawGraph(data,resultShowId) {
                 force: {
                     repulsion: 500,
                     gravity: 0.8,
+                    friction :0.2, //动画速度
                     edgeLength: [4, 7],
                     layoutAnimation : true
                 },