Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
半栈学徒
incubator-echarts
提交
5838f7bf
I
incubator-echarts
项目概览
半栈学徒
/
incubator-echarts
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
incubator-echarts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5838f7bf
编写于
8月 19, 2013
作者:
K
kener
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
代码优化
上级
eb326c66
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
43 addition
and
35 deletion
+43
-35
src/echarts.js
src/echarts.js
+43
-35
未找到文件。
src/echarts.js
浏览文件 @
5838f7bf
...
...
@@ -171,9 +171,9 @@ define(function(require) {
function
_onclick
(
param
)
{
var
len
=
_chartList
.
length
;
while
(
len
--
)
{
if
(
_chartList
[
len
].
onclick
)
{
_chartList
[
len
].
onclick
(
param
);
}
_chartList
[
len
]
&&
_chartList
[
len
].
onclick
&&
_chartList
[
len
].
onclick
(
param
);
}
if
(
param
.
target
)
{
var
ecData
=
_eventPackage
(
param
.
target
);
...
...
@@ -226,9 +226,9 @@ define(function(require) {
};
var
len
=
_chartList
.
length
;
while
(
len
--
)
{
if
(
_chartList
[
len
].
ondragstart
)
{
_chartList
[
len
].
ondragstart
(
param
);
}
_chartList
[
len
]
&&
_chartList
[
len
].
ondragstart
&&
_chartList
[
len
].
ondragstart
(
param
);
}
}
...
...
@@ -239,9 +239,9 @@ define(function(require) {
function
_ondragenter
(
param
)
{
var
len
=
_chartList
.
length
;
while
(
len
--
)
{
if
(
_chartList
[
len
].
ondragenter
)
{
_chartList
[
len
].
ondragenter
(
param
);
}
_chartList
[
len
]
&&
_chartList
[
len
].
ondragenter
&&
_chartList
[
len
].
ondragenter
(
param
);
}
}
...
...
@@ -251,9 +251,9 @@ define(function(require) {
function
_ondragover
(
param
)
{
var
len
=
_chartList
.
length
;
while
(
len
--
)
{
if
(
_chartList
[
len
].
ondragover
)
{
_chartList
[
len
].
ondragover
(
param
);
}
_chartList
[
len
]
&&
_chartList
[
len
].
ondragover
&&
_chartList
[
len
].
ondragover
(
param
);
}
}
/**
...
...
@@ -262,9 +262,9 @@ define(function(require) {
function
_ondragleave
(
param
)
{
var
len
=
_chartList
.
length
;
while
(
len
--
)
{
if
(
_chartList
[
len
].
ondragleave
)
{
_chartList
[
len
].
ondragleave
(
param
);
}
_chartList
[
len
]
&&
_chartList
[
len
].
ondragleave
&&
_chartList
[
len
].
ondragleave
(
param
);
}
}
...
...
@@ -274,9 +274,9 @@ define(function(require) {
function
_ondrop
(
param
)
{
var
len
=
_chartList
.
length
;
while
(
len
--
)
{
if
(
_chartList
[
len
].
ondrop
)
{
_chartList
[
len
].
ondrop
(
param
,
_status
);
}
_chartList
[
len
]
&&
_chartList
[
len
].
ondrop
&&
_chartList
[
len
].
ondrop
(
param
,
_status
);
}
_island
.
ondrop
(
param
,
_status
);
}
...
...
@@ -287,9 +287,9 @@ define(function(require) {
function
_ondragend
(
param
)
{
var
len
=
_chartList
.
length
;
while
(
len
--
)
{
if
(
_chartList
[
len
].
ondragend
)
{
_chartList
[
len
].
ondragend
(
param
,
_status
);
}
_chartList
[
len
]
&&
_chartList
[
len
].
ondragend
&&
_chartList
[
len
].
ondragend
(
param
,
_status
);
}
_island
.
ondragend
(
param
,
_status
);
...
...
@@ -311,11 +311,13 @@ define(function(require) {
function
_onlegendSelected
(
param
)
{
// 用于图表间通信
_status
.
needRefresh
=
false
;
for
(
var
l
=
_chartList
.
length
-
1
;
l
>=
0
;
l
--
)
{
if
(
_chartList
[
l
].
onlegendSelected
)
{
_chartList
[
l
].
onlegendSelected
(
param
,
_status
);
}
var
len
=
_chartList
.
length
;
while
(
len
--
)
{
_chartList
[
len
]
&&
_chartList
[
len
].
onlegendSelected
&&
_chartList
[
len
].
onlegendSelected
(
param
,
_status
);
}
_selectedMap
=
param
.
selected
;
if
(
_status
.
needRefresh
)
{
...
...
@@ -329,10 +331,11 @@ define(function(require) {
function
_ondataZoom
(
param
)
{
// 用于图表间通信
_status
.
needRefresh
=
false
;
for
(
var
l
=
_chartList
.
length
-
1
;
l
>=
0
;
l
--
)
{
if
(
_chartList
[
l
].
ondataZoom
)
{
_chartList
[
l
].
ondataZoom
(
param
,
_status
);
}
var
len
=
_chartList
.
length
;
while
(
len
--
)
{
_chartList
[
len
]
&&
_chartList
[
len
].
ondataZoom
&&
_chartList
[
len
].
ondataZoom
(
param
,
_status
);
}
if
(
_status
.
needRefresh
)
{
...
...
@@ -346,10 +349,11 @@ define(function(require) {
function
_ondataRange
(
param
)
{
// 用于图表间通信
_status
.
needRefresh
=
false
;
for
(
var
l
=
_chartList
.
length
-
1
;
l
>=
0
;
l
--
)
{
if
(
_chartList
[
l
].
ondataRange
)
{
_chartList
[
l
].
ondataRange
(
param
,
_status
);
}
var
len
=
_chartList
.
length
;
while
(
len
--
)
{
_chartList
[
len
]
&&
_chartList
[
len
].
ondataRange
&&
_chartList
[
len
].
ondataRange
(
param
,
_status
);
}
// 没有相互影响,直接刷新即可
...
...
@@ -620,7 +624,9 @@ define(function(require) {
if
(
magicOption
.
animation
)
{
var
len
=
_chartList
.
length
;
while
(
len
--
)
{
_chartList
[
len
].
animation
&&
_chartList
[
len
].
animation
();
_chartList
[
len
]
&&
_chartList
[
len
].
animation
&&
_chartList
[
len
].
animation
();
}
}
...
...
@@ -663,7 +669,9 @@ define(function(require) {
function
_disposeChartList
()
{
var
len
=
_chartList
.
length
;
while
(
len
--
)
{
_chartList
[
len
].
dispose
&&
_chartList
[
len
].
dispose
();
_chartList
[
len
]
&&
_chartList
[
len
].
dispose
&&
_chartList
[
len
].
dispose
();
}
_chartList
=
[];
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录