Commit de370b59 authored by Wenhao Liu's avatar Wenhao Liu Committed by 陈小聪

🐛 fix TagCloud style override bug (#3632)

parent 6088b879
......@@ -51,9 +51,7 @@ class TagCloud extends Component {
initTagCloud = () => {
function getTextAttrs(cfg) {
return Object.assign(
{},
{
return Object.assign({}, cfg.style, {
fillOpacity: cfg.opacity,
fontSize: cfg.origin._origin.size,
rotate: cfg.origin._origin.rotate,
......@@ -62,9 +60,7 @@ class TagCloud extends Component {
fontFamily: cfg.origin._origin.font,
fill: cfg.color,
textBaseline: 'Alphabetic',
},
cfg.style
);
});
}
// 给point注册一个词云的shape
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment