Skip to content

Commit

Permalink
refactor: change TickRotations DEPENDING to AUTO
Browse files Browse the repository at this point in the history
  • Loading branch information
hlyang397 committed Aug 28, 2020
1 parent c886048 commit b08826d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/axes/axis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ export class Axis extends Component {
} else if (rotateWhileZooming === TickRotations.NEVER) {
// if option is set to NEVER
return false;
} else if (rotateWhileZooming === TickRotations.DEPENDING) {
// if option is set to DEPENDING
} else if (rotateWhileZooming === TickRotations.AUTO) {
// if option is set to AUTO
// depending on the space calculation result
// may cause rotation flips during zoomDomain changing
return rotateTicksBySpaceCalculation;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/interfaces/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,6 @@ export enum Statuses {
*/
export enum TickRotations {
ALWAYS = "always",
DEPENDING = "depending",
AUTO = "auto",
NEVER = "never"
}

0 comments on commit b08826d

Please sign in to comment.