Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
a9710033
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,发现更多精彩内容 >>
提交
a9710033
编写于
10月 27, 2015
作者:
L
lang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
culling in TreemapView and typo
上级
cf54ffe1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
15 deletion
+14
-15
src/chart/treemap/TreemapView.js
src/chart/treemap/TreemapView.js
+1
-2
src/component/dataZoom/DataZoomView.js
src/component/dataZoom/DataZoomView.js
+13
-13
未找到文件。
src/chart/treemap/TreemapView.js
浏览文件 @
a9710033
...
...
@@ -259,6 +259,7 @@
text
=
''
;
}
content
.
culling
=
true
;
content
.
setShape
({
x
:
borderWidth
,
y
:
borderWidth
,
...
...
@@ -310,7 +311,6 @@
var
lastShapes
=
this
.
_lastShapes
;
var
animationCount
=
0
;
var
containerGroup
=
this
.
_containerGroup
;
var
that
=
this
;
zrUtil
.
each
(
this
.
_storage
,
function
(
shapes
,
key
)
{
...
...
@@ -429,7 +429,6 @@
// 但是animate中,按下鼠标,animate结束后(silent设回为false)松开鼠标,
// 还是会触发click,期望是不触发。
var
maybeClick
=
false
;
var
containerGroup
=
this
.
_containerGroup
;
var
that
=
this
;
containerGroup
.
on
(
'
mousedown
'
,
function
(
e
)
{
...
...
src/component/dataZoom/DataZoomView.js
浏览文件 @
a9710033
...
...
@@ -167,7 +167,7 @@ define(function (require) {
/**
* @private
*/
_positionGroup
:
function
(
barGroup
)
{
_positionGroup
:
function
()
{
var
thisGroup
=
this
.
group
;
var
location
=
this
.
_location
;
var
orient
=
this
.
_orient
;
...
...
@@ -318,13 +318,13 @@ define(function (require) {
},
_renderHandle
:
function
()
{
var
displables
=
this
.
_displayables
;
var
frames
=
displables
.
frames
=
[];
var
handles
=
displables
.
handles
=
[];
var
handleLabels
=
displables
.
handleLabels
=
[];
var
displa
y
bles
=
this
.
_displayables
;
var
frames
=
displa
y
bles
.
frames
=
[];
var
handles
=
displa
y
bles
.
handles
=
[];
var
handleLabels
=
displa
y
bles
.
handleLabels
=
[];
var
barGroup
=
this
.
_displayables
.
barGroup
;
barGroup
.
add
(
displables
.
filler
=
new
Rect
({
barGroup
.
add
(
displa
y
bles
.
filler
=
new
Rect
({
draggable
:
true
,
cursor
:
'
move
'
,
drift
:
bind
(
this
.
_onDragMove
,
this
,
'
all
'
),
...
...
@@ -431,7 +431,7 @@ define(function (require) {
* @private
*/
_updateView
:
function
()
{
var
displables
=
this
.
_displayables
;
var
displa
y
bles
=
this
.
_displayables
;
var
handleEnds
=
this
.
_handleEnds
;
var
handleInterval
=
asc
(
handleEnds
.
slice
());
var
size
=
this
.
_size
;
...
...
@@ -446,7 +446,7 @@ define(function (require) {
// Frames
var
frameInterval
=
frameIntervals
[
handleIndex
];
displables
.
frames
[
handleIndex
].
setShape
(
graphic
.
subPixelOptimizeRect
({
displa
y
bles
.
frames
[
handleIndex
].
setShape
(
graphic
.
subPixelOptimizeRect
({
shape
:
{
x
:
frameInterval
[
0
],
y
:
0
,
...
...
@@ -457,7 +457,7 @@ define(function (require) {
}).
shape
);
// Handles
var
handle
=
displables
.
handles
[
handleIndex
];
var
handle
=
displa
y
bles
.
handles
[
handleIndex
];
handle
.
setShape
({
x
:
handleEnds
[
handleIndex
]
-
halfHandleSize
,
y
:
0
,
...
...
@@ -468,7 +468,7 @@ define(function (require) {
},
this
);
// Filler
displables
.
filler
.
setShape
({
displa
y
bles
.
filler
.
setShape
({
x
:
handleInterval
[
0
],
y
:
0
,
width
:
handleInterval
[
1
]
-
handleInterval
[
0
],
...
...
@@ -483,8 +483,8 @@ define(function (require) {
*/
_updateDataInfo
:
function
()
{
var
dataZoomModel
=
this
.
dataZoomModel
;
var
displables
=
this
.
_displayables
;
var
handleLabels
=
displables
.
handleLabels
;
var
displa
y
bles
=
this
.
_displayables
;
var
handleLabels
=
displa
y
bles
.
handleLabels
;
var
orient
=
this
.
_orient
;
// FIXME
...
...
@@ -510,7 +510,7 @@ define(function (require) {
// Label
// Text should not transform by barGroup.
var
barTransform
=
modelUtil
.
getTransform
(
displables
.
handles
[
handleIndex
],
this
.
group
displa
y
bles
.
handles
[
handleIndex
],
this
.
group
);
var
direction
=
modelUtil
.
transformDirection
(
handleIndex
===
0
?
'
right
'
:
'
left
'
,
barTransform
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录