some optmization

This commit is contained in:
jiaming 2018-12-24 14:21:54 +08:00
parent 822f1aaa39
commit 5dc503916e
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -267,7 +267,7 @@ export default {
...getTextsWidth(ctx, [axisUnit[0] || '']),
...getTextsWidth(ctx, horizonAxisTags[1].length ? horizonAxisTags[1] : [''])) + defaultAxisLineTagGap
!boundaryGap && (rightOffset += xAxisTagsHalfWidth)
boundaryGap && (rightOffset += (xAxisTagsHalfWidth + 5))
this.axisOffset[1] = (ay && ay.offset) || rightOffset