Explorar o código

调整动画速度

zhangxc %!s(int64=4) %!d(string=hai) anos
pai
achega
e6db3ee14b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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
                 },