提交 e865e322 编写于 作者: S sushuang

Fix hover style for map and compat geo.label.

上级 37abe504
......@@ -113,19 +113,18 @@ define(function (require) {
var hoverLabelModel = itemModel.getModel('label.emphasis');
var polygonGroups = fullData.getItemGraphicEl(fullIndex);
circle.setStyle({
textPosition: 'bottom'
});
var onEmphasis = function () {
graphic.setTextStyle(circle.style, hoverLabelModel, {
var hoverStyle = graphic.setTextStyle({}, hoverLabelModel, {
text: hoverLabelModel.get('show') ? labelText : null
}, {isRectText: true, forMerge: true});
circle.style.extendFrom(hoverStyle);
};
var onNormal = function () {
graphic.setTextStyle(circle.style, labelModel, {
text: labelModel.get('show') ? labelText : null
text: labelModel.get('show') ? labelText : null,
textPosition: 'bottom'
}, {isRectText: true});
};
......
......@@ -161,6 +161,10 @@ define(function (require) {
compatTextStyle(calendarOpt, 'yearLabel');
});
each(toArr(option.geo), function (geoOpt) {
isObject(geoOpt) && compatLabelTextStyle(geoOpt.label);
});
compatLabelTextStyle(toObj(option.timeline).label);
compatTextStyle(toObj(option.axisPointer), 'label');
compatTextStyle(toObj(option.tooltip).axisPointer, 'label');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册