This is an automated email from the ASF dual-hosted git repository. shenyi pushed a commit to branch fix/timeline-icon-style in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit 5b8839bb6fe54abb9e95b9beed100566b2c5fc6e Author: pissang <bm2736...@gmail.com> AuthorDate: Thu Aug 6 16:11:20 2020 +0800 fix(timeline): fix icon style not work bug brought in #13015 --- src/component/timeline/SliderTimelineView.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/component/timeline/SliderTimelineView.js b/src/component/timeline/SliderTimelineView.js index 71594d0..216d376 100644 --- a/src/component/timeline/SliderTimelineView.js +++ b/src/component/timeline/SliderTimelineView.js @@ -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; } /** --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org