Skip to content

Commit

Permalink
fix(visualmap): use createTextStyle on handleLabel and indicatorLabel.
Browse files Browse the repository at this point in the history
…close apache#14440
  • Loading branch information
fuchunhui committed Mar 15, 2022
1 parent 764b5c8 commit a255fa1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/component/visualMap/ContinuousView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,11 @@ class ContinuousView extends VisualMapView {
eventTool.stop(e.event);
},
ondragend: onDragEnd,
style: {
x: 0, y: 0, text: '',
font: textStyleModel.getFont(),
fill: textStyleModel.getTextColor()
}
style: createTextStyle(textStyleModel, {
x: 0,
y: 0,
text: ''
})
});
handleLabel.ensureState('blur').style = {
opacity: 0.1
Expand Down Expand Up @@ -359,11 +359,11 @@ class ContinuousView extends VisualMapView {
const indicatorLabel = new graphic.Text({
silent: true,
invisible: true,
style: {
x: 0, y: 0, text: '',
font: textStyleModel.getFont(),
fill: textStyleModel.getTextColor()
}
style: createTextStyle(textStyleModel, {
x: 0,
y: 0,
text: ''
})
});
this.group.add(indicatorLabel);

Expand Down

0 comments on commit a255fa1

Please sign in to comment.