You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/03/31 08:02:25 UTC
[echarts] 01/04: fix(timeline): remove deprecated usage
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch enhance-missing-components-log
in repository https://gitbox.apache.org/repos/asf/echarts.git
commit af9f7761c8465860e495068a3d060b438f3cb142
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Mar 31 15:13:27 2021 +0800
fix(timeline): remove deprecated usage
---
src/component/timeline/SliderTimelineView.ts | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/component/timeline/SliderTimelineView.ts b/src/component/timeline/SliderTimelineView.ts
index ee46521..163e335 100644
--- a/src/component/timeline/SliderTimelineView.ts
+++ b/src/component/timeline/SliderTimelineView.ts
@@ -550,15 +550,16 @@ class SliderTimelineView extends TimelineView {
controlSize
);
const rect = [0, -iconSize / 2, iconSize, iconSize];
- const opt = {
- position: position,
- origin: [controlSize / 2, 0],
+ const btn = makeControlIcon(timelineModel, iconName + 'Icon' as ControlIconName, rect, {
+ x: position[0],
+ y: position[1],
+ originX: controlSize / 2,
+ originY: 0,
rotation: willRotate ? -rotation : 0,
rectHover: true,
style: itemStyle,
onclick: onclick
- };
- const btn = makeControlIcon(timelineModel, iconName + 'Icon' as ControlIconName, rect, opt);
+ });
btn.ensureState('emphasis').style = hoverStyle;
group.add(btn);
enableHoverEmphasis(btn);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org