optmization
This commit is contained in:
parent
0b48b723eb
commit
bdea1ee5b4
|
@ -207,11 +207,13 @@ export default {
|
||||||
ctx.strokeStyle = trueColumnColor
|
ctx.strokeStyle = trueColumnColor
|
||||||
ctx.setLineDash([10, 0])
|
ctx.setLineDash([10, 0])
|
||||||
|
|
||||||
const { getRoundColumnPoint } = this
|
const { getRoundColumnPoint, labelAxisTag } = this
|
||||||
|
|
||||||
ctx.lineCap = roundColumn ? 'round' : 'butt'
|
ctx.lineCap = roundColumn ? 'round' : 'butt'
|
||||||
|
|
||||||
labelAxisTagPos.forEach(([x, y]) => {
|
labelAxisTagPos.forEach(([x, y], i) => {
|
||||||
|
if (!labelAxisTag[i] && labelAxisTag[i] !== 0) return
|
||||||
|
|
||||||
const topPoint = horizon ? [x + w, y] : [x, y - h]
|
const topPoint = horizon ? [x + w, y] : [x, y - h]
|
||||||
let columnBGPoints = [[x, y], topPoint]
|
let columnBGPoints = [[x, y], topPoint]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue