Skip to content

Commit

Permalink
fix: 修复极坐标下的第一个 label 对齐的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
simaQ committed Mar 20, 2020
1 parent cfd7c0a commit 8be4555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geometry/label/polar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class PolarLabel extends GeometryLabel {
const coordinate = this.getCoordinate();
let align;
if (point.labelEmit) {
align = (point.angle <= Math.PI / 2 && point.angle > -Math.PI / 2) ? 'left' : 'right';
align = (point.angle <= Math.PI / 2 && point.angle >= -Math.PI / 2) ? 'left' : 'right';
} else if (!coordinate.isTransposed) {
align = 'center';
} else {
Expand Down

0 comments on commit 8be4555

Please sign in to comment.