vis-core 0.21.42 → 0.21.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.module.js +15 -15
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -48349,7 +48349,7 @@ function createAreaLightMaterial(de) {
|
|
|
48349
48349
|
const e = new MeshBasicMaterial();
|
|
48350
48350
|
return e.color.setScalar(de), e;
|
|
48351
48351
|
}
|
|
48352
|
-
const version = "0.21.
|
|
48352
|
+
const version = "0.21.43";
|
|
48353
48353
|
class Event {
|
|
48354
48354
|
constructor() {
|
|
48355
48355
|
H0(this, "event", new EventEmitter());
|
|
@@ -94678,20 +94678,20 @@ const queryBenchmarks$1 = (de) => {
|
|
|
94678
94678
|
}
|
|
94679
94679
|
}, detect = () => {
|
|
94680
94680
|
try {
|
|
94681
|
-
const de =
|
|
94682
|
-
if (
|
|
94683
|
-
return JSON.parse(
|
|
94684
|
-
const
|
|
94685
|
-
let
|
|
94686
|
-
|
|
94687
|
-
const
|
|
94688
|
-
WebP:
|
|
94689
|
-
WebGL: !!
|
|
94690
|
-
WebGL2: !!
|
|
94691
|
-
WebGL2RC:
|
|
94692
|
-
isGPUAcceleratorEnabled:
|
|
94693
|
-
},
|
|
94694
|
-
return window.localStorage.setItem(
|
|
94681
|
+
const de = "vis-core:detect" + version, e = window.localStorage.getItem(de);
|
|
94682
|
+
if (e)
|
|
94683
|
+
return JSON.parse(e);
|
|
94684
|
+
const s = document.createElement("canvas"), c = s.toDataURL("image/webp").indexOf("data:image/webp") == 0, Xe = s.getContext("webgl"), Je = Xe == null ? void 0 : Xe.getExtension("WEBGL_debug_renderer_info"), Ke = document.createElement("canvas").getContext("webgl2"), Qe = typeof window.WebGL2RenderingContext != "undefined";
|
|
94685
|
+
let _e = "";
|
|
94686
|
+
Xe && Je && (_e = Xe.getParameter(Je.UNMASKED_RENDERER_WEBGL));
|
|
94687
|
+
const $e = !/SwiftShader/gi.test(_e), qe = _e.toLowerCase().replace(/.*angle ?\((.+)\)(?: on vulkan [0-9.]+)?$/i, "$1").replace(/\s(\d{1,2}gb|direct3d.+$)|\(r\)| \([^)]+\)$/g, "").replace(/(?:vulkan|opengl) \d+\.\d+(?:\.\d+)?(?: \((.*)\))?/, "$1"), st = queryBenchmarks$1(qe), ct = ui({
|
|
94688
|
+
WebP: c,
|
|
94689
|
+
WebGL: !!Xe,
|
|
94690
|
+
WebGL2: !!Ke,
|
|
94691
|
+
WebGL2RC: Qe,
|
|
94692
|
+
isGPUAcceleratorEnabled: $e
|
|
94693
|
+
}, st);
|
|
94694
|
+
return window.localStorage.setItem(de, JSON.stringify(ct)), ct;
|
|
94695
94695
|
} catch (de) {
|
|
94696
94696
|
return console.error("vis-core: feature detection failed", de), "";
|
|
94697
94697
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.21.
|
|
1
|
+
declare const _default: "0.21.43";
|
|
2
2
|
export default _default;
|