zrender-nightly 5.7.0-dev.20240716 → 5.7.0-dev.20240718
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/zrender.js +2 -4
- package/dist/zrender.js.map +1 -1
- package/dist/zrender.min.js +1 -1
- package/lib/core/env.js +1 -3
- package/lib/zrender.d.ts +1 -1
- package/lib/zrender.js +1 -1
- package/package.json +1 -1
- package/src/core/env.ts +1 -5
- package/src/zrender.ts +1 -1
- package/.eslintignore +0 -4
- package/src/.eslintrc.yaml +0 -195
- package/tsconfig.json +0 -29
package/lib/core/env.js
CHANGED
@@ -32,9 +32,7 @@ if (typeof wx === 'object' && typeof wx.getSystemInfoSync === 'function') {
|
|
32
32
|
else if (typeof document === 'undefined' && typeof self !== 'undefined') {
|
33
33
|
env.worker = true;
|
34
34
|
}
|
35
|
-
else if (
|
36
|
-
|| (typeof navigator === 'undefined' || typeof navigator.userAgent === 'undefined')
|
37
|
-
|| (env.hasGlobalWindow && 'Deno' in window)) {
|
35
|
+
else if (!env.hasGlobalWindow || 'Deno' in window) {
|
38
36
|
env.node = true;
|
39
37
|
env.svgSupported = true;
|
40
38
|
}
|
package/lib/zrender.d.ts
CHANGED
@@ -90,7 +90,7 @@ export declare type ElementSSRData = zrUtil.HashMap<unknown>;
|
|
90
90
|
export declare type ElementSSRDataGetter<T> = (el: Element) => zrUtil.HashMap<T>;
|
91
91
|
export declare function getElementSSRData(el: Element): ElementSSRData;
|
92
92
|
export declare function registerSSRDataGetter<T>(getter: ElementSSRDataGetter<T>): void;
|
93
|
-
export declare const version = "5.7.0-dev.
|
93
|
+
export declare const version = "5.7.0-dev.20240718";
|
94
94
|
export interface ZRenderType extends ZRender {
|
95
95
|
}
|
96
96
|
export {};
|
package/lib/zrender.js
CHANGED
package/package.json
CHANGED
package/src/core/env.ts
CHANGED
@@ -37,11 +37,7 @@ else if (typeof document === 'undefined' && typeof self !== 'undefined') {
|
|
37
37
|
// In worker
|
38
38
|
env.worker = true;
|
39
39
|
}
|
40
|
-
else if (
|
41
|
-
(typeof process !== 'undefined' && typeof process.version === 'string')
|
42
|
-
|| (typeof navigator === 'undefined' || typeof navigator.userAgent === 'undefined')
|
43
|
-
|| (env.hasGlobalWindow && 'Deno' in window)
|
44
|
-
) {
|
40
|
+
else if (!env.hasGlobalWindow || 'Deno' in window) {
|
45
41
|
// In node
|
46
42
|
env.node = true;
|
47
43
|
env.svgSupported = true;
|
package/src/zrender.ts
CHANGED
@@ -556,7 +556,7 @@ export function registerSSRDataGetter<T>(getter: ElementSSRDataGetter<T>) {
|
|
556
556
|
/**
|
557
557
|
* @type {string}
|
558
558
|
*/
|
559
|
-
export const version = '5.7.0-dev.
|
559
|
+
export const version = '5.7.0-dev.20240718';
|
560
560
|
|
561
561
|
|
562
562
|
export interface ZRenderType extends ZRender {};
|
package/.eslintignore
DELETED
package/src/.eslintrc.yaml
DELETED
@@ -1,195 +0,0 @@
|
|
1
|
-
parser: "@typescript-eslint/parser"
|
2
|
-
parserOptions:
|
3
|
-
ecmaVersion: 6
|
4
|
-
sourceType: module
|
5
|
-
ecmaFeatures:
|
6
|
-
modules: true
|
7
|
-
project: "tsconfig.json"
|
8
|
-
plugins: ["@typescript-eslint"]
|
9
|
-
env:
|
10
|
-
browser: true
|
11
|
-
node: true
|
12
|
-
es6: false
|
13
|
-
globals:
|
14
|
-
jQuery: true
|
15
|
-
Promise: true
|
16
|
-
rules:
|
17
|
-
no-console:
|
18
|
-
- 2
|
19
|
-
-
|
20
|
-
allow:
|
21
|
-
- "warn"
|
22
|
-
- "error"
|
23
|
-
no-constant-condition: 0
|
24
|
-
comma-dangle: 0
|
25
|
-
no-debugger: 2
|
26
|
-
no-dupe-keys: 2
|
27
|
-
no-empty-character-class: 2
|
28
|
-
no-ex-assign: 2
|
29
|
-
no-extra-boolean-cast: 0
|
30
|
-
no-func-assign: 2
|
31
|
-
no-inner-declarations: 2
|
32
|
-
no-invalid-regexp: 2
|
33
|
-
no-negated-in-lhs: 2
|
34
|
-
no-obj-calls: 2
|
35
|
-
no-sparse-arrays: 2
|
36
|
-
no-unreachable: 2
|
37
|
-
use-isnan: 2
|
38
|
-
valid-typeof: 2
|
39
|
-
block-scoped-var: 0
|
40
|
-
curly:
|
41
|
-
- 2
|
42
|
-
- "all"
|
43
|
-
eqeqeq:
|
44
|
-
- 2
|
45
|
-
- "allow-null"
|
46
|
-
guard-for-in: 2
|
47
|
-
no-else-return: 0
|
48
|
-
no-labels:
|
49
|
-
- 2
|
50
|
-
-
|
51
|
-
allowLoop: true
|
52
|
-
no-eval: 2
|
53
|
-
no-extend-native: 2
|
54
|
-
no-extra-bind: 0
|
55
|
-
no-implied-eval: 2
|
56
|
-
no-iterator: 2
|
57
|
-
no-irregular-whitespace: 2
|
58
|
-
no-lone-blocks: 2
|
59
|
-
no-loop-func: 2
|
60
|
-
no-multi-str: 2
|
61
|
-
no-native-reassign: 2
|
62
|
-
no-new-wrappers: 2
|
63
|
-
no-octal: 2
|
64
|
-
no-octal-escape: 2
|
65
|
-
no-proto: 2
|
66
|
-
no-redeclare: 0
|
67
|
-
no-self-compare: 2
|
68
|
-
no-unneeded-ternary: 2
|
69
|
-
no-with: 2
|
70
|
-
radix: 2
|
71
|
-
wrap-iife:
|
72
|
-
- 2
|
73
|
-
- "any"
|
74
|
-
no-delete-var: 2
|
75
|
-
no-dupe-args: 2
|
76
|
-
no-duplicate-case: 2
|
77
|
-
no-label-var: 2
|
78
|
-
no-shadow-restricted-names: 2
|
79
|
-
no-undef: 2
|
80
|
-
no-undef-init: 2
|
81
|
-
no-use-before-define: 0
|
82
|
-
brace-style:
|
83
|
-
- 2
|
84
|
-
- "stroustrup"
|
85
|
-
- {}
|
86
|
-
comma-spacing:
|
87
|
-
- 2
|
88
|
-
-
|
89
|
-
before: false
|
90
|
-
after: true
|
91
|
-
comma-style:
|
92
|
-
- 2
|
93
|
-
- "last"
|
94
|
-
new-parens: 2
|
95
|
-
no-array-constructor: 2
|
96
|
-
no-multi-spaces:
|
97
|
-
- 1
|
98
|
-
-
|
99
|
-
ignoreEOLComments: true
|
100
|
-
exceptions:
|
101
|
-
Property: true
|
102
|
-
no-new-object: 2
|
103
|
-
no-spaced-func: 2
|
104
|
-
no-trailing-spaces: 2
|
105
|
-
no-extra-parens:
|
106
|
-
- 2
|
107
|
-
- "functions"
|
108
|
-
no-mixed-spaces-and-tabs: 2
|
109
|
-
one-var:
|
110
|
-
- 2
|
111
|
-
- "never"
|
112
|
-
operator-linebreak:
|
113
|
-
- 2
|
114
|
-
- "before"
|
115
|
-
-
|
116
|
-
overrides:
|
117
|
-
"=": "after"
|
118
|
-
quotes:
|
119
|
-
- 2
|
120
|
-
- "single"
|
121
|
-
semi:
|
122
|
-
- 2
|
123
|
-
- "always"
|
124
|
-
semi-spacing: 2
|
125
|
-
keyword-spacing: 2
|
126
|
-
key-spacing:
|
127
|
-
- 2
|
128
|
-
-
|
129
|
-
beforeColon: false
|
130
|
-
afterColon: true
|
131
|
-
space-before-function-paren:
|
132
|
-
- 2
|
133
|
-
-
|
134
|
-
anonymous: "always"
|
135
|
-
named: "never"
|
136
|
-
space-before-blocks:
|
137
|
-
- 2
|
138
|
-
- "always"
|
139
|
-
computed-property-spacing:
|
140
|
-
- 2
|
141
|
-
- "never"
|
142
|
-
space-in-parens:
|
143
|
-
- 2
|
144
|
-
- "never"
|
145
|
-
space-unary-ops: 2
|
146
|
-
spaced-comment: 0
|
147
|
-
|
148
|
-
max-nested-callbacks:
|
149
|
-
- 1
|
150
|
-
- 5
|
151
|
-
max-depth:
|
152
|
-
- 1
|
153
|
-
- 6
|
154
|
-
max-len:
|
155
|
-
- 2
|
156
|
-
- 120
|
157
|
-
- 4
|
158
|
-
-
|
159
|
-
ignoreUrls: true
|
160
|
-
ignoreComments: true
|
161
|
-
max-params:
|
162
|
-
- 1
|
163
|
-
- 15
|
164
|
-
|
165
|
-
space-infix-ops: 2
|
166
|
-
dot-notation:
|
167
|
-
- 2
|
168
|
-
-
|
169
|
-
allowKeywords: true
|
170
|
-
allowPattern: "^catch$"
|
171
|
-
|
172
|
-
arrow-spacing: 2
|
173
|
-
constructor-super: 2
|
174
|
-
no-confusing-arrow:
|
175
|
-
- 2
|
176
|
-
-
|
177
|
-
allowParens: true
|
178
|
-
no-class-assign: 2
|
179
|
-
no-const-assign: 2
|
180
|
-
# no-dupe-class-members: 2
|
181
|
-
no-this-before-super: 0
|
182
|
-
no-var: 0
|
183
|
-
no-duplicate-imports: 2
|
184
|
-
prefer-rest-params: 0
|
185
|
-
unicode-bom: 2
|
186
|
-
max-statements-per-line: 2
|
187
|
-
|
188
|
-
no-useless-constructor: 0
|
189
|
-
|
190
|
-
|
191
|
-
"@typescript-eslint/no-unused-vars":
|
192
|
-
- 1
|
193
|
-
-
|
194
|
-
vars: "local"
|
195
|
-
args: "none"
|
package/tsconfig.json
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"compilerOptions": {
|
3
|
-
"target": "ES3",
|
4
|
-
"noImplicitAny": true,
|
5
|
-
"strictBindCallApply": true,
|
6
|
-
"removeComments": true,
|
7
|
-
"sourceMap": false,
|
8
|
-
|
9
|
-
"noImplicitThis": true,
|
10
|
-
|
11
|
-
// https://github.com/ezolenko/rollup-plugin-typescript2/issues/12#issuecomment-536173372
|
12
|
-
"moduleResolution": "Node",
|
13
|
-
|
14
|
-
"declaration": true,
|
15
|
-
"declarationMap": false,
|
16
|
-
|
17
|
-
// Compile to lib
|
18
|
-
"rootDir": "src",
|
19
|
-
|
20
|
-
"importHelpers": true,
|
21
|
-
|
22
|
-
"pretty": true
|
23
|
-
},
|
24
|
-
"include": [
|
25
|
-
"src/**/*.ts"
|
26
|
-
],
|
27
|
-
"exclude": [
|
28
|
-
]
|
29
|
-
}
|