@abi-software/scaffoldvuer 1.19.0 → 1.20.0

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.
@@ -1,5 +1,6 @@
1
1
  import { Comment as e, Fragment as t, Teleport as n, Text as r, Transition as i, cloneVNode as a, computed as o, createApp as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as f, createTextVNode as p, createVNode as m, defineComponent as h, getCurrentInstance as g, getCurrentScope as _, h as v, inject as y, isRef as b, isVNode as x, markRaw as S, mergeProps as C, nextTick as w, normalizeClass as T, normalizeStyle as E, onActivated as D, onBeforeMount as O, onBeforeUnmount as k, onBeforeUpdate as A, onDeactivated as j, onMounted as M, onScopeDispose as N, onUnmounted as P, onUpdated as ee, openBlock as F, provide as te, reactive as ne, readonly as re, ref as I, renderList as ie, renderSlot as L, resolveComponent as R, resolveDirective as z, resolveDynamicComponent as B, shallowReadonly as V, shallowRef as H, toDisplayString as U, toHandlerKey as ae, toHandlers as oe, toRaw as se, toRef as ce, toRefs as le, toValue as ue, triggerRef as de, unref as W, useAttrs as fe, useSlots as pe, vModelCheckbox as me, vModelRadio as he, vShow as ge, warn as G, watch as K, watchEffect as _e, withCtx as q, withDirectives as ve, withKeys as ye, withModifiers as be } from "vue";
2
2
  import { CreateTooltipContent as xe, DrawToolbar as Se, Tooltip as Ce, TreeControls as we } from "@abi-software/map-utilities";
3
+ import "@abi-software/map-utilities/dist/style.css";
3
4
  import { defineStore as Te, mapState as Ee, mapStores as De } from "pinia";
4
5
  import { MapSvgIcon as Oe, MapSvgSpriteColor as ke } from "@abi-software/svg-sprite";
5
6
  import { AnnotationService as Ae } from "@abi-software/sparc-annotation";
@@ -29498,7 +29499,7 @@ var vF, yF, bF, xF, SF, CF, wF, TF, EF, DF, OF, kF, AF, jF, MF, NF, PF, FF, IF,
29498
29499
  e = f(e, 1), t = f(t, 1);
29499
29500
  var p = {
29500
29501
  name: "zincjs",
29501
- version: "2.2.0",
29502
+ version: "2.3.0",
29502
29503
  description: "ZincJS (Web-based-Zinc-Visualisation)",
29503
29504
  type: "module",
29504
29505
  main: "build/zinc.js",
@@ -29539,7 +29540,11 @@ var vF, yF, bF, xF, SF, CF, wF, TF, EF, DF, OF, kF, AF, jF, MF, NF, PF, FF, IF,
29539
29540
  license: "MIT",
29540
29541
  bugs: { url: "https://github.com/alan-wu/ZincJS/issues" },
29541
29542
  homepage: "http://alan-wu.github.io/ZincJS/",
29542
- engines: { node: ">=20" },
29543
+ engines: { node: "24.20.0" },
29544
+ allowScripts: {
29545
+ "gl@8.1.6": !0,
29546
+ "msw@2.14.6": !0
29547
+ },
29543
29548
  devDependencies: {
29544
29549
  "@vitest/coverage-v8": "^4.1.11",
29545
29550
  "auto-changelog": "^2.4.0",
@@ -30327,7 +30332,7 @@ var vF, yF, bF, xF, SF, CF, wF, TF, EF, DF, OF, kF, AF, jF, MF, NF, PF, FF, IF,
30327
30332
  }
30328
30333
  function ee(e, t, n, r, i, a) {
30329
30334
  let o = new S(e, t, n, r, i, a);
30330
- return o.fontFace = r, o.fontSize = i, o.fontWeight = a, o.material.map.generateMipmaps = !1, o.material.map.anisotropy = 4, o.material.sizeAttenuation = !1, o.material.alphaTest = .5, o.material.transparent = !0, o.material.depthWrite = !1, o.material.depthTest = !1, o.center.set(.5, -1.2), o.renderOrder = 1e4, o;
30335
+ return o.canvasScale = 4, o.fontFace = r, o.fontSize = i, o.fontWeight = a, o.material.map.generateMipmaps = !0, o.material.map.anisotropy = 4, o.material.sizeAttenuation = !1, o.material.alphaTest = .5, o.material.transparent = !0, o.material.depthWrite = !1, o.material.depthTest = !1, o.center.set(.5, -1.2), o.renderOrder = 1e4, o;
30331
30336
  }
30332
30337
  function F(e, t, n) {
30333
30338
  if (n) {
@@ -30897,35 +30902,35 @@ var vF, yF, bF, xF, SF, CF, wF, TF, EF, DF, OF, kF, AF, jF, MF, NF, PF, FF, IF,
30897
30902
  };
30898
30903
  };
30899
30904
  _e.prototype = Object.create(G.prototype);
30900
- var q = t.default.default || t.default, ve = function(e, t) {
30901
- let n = e, r, i = 500;
30902
- r = t ? new q(n, .012, t.getStyle()) : new q(n, .012), r.fontFace = "Asap", r.fontWeight = i, r.material.map.generateMipmaps = !1, r.material.sizeAttenuation = !1, r.center.x = -.05, r.center.y = 0;
30903
- let a = [r.scale.x, r.scale.y];
30904
- this.getPosition = () => r ? [
30905
- r.position.x,
30906
- r.position.y,
30907
- r.position.z
30905
+ var q = t.default.default || t.default, ve = function(t, n) {
30906
+ let r = t, i, a = 500;
30907
+ i = n ? new q(r, .012, n.getStyle()) : new q(r, .012), i.fontFace = "Asap", i.fontSize = 90, i.fontWeight = a, i.material.map.generateMipmaps = !0, i.material.map.anisotropy = 4, i.material.minFilter = e.LinearMipmapLinearFilter, i.material.magFilter = e.LinearFilter, i.material.sizeAttenuation = !1, i.center.x = -.05, i.center.y = 0;
30908
+ let o = [i.scale.x, i.scale.y];
30909
+ this.getPosition = () => i ? [
30910
+ i.position.x,
30911
+ i.position.y,
30912
+ i.position.z
30908
30913
  ] : [
30909
30914
  0,
30910
30915
  0,
30911
30916
  0
30912
30917
  ], this.setPosition = (e, t, n) => {
30913
- r && r.position.set(e, t, n);
30918
+ i && i.position.set(e, t, n);
30914
30919
  }, this.setColour = (e) => {
30915
- e && (r.color = e.getStyle());
30920
+ e && (i.color = e.getStyle());
30916
30921
  }, this.setScale = (e) => {
30917
- r && e > 0 && r.scale.set(e, e, 1);
30922
+ i && e > 0 && i.scale.set(e, e, 1);
30918
30923
  }, this.setDepthTest = (e) => {
30919
- e && e !== r.material.depthTest && (r.material.depthTest = e);
30924
+ e && e !== i.material.depthTest && (i.material.depthTest = e);
30920
30925
  }, this.setSize = (e) => {
30921
- e > 0 && (r.scale.x = a[0] * e, r.scale.y = a[1] * e);
30926
+ e > 0 && (i.scale.x = o[0] * e, i.scale.y = o[1] * e);
30922
30927
  }, this.setFontWeight = (e) => {
30923
- e && e !== i && (r.fontWeight = e, i = e);
30928
+ e && e !== a && (i.fontWeight = e, a = e);
30924
30929
  }, this.setText = (e) => {
30925
- e && e !== r.text && (r.text = e, n = e);
30930
+ e && e !== i.text && (i.text = e, r = e);
30926
30931
  }, this.setVisibility = (e) => {
30927
- r.visible = e;
30928
- }, this.dispose = () => {}, this.getSprite = () => r, this.getString = () => n;
30932
+ i.visible = e;
30933
+ }, this.dispose = () => {}, this.getSprite = () => i, this.getString = () => r;
30929
30934
  }, ye = function(t, n, r, i) {
30930
30935
  G.call(this);
30931
30936
  let a;
@@ -31507,7 +31512,7 @@ var vF, yF, bF, xF, SF, CF, wF, TF, EF, DF, OF, kF, AF, jF, MF, NF, PF, FF, IF,
31507
31512
  let n = new ye(void 0, void 0, e, this), r = c ? c[e] : void 0;
31508
31513
  r ||= this.groupName, r && n.setLabel(r), l > 0 && n.setFrustumCulled(!1), t[e] = n, this.morph.add(n.getGroup());
31509
31514
  }
31510
- c && e && this.showLabel(), N(a[0], n[0], r[0], i[0], o[0]), s != null && P(s[0]), this.ready = !0, this.boundingBoxUpdateRequired = !0;
31515
+ c && c.length > 0 && e && this.showLabel(), N(a[0], n[0], r[0], i[0], o[0]), s != null && P(s[0]), this.ready = !0, this.boundingBoxUpdateRequired = !0;
31511
31516
  };
31512
31517
  this.addCustomGlyph = (e) => {
31513
31518
  e.isGlyph && t.push(e), this.ready = !0, this.boundingBoxUpdateRequired = !0;
@@ -34745,7 +34750,9 @@ var vF, yF, bF, xF, SF, CF, wF, TF, EF, DF, OF, kF, AF, jF, MF, NF, PF, FF, IF,
34745
34750
  let c = (e, t, r, i, a) => (o) => {
34746
34751
  let s = o;
34747
34752
  (typeof s == "string" || s instanceof String) && (s = JSON.parse(o));
34748
- let c = a && a.isInline ? a.isInline : void 0, l = a && a.anatomicalId ? a.anatomicalId : void 0, u = !a?.displayLabels || a.displayLabels, d = a && "renderOrder" in a ? a.renderOrder : void 0, f = new je();
34753
+ let c = a && a.isInline ? a.isInline : void 0, l = a && a.anatomicalId ? a.anatomicalId : void 0, u = a?.displayLabels;
34754
+ u === void 0 && (u = !0);
34755
+ let d = a && "renderOrder" in a ? a.renderOrder : void 0, f = new je();
34749
34756
  f.setDuration(n.getDuration()), f.groupName = r, ++this.toBeDownloaded, f.load(s, t, () => {
34750
34757
  --this.toBeDownloaded, i != null && typeof i == "function" && i(f);
34751
34758
  }, c, u), f.setAnatomicalId(l), f.setRenderOrder(d), e.addZincObject(f);
@@ -34910,7 +34917,7 @@ var vF, yF, bF, xF, SF, CF, wF, TF, EF, DF, OF, kF, AF, jF, MF, NF, PF, FF, IF,
34910
34917
  break;
34911
34918
  case "Glyph":
34912
34919
  let r;
34913
- o ? r = n.Inline.GlyphGeometriesURL : (r = n.GlyphGeometriesURL, r = C(n.GlyphGeometriesURL, t)), l.displayLabels = !n.displayLabels || n.displayLabels, l.loaderOptions.isGlyphsets = !0, this.loadGlyphsetURL(e, a, r, c, i, l);
34920
+ o ? r = n.Inline.GlyphGeometriesURL : (r = n.GlyphGeometriesURL, r = C(n.GlyphGeometriesURL, t)), l.displayLabels = n.DisplayLabels, l.displayLabels === void 0 && (l.displayLabels = !0), l.loaderOptions.isGlyphsets = !0, this.loadGlyphsetURL(e, a, r, c, i, l);
34914
34921
  break;
34915
34922
  case "Points":
34916
34923
  this.loadPointsetURL(e, a, n.MorphVertices, n.MorphColours, c, i, l);