Skip to content

Commit

Permalink
chore(deps): 升级 @antv/coord 依赖 (#2445)
Browse files Browse the repository at this point in the history
  • Loading branch information
simaQ committed May 12, 2020
1 parent d9b3a78 commit 2092e2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@antv/adjust": "^0.2.1",
"@antv/attr": "^0.3.1",
"@antv/component": "^0.6.0",
"@antv/coord": "^0.2.6",
"@antv/coord": "^0.3.0",
"@antv/event-emitter": "~0.1.0",
"@antv/g-base": "^0.4.3",
"@antv/g-canvas": "^0.4.0",
Expand Down
4 changes: 2 additions & 2 deletions src/util/axis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ export function getCircleAxisCenterRadius(coordinate: Coordinate) {
y: isReflectY ? 0 : 1,
});

const startVector = [start.x - center.x, start.y - center.y];
const normalVector = [1, 0];
const startVector: [number, number] = [start.x - center.x, start.y - center.y];
const normalVector: [number, number] = [1, 0];
const startAngle = (start.y > center.y) ? vec2.angle(startVector, normalVector) : vec2.angle(startVector, normalVector) * -1;
const endAngle = startAngle + (x.end - x.start);
const radius = Math.sqrt((start.x - center.x) ** 2 + (start.y - center.y) ** 2);
Expand Down

0 comments on commit 2092e2e

Please sign in to comment.