提交 1a1d7c98 编写于 作者: Y yufeng04

pointer don't have scale

上级 bf14323b
...@@ -486,7 +486,6 @@ class GaugeView extends ChartView { ...@@ -486,7 +486,6 @@ class GaugeView extends ChartView {
if (pointer instanceof ZRImage) { if (pointer instanceof ZRImage) {
const pathStyle = pointer.style; const pathStyle = pointer.style;
pointer.useStyle(extend({ pointer.useStyle(extend({
// TODO other properties like x, y ?
image: pathStyle.image, image: pathStyle.image,
x: pathStyle.x, y: pathStyle.y, x: pathStyle.x, y: pathStyle.y,
width: pathStyle.width, height: pathStyle.height width: pathStyle.width, height: pathStyle.height
...@@ -494,10 +493,7 @@ class GaugeView extends ChartView { ...@@ -494,10 +493,7 @@ class GaugeView extends ChartView {
} }
else { else {
pointer.useStyle(symbolStyle); pointer.useStyle(symbolStyle);
if (pointer.type !== 'pointer') { pointer.type !== 'pointer' && pointer.setColor(visualColor);
pointer.setColor(visualColor);
pointer.style.strokeNoScale = true;
}
} }
pointer.setStyle(itemModel.getModel(['pointer', 'itemStyle']).getItemStyle()); pointer.setStyle(itemModel.getModel(['pointer', 'itemStyle']).getItemStyle());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册