Skip to content

Commit

Permalink
fix: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
liihuu committed Jun 4, 2024
1 parent 0be7ec6 commit 74e5064
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/view/IndicatorView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default class IndicatorView extends CandleBarView {
const lines: Array<Array<{ coordinates: Coordinate[], styles: SmoothLineStyle }>> = []

this.eachChildren((data: VisibleData, barSpace: BarSpace) => {
const { halfGapBar, gapBar } = barSpace
const { halfGapBar } = barSpace
const { dataIndex, x } = data
const prevX = xAxis.convertToPixel(dataIndex - 1)
const nextX = xAxis.convertToPixel(dataIndex + 1)
Expand All @@ -126,7 +126,7 @@ export default class IndicatorView extends CandleBarView {
nextCoordinate[key] = yAxis.convertToPixel(nextValue)
}
})
eachFigures(dataList, indicator, dataIndex, defaultStyles, (figure: IndicatorFigure, figureStyles: IndicatorFigureStyle) => {
eachFigures(dataList, indicator, dataIndex, defaultStyles, (figure: IndicatorFigure, figureStyles: IndicatorFigureStyle, figureIndex: number) => {
if (isValid(currentData?.[figure.key])) {
const valueY = currentCoordinate[figure.key]
let attrs = figure.attrs?.({
Expand Down Expand Up @@ -191,7 +191,6 @@ export default class IndicatorView extends CandleBarView {
styles: figureStyles
})?.draw(ctx)
}
// merge line render
}
})
})
Expand Down

0 comments on commit 74e5064

Please sign in to comment.