@abi-software/scaffoldvuer 1.21.1-beta.1 → 1.21.1-beta.2
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/scaffoldvuer.js +19 -8
- package/dist/scaffoldvuer.umd.cjs +2 -2
- package/package.json +2 -2
package/dist/scaffoldvuer.js
CHANGED
|
@@ -47482,10 +47482,11 @@ var i7, a7, o7, s7, c7, l7, u7, d7, f7, p7, m7, h7, g7, _7, v7, y7, b7, x7, S7,
|
|
|
47482
47482
|
e = p(e, 1), t = p(t, 1);
|
|
47483
47483
|
var m = {
|
|
47484
47484
|
name: "zincjs",
|
|
47485
|
-
version: "2.4.1-beta.
|
|
47485
|
+
version: "2.4.1-beta.1",
|
|
47486
47486
|
description: "ZincJS (Web-based-Zinc-Visualisation)",
|
|
47487
47487
|
type: "module",
|
|
47488
47488
|
main: "build/zinc.js",
|
|
47489
|
+
engines: { node: "^24.20.0" },
|
|
47489
47490
|
directories: { doc: "docs" },
|
|
47490
47491
|
files: [
|
|
47491
47492
|
"package.json",
|
|
@@ -47523,7 +47524,6 @@ var i7, a7, o7, s7, c7, l7, u7, d7, f7, p7, m7, h7, g7, _7, v7, y7, b7, x7, S7,
|
|
|
47523
47524
|
license: "MIT",
|
|
47524
47525
|
bugs: { url: "https://github.com/alan-wu/ZincJS/issues" },
|
|
47525
47526
|
homepage: "http://alan-wu.github.io/ZincJS/",
|
|
47526
|
-
engines: { node: "24.20.0" },
|
|
47527
47527
|
allowScripts: { "msw@2.14.6": !0 },
|
|
47528
47528
|
devDependencies: {
|
|
47529
47529
|
"@vitest/coverage-v8": "^4.1.11",
|
|
@@ -48680,7 +48680,14 @@ var i7, a7, o7, s7, c7, l7, u7, d7, f7, p7, m7, h7, g7, _7, v7, y7, b7, x7, S7,
|
|
|
48680
48680
|
e.length > 0 && (f.morphAttributes.normal = e);
|
|
48681
48681
|
}
|
|
48682
48682
|
let _ = o(t);
|
|
48683
|
-
if (_ !== void 0 && (f.morphAttributes.color = _
|
|
48683
|
+
if (_ !== void 0 && (f.morphAttributes.color = _, f.morphAttributes.position === void 0)) {
|
|
48684
|
+
let e = f.getAttribute("position");
|
|
48685
|
+
f.morphAttributes.position = _.map((t) => {
|
|
48686
|
+
let n = new Ee(e.array, e.itemSize);
|
|
48687
|
+
return n.name = t.name, n;
|
|
48688
|
+
});
|
|
48689
|
+
}
|
|
48690
|
+
if (f.computeBoundingBox(), f.computeBoundingSphere(), t.materials === void 0 || t.materials.length === 0) return { geometry: f };
|
|
48684
48691
|
var v = we.prototype.initMaterials(t.materials, s, "Anonymous");
|
|
48685
48692
|
if (t.materials[0].video) {
|
|
48686
48693
|
var y = s + t.materials[0].video;
|
|
@@ -52734,7 +52741,7 @@ var i7, a7, o7, s7, c7, l7, u7, d7, f7, p7, m7, h7, g7, _7, v7, y7, b7, x7, S7,
|
|
|
52734
52741
|
});
|
|
52735
52742
|
};
|
|
52736
52743
|
}, Fn = function(t) {
|
|
52737
|
-
let n = t, i, a, o = new e.
|
|
52744
|
+
let n = t, i, a, o = new e.Timer();
|
|
52738
52745
|
this.playAnimation = !0;
|
|
52739
52746
|
let s = 1e3, c = {}, l = 0, u = {}, d = 0, f = {}, p = 0, m = {}, h = 0, g, _, v, y, b = [], x = [], S = new e.Group(), C, w, T = !1, E = !1;
|
|
52740
52747
|
this.getDrawingWidth = () => n ? n.clientWidth : C ? C.clientWidth === void 0 ? Math.round(C.width) : Math.round(C.clientWidth) : 0, this.getDrawingHeight = () => n ? n.clientHeight : C ? C.clientHeight === void 0 ? Math.round(C.height) : Math.round(C.clientHeight) : 0, this.onWindowResize = () => {
|
|
@@ -52757,7 +52764,11 @@ var i7, a7, o7, s7, c7, l7, u7, d7, f7, p7, m7, h7, g7, _7, v7, y7, b7, x7, S7,
|
|
|
52757
52764
|
}
|
|
52758
52765
|
e ? t.antialias = !1 : t.antialias = !0;
|
|
52759
52766
|
}
|
|
52760
|
-
t.canvas && (n = void 0, C = t.canvas),
|
|
52767
|
+
if (t.canvas && (n = void 0, C = t.canvas), t.device === void 0 && t.requiredLimits === void 0 && typeof navigator < "u" && navigator.gpu) try {
|
|
52768
|
+
let e = await navigator.gpu.requestAdapter({ powerPreference: t.powerPreference });
|
|
52769
|
+
e && (t.requiredLimits = { maxTextureArrayLayers: e.limits.maxTextureArrayLayers });
|
|
52770
|
+
} catch {}
|
|
52771
|
+
i = new e.WebGPURenderer(t), await i.init(), n !== void 0 && n.appendChild(i.domElement), i.setClearColor(16777215, 1), C && C.style && (C.style.height = "100%", C.style.width = "100%");
|
|
52761
52772
|
let r = i.domElement;
|
|
52762
52773
|
r.addEventListener("webglcontextlost", D, !1), r.addEventListener("webglcontextrestored", O, !1), i.autoClear = !1;
|
|
52763
52774
|
let a = this.createScene("default");
|
|
@@ -52808,9 +52819,9 @@ var i7, a7, o7, s7, c7, l7, u7, d7, f7, p7, m7, h7, g7, _7, v7, y7, b7, x7, S7,
|
|
|
52808
52819
|
T ? (g = requestAnimationFrame(k), this.render()) : (cancelAnimationFrame(g), g = void 0);
|
|
52809
52820
|
};
|
|
52810
52821
|
this.stopAnimate = () => {
|
|
52811
|
-
T &&=
|
|
52822
|
+
T &&= !1;
|
|
52812
52823
|
}, this.animate = () => {
|
|
52813
|
-
T || (o.
|
|
52824
|
+
T || (o.reset(), T = !0, k());
|
|
52814
52825
|
}, this.addContextLostCallbackFunction = (e) => (p += 1, f[p] = e, p), this.removeContextLostCallbackFunction = (e) => {
|
|
52815
52826
|
e in f && delete f[e];
|
|
52816
52827
|
}, this.addContextRestoredCallbackFunction = (e) => (h += 1, m[h] = e, h), this.removeContextRestoredCallbackFunction = (e) => {
|
|
@@ -52842,7 +52853,7 @@ var i7, a7, o7, s7, c7, l7, u7, d7, f7, p7, m7, h7, g7, _7, v7, y7, b7, x7, S7,
|
|
|
52842
52853
|
this.addLogo = () => {
|
|
52843
52854
|
y = new e.Sprite(), e.ImageUtils.loadTexture("images/abi_big_logo_transparent_small.png", void 0, ee(y));
|
|
52844
52855
|
}, this.render = () => {
|
|
52845
|
-
w || (n ? n.clientWidth > 0 && n.clientHeight > 0 && (w = new r.ResizeSensor(n, this.onWindowResize)) : C && C.width > 0 && C.height > 0 && (w = new r.ResizeSensor(C, this.onWindowResize)));
|
|
52856
|
+
w || (n ? n.clientWidth > 0 && n.clientHeight > 0 && (w = new r.ResizeSensor(n, this.onWindowResize)) : C && C.width > 0 && C.height > 0 && (w = new r.ResizeSensor(C, this.onWindowResize))), o.update();
|
|
52846
52857
|
let e = o.getDelta();
|
|
52847
52858
|
a.renderGeometries(s, e, this.playAnimation);
|
|
52848
52859
|
for (let t = 0; t < x.length; t++) x[t].renderGeometries(s, e, this.playAnimation);
|