Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
f219ba48
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,发现更多精彩内容 >>
提交
f219ba48
编写于
4月 24, 2014
作者:
K
kener
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
组件代码优化
上级
8941c089
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
13 addition
and
12 deletion
+13
-12
src/component/axis.js
src/component/axis.js
+3
-3
src/component/categoryAxis.js
src/component/categoryAxis.js
+4
-1
src/component/dataView.js
src/component/dataView.js
+0
-1
src/component/dataZoom.js
src/component/dataZoom.js
+2
-2
src/component/grid.js
src/component/grid.js
+0
-1
src/component/polar.js
src/component/polar.js
+2
-2
src/component/toolbox.js
src/component/toolbox.js
+2
-2
未找到文件。
src/component/axis.js
浏览文件 @
f219ba48
...
...
@@ -108,11 +108,11 @@ define(function (require) {
* 构造函数默认执行的初始化方法,也用于创建实例后动态修改
* @param {Object} newZr
* @param {Object} newOption
* @param {Object} newCompoent
* @param {Object} newCompo
n
ent
*/
init
:
function
(
newOption
,
newCompoent
,
newAxisType
)
{
init
:
function
(
newOption
,
newCompo
n
ent
,
newAxisType
)
{
this
.
option
=
newOption
||
this
.
option
;
this
.
component
=
newCompoent
||
this
.
component
;
this
.
component
=
newCompo
n
ent
||
this
.
component
;
this
.
axisType
=
newAxisType
||
this
.
axisType
;
this
.
_axisList
=
[];
...
...
src/component/categoryAxis.js
浏览文件 @
f219ba48
...
...
@@ -147,7 +147,10 @@ define(function (require) {
return
interval
;
},
/**
* 绘制图形
*/
_buildShape
:
function
()
{
// 标签文字格式化
this
.
_labelData
=
this
.
_reformLabel
();
...
...
src/component/dataView.js
浏览文件 @
f219ba48
...
...
@@ -60,7 +60,6 @@ define(function (require) {
this
.
option
=
newOption
;
this
.
_tDom
.
innerHTML
=
'
<p style="padding:8px 0;margin:0 0 10px 0;
'
+
'
border-bottom:1px solid #eee">
'
+
(
lang
[
0
]
||
this
.
_lang
[
0
])
...
...
src/component/dataZoom.js
浏览文件 @
f219ba48
...
...
@@ -1010,8 +1010,8 @@ define(function (require) {
},
init
:
function
(
newOption
,
newComponent
)
{
this
.
option
=
newOption
;
this
.
component
=
newComponent
;
this
.
option
=
newOption
||
this
.
option
;
this
.
component
=
newComponent
||
this
.
component
;
this
.
_fillerSize
=
28
;
// 控件大小,水平布局为高,纵向布局为宽
this
.
_handleSize
=
8
;
// 手柄大小
...
...
src/component/grid.js
浏览文件 @
f219ba48
...
...
@@ -81,7 +81,6 @@ define(function (require) {
)
{
this
.
clear
();
this
.
option
=
newOption
||
this
.
option
;
this
.
option
.
grid
=
this
.
reformOption
(
this
.
option
.
grid
);
var
gridOption
=
this
.
option
.
grid
;
...
...
src/component/polar.js
浏览文件 @
f219ba48
...
...
@@ -899,8 +899,8 @@ define(function (require) {
* 刷新
*/
refresh
:
function
(
newOption
)
{
if
(
newOption
||
newComponent
)
{
this
.
option
=
newOption
||
this
.
option
;
if
(
newOption
)
{
this
.
option
=
newOption
;
this
.
polar
=
this
.
option
.
polar
;
this
.
series
=
this
.
option
.
series
;
}
...
...
src/component/toolbox.js
浏览文件 @
f219ba48
...
...
@@ -1049,8 +1049,8 @@ define(function (require) {
newOption
.
toolbox
.
padding
=
this
.
reformCssArray
(
newOption
.
toolbox
.
padding
);
this
.
option
=
newOption
;
this
.
component
=
newComponent
;
this
.
option
=
newOption
||
this
.
option
;
this
.
component
=
newComponent
||
this
.
component
;
this
.
shapeList
=
[];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录