Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
* dev:
  fix: styles `candle.tooltip.custom` string template  error.  #478
  • Loading branch information
liihuu committed Sep 2, 2023
2 parents f632475 + b83bc4d commit 9815f21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/extension/figure/rectText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ import text, { drawText } from './text'
*/
const rectText = text

/**
* @deprecated
* Starting from v10, it will be deleted
*/
const drawRectText = drawText

/**
Expand Down
4 changes: 2 additions & 2 deletions src/view/CandleTooltipView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,15 +454,15 @@ export default class CandleTooltipView extends IndicatorTooltipView {
return labelValues.map(({ title, value }) => {
let t: TooltipDataChild = { text: '', color: '' }
if (isObject(title)) {
t = title
t = { ...title }
} else {
t.text = title
t.color = textColor
}
t.text = i18n(t.text, locale)
let v: TooltipDataChild = { text: tooltipStyles.defaultValue, color: '' }
if (isObject(value)) {
v = value
v = { ...value }
} else {
v.text = value
v.color = textColor
Expand Down

0 comments on commit 9815f21

Please sign in to comment.