Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
z1593
incubator-echarts
提交
0f43d3c6
I
incubator-echarts
项目概览
z1593
/
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,发现更多精彩内容 >>
提交
0f43d3c6
编写于
12月 27, 2017
作者:
P
pissang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Keep remove normal status.
上级
291b512f
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
21 addition
and
21 deletion
+21
-21
src/chart/pie/labelLayout.js
src/chart/pie/labelLayout.js
+1
-1
src/chart/treemap/TreemapView.js
src/chart/treemap/TreemapView.js
+4
-4
src/chart/treemap/treemapLayout.js
src/chart/treemap/treemapLayout.js
+4
-4
src/component/helper/MapDraw.js
src/component/helper/MapDraw.js
+4
-4
src/component/marker/MarkLineView.js
src/component/marker/MarkLineView.js
+1
-1
src/component/marker/MarkPointView.js
src/component/marker/MarkPointView.js
+1
-1
src/component/timeline/SliderTimelineView.js
src/component/timeline/SliderTimelineView.js
+5
-5
src/visual/dataColor.js
src/visual/dataColor.js
+1
-1
未找到文件。
src/chart/pie/labelLayout.js
浏览文件 @
0f43d3c6
...
...
@@ -143,7 +143,7 @@ export default function (seriesModel, r, viewWidth, viewHeight) {
var
itemModel
=
data
.
getItemModel
(
idx
);
var
labelModel
=
itemModel
.
getModel
(
'
label
'
);
// Use position in normal or emphasis
var
labelPosition
=
labelModel
.
get
(
'
position
'
)
||
itemModel
.
get
(
'
label.emphasis
.position
'
);
var
labelPosition
=
labelModel
.
get
(
'
position
'
)
||
itemModel
.
get
(
'
emphasis.label
.position
'
);
var
labelLineModel
=
itemModel
.
getModel
(
'
labelLine
'
);
var
labelLineLen
=
labelLineModel
.
get
(
'
length
'
);
...
...
src/chart/treemap/TreemapView.js
浏览文件 @
0f43d3c6
...
...
@@ -16,10 +16,10 @@ var Rect = graphic.Rect;
var
each
=
zrUtil
.
each
;
var
DRAG_THRESHOLD
=
3
;
var
PATH_LABEL_NOAMAL
=
[
'
label
'
,
'
normal
'
];
var
PATH_LABEL_EMPHASIS
=
[
'
label
'
,
'
emphasis
'
];
var
PATH_UPPERLABEL_NORMAL
=
[
'
upperLabel
'
,
'
normal
'
];
var
PATH_UPPERLABEL_EMPHASIS
=
[
'
upperLabel
'
,
'
emphasis
'
];
var
PATH_LABEL_NOAMAL
=
[
'
label
'
];
var
PATH_LABEL_EMPHASIS
=
[
'
emphasis
'
,
'
label
'
];
var
PATH_UPPERLABEL_NORMAL
=
[
'
upperLabel
'
];
var
PATH_UPPERLABEL_EMPHASIS
=
[
'
emphasis
'
,
'
upperLabel
'
];
var
Z_BASE
=
10
;
// Should bigger than every z.
var
Z_BG
=
1
;
var
Z_CONTENT
=
2
;
...
...
src/chart/treemap/treemapLayout.js
浏览文件 @
0f43d3c6
...
...
@@ -9,10 +9,10 @@ var mathMin = Math.min;
var
retrieveValue
=
zrUtil
.
retrieve
;
var
each
=
zrUtil
.
each
;
var
PATH_BORDER_WIDTH
=
[
'
itemStyle
'
,
'
normal
'
,
'
borderWidth
'
];
var
PATH_GAP_WIDTH
=
[
'
itemStyle
'
,
'
normal
'
,
'
gapWidth
'
];
var
PATH_UPPER_LABEL_SHOW
=
[
'
upperLabel
'
,
'
normal
'
,
'
show
'
];
var
PATH_UPPER_LABEL_HEIGHT
=
[
'
upperLabel
'
,
'
normal
'
,
'
height
'
];
var
PATH_BORDER_WIDTH
=
[
'
itemStyle
'
,
'
borderWidth
'
];
var
PATH_GAP_WIDTH
=
[
'
itemStyle
'
,
'
gapWidth
'
];
var
PATH_UPPER_LABEL_SHOW
=
[
'
upperLabel
'
,
'
show
'
];
var
PATH_UPPER_LABEL_HEIGHT
=
[
'
upperLabel
'
,
'
height
'
];
/**
* @public
...
...
src/component/helper/MapDraw.js
浏览文件 @
0f43d3c6
...
...
@@ -147,10 +147,10 @@ MapDraw.prototype = {
group
.
removeAll
();
var
itemStyleAccessPath
=
[
'
itemStyle
'
,
'
normal
'
];
var
hoverItemStyleAccessPath
=
[
'
itemStyle
'
,
'
emphasis
'
];
var
labelAccessPath
=
[
'
label
'
,
'
normal
'
];
var
hoverLabelAccessPath
=
[
'
label
'
,
'
emphasis
'
];
var
itemStyleAccessPath
=
[
'
itemStyle
'
];
var
hoverItemStyleAccessPath
=
[
'
emphasis
'
,
'
itemStyle
'
];
var
labelAccessPath
=
[
'
label
'
];
var
hoverLabelAccessPath
=
[
'
emphasis
'
,
'
label
'
];
var
nameMap
=
zrUtil
.
createHashMap
();
zrUtil
.
each
(
geo
.
regions
,
function
(
region
)
{
...
...
src/component/marker/MarkLineView.js
浏览文件 @
0f43d3c6
...
...
@@ -278,7 +278,7 @@ export default MarkerView.extend({
data
.
setItemVisual
(
idx
,
{
symbolSize
:
itemModel
.
get
(
'
symbolSize
'
)
||
symbolSize
[
isFrom
?
0
:
1
],
symbol
:
itemModel
.
get
(
'
symbol
'
,
true
)
||
symbolType
[
isFrom
?
0
:
1
],
color
:
itemModel
.
get
(
'
itemStyle.
normal.
color
'
)
||
seriesData
.
getVisual
(
'
color
'
)
color
:
itemModel
.
get
(
'
itemStyle.color
'
)
||
seriesData
.
getVisual
(
'
color
'
)
});
}
...
...
src/component/marker/MarkPointView.js
浏览文件 @
0f43d3c6
...
...
@@ -82,7 +82,7 @@ export default MarkerView.extend({
}
mpData
.
setItemVisual
(
idx
,
{
symbolSize
:
symbolSize
,
color
:
itemModel
.
get
(
'
itemStyle.
normal.
color
'
)
color
:
itemModel
.
get
(
'
itemStyle.color
'
)
||
seriesData
.
getVisual
(
'
color
'
),
symbol
:
itemModel
.
getShallow
(
'
symbol
'
)
});
...
...
src/component/timeline/SliderTimelineView.js
浏览文件 @
0f43d3c6
...
...
@@ -113,7 +113,7 @@ export default TimelineView.extend({
},
_layout
:
function
(
timelineModel
,
api
)
{
var
labelPosOpt
=
timelineModel
.
get
(
'
label.
normal.
position
'
);
var
labelPosOpt
=
timelineModel
.
get
(
'
label.position
'
);
var
orient
=
timelineModel
.
get
(
'
orient
'
);
var
viewRect
=
getViewRect
(
timelineModel
,
api
);
// Auto label offset.
...
...
@@ -153,7 +153,7 @@ export default TimelineView.extend({
var
sizePlusGap
=
controlSize
+
controlGap
;
// Special label rotate.
var
labelRotation
=
timelineModel
.
get
(
'
label.
normal.
rotate
'
)
||
0
;
var
labelRotation
=
timelineModel
.
get
(
'
label.rotate
'
)
||
0
;
labelRotation
=
labelRotation
*
PI
/
180
;
// To radian.
var
playPosition
;
...
...
@@ -193,9 +193,9 @@ export default TimelineView.extend({
rotation
:
rotationMap
[
orient
],
labelRotation
:
labelRotation
,
labelPosOpt
:
labelPosOpt
,
labelAlign
:
timelineModel
.
get
(
'
label.
normal.
align
'
)
||
labelAlignMap
[
orient
],
labelBaseline
:
timelineModel
.
get
(
'
label.
normal.
verticalAlign
'
)
||
timelineModel
.
get
(
'
label.
normal.
baseline
'
)
labelAlign
:
timelineModel
.
get
(
'
label.align
'
)
||
labelAlignMap
[
orient
],
labelBaseline
:
timelineModel
.
get
(
'
label.verticalAlign
'
)
||
timelineModel
.
get
(
'
label.baseline
'
)
||
labelBaselineMap
[
orient
],
// Based on mainGroup.
...
...
src/visual/dataColor.js
浏览文件 @
0f43d3c6
...
...
@@ -24,7 +24,7 @@ export default function (seriesType, ecModel) {
if
(
!
singleDataColor
)
{
// FIXME Performance
var
itemModel
=
dataAll
.
getItemModel
(
rawIdx
);
var
color
=
itemModel
.
get
(
'
itemStyle.
normal.
color
'
)
var
color
=
itemModel
.
get
(
'
itemStyle.color
'
)
||
seriesModel
.
getColorFromPalette
(
dataAll
.
getName
(
rawIdx
),
paletteScope
);
// Legend may use the visual info in data before processed
dataAll
.
setItemVisual
(
rawIdx
,
'
color
'
,
color
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录