Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
x649585723
incubator-echarts
提交
e25f1dcb
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,发现更多精彩内容 >>
提交
e25f1dcb
编写于
3月 21, 2020
作者:
1
100pah
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ts: Do the same thing as the last commit to extension-src.
上级
1c8262fb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
35 addition
and
20 deletion
+35
-20
extension-src/.eslintrc.yaml
extension-src/.eslintrc.yaml
+31
-17
extension-src/bmap/BMapCoordSys.ts
extension-src/bmap/BMapCoordSys.ts
+4
-3
未找到文件。
extension-src/.eslintrc.yaml
浏览文件 @
e25f1dcb
parser
:
"
@typescript-eslint/parser"
parserOptions
:
# If using ES Module, ecmaVersion have to be set as `2015`.
ecmaVersion
:
2015
sourceType
:
"
module"
ecmaVersion
:
6
sourceType
:
module
ecmaFeatures
:
modules
:
true
project
:
"
tsconfig.json"
plugins
:
[
"
@typescript-eslint"
]
env
:
browser
:
true
node
:
true
...
...
@@ -10,6 +14,7 @@ globals:
jQuery
:
true
Promise
:
true
rules
:
# Check the rules in: node_modules/@typescript-eslint/eslint-plugin/README.md
no-console
:
-
2
-
...
...
@@ -32,7 +37,7 @@ rules:
no-unreachable
:
2
use-isnan
:
2
valid-typeof
:
2
block-scoped-var
:
0
block-scoped-var
:
2
curly
:
-
2
-
"
all"
...
...
@@ -59,7 +64,7 @@ rules:
no-octal
:
2
no-octal-escape
:
2
no-proto
:
2
no-redeclare
:
0
no-redeclare
:
2
no-self-compare
:
2
no-unneeded-ternary
:
2
no-with
:
2
...
...
@@ -74,12 +79,8 @@ rules:
no-shadow-restricted-names
:
2
no-undef
:
2
no-undef-init
:
2
no-unused-vars
:
-
2
-
vars
:
"
local"
args
:
"
none"
no-use-before-define
:
0
"
no-use-before-define"
:
"
off"
"
@typescript-eslint/no-use-before-define"
:
2
brace-style
:
-
2
-
"
stroustrup"
...
...
@@ -95,7 +96,7 @@ rules:
new-parens
:
2
no-array-constructor
:
2
no-multi-spaces
:
-
2
-
1
-
ignoreEOLComments
:
true
exceptions
:
...
...
@@ -116,10 +117,12 @@ rules:
-
overrides
:
"
="
:
"
after"
quotes
:
"
quotes"
:
"
off"
"
@typescript-eslint/quotes"
:
-
2
-
"
single"
semi
:
"
semi"
:
"
off"
"
@typescript-eslint/semi"
:
-
2
-
"
always"
semi-spacing
:
2
...
...
@@ -129,7 +132,8 @@ rules:
-
beforeColon
:
false
afterColon
:
true
space-before-function-paren
:
"
space-before-function-paren"
:
"
off"
"
@typescript-eslint/space-before-function-paren"
:
-
2
-
anonymous
:
"
always"
...
...
@@ -178,7 +182,7 @@ rules:
allowParens
:
true
no-class-assign
:
2
no-const-assign
:
2
no-dupe-class-members
:
2
#
no-dupe-class-members: 2
no-this-before-super
:
0
no-var
:
0
no-duplicate-imports
:
2
...
...
@@ -186,4 +190,14 @@ rules:
unicode-bom
:
2
max-statements-per-line
:
2
no-useless-constructor
:
0
\ No newline at end of file
no-useless-constructor
:
0
"
func-call-spacing"
:
"
off"
"
@typescript-eslint/func-call-spacing"
:
"
error"
"
no-unused-vars"
:
"
off"
"
@typescript-eslint/no-unused-vars"
:
-
1
-
vars
:
"
local"
args
:
"
none"
\ No newline at end of file
extension-src/bmap/BMapCoordSys.ts
浏览文件 @
e25f1dcb
...
...
@@ -73,7 +73,7 @@ BMapCoordSys.prototype.dataToPoint = function (data) {
BMapCoordSys
.
prototype
.
pointToData
=
function
(
pt
)
{
var
mapOffset
=
this
.
_mapOffset
;
var
pt
=
this
.
_bmap
.
overlayPixelToPoint
({
pt
=
this
.
_bmap
.
overlayPixelToPoint
({
x
:
pt
[
0
]
+
mapOffset
[
0
],
y
:
pt
[
1
]
+
mapOffset
[
1
]
});
...
...
@@ -165,6 +165,7 @@ BMapCoordSys.create = function (ecModel, api) {
if
(
bmapCoordSys
)
{
throw
new
Error
(
'
Only one bmap component can exist
'
);
}
var
bmap
;
if
(
!
bmapModel
.
__bmap
)
{
// Not support IE8
var
bmapRoot
=
root
.
querySelector
(
'
.ec-extension-bmap
'
);
...
...
@@ -180,7 +181,7 @@ BMapCoordSys.create = function (ecModel, api) {
// Not support IE8
bmapRoot
.
classList
.
add
(
'
ec-extension-bmap
'
);
root
.
appendChild
(
bmapRoot
);
var
bmap
=
bmapModel
.
__bmap
=
new
BMap
.
Map
(
bmapRoot
);
bmap
=
bmapModel
.
__bmap
=
new
BMap
.
Map
(
bmapRoot
);
var
overlay
=
new
Overlay
(
viewportRoot
);
bmap
.
addOverlay
(
overlay
);
...
...
@@ -190,7 +191,7 @@ BMapCoordSys.create = function (ecModel, api) {
return
{
offsetLeft
:
0
,
offsetTop
:
0
};
};
}
var
bmap
=
bmapModel
.
__bmap
;
bmap
=
bmapModel
.
__bmap
;
// Set bmap options
// centerAndZoom before layout and render
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录