Commit 9aeadb7dda0a353b9ff13daff8f3096e9ab59cb0

Authored by ww
1 parent 65cc5e32

perf: set view default origin as xAxis value 0, yAxis value 0

@@ -2366,6 +2366,8 @@ EditorUi.prototype.initCanvas = function() @@ -2366,6 +2366,8 @@ EditorUi.prototype.initCanvas = function()
2366 var t = graph.view.translate; 2366 var t = graph.view.translate;
2367 graph.view.setTranslate(Math.floor(t.x + cx / s), Math.floor(t.y + cy / s)); 2367 graph.view.setTranslate(Math.floor(t.x + cx / s), Math.floor(t.y + cy / s));
2368 } 2368 }
  2369 + // HACK thingsKit 设置视图起点为0, 0
  2370 + graph.view.setTranslate(0, 0)
2369 } 2371 }
2370 }); 2372 });
2371 2373