Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Five-菜鸟级
echarts
提交
323b9392
E
echarts
项目概览
Five-菜鸟级
/
echarts
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
echarts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
323b9392
编写于
3月 25, 2020
作者:
P
pissang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refact: upgrade animateTo usage, use cfg object instead.
上级
4fe542cb
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
23 addition
and
10 deletion
+23
-10
src/chart/bar/PictorialBarView.ts
src/chart/bar/PictorialBarView.ts
+2
-2
src/chart/helper/Symbol.ts
src/chart/helper/Symbol.ts
+2
-2
src/chart/pie/PieView.ts
src/chart/pie/PieView.ts
+2
-2
src/component/timeline/SliderTimelineView.ts
src/component/timeline/SliderTimelineView.ts
+4
-2
src/util/animation.ts
src/util/animation.ts
+6
-1
src/util/graphic.ts
src/util/graphic.ts
+7
-1
未找到文件。
src/chart/bar/PictorialBarView.ts
浏览文件 @
323b9392
...
...
@@ -773,12 +773,12 @@ function updateHoverAnimation(path: PictorialSymbol, symbolMeta: SymbolMeta) {
.
on
(
'
emphasis
'
,
function
()
{
this
.
animateTo
({
scale
:
[
scale
[
0
]
*
1.1
,
scale
[
1
]
*
1.1
]
},
400
,
'
elasticOut
'
);
},
{
duration
:
400
,
easing
:
'
elasticOut
'
}
);
})
.
on
(
'
normal
'
,
function
()
{
this
.
animateTo
({
scale
:
scale
.
slice
()
},
400
,
'
elasticOut
'
);
},
{
duration
:
400
,
easing
:
'
elasticOut
'
}
);
});
}
...
...
src/chart/helper/Symbol.ts
浏览文件 @
323b9392
...
...
@@ -358,12 +358,12 @@ function highDownOnUpdate(this: ECSymbol, fromState: DisplayState, toState: Disp
// modify it after support stop specified animation.
// toState === fromState
// ? (this.stopAnimation(), this.attr(emphasisOpt))
this
.
animateTo
(
emphasisOpt
,
400
,
'
elasticOut
'
);
this
.
animateTo
(
emphasisOpt
,
{
duration
:
400
,
easing
:
'
elasticOut
'
}
);
}
else
if
(
toState
===
'
normal
'
)
{
this
.
animateTo
({
scale
:
this
.
__symbolOriginalScale
},
400
,
'
elasticOut
'
);
},
{
duration
:
400
,
easing
:
'
elasticOut
'
}
);
}
}
...
...
src/chart/pie/PieView.ts
浏览文件 @
323b9392
...
...
@@ -207,7 +207,7 @@ class PiePiece extends graphic.Group {
shape
:
{
r
:
layout
.
r
+
seriesModel
.
get
(
'
hoverOffset
'
)
}
},
300
,
'
elasticOut
'
);
},
{
duration
:
300
,
easing
:
'
elasticOut
'
}
);
}
else
{
labelLine
.
ignore
=
labelLine
.
normalIgnore
;
...
...
@@ -218,7 +218,7 @@ class PiePiece extends graphic.Group {
shape
:
{
r
:
layout
.
r
}
},
300
,
'
elasticOut
'
);
},
{
duration
:
300
,
easing
:
'
elasticOut
'
}
);
}
}
:
null
;
...
...
src/component/timeline/SliderTimelineView.ts
浏览文件 @
323b9392
...
...
@@ -799,8 +799,10 @@ function pointerMoveTo(
pointer
.
stopAnimation
(
true
);
pointer
.
animateTo
(
{
position
:
[
toCoord
,
0
]
},
pointerModel
.
get
(
'
animationDuration
'
,
true
),
pointerModel
.
get
(
'
animationEasing
'
,
true
)
{
duration
:
pointerModel
.
get
(
'
animationDuration
'
,
true
),
easing
:
pointerModel
.
get
(
'
animationEasing
'
,
true
)
}
);
}
}
...
...
src/util/animation.ts
浏览文件 @
323b9392
...
...
@@ -95,7 +95,12 @@ export function createWrap() {
for
(
let
i
=
0
,
len
=
storage
.
length
;
i
<
len
;
i
++
)
{
let
item
=
storage
[
i
];
item
.
el
.
animateTo
(
item
.
target
,
item
.
time
,
item
.
delay
,
item
.
easing
,
done
);
item
.
el
.
animateTo
(
item
.
target
,
{
duration
:
item
.
time
,
delay
:
item
.
delay
,
easing
:
item
.
easing
,
done
});
}
return
this
;
...
...
src/util/graphic.ts
浏览文件 @
323b9392
...
...
@@ -1042,7 +1042,13 @@ function animateOrSetProps<Props>(
}
duration
>
0
?
el
.
animateTo
(
props
,
duration
,
animationDelay
||
0
,
animationEasing
,
cb
,
!!
cb
)
?
el
.
animateTo
(
props
,
{
duration
,
delay
:
animationDelay
||
0
,
easing
:
animationEasing
,
done
:
cb
,
force
:
!!
cb
})
:
(
el
.
stopAnimation
(),
el
.
attr
(
props
),
cb
&&
cb
());
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录