Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
a7aaf66a
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 搜索 >>
提交
a7aaf66a
编写于
12月 29, 2015
作者:
L
lang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clone is always deep
上级
50b6d14f
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
21 addition
and
24 deletion
+21
-24
src/chart/bar/BarSeries.js
src/chart/bar/BarSeries.js
+2
-4
src/chart/radar/backwardCompat.js
src/chart/radar/backwardCompat.js
+1
-1
src/component/helper/SelectController.js
src/component/helper/SelectController.js
+3
-3
src/component/timeline/SliderTimelineView.js
src/component/timeline/SliderTimelineView.js
+1
-1
src/component/timeline/TimelineModel.js
src/component/timeline/TimelineModel.js
+1
-1
src/component/tooltip/TooltipView.js
src/component/tooltip/TooltipView.js
+2
-2
src/component/visualMap/PiecewiseModel.js
src/component/visualMap/PiecewiseModel.js
+1
-1
src/component/visualMap/PiecewiseView.js
src/component/visualMap/PiecewiseView.js
+1
-1
src/component/visualMap/VisualMapModel.js
src/component/visualMap/VisualMapModel.js
+2
-2
src/coord/parallel/AxisModel.js
src/coord/parallel/AxisModel.js
+1
-1
src/coord/parallel/Parallel.js
src/coord/parallel/Parallel.js
+1
-1
src/echarts.js
src/echarts.js
+1
-1
src/model/Global.js
src/model/Global.js
+1
-1
src/model/Model.js
src/model/Model.js
+1
-1
src/visual/VisualMapping.js
src/visual/VisualMapping.js
+1
-1
src/visual/visualDefault.js
src/visual/visualDefault.js
+1
-2
未找到文件。
src/chart/bar/BarSeries.js
浏览文件 @
a7aaf66a
...
...
@@ -28,6 +28,8 @@ define(function(require) {
// 最小高度改为0
barMinHeight
:
0
,
// barMaxWidth: null,
// 默认自适应
// barWidth: null,
// 柱间距离,默认为柱形宽度的30%,可设固定值
...
...
@@ -52,8 +54,6 @@ define(function(require) {
// color: '各异',
// 柱条边线
barBorderColor
:
'
#fff
'
,
// 柱条边线圆角,单位px,默认为0
barBorderRadius
:
0
,
// 柱条边线线宽,单位px,默认为1
barBorderWidth
:
0
},
...
...
@@ -61,8 +61,6 @@ define(function(require) {
// color: '各异',
// 柱条边线
barBorderColor
:
'
#fff
'
,
// 柱条边线圆角,单位px,默认为0
barBorderRadius
:
0
,
// 柱条边线线宽,单位px,默认为1
barBorderWidth
:
0
}
...
...
src/chart/radar/backwardCompat.js
浏览文件 @
a7aaf66a
...
...
@@ -149,7 +149,7 @@ define(function (require) {
seriesOpt
.
name
=
dataOpt
.
name
;
for
(
var
i
=
1
;
i
<
dataList
.
length
;
i
++
)
{
var
dataOpt
=
dataList
[
i
];
var
newSeriesOpt
=
zrUtil
.
clone
(
seriesOpt
,
true
);
var
newSeriesOpt
=
zrUtil
.
clone
(
seriesOpt
);
option
.
series
.
push
(
zrUtil
.
extend
(
newSeriesOpt
,
{
name
:
dataOpt
.
name
,
data
:
dataOpt
.
value
,
...
...
src/component/helper/SelectController.js
浏览文件 @
a7aaf66a
...
...
@@ -50,7 +50,7 @@ define(function (require) {
* @type {Object}
* @readOnly
*/
this
.
opt
=
zrUtil
.
clone
(
opt
,
true
);
this
.
opt
=
zrUtil
.
clone
(
opt
);
/**
* @type {module:zrender/container/Group}
...
...
@@ -131,7 +131,7 @@ define(function (require) {
// TODO
// Only support one interval yet.
if
(
ranges
)
{
renderCover
.
call
(
this
,
zrUtil
.
clone
(
ranges
,
true
));
renderCover
.
call
(
this
,
zrUtil
.
clone
(
ranges
));
}
},
...
...
@@ -218,7 +218,7 @@ define(function (require) {
renderCover
.
call
(
this
,
ranges
);
this
.
trigger
(
'
selected
'
,
zrUtil
.
clone
(
ranges
,
true
));
this
.
trigger
(
'
selected
'
,
zrUtil
.
clone
(
ranges
));
}
}
...
...
src/component/timeline/SliderTimelineView.js
浏览文件 @
a7aaf66a
...
...
@@ -635,7 +635,7 @@ define(function (require) {
function
makeIcon
(
timelineModel
,
objPath
,
rect
,
opts
)
{
var
icon
=
graphic
.
makePath
(
timelineModel
.
get
(
objPath
).
replace
(
/^path:
\/\/
/
,
''
),
zrUtil
.
clone
(
opts
||
{}
,
true
),
zrUtil
.
clone
(
opts
||
{}),
new
BoundingRect
(
rect
[
0
],
rect
[
1
],
rect
[
2
],
rect
[
3
]),
'
center
'
);
...
...
src/component/timeline/TimelineModel.js
浏览文件 @
a7aaf66a
...
...
@@ -151,7 +151,7 @@ define(function(require) {
var
newItem
;
if
(
zrUtil
.
isObject
(
item
))
{
newItem
=
zrUtil
.
clone
(
item
,
true
);
newItem
=
zrUtil
.
clone
(
item
);
newItem
.
value
=
index
;
}
else
{
...
...
src/component/tooltip/TooltipView.js
浏览文件 @
a7aaf66a
...
...
@@ -790,14 +790,14 @@ define(function (require) {
if
(
lastHover
.
payloadBatch
&&
!
contentNotChange
)
{
this
.
_api
.
dispatchAction
({
type
:
'
downplay
'
,
batch
:
zrUtil
.
clone
(
lastHover
.
payloadBatch
,
true
)
batch
:
zrUtil
.
clone
(
lastHover
.
payloadBatch
)
});
}
// Dispatch highlight action
if
(
!
contentNotChange
)
{
this
.
_api
.
dispatchAction
({
type
:
'
highlight
'
,
batch
:
zrUtil
.
clone
(
payloadBatch
,
true
)
batch
:
zrUtil
.
clone
(
payloadBatch
)
});
lastHover
.
payloadBatch
=
payloadBatch
;
}
...
...
src/component/visualMap/PiecewiseModel.js
浏览文件 @
a7aaf66a
...
...
@@ -56,7 +56,7 @@ define(function(require) {
this
.
resetVisual
(
function
(
mappingOption
,
state
)
{
mappingOption
.
mappingMethod
=
mappingMethod
;
mappingOption
.
categories
=
categories
&&
zrUtil
.
clone
(
categories
,
true
);
mappingOption
.
categories
=
categories
&&
zrUtil
.
clone
(
categories
);
var
intervals
=
mappingOption
.
intervals
=
[];
var
specifiedVisuals
=
mappingOption
.
specifiedVisuals
=
[];
...
...
src/component/visualMap/PiecewiseView.js
浏览文件 @
a7aaf66a
...
...
@@ -150,7 +150,7 @@ define(function(require) {
*/
_onItemClick
:
function
(
index
)
{
var
visualMapModel
=
this
.
visualMapModel
;
var
selected
=
zrUtil
.
clone
(
visualMapModel
.
get
(
'
selected
'
)
,
true
);
var
selected
=
zrUtil
.
clone
(
visualMapModel
.
get
(
'
selected
'
));
if
(
visualMapModel
.
get
(
'
selectedMode
'
)
===
'
single
'
)
{
zrUtil
.
each
(
selected
,
function
(
item
,
index
)
{
...
...
src/component/visualMap/VisualMapModel.js
浏览文件 @
a7aaf66a
...
...
@@ -389,12 +389,12 @@ define(function(require) {
// Consistent symbol and symbolSize if not specified.
if
(
!
visuals
.
symbol
)
{
visuals
.
symbol
=
symbolExists
&&
zrUtil
.
clone
(
symbolExists
,
true
)
&&
zrUtil
.
clone
(
symbolExists
)
||
(
isCategory
?
'
roundRect
'
:
[
'
roundRect
'
]);
}
if
(
!
visuals
.
symbolSize
)
{
visuals
.
symbolSize
=
symbolSizeExists
&&
zrUtil
.
clone
(
symbolSizeExists
,
true
)
&&
zrUtil
.
clone
(
symbolSizeExists
)
||
(
isCategory
?
itemSize
[
0
]
:
[
itemSize
[
0
],
itemSize
[
0
]]);
}
...
...
src/coord/parallel/AxisModel.js
浏览文件 @
a7aaf66a
...
...
@@ -47,7 +47,7 @@ define(function(require) {
* @public
*/
setActiveIntervals
:
function
(
intervals
)
{
var
activeIntervals
=
this
.
activeIntervals
=
zrUtil
.
clone
(
intervals
,
true
);
var
activeIntervals
=
this
.
activeIntervals
=
zrUtil
.
clone
(
intervals
);
// Normalize
if
(
activeIntervals
)
{
...
...
src/coord/parallel/Parallel.js
浏览文件 @
a7aaf66a
...
...
@@ -280,7 +280,7 @@ define(function(require) {
* Get axis layout.
*/
getAxisLayout
:
function
(
dim
)
{
return
zrUtil
.
clone
(
this
.
_axesLayout
[
dim
]
,
true
);
return
zrUtil
.
clone
(
this
.
_axesLayout
[
dim
]);
}
};
...
...
src/echarts.js
浏览文件 @
a7aaf66a
...
...
@@ -83,7 +83,7 @@ define(function (require) {
* @type {Object}
* @private
*/
this
.
_theme
=
zrUtil
.
clone
(
theme
,
true
);
this
.
_theme
=
zrUtil
.
clone
(
theme
);
/**
* @type {Array.<module:echarts/view/Chart>}
...
...
src/model/Global.js
浏览文件 @
a7aaf66a
...
...
@@ -110,7 +110,7 @@ define(function (require) {
if
(
!
ComponentModel
.
hasClass
(
mainType
))
{
option
[
mainType
]
=
option
[
mainType
]
==
null
?
zrUtil
.
clone
(
componentOption
,
true
)
?
zrUtil
.
clone
(
componentOption
)
:
zrUtil
.
merge
(
option
[
mainType
],
componentOption
,
true
);
}
else
{
...
...
src/model/Model.js
浏览文件 @
a7aaf66a
...
...
@@ -123,7 +123,7 @@ define(function (require) {
// Pending
clone
:
function
()
{
var
Ctor
=
this
.
constructor
;
return
new
Ctor
(
zrUtil
.
clone
(
this
.
option
,
true
));
return
new
Ctor
(
zrUtil
.
clone
(
this
.
option
));
},
setReadOnly
:
function
(
properties
)
{
...
...
src/visual/VisualMapping.js
浏览文件 @
a7aaf66a
...
...
@@ -56,7 +56,7 @@ define(function (require) {
* @readOnly
* @type {Object}
*/
var
thisOption
=
this
.
option
=
zrUtil
.
clone
(
option
,
true
);
var
thisOption
=
this
.
option
=
zrUtil
.
clone
(
option
);
/**
* @private
...
...
src/visual/visualDefault.js
浏览文件 @
a7aaf66a
...
...
@@ -12,8 +12,7 @@ define(function (require) {
*/
get
:
function
(
visualType
,
key
,
isCategory
)
{
var
value
=
zrUtil
.
clone
(
(
defaultOption
[
visualType
]
||
{})[
key
],
true
(
defaultOption
[
visualType
]
||
{})[
key
]
);
return
isCategory
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录