Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
c0cf06cd
I
incubator-echarts
项目概览
x649585723
/
incubator-echarts
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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 搜索 >>
提交
c0cf06cd
编写于
11月 29, 2015
作者:
L
lang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Line temporary symbol not removed when re render bug fix
上级
cc456e12
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
7 deletion
+18
-7
src/chart/line/LineView.js
src/chart/line/LineView.js
+11
-2
src/data/List.js
src/data/List.js
+7
-5
未找到文件。
src/chart/line/LineView.js
浏览文件 @
c0cf06cd
...
...
@@ -130,6 +130,15 @@ define(function(require) {
var
isSymbolIgnore
=
!
isCoordSysPolar
&&
!
seriesModel
.
get
(
'
showAllSymbol
'
)
&&
this
.
_getSymbolIgnoreFunc
(
data
,
coordSys
);
// Remove temporary symbols
var
oldData
=
this
.
_data
;
oldData
&&
oldData
.
eachItemGraphicEl
(
function
(
el
,
idx
)
{
if
(
el
.
__temp
)
{
group
.
remove
(
el
);
oldData
.
setItemGraphicEl
(
idx
,
null
);
}
});
// Initialization animation or coordinate system changed
if
(
!
(
polyline
...
...
@@ -236,7 +245,7 @@ define(function(require) {
var
data
=
seriesModel
.
getData
();
var
dataIndex
=
queryDataIndex
(
data
,
payload
);
if
(
dataIndex
>=
0
)
{
if
(
dataIndex
!=
null
&&
dataIndex
>=
0
)
{
var
symbol
=
data
.
getItemGraphicEl
(
dataIndex
);
if
(
!
symbol
)
{
// Create a temporary symbol if it is not exists
...
...
@@ -264,7 +273,7 @@ define(function(require) {
downplay
:
function
(
seriesModel
,
ecModel
,
api
,
payload
)
{
var
data
=
seriesModel
.
getData
();
var
dataIndex
=
queryDataIndex
(
data
,
payload
);
if
(
dataIndex
>=
0
)
{
if
(
dataIndex
!=
null
&&
dataIndex
>=
0
)
{
var
symbol
=
data
.
getItemGraphicEl
(
dataIndex
);
if
(
symbol
)
{
if
(
symbol
.
__temp
)
{
...
...
src/data/List.js
浏览文件 @
c0cf06cd
...
...
@@ -6,13 +6,13 @@ define(function (require) {
var
UNDEFINED
=
'
undefined
'
;
var
global
=
window
;
var
Float
32Array
=
typeof
global
.
Float32
Array
===
UNDEFINED
?
Array
:
global
.
Float
32
Array
;
var
Float
64Array
=
typeof
global
.
Float64
Array
===
UNDEFINED
?
Array
:
global
.
Float
64
Array
;
var
Int32Array
=
typeof
global
.
Int32Array
===
UNDEFINED
?
Array
:
global
.
Int32Array
;
var
dataCtors
=
{
'
float
'
:
Float
32
Array
,
'
float
'
:
Float
64
Array
,
'
int
'
:
Int32Array
,
// Ordinal data type can be string or int
'
ordinal
'
:
Array
,
...
...
@@ -908,8 +908,9 @@ define(function (require) {
child
.
dataIndex
=
this
.
dataIndex
;
};
/**
* Set graphic element relative to data. It can be set as null
* @param {number} idx
* @param {module:zrender/Element}
el
* @param {module:zrender/Element}
[el]
*/
listProto
.
setItemGraphicEl
=
function
(
idx
,
el
)
{
var
hostModel
=
this
.
hostModel
;
...
...
@@ -922,8 +923,9 @@ define(function (require) {
if
(
el
.
type
===
'
group
'
)
{
el
.
traverse
(
setItemDataAndSeriesIndex
,
el
);
}
this
.
_graphicEls
[
idx
]
=
el
;
}
this
.
_graphicEls
[
idx
]
=
el
;
};
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录