Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
198ccdb4
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,发现更多精彩内容 >>
提交
198ccdb4
编写于
3月 21, 2020
作者:
1
100pah
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ts: tweak lint
上级
e25f1dcb
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
27 addition
and
28 deletion
+27
-28
src/chart/bar/BarView.ts
src/chart/bar/BarView.ts
+6
-6
src/chart/graph/GraphSeries.ts
src/chart/graph/GraphSeries.ts
+2
-2
src/chart/sunburst/SunburstPiece.ts
src/chart/sunburst/SunburstPiece.ts
+1
-1
src/chart/treemap/treemapVisual.ts
src/chart/treemap/treemapVisual.ts
+1
-1
src/component/axisPointer/SingleAxisPointer.ts
src/component/axisPointer/SingleAxisPointer.ts
+1
-1
src/component/axisPointer/axisTrigger.ts
src/component/axisPointer/axisTrigger.ts
+1
-1
src/component/calendar/CalendarView.ts
src/component/calendar/CalendarView.ts
+2
-2
src/component/dataZoom/roams.ts
src/component/dataZoom/roams.ts
+1
-1
src/component/helper/RoamController.ts
src/component/helper/RoamController.ts
+1
-1
src/component/legend/ScrollableLegendModel.ts
src/component/legend/ScrollableLegendModel.ts
+2
-3
src/component/toolbox/feature/DataZoom.ts
src/component/toolbox/feature/DataZoom.ts
+1
-1
src/component/toolbox/feature/SaveAsImage.ts
src/component/toolbox/feature/SaveAsImage.ts
+1
-1
src/component/visualMap/ContinuousView.ts
src/component/visualMap/ContinuousView.ts
+1
-1
src/data/Graph.ts
src/data/Graph.ts
+2
-2
src/model/Global.ts
src/model/Global.ts
+1
-1
src/stream/Scheduler.ts
src/stream/Scheduler.ts
+2
-2
src/util/symbol.ts
src/util/symbol.ts
+1
-1
未找到文件。
src/chart/bar/BarView.ts
浏览文件 @
198ccdb4
...
...
@@ -81,16 +81,16 @@ function getClipArea(coord: CoordSysOfBar, data: List) {
class
BarView
extends
ChartView
{
static
type
=
'
bar
'
as
const
type
=
BarView
.
type
static
type
=
'
bar
'
as
const
;
type
=
BarView
.
type
;
_data
:
List
_data
:
List
;
_isLargeDraw
:
boolean
_isLargeDraw
:
boolean
;
_backgroundGroup
:
Group
_backgroundGroup
:
Group
;
_backgroundEls
:
(
Rect
|
Sector
)[]
_backgroundEls
:
(
Rect
|
Sector
)[]
;
render
(
seriesModel
:
BarSeriesModel
,
ecModel
:
GlobalModel
,
api
:
ExtensionAPI
)
{
this
.
_updateDrawMode
(
seriesModel
);
...
...
src/chart/graph/GraphSeries.ts
浏览文件 @
198ccdb4
...
...
@@ -219,9 +219,9 @@ class GraphSeriesModel extends SeriesModel<GraphSeriesOption> {
/**
* Preserved points during layouting
*/
preservedPoints
?:
Dictionary
<
VectorArray
>
preservedPoints
?:
Dictionary
<
VectorArray
>
;
forceLayout
?:
ForceLayoutInstance
forceLayout
?:
ForceLayoutInstance
;
init
(
option
:
GraphSeriesOption
)
{
super
.
init
.
apply
(
this
,
arguments
as
any
);
...
...
src/chart/sunburst/SunburstPiece.ts
浏览文件 @
198ccdb4
...
...
@@ -313,7 +313,7 @@ class SunburstPiece extends graphic.Group {
}
label
.
attr
(
'
rotation
'
,
rotate
);
type
LabelOption
=
SunburstSeriesNodeOption
[
'
label
'
]
type
LabelOption
=
SunburstSeriesNodeOption
[
'
label
'
]
;
function
getLabelAttr
<
T
extends
keyof
LabelOption
>
(
name
:
T
):
LabelOption
[
T
]
{
var
stateAttr
=
labelModel
.
get
(
name
);
if
(
stateAttr
==
null
)
{
...
...
src/chart/treemap/treemapVisual.ts
浏览文件 @
198ccdb4
...
...
@@ -26,7 +26,7 @@ import { ColorString, ZRColor } from '../../util/types';
import
{
modifyHSL
,
modifyAlpha
}
from
'
zrender/src/tool/color
'
;
import
{
makeInner
}
from
'
../../util/model
'
;
type
NodeModel
=
Model
<
TreemapSeriesNodeItemOption
>
type
NodeModel
=
Model
<
TreemapSeriesNodeItemOption
>
;
type
NodeItemStyleModel
=
Model
<
TreemapSeriesNodeItemOption
[
'
itemStyle
'
]
>
;
const
ITEM_STYLE_NORMAL
=
'
itemStyle
'
;
...
...
src/component/axisPointer/SingleAxisPointer.ts
浏览文件 @
198ccdb4
...
...
@@ -34,7 +34,7 @@ const XY = ['x', 'y'] as const;
const
WH
=
[
'
width
'
,
'
height
'
]
as
const
;
// Not use top level axisPointer model
type
AxisPointerModel
=
Model
<
CommonAxisPointerOption
>
type
AxisPointerModel
=
Model
<
CommonAxisPointerOption
>
;
class
SingleAxisPointer
extends
BaseAxisPointer
{
...
...
src/component/axisPointer/axisTrigger.ts
浏览文件 @
198ccdb4
...
...
@@ -100,7 +100,7 @@ interface AxisTriggerPayload extends Payload {
type
ShowValueMap
=
Dictionary
<
{
value
:
AxisValue
payloadBatch
:
BatchItem
[]
}
>
}
>
;
/**
* Basic logic: check all axis, if they do not demand show/highlight,
...
...
src/component/calendar/CalendarView.ts
浏览文件 @
198ccdb4
...
...
@@ -67,12 +67,12 @@ class CalendarView extends ComponentView {
/**
* first day of month
*/
private
_firstDayOfMonth
:
CalendarParsedDateInfo
[]
private
_firstDayOfMonth
:
CalendarParsedDateInfo
[]
;
/**
* first day point of month
*/
private
_firstDayPoints
:
number
[][]
private
_firstDayPoints
:
number
[][]
;
render
(
calendarModel
:
CalendarModel
,
ecModel
:
GlobalModel
,
api
:
ExtensionAPI
)
{
...
...
src/component/dataZoom/roams.ts
浏览文件 @
198ccdb4
...
...
@@ -58,7 +58,7 @@ interface PayloadBatch {
dataZoomId
:
string
}
type
Store
=
Dictionary
<
Record
>
type
Store
=
Dictionary
<
Record
>
;
const
inner
=
makeInner
<
Store
,
ExtensionAPI
>
();
...
...
src/component/helper/RoamController.ts
浏览文件 @
198ccdb4
...
...
@@ -27,7 +27,7 @@ import Group from 'zrender/src/container/Group';
// Can be null/undefined or true/false
// or 'pan/move' or 'zoom'/'scale'
export
type
RoamType
=
RoamOptionMixin
[
'
roam
'
]
export
type
RoamType
=
RoamOptionMixin
[
'
roam
'
]
;
interface
RoamOption
{
zoomOnMouseWheel
?:
boolean
|
'
ctrl
'
|
'
shift
'
|
'
alt
'
...
...
src/component/legend/ScrollableLegendModel.ts
浏览文件 @
198ccdb4
...
...
@@ -26,7 +26,6 @@ import { ZRColor, LabelOption } from '../../util/types';
import
Model
from
'
../../model/Model
'
;
import
ComponentModel
from
'
../../model/Component
'
;
import
GlobalModel
from
'
../../model/Global
'
;
import
*
as
zrUtil
from
'
zrender/src/core/util
'
;
import
{
inheritDefaultOption
}
from
'
../../util/component
'
;
export
interface
ScrollableLegendOption
extends
LegendOption
{
...
...
@@ -56,8 +55,8 @@ export interface ScrollableLegendOption extends LegendOption {
class
ScrollableLegendModel
extends
LegendModel
<
ScrollableLegendOption
>
{
static
type
=
'
legend.scroll
'
as
const
type
=
ScrollableLegendModel
.
type
static
type
=
'
legend.scroll
'
as
const
;
type
=
ScrollableLegendModel
.
type
;
/**
* @param {number} scrollDataIndex
...
...
src/component/toolbox/feature/DataZoom.ts
浏览文件 @
198ccdb4
...
...
@@ -64,7 +64,7 @@ interface ToolboxDataZoomFeatureOption extends ToolboxFeatureOption {
yAxisIndex
?:
ModelFinderIndexQuery
|
false
}
type
ToolboxDataZoomFeatureModel
=
ToolboxFeatureModel
<
ToolboxDataZoomFeatureOption
>
type
ToolboxDataZoomFeatureModel
=
ToolboxFeatureModel
<
ToolboxDataZoomFeatureOption
>
;
class
DataZoomFeature
extends
ToolboxFeature
<
ToolboxDataZoomFeatureOption
>
{
...
...
src/component/toolbox/feature/SaveAsImage.ts
浏览文件 @
198ccdb4
...
...
@@ -108,7 +108,7 @@ class SaveAsImage extends ToolboxFeature<ToolboxSaveAsImageFeatureOption> {
excludeComponents
:
[
'
toolbox
'
],
pixelRatio
:
1
,
lang
:
saveAsImageLang
.
lang
.
slice
()
}
}
;
}
SaveAsImage
.
prototype
.
unusable
=
!
env
.
canvasSupported
;
...
...
src/component/visualMap/ContinuousView.ts
浏览文件 @
198ccdb4
...
...
@@ -60,7 +60,7 @@ type ShapeStorage = {
indicator
:
graphic
.
Polygon
indicatorLabel
:
graphic
.
Text
indicatorLabelPoint
:
number
[]
}
}
;
type
TargetDataIndices
=
ReturnType
<
ContinuousModel
[
'
findTargetDataIndices
'
]
>
;
...
...
src/data/Graph.ts
浏览文件 @
198ccdb4
...
...
@@ -307,10 +307,10 @@ class Graph {
var
graph
=
new
Graph
(
this
.
_directed
);
var
nodes
=
this
.
nodes
;
var
edges
=
this
.
edges
;
for
(
var
i
=
0
;
i
<
nodes
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
nodes
.
length
;
i
++
)
{
graph
.
addNode
(
nodes
[
i
].
id
,
nodes
[
i
].
dataIndex
);
}
for
(
var
i
=
0
;
i
<
edges
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
edges
.
length
;
i
++
)
{
var
e
=
edges
[
i
];
graph
.
addEdge
(
e
.
node1
.
id
,
e
.
node2
.
id
,
e
.
dataIndex
);
}
...
...
src/model/Global.ts
浏览文件 @
198ccdb4
...
...
@@ -654,7 +654,7 @@ class GlobalModel extends Model<ECUnitOption> {
ecModel
.
mergeOption
(
baseOption
);
};
})()
})()
;
}
// -----------------------
...
...
src/stream/Scheduler.ts
浏览文件 @
198ccdb4
...
...
@@ -131,8 +131,8 @@ class Scheduler {
// processors might be registered after echarts instance created.
// Register processors incrementally for a echarts instance is
// not supported by this stream architecture.
var
dataProcessorHandlers
=
this
.
_dataProcessorHandlers
=
dataProcessorHandlers
.
slice
();
v
ar
v
isualHandlers
=
this
.
_visualHandlers
=
visualHandlers
.
slice
();
dataProcessorHandlers
=
this
.
_dataProcessorHandlers
=
dataProcessorHandlers
.
slice
();
visualHandlers
=
this
.
_visualHandlers
=
visualHandlers
.
slice
();
this
.
_allHandlers
=
dataProcessorHandlers
.
concat
(
visualHandlers
);
}
...
...
src/util/symbol.ts
浏览文件 @
198ccdb4
...
...
@@ -31,7 +31,7 @@ type ECSymbol = graphic.Path & {
setColor
:
(
color
:
ZRColor
,
innerColor
?:
string
)
=>
void
};
type
SymbolCtor
=
{
new
():
ECSymbol
};
type
SymbolShapeMaker
=
(
x
:
number
,
y
:
number
,
w
:
number
,
h
:
number
,
shape
:
Dictionary
<
any
>
)
=>
void
type
SymbolShapeMaker
=
(
x
:
number
,
y
:
number
,
w
:
number
,
h
:
number
,
shape
:
Dictionary
<
any
>
)
=>
void
;
/**
* Triangle shape
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录