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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
