fix: 改进可视化效果

This commit is contained in:
黎智洲
2021-07-17 14:52:14 +08:00
parent 15c3d0b33a
commit a0ebd04892
8 changed files with 56 additions and 23 deletions
+1 -2
View File
@@ -51,8 +51,7 @@ export class Layouter {
anchorPosition = [anchorPosition.x, anchorPosition.y];
let anchorVector = Vector.subtract(anchorPosition, center),
angle = 0,
len = Vector.length(anchorVector) + offset;
angle = 0, len = Vector.length(anchorVector) + offset;
if(anchorVector[0] === 0) {
angle = anchorVector[1] > 0? -Math.PI: 0;