zrender-nightly 5.6.1-dev.20240716 → 5.6.1-dev.20240717
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/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.6.1-dev.
|
93
|
+
export declare const version = "5.6.1-dev.20240717";
|
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.6.1-dev.
|
559
|
+
export const version = '5.6.1-dev.20240717';
|
560
560
|
|
561
561
|
|
562
562
|
export interface ZRenderType extends ZRender {};
|