vis-core 0.21.42 → 0.21.44
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 +17 -18
- 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.44";
|
|
48353
48353
|
class Event {
|
|
48354
48354
|
constructor() {
|
|
48355
48355
|
H0(this, "event", new EventEmitter());
|
|
@@ -49443,7 +49443,7 @@ class Editor {
|
|
|
49443
49443
|
H0(this, "_dispose", !1);
|
|
49444
49444
|
this.options = ui({
|
|
49445
49445
|
assetsPrefix: "",
|
|
49446
|
-
processUndosMaxFrameTime:
|
|
49446
|
+
processUndosMaxFrameTime: Number.MAX_VALUE
|
|
49447
49447
|
}, e), this.events.setMaxListeners(9999999), this.viewport = new Viewport(this, {
|
|
49448
49448
|
visFactories: e.visFactories
|
|
49449
49449
|
}), this.history = new History(this);
|
|
@@ -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
|
}
|
|
@@ -94733,8 +94733,7 @@ class Base extends Event {
|
|
|
94733
94733
|
const c = detect();
|
|
94734
94734
|
this.benchmarkTier = c.tier, this.editor = new Editor({
|
|
94735
94735
|
assetsPrefix: this.options.assetsPrefix,
|
|
94736
|
-
visFactories: this
|
|
94737
|
-
processUndosMaxFrameTime: this.benchmarkTier < 2 ? Number.MAX_VALUE : 1e3 / 60
|
|
94736
|
+
visFactories: this
|
|
94738
94737
|
}), console.info(
|
|
94739
94738
|
"vis-core:detect",
|
|
94740
94739
|
version,
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.21.
|
|
1
|
+
declare const _default: "0.21.44";
|
|
2
2
|
export default _default;
|