Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
elaine1234 committed Nov 26, 2019
1 parent 99e7f3c commit aa94993
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/util/responsive/apply/axis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ const SCALE_MAPPER = {

function updateTicks(nodes, axis) {
let tickShape = null;
axis.get('group').get('children').forEach(shape => {
if (shape.name === 'axis-ticks') {
tickShape = shape;
return false;
}
});
axis
.get('group')
.get('children')
.forEach((shape) => {
if (shape.name === 'axis-ticks') {
tickShape = shape;
return false;
}
});
const ticks = axis.get('ticks');
const tickItems = axis.get('tickItems');
const tickTexts = [];
_.each(ticks, (tick) => {
const t = tick as any;
const t = tick as any;
tickTexts.push(t.text);
});
let pathes = [];
Expand Down

0 comments on commit aa94993

Please sign in to comment.