提交 5b8839bb 编写于 作者: P pissang

fix(timeline): fix icon style not work bug brought in #13015

上级 7c7a2066
......@@ -618,11 +618,17 @@ function getViewRect(model, api) {
}
function makeIcon(timelineModel, objPath, rect, opts) {
return graphic.createIcon(
const style = opts.style;
const icon = graphic.createIcon(
timelineModel.get(objPath),
opts || {},
new BoundingRect(rect[0], rect[1], rect[2], rect[3])
);
// TODO createIcon won't use style in opt.
if (style) {
icon.setStyle(style);
}
return icon;
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册