@abi-software/flatmap-viewer 4.1.6 → 4.2.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +181 -168
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -4,7 +4,7 @@ A viewer for anatomical flatmaps generated by [flatmap-maker](https://github.com
4
4
 
5
5
  ## Package Installation
6
6
 
7
- * `pnpm install @abi-software/flatmap-viewer@4.1.6`
7
+ * `pnpm install @abi-software/flatmap-viewer@4.2.0`
8
8
 
9
9
  ## Standalone Use
10
10
 
package/dist/index.js CHANGED
@@ -1307,7 +1307,7 @@ var nR = { exports: {} };
1307
1307
  function qn(f, c, d) {
1308
1308
  return f * (1 - d) + c * d;
1309
1309
  }
1310
- function xe(f) {
1310
+ function be(f) {
1311
1311
  if (f <= 0) return 0;
1312
1312
  if (f >= 1) return 1;
1313
1313
  const c = f * f, d = c * f;
@@ -4517,7 +4517,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
4517
4517
  if (x < this.begin) return S.possiblyEvaluate(c, d, m);
4518
4518
  {
4519
4519
  const O = (x - this.begin) / (this.end - this.begin);
4520
- return this.property.interpolate(S.possiblyEvaluate(c, d, m), A, xe(O));
4520
+ return this.property.interpolate(S.possiblyEvaluate(c, d, m), A, be(O));
4521
4521
  }
4522
4522
  }
4523
4523
  return A;
@@ -9637,7 +9637,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
9637
9637
  return Math.abs(d - Rt) <= W * Math.max(1, Math.abs(d), Math.abs(Rt)) && Math.abs(m - Mt) <= W * Math.max(1, Math.abs(m), Math.abs(Mt)) && Math.abs(x - et) <= W * Math.max(1, Math.abs(x), Math.abs(et)) && Math.abs(A - ft) <= W * Math.max(1, Math.abs(A), Math.abs(ft)) && Math.abs(S - Et) <= W * Math.max(1, Math.abs(S), Math.abs(Et)) && Math.abs(O - te) <= W * Math.max(1, Math.abs(O), Math.abs(te)) && Math.abs(B - ye) <= W * Math.max(1, Math.abs(B), Math.abs(ye)) && Math.abs(j - ne) <= W * Math.max(1, Math.abs(j), Math.abs(ne)) && Math.abs($ - le) <= W * Math.max(1, Math.abs($), Math.abs(le)) && Math.abs(G - Me) <= W * Math.max(1, Math.abs(G), Math.abs(Me)) && Math.abs(tt - ve) <= W * Math.max(1, Math.abs(tt), Math.abs(ve)) && Math.abs(rt - Ee) <= W * Math.max(1, Math.abs(rt), Math.abs(Ee)) && Math.abs(nt - Qe) <= W * Math.max(1, Math.abs(nt), Math.abs(Qe)) && Math.abs(at - tr) <= W * Math.max(1, Math.abs(at), Math.abs(tr)) && Math.abs(dt - Lr) <= W * Math.max(1, Math.abs(dt), Math.abs(Lr)) && Math.abs(xt - xr) <= W * Math.max(1, Math.abs(xt), Math.abs(xr));
9638
9638
  }, s.bZ = function(f, c) {
9639
9639
  return f[0] = c[0], f[1] = c[1], f[2] = c[2], f[3] = c[3], f[4] = c[4], f[5] = c[5], f[6] = c[6], f[7] = c[7], f[8] = c[8], f[9] = c[9], f[10] = c[10], f[11] = c[11], f[12] = c[12], f[13] = c[13], f[14] = c[14], f[15] = c[15], f;
9640
- }, s.b_ = (f) => f.type === "symbol", s.ba = Ec, s.bb = qn, s.bc = xe, s.bd = ke, s.be = function(f, c, d, m, x) {
9640
+ }, s.b_ = (f) => f.type === "symbol", s.ba = Ec, s.bb = qn, s.bc = be, s.bd = ke, s.be = function(f, c, d, m, x) {
9641
9641
  return qn(m, x, je((f - c) / (d - c), 0, 1));
9642
9642
  }, s.bf = Gr, s.bg = function() {
9643
9643
  return new Float64Array(4);
@@ -10234,7 +10234,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10234
10234
  for (let jt = 0; jt < X.length; jt++) {
10235
10235
  const ue = X[jt];
10236
10236
  if (!ue.geometry) continue;
10237
- const [oe, qt] = ue.geometry.coordinates, me = St(qn(oe)), Xt = St(xe(qt));
10237
+ const [oe, qt] = ue.geometry.coordinates, me = St(qn(oe)), Xt = St(be(qt));
10238
10238
  zt.push(me, Xt, 1 / 0, jt, -1, 1), this.options.reduce && zt.push(0);
10239
10239
  }
10240
10240
  let Yt = this.trees[vt + 1] = this._createTree(zt);
@@ -10255,7 +10255,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10255
10255
  const qt = this.getClusters([Tt, vt, 180, zt], ct), me = this.getClusters([-180, vt, It, zt], ct);
10256
10256
  return qt.concat(me);
10257
10257
  }
10258
- const Yt = this.trees[this._limitZoom(ct)], jt = Yt.range(qn(Tt), xe(zt), qn(It), xe(vt)), ue = Yt.data, oe = [];
10258
+ const Yt = this.trees[this._limitZoom(ct)], jt = Yt.range(qn(Tt), be(zt), qn(It), be(vt)), ue = Yt.data, oe = [];
10259
10259
  for (const qt of jt) {
10260
10260
  const me = this.stride * qt;
10261
10261
  oe.push(ue[me + de] > 1 ? Nr(ue, me, this.clusterProps) : this.points[ue[me + ie]]);
@@ -10314,7 +10314,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10314
10314
  const cr = this.points[ct[jt + ie]];
10315
10315
  oe = cr.properties;
10316
10316
  const [Pr, Mr] = cr.geometry.coordinates;
10317
- qt = qn(Pr), me = xe(Mr);
10317
+ qt = qn(Pr), me = be(Mr);
10318
10318
  }
10319
10319
  const Xt = { type: 1, geometry: [[Math.round(this.options.extent * (qt * It - Tt)), Math.round(this.options.extent * (me * It - vt))]], tags: oe };
10320
10320
  let De;
@@ -10385,7 +10385,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
10385
10385
  function qn(Gt) {
10386
10386
  return Gt / 360 + 0.5;
10387
10387
  }
10388
- function xe(Gt) {
10388
+ function be(Gt) {
10389
10389
  const X = Math.sin(Gt * Math.PI / 180), ct = 0.5 - 0.25 * Math.log((1 + X) / (1 - X)) / Math.PI;
10390
10390
  return ct < 0 ? 0 : ct > 1 ? 1 : ct;
10391
10391
  }
@@ -11450,7 +11450,7 @@ Use an identity property function instead: \`{ "type": "identity", "property": $
11450
11450
  return l < 60 ? 0 : l < 70 ? (l - 60) / 10 : 1;
11451
11451
  }
11452
11452
  }
11453
- class xe {
11453
+ class be {
11454
11454
  constructor(l, h) {
11455
11455
  this.width = l, this.height = h, this.nextRow = 0, this.data = new Uint8Array(this.width * this.height), this.dashEntry = {};
11456
11456
  }
@@ -16729,7 +16729,7 @@ uniform ${q} ${Y} u_${J};
16729
16729
  const v = this.sourceCaches[y].getSource().type;
16730
16730
  v !== "vector" && v !== "geojson" || this.sourceCaches[y].reload();
16731
16731
  }
16732
- }, this.map = l, this.dispatcher = new ae(Tr(), l._getMapId()), this.dispatcher.registerMessageHandler("GG", (y, v) => this.getGlyphs(y, v)), this.dispatcher.registerMessageHandler("GI", (y, v) => this.getImages(y, v)), this.imageManager = new bt(), this.imageManager.setEventedParent(this), this.glyphManager = new de(l._requestManager, h.localIdeographFontFamily), this.lineAtlas = new xe(256, 512), this.crossTileSymbolIndex = new o6(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new a.bu(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", a.bv()), O1().on(Ta, this._rtlPluginLoaded), this.on("data", (y) => {
16732
+ }, this.map = l, this.dispatcher = new ae(Tr(), l._getMapId()), this.dispatcher.registerMessageHandler("GG", (y, v) => this.getGlyphs(y, v)), this.dispatcher.registerMessageHandler("GI", (y, v) => this.getImages(y, v)), this.imageManager = new bt(), this.imageManager.setEventedParent(this), this.glyphManager = new de(l._requestManager, h.localIdeographFontFamily), this.lineAtlas = new be(256, 512), this.crossTileSymbolIndex = new o6(), this._spritesImagesIds = {}, this._layers = {}, this._order = [], this.sourceCaches = {}, this.zoomHistory = new a.bu(), this._loaded = !1, this._availableImages = [], this._resetUpdates(), this.dispatcher.broadcast("SR", a.bv()), O1().on(Ta, this._rtlPluginLoaded), this.on("data", (y) => {
16733
16733
  if (y.dataType !== "source" || y.sourceDataType !== "metadata") return;
16734
16734
  const v = this.sourceCaches[y.sourceId];
16735
16735
  if (!v) return;
@@ -60215,7 +60215,7 @@ function Wn() {
60215
60215
  ae.stack.global.eqnenv = !0;
60216
60216
  }
60217
60217
  T.checkEqnEnv = qn;
60218
- function xe(ae, pe) {
60218
+ function be(ae, pe) {
60219
60219
  var Be = ae.copy(), Ce = pe.configuration;
60220
60220
  return Be.walkTree(function(We) {
60221
60221
  var lr, nr;
@@ -60237,7 +60237,7 @@ function Wn() {
60237
60237
  }
60238
60238
  }), Be;
60239
60239
  }
60240
- T.copyNode = xe;
60240
+ T.copyNode = be;
60241
60241
  function Ne(ae, pe, Be) {
60242
60242
  return Be;
60243
60243
  }
@@ -66219,11 +66219,11 @@ function ri() {
66219
66219
  if (T) throw T.error;
66220
66220
  }
66221
66221
  }
66222
- var K = u.borderFuzz, it = this.getOuterBBox(), ut = e([it.h + K, it.d + K, it.w + K], 3), bt = ut[0], St = ut[1], Ft = ut[2], ie = [Ft, bt], de = [-K, bt], Ve = [Ft, -St], Ue = [-K, -St], Nr = [Ft - _[1], bt - _[0]], Gr = [-K + _[3], bt - _[0]], qn = [Ft - _[1], -St + _[2]], xe = [-K + _[3], -St + _[2]], Ne = [
66222
+ var K = u.borderFuzz, it = this.getOuterBBox(), ut = e([it.h + K, it.d + K, it.w + K], 3), bt = ut[0], St = ut[1], Ft = ut[2], ie = [Ft, bt], de = [-K, bt], Ve = [Ft, -St], Ue = [-K, -St], Nr = [Ft - _[1], bt - _[0]], Gr = [-K + _[3], bt - _[0]], qn = [Ft - _[1], -St + _[2]], be = [-K + _[3], -St + _[2]], Ne = [
66223
66223
  [de, ie, Nr, Gr],
66224
66224
  [Ve, ie, Nr, qn],
66225
- [Ue, Ve, qn, xe],
66226
- [Ue, de, Gr, xe]
66225
+ [Ue, Ve, qn, be],
66226
+ [Ue, de, Gr, be]
66227
66227
  ], gr = this.adaptor, je = gr.firstChild(this.element);
66228
66228
  try {
66229
66229
  for (var hr = t([0, 1, 2, 3]), sr = hr.next(); !sr.done; sr = hr.next()) {
@@ -82006,10 +82006,10 @@ eE.BraketConfiguration = Qpt.Configuration.create("braket", {
82006
82006
  });
82007
82007
  var nE = {}, u_ = {}, h_ = {};
82008
82008
  (function(r) {
82009
- var t = V && V.__read || function(xe, Ne) {
82010
- var gr = typeof Symbol == "function" && xe[Symbol.iterator];
82011
- if (!gr) return xe;
82012
- var je = gr.call(xe), hr, sr = [], Tr;
82009
+ var t = V && V.__read || function(be, Ne) {
82010
+ var gr = typeof Symbol == "function" && be[Symbol.iterator];
82011
+ if (!gr) return be;
82012
+ var je = gr.call(be), hr, sr = [], Tr;
82013
82013
  try {
82014
82014
  for (; (Ne === void 0 || Ne-- > 0) && !(hr = je.next()).done; ) sr.push(hr.value);
82015
82015
  } catch (ae) {
@@ -82022,74 +82022,74 @@ var nE = {}, u_ = {}, h_ = {};
82022
82022
  }
82023
82023
  }
82024
82024
  return sr;
82025
- }, e = V && V.__values || function(xe) {
82026
- var Ne = typeof Symbol == "function" && Symbol.iterator, gr = Ne && xe[Ne], je = 0;
82027
- if (gr) return gr.call(xe);
82028
- if (xe && typeof xe.length == "number") return {
82025
+ }, e = V && V.__values || function(be) {
82026
+ var Ne = typeof Symbol == "function" && Symbol.iterator, gr = Ne && be[Ne], je = 0;
82027
+ if (gr) return gr.call(be);
82028
+ if (be && typeof be.length == "number") return {
82029
82029
  next: function() {
82030
- return xe && je >= xe.length && (xe = void 0), { value: xe && xe[je++], done: !xe };
82030
+ return be && je >= be.length && (be = void 0), { value: be && be[je++], done: !be };
82031
82031
  }
82032
82032
  };
82033
82033
  throw new TypeError(Ne ? "Object is not iterable." : "Symbol.iterator is not defined.");
82034
- }, n = V && V.__importDefault || function(xe) {
82035
- return xe && xe.__esModule ? xe : { default: xe };
82034
+ }, n = V && V.__importDefault || function(be) {
82035
+ return be && be.__esModule ? be : { default: be };
82036
82036
  }, i;
82037
82037
  Object.defineProperty(r, "__esModule", { value: !0 }), r.clearDocument = r.saveDocument = r.makeBsprAttributes = r.removeProperty = r.getProperty = r.setProperty = r.balanceRules = void 0;
82038
- var o = n(Zn), s = n(Wn()), a = null, u = null, T = function(xe) {
82039
- u.root = xe;
82038
+ var o = n(Zn), s = n(Wn()), a = null, u = null, T = function(be) {
82039
+ u.root = be;
82040
82040
  var Ne = a.outputJax.getBBox(u, a).w;
82041
82041
  return Ne;
82042
- }, Q = function(xe) {
82043
- for (var Ne = 0; xe && !o.default.isType(xe, "mtable"); ) {
82044
- if (o.default.isType(xe, "text"))
82042
+ }, Q = function(be) {
82043
+ for (var Ne = 0; be && !o.default.isType(be, "mtable"); ) {
82044
+ if (o.default.isType(be, "text"))
82045
82045
  return null;
82046
- if (o.default.isType(xe, "mrow")) {
82047
- xe = xe.childNodes[0], Ne = 0;
82046
+ if (o.default.isType(be, "mrow")) {
82047
+ be = be.childNodes[0], Ne = 0;
82048
82048
  continue;
82049
82049
  }
82050
- xe = xe.parent.childNodes[Ne], Ne++;
82051
- }
82052
- return xe;
82053
- }, p = function(xe, Ne) {
82054
- return xe.childNodes[Ne === "up" ? 1 : 0].childNodes[0].childNodes[0].childNodes[0].childNodes[0];
82055
- }, g = function(xe, Ne) {
82056
- return xe.childNodes[Ne].childNodes[0].childNodes[0];
82057
- }, _ = function(xe) {
82058
- return g(xe, 0);
82059
- }, L = function(xe) {
82060
- return g(xe, xe.childNodes.length - 1);
82061
- }, E = function(xe, Ne) {
82062
- return xe.childNodes[Ne === "up" ? 0 : 1].childNodes[0].childNodes[0].childNodes[0];
82063
- }, H = function(xe) {
82064
- for (; xe && !o.default.isType(xe, "mtd"); )
82065
- xe = xe.parent;
82066
- return xe;
82067
- }, C = function(xe) {
82068
- return xe.parent.childNodes[xe.parent.childNodes.indexOf(xe) + 1];
82069
- }, I = function(xe) {
82070
- for (; xe && (0, r.getProperty)(xe, "inference") == null; )
82071
- xe = xe.parent;
82072
- return xe;
82073
- }, R = function(xe, Ne, gr) {
82050
+ be = be.parent.childNodes[Ne], Ne++;
82051
+ }
82052
+ return be;
82053
+ }, p = function(be, Ne) {
82054
+ return be.childNodes[Ne === "up" ? 1 : 0].childNodes[0].childNodes[0].childNodes[0].childNodes[0];
82055
+ }, g = function(be, Ne) {
82056
+ return be.childNodes[Ne].childNodes[0].childNodes[0];
82057
+ }, _ = function(be) {
82058
+ return g(be, 0);
82059
+ }, L = function(be) {
82060
+ return g(be, be.childNodes.length - 1);
82061
+ }, E = function(be, Ne) {
82062
+ return be.childNodes[Ne === "up" ? 0 : 1].childNodes[0].childNodes[0].childNodes[0];
82063
+ }, H = function(be) {
82064
+ for (; be && !o.default.isType(be, "mtd"); )
82065
+ be = be.parent;
82066
+ return be;
82067
+ }, C = function(be) {
82068
+ return be.parent.childNodes[be.parent.childNodes.indexOf(be) + 1];
82069
+ }, I = function(be) {
82070
+ for (; be && (0, r.getProperty)(be, "inference") == null; )
82071
+ be = be.parent;
82072
+ return be;
82073
+ }, R = function(be, Ne, gr) {
82074
82074
  gr === void 0 && (gr = !1);
82075
82075
  var je = 0;
82076
- if (xe === Ne)
82076
+ if (be === Ne)
82077
82077
  return je;
82078
- if (xe !== Ne.parent) {
82079
- var hr = xe.childNodes, sr = gr ? hr.length - 1 : 0;
82080
- o.default.isType(hr[sr], "mspace") && (je += T(hr[sr])), xe = Ne.parent;
82078
+ if (be !== Ne.parent) {
82079
+ var hr = be.childNodes, sr = gr ? hr.length - 1 : 0;
82080
+ o.default.isType(hr[sr], "mspace") && (je += T(hr[sr])), be = Ne.parent;
82081
82081
  }
82082
- if (xe === Ne)
82082
+ if (be === Ne)
82083
82083
  return je;
82084
- var Tr = xe.childNodes, ae = gr ? Tr.length - 1 : 0;
82084
+ var Tr = be.childNodes, ae = gr ? Tr.length - 1 : 0;
82085
82085
  return Tr[ae] !== Ne && (je += T(Tr[ae])), je;
82086
- }, F = function(xe, Ne) {
82086
+ }, F = function(be, Ne) {
82087
82087
  Ne === void 0 && (Ne = !1);
82088
- var gr = Q(xe), je = E(gr, (0, r.getProperty)(gr, "inferenceRule")), hr = R(xe, gr, Ne), sr = T(gr), Tr = T(je);
82088
+ var gr = Q(be), je = E(gr, (0, r.getProperty)(gr, "inferenceRule")), hr = R(be, gr, Ne), sr = T(gr), Tr = T(je);
82089
82089
  return hr + (sr - Tr) / 2;
82090
- }, U = function(xe, Ne, gr, je) {
82090
+ }, U = function(be, Ne, gr, je) {
82091
82091
  if (je === void 0 && (je = !1), (0, r.getProperty)(Ne, "inferenceRule") || (0, r.getProperty)(Ne, "labelledRule")) {
82092
- var hr = xe.nodeFactory.create("node", "mrow");
82092
+ var hr = be.nodeFactory.create("node", "mrow");
82093
82093
  Ne.parent.replaceChild(hr, Ne), hr.setChildren([Ne]), W(Ne, hr), Ne = hr;
82094
82094
  }
82095
82095
  var sr = je ? Ne.childNodes.length - 1 : 0, Tr = Ne.childNodes[sr];
@@ -82097,19 +82097,19 @@ var nE = {}, u_ = {}, h_ = {};
82097
82097
  o.default.setAttribute(Tr, "width", s.default.Em(s.default.dimen2em(o.default.getAttribute(Tr, "width")) + gr));
82098
82098
  return;
82099
82099
  }
82100
- if (Tr = xe.nodeFactory.create("node", "mspace", [], { width: s.default.Em(gr) }), je) {
82100
+ if (Tr = be.nodeFactory.create("node", "mspace", [], { width: s.default.Em(gr) }), je) {
82101
82101
  Ne.appendChild(Tr);
82102
82102
  return;
82103
82103
  }
82104
82104
  Tr.parent = Ne, Ne.childNodes.unshift(Tr);
82105
- }, W = function(xe, Ne) {
82105
+ }, W = function(be, Ne) {
82106
82106
  var gr = ["inference", "proof", "maxAdjust", "labelledRule"];
82107
82107
  gr.forEach(function(je) {
82108
- var hr = (0, r.getProperty)(xe, je);
82109
- hr != null && ((0, r.setProperty)(Ne, je, hr), (0, r.removeProperty)(xe, je));
82108
+ var hr = (0, r.getProperty)(be, je);
82109
+ hr != null && ((0, r.setProperty)(Ne, je, hr), (0, r.removeProperty)(be, je));
82110
82110
  });
82111
- }, K = function(xe) {
82112
- var Ne = xe.nodeLists.sequent;
82111
+ }, K = function(be) {
82112
+ var Ne = be.nodeLists.sequent;
82113
82113
  if (Ne)
82114
82114
  for (var gr = Ne.length - 1, je = void 0; je = Ne[gr]; gr--) {
82115
82115
  if ((0, r.getProperty)(je, "sequentProcessed")) {
@@ -82123,29 +82123,29 @@ var nE = {}, u_ = {}, h_ = {};
82123
82123
  var Tr = _(p(sr, (0, r.getProperty)(sr, "inferenceRule"))), ae = (0, r.getProperty)(Tr, "inferenceRule") ? E(Tr, (0, r.getProperty)(Tr, "inferenceRule")) : Tr;
82124
82124
  (0, r.getProperty)(ae, "sequent") && (je = ae.childNodes[0], hr.push(je), (0, r.setProperty)(je, "sequentProcessed", !0)), sr = Tr;
82125
82125
  }
82126
- ut(xe, hr);
82126
+ ut(be, hr);
82127
82127
  }
82128
82128
  }
82129
- }, it = function(xe, Ne, gr, je, hr) {
82130
- var sr = xe.nodeFactory.create("node", "mspace", [], { width: s.default.Em(hr) });
82129
+ }, it = function(be, Ne, gr, je, hr) {
82130
+ var sr = be.nodeFactory.create("node", "mspace", [], { width: s.default.Em(hr) });
82131
82131
  if (je === "left") {
82132
82132
  var Tr = Ne.childNodes[gr].childNodes[0];
82133
82133
  sr.parent = Tr, Tr.childNodes.unshift(sr);
82134
82134
  } else
82135
82135
  Ne.childNodes[gr].appendChild(sr);
82136
82136
  (0, r.setProperty)(Ne.parent, "sequentAdjust_" + je, hr);
82137
- }, ut = function(xe, Ne) {
82137
+ }, ut = function(be, Ne) {
82138
82138
  for (var gr = Ne.pop(); Ne.length; ) {
82139
82139
  var je = Ne.pop(), hr = t(bt(gr, je), 2), sr = hr[0], Tr = hr[1];
82140
- (0, r.getProperty)(gr.parent, "axiom") && (it(xe, sr < 0 ? gr : je, 0, "left", Math.abs(sr)), it(xe, Tr < 0 ? gr : je, 2, "right", Math.abs(Tr))), gr = je;
82140
+ (0, r.getProperty)(gr.parent, "axiom") && (it(be, sr < 0 ? gr : je, 0, "left", Math.abs(sr)), it(be, Tr < 0 ? gr : je, 2, "right", Math.abs(Tr))), gr = je;
82141
82141
  }
82142
- }, bt = function(xe, Ne) {
82143
- var gr = T(xe.childNodes[2]), je = T(Ne.childNodes[2]), hr = T(xe.childNodes[0]), sr = T(Ne.childNodes[0]), Tr = hr - sr, ae = gr - je;
82142
+ }, bt = function(be, Ne) {
82143
+ var gr = T(be.childNodes[2]), je = T(Ne.childNodes[2]), hr = T(be.childNodes[0]), sr = T(Ne.childNodes[0]), Tr = hr - sr, ae = gr - je;
82144
82144
  return [Tr, ae];
82145
- }, St = function(xe) {
82145
+ }, St = function(be) {
82146
82146
  var Ne, gr;
82147
- u = new xe.document.options.MathItem("", null, xe.math.display);
82148
- var je = xe.data;
82147
+ u = new be.document.options.MathItem("", null, be.math.display);
82148
+ var je = be.data;
82149
82149
  K(je);
82150
82150
  var hr = je.nodeLists.inference || [];
82151
82151
  try {
@@ -82191,20 +82191,20 @@ var nE = {}, u_ = {}, h_ = {};
82191
82191
  }
82192
82192
  };
82193
82193
  r.balanceRules = St;
82194
- var Ft = "bspr_", ie = (i = {}, i[Ft + "maxAdjust"] = !0, i), de = function(xe, Ne, gr) {
82195
- o.default.setProperty(xe, Ft + Ne, gr);
82194
+ var Ft = "bspr_", ie = (i = {}, i[Ft + "maxAdjust"] = !0, i), de = function(be, Ne, gr) {
82195
+ o.default.setProperty(be, Ft + Ne, gr);
82196
82196
  };
82197
82197
  r.setProperty = de;
82198
- var Ve = function(xe, Ne) {
82199
- return o.default.getProperty(xe, Ft + Ne);
82198
+ var Ve = function(be, Ne) {
82199
+ return o.default.getProperty(be, Ft + Ne);
82200
82200
  };
82201
82201
  r.getProperty = Ve;
82202
- var Ue = function(xe, Ne) {
82203
- xe.removeProperty(Ft + Ne);
82202
+ var Ue = function(be, Ne) {
82203
+ be.removeProperty(Ft + Ne);
82204
82204
  };
82205
82205
  r.removeProperty = Ue;
82206
- var Nr = function(xe) {
82207
- xe.data.root.walkTree(function(Ne, gr) {
82206
+ var Nr = function(be) {
82207
+ be.data.root.walkTree(function(Ne, gr) {
82208
82208
  var je = [];
82209
82209
  Ne.getPropertyNames().forEach(function(hr) {
82210
82210
  !ie[hr] && hr.match(RegExp("^" + Ft)) && je.push(hr + ":" + Ne.getProperty(hr));
@@ -82212,12 +82212,12 @@ var nE = {}, u_ = {}, h_ = {};
82212
82212
  });
82213
82213
  };
82214
82214
  r.makeBsprAttributes = Nr;
82215
- var Gr = function(xe) {
82216
- if (a = xe.document, !("getBBox" in a.outputJax))
82215
+ var Gr = function(be) {
82216
+ if (a = be.document, !("getBBox" in a.outputJax))
82217
82217
  throw Error("The bussproofs extension requires an output jax with a getBBox() method");
82218
82218
  };
82219
82219
  r.saveDocument = Gr;
82220
- var qn = function(xe) {
82220
+ var qn = function(be) {
82221
82221
  a = null;
82222
82222
  };
82223
82223
  r.clearDocument = qn;
@@ -89092,7 +89092,7 @@ var Mz = { exports: {} };
89092
89092
  var wt = lt.tolerance != null ? lt.tolerance : 25, Ot = lt.interval != null ? lt.interval : 250;
89093
89093
  return D.point = D.point || Z.point, D.time = D.time || Z.time, Nr(D.point, Z.point) < wt && Z.time - D.time < Ot;
89094
89094
  }
89095
- var xe = { exports: {} }, Ne = xe.exports = function(D, Z) {
89095
+ var be = { exports: {} }, Ne = be.exports = function(D, Z) {
89096
89096
  if (Z || (Z = 16), D === void 0 && (D = 128), D <= 0) return "0";
89097
89097
  for (var lt = Math.log(Math.pow(2, D)) / Math.log(Z), wt = 2; lt === 1 / 0; wt *= 2) lt = Math.log(Math.pow(2, D / wt)) / Math.log(Z) * wt;
89098
89098
  var Ot = lt - Math.floor(lt), Dt = "";
@@ -89123,7 +89123,7 @@ var Mz = { exports: {} };
89123
89123
  return wt.hats[Dt] = Nt, wt;
89124
89124
  }, wt.bits = D || 128, wt.base = Z || 16, wt;
89125
89125
  };
89126
- var gr = n(xe.exports), je = function(D, Z) {
89126
+ var gr = n(be.exports), je = function(D, Z) {
89127
89127
  this.ctx = D, this.properties = Z.properties || {}, this.coordinates = Z.geometry.coordinates, this.id = Z.id || gr(), this.type = Z.geometry.type;
89128
89128
  };
89129
89129
  je.prototype.changed = function() {
@@ -92392,7 +92392,7 @@ const Wyt = [
92392
92392
  class Qi {
92393
92393
  }
92394
92394
  ht(Qi, "FUNCTIONAL", "functional"), ht(Qi, "ANATOMICAL", "anatomical"), ht(Qi, "CENTRELINE", "centreline"), ht(Qi, "GENERIC", "flatmap");
92395
- var Qu, pu, mu, V2, gu, yu, Bf, Ql, pl, Q5, Ff, _u, Nf, D4, Ja, Qn, jf, m2, vu, xu, bu, c3, Jo, p5, zf, Lu, u3, ml, gl, wu, be, ta, ci, jz, zz, $z, Uz, Qp, uh, Zz, zw;
92395
+ var Qu, pu, mu, V2, gu, yu, Bf, Ql, pl, Q5, Ff, _u, Nf, D4, Ja, Qn, jf, m2, vu, xu, bu, c3, Jo, p5, zf, Lu, u3, ml, gl, wu, xe, ta, ci, jz, zz, $z, Uz, Qp, uh, Zz, zw;
92396
92396
  class Yyt {
92397
92397
  constructor(t, e, n) {
92398
92398
  Qt(this, ci);
@@ -92426,7 +92426,7 @@ class Yyt {
92426
92426
  Qt(this, ml);
92427
92427
  Qt(this, gl, /* @__PURE__ */ new Map());
92428
92428
  Qt(this, wu, /* @__PURE__ */ new Map());
92429
- Qt(this, be, null);
92429
+ Qt(this, xe, null);
92430
92430
  Qt(this, ta);
92431
92431
  pt(this, yu, t), pt(this, m2, e), pt(this, pu, e.url()), pt(this, Ff, n.id), pt(this, ta, n.uuid), pt(this, pl, n.details), pt(this, jf, n.mapMetadata), pt(this, Bf, n.mapMetadata.created), pt(this, ml, n.taxon), pt(this, mu, n.biologicalSex), M(this, gu).push(n.callback), pt(this, Nf, n.layers), pt(this, p5, n.options), pt(this, zf, n.pathways), pt(this, xu, new oit(n.sparcTermGraph));
92432
92432
  const i = n.details.connectivity;
@@ -92462,7 +92462,7 @@ class Yyt {
92462
92462
  else if (M(this, u3) === 1) {
92463
92463
  pt(this, u3, 2), M(this, Qn).setRenderWorldCopies(!0), pt(this, V2, M(this, Qn).getBounds()), M(this, V2).getEast() >= 180 && M(this, V2).setNorthEast(new S1.LngLat(179.9, M(this, V2).getNorth())), M(this, V2).getWest() <= -180 && M(this, V2).setSouthWest(new S1.LngLat(-179.9, M(this, V2).getSouth()));
92464
92464
  const a = M(this, V2).toArray(), u = S1.MercatorCoordinate.fromLngLat(a[0]), T = S1.MercatorCoordinate.fromLngLat(a[1]);
92465
- pt(this, c3, [u.x, T.y]), pt(this, Jo, [T.x - u.x, u.y - T.y]), "state" in M(this, p5) && M(this, be).setState(M(this, p5).state), pt(this, _u, this.getState()), M(this, be).minimap && M(this, be).minimap.initialise(), M(this, Qn).setMaxBounds(M(this, V2)), M(this, Qn).fitBounds(M(this, V2), { animate: !1 }), pt(this, u3, 3), s.unsubscribe();
92465
+ pt(this, c3, [u.x, T.y]), pt(this, Jo, [T.x - u.x, u.y - T.y]), "state" in M(this, p5) && M(this, xe).setState(M(this, p5).state), pt(this, _u, this.getState()), M(this, xe).minimap && M(this, xe).minimap.initialise(), M(this, Qn).setMaxBounds(M(this, V2)), M(this, Qn).fitBounds(M(this, V2), { animate: !1 }), pt(this, u3, 3), s.unsubscribe();
92466
92466
  }
92467
92467
  });
92468
92468
  }
@@ -92503,7 +92503,7 @@ class Yyt {
92503
92503
  * Clear any visibility filter on features and paths.
92504
92504
  */
92505
92505
  clearVisibilityFilter() {
92506
- M(this, be) !== null && M(this, be).clearVisibilityFilter();
92506
+ M(this, xe) !== null && M(this, xe).clearVisibilityFilter();
92507
92507
  }
92508
92508
  /**
92509
92509
  * Sets a visibility filter for features and paths
@@ -92511,14 +92511,14 @@ class Yyt {
92511
92511
  * @param {PropertiesFilterExpression} [filterExpression=true] The filter specification
92512
92512
  */
92513
92513
  setVisibilityFilter(t = !0) {
92514
- M(this, be) !== null && M(this, be).setVisibilityFilter(t);
92514
+ M(this, xe) !== null && M(this, xe).setVisibilityFilter(t);
92515
92515
  }
92516
92516
  // Map control methods
92517
92517
  /**
92518
92518
  * Reset a map to its initial state.
92519
92519
  */
92520
92520
  resetMap() {
92521
- M(this, _u) !== null && this.setState(M(this, _u)), M(this, be) !== null && M(this, be).reset();
92521
+ M(this, _u) !== null && this.setState(M(this, _u)), M(this, xe) !== null && M(this, xe).reset();
92522
92522
  }
92523
92523
  /**
92524
92524
  * Zoom the map in.
@@ -92538,8 +92538,8 @@ class Yyt {
92538
92538
  * descriptions and colours
92539
92539
  */
92540
92540
  pathTypes() {
92541
- if (M(this, be) !== null)
92542
- return M(this, be).pathManager.pathTypes();
92541
+ if (M(this, xe) !== null)
92542
+ return M(this, xe).pathManager.pathTypes();
92543
92543
  }
92544
92544
  /**
92545
92545
  * Hide or show paths of a given type.
@@ -92549,7 +92549,7 @@ class Yyt {
92549
92549
  * ``true`` (show)
92550
92550
  */
92551
92551
  enablePath(t, e = !0) {
92552
- M(this, be) !== null && M(this, be).enablePathsByType(t, e);
92552
+ M(this, xe) !== null && M(this, xe).enablePathsByType(t, e);
92553
92553
  }
92554
92554
  /**
92555
92555
  * Hide or show all paths valid in SCKAN.
@@ -92559,7 +92559,7 @@ class Yyt {
92559
92559
  * Defaults to ``true`` (show)
92560
92560
  */
92561
92561
  enableSckanPath(t, e = !0) {
92562
- M(this, be) !== null && M(this, be).enableSckanPaths(t, e);
92562
+ M(this, xe) !== null && M(this, xe).enableSckanPaths(t, e);
92563
92563
  }
92564
92564
  /**
92565
92565
  * Show or hide connectivity features observed in particular species.
@@ -92569,7 +92569,7 @@ class Yyt {
92569
92569
  * Defaults to ``true`` (show)
92570
92570
  */
92571
92571
  enableConnectivityByTaxonIds(t, e = !0) {
92572
- M(this, be) !== null && M(this, be).enableConnectivityByTaxonIds(t, e);
92572
+ M(this, xe) !== null && M(this, xe).enableConnectivityByTaxonIds(t, e);
92573
92573
  }
92574
92574
  makeServerUrl(t, e = "flatmap/") {
92575
92575
  return t.startsWith("http://") || t.startsWith("https://") ? t : t.startsWith("/") ? `${M(this, pu)}${e}${M(this, ta)}${t}` : `${M(this, pu)}${e}${M(this, ta)}/${t}`;
@@ -92685,7 +92685,7 @@ class Yyt {
92685
92685
  * @param {string} featureId The feature's external identifier
92686
92686
  */
92687
92687
  setFeatureAnnotated(t) {
92688
- M(this, be) !== null && M(this, be).setFeatureAnnotated(t);
92688
+ M(this, xe) !== null && M(this, xe).setFeatureAnnotated(t);
92689
92689
  }
92690
92690
  modelFeatureIds(t) {
92691
92691
  const e = BT(t);
@@ -92704,7 +92704,7 @@ class Yyt {
92704
92704
  e.extend(M(this, Ql).get(n) || []), e.extend(M(this, vu).get(n) || []);
92705
92705
  else
92706
92706
  e.extend(M(this, Ql).get(t) || []), e.extend(M(this, vu).get(t) || []);
92707
- return e.length == 0 && M(this, be) !== null && e.extend(M(this, be).pathFeatureIds(t)), e;
92707
+ return e.length == 0 && M(this, xe) !== null && e.extend(M(this, xe).pathFeatureIds(t)), e;
92708
92708
  }
92709
92709
  modelForFeature(t) {
92710
92710
  const e = M(this, D4).get(+t);
@@ -92717,8 +92717,8 @@ class Yyt {
92717
92717
  * @return Model terms of all paths connected to the node
92718
92718
  */
92719
92719
  nodePathModels(t) {
92720
- if (M(this, be) !== null)
92721
- return M(this, be).nodePathModels(t);
92720
+ if (M(this, xe) !== null)
92721
+ return M(this, xe).nodePathModels(t);
92722
92722
  }
92723
92723
  /**
92724
92724
  * Get GeoJSON feature ids of all nodes of a path model.
@@ -92727,7 +92727,7 @@ class Yyt {
92727
92727
  * @return GeoJSON identifiers of features on the path
92728
92728
  */
92729
92729
  pathModelNodes(t) {
92730
- return M(this, be) !== null ? [...M(this, be).pathModelNodes(t)] : [];
92730
+ return M(this, xe) !== null ? [...M(this, xe).pathModelNodes(t)] : [];
92731
92731
  }
92732
92732
  /**
92733
92733
  * Get GeoJSON feature ids of all features identified with a taxon.
@@ -92817,25 +92817,25 @@ class Yyt {
92817
92817
  };
92818
92818
  }
92819
92819
  getState() {
92820
- return M(this, be) !== null ? M(this, be).getState() : null;
92820
+ return M(this, xe) !== null ? M(this, xe).getState() : null;
92821
92821
  }
92822
92822
  setState(t) {
92823
- M(this, be) !== null && M(this, be).setState(t);
92823
+ M(this, xe) !== null && M(this, xe).setState(t);
92824
92824
  }
92825
92825
  showPopup(t, e, n = {}) {
92826
- M(this, be) !== null && M(this, be).showPopup(t, e, n);
92826
+ M(this, xe) !== null && M(this, xe).showPopup(t, e, n);
92827
92827
  }
92828
92828
  /**
92829
92829
  * Remove the currently active popup from the map.
92830
92830
  */
92831
92831
  removePopup() {
92832
- M(this, be) !== null && M(this, be).removePopup();
92832
+ M(this, xe) !== null && M(this, xe).removePopup();
92833
92833
  }
92834
92834
  setPaint(t = {}) {
92835
92835
  t = y7(t, {
92836
92836
  colour: !0,
92837
92837
  outline: !0
92838
- }), M(this, be) !== null && M(this, be).setPaint(t);
92838
+ }), M(this, xe) !== null && M(this, xe).setPaint(t);
92839
92839
  }
92840
92840
  setColour(t = {}) {
92841
92841
  console.log("`setColour()` is deprecated; please use `setPaint()` instead."), this.setPaint(t);
@@ -92863,7 +92863,7 @@ class Yyt {
92863
92863
  * @param {string} colour The colour
92864
92864
  */
92865
92865
  setBackgroundColour(t) {
92866
- localStorage.setItem("flatmap-background-colour", t), M(this, Qn).setPaintProperty("background", "background-color", t), M(this, be).minimap && M(this, be).minimap.setBackgroundColour(t);
92866
+ localStorage.setItem("flatmap-background-colour", t), M(this, Qn).setPaintProperty("background", "background-color", t), M(this, xe).minimap && M(this, xe).minimap.setBackgroundColour(t);
92867
92867
  }
92868
92868
  /**
92869
92869
  * Sets the map's background opacity.
@@ -92871,7 +92871,7 @@ class Yyt {
92871
92871
  * @param {number} opacity The opacity
92872
92872
  */
92873
92873
  setBackgroundOpacity(t) {
92874
- M(this, Qn).setPaintProperty("background", "background-opacity", t), M(this, be).minimap && M(this, be).minimap.setBackgroundOpacity(t);
92874
+ M(this, Qn).setPaintProperty("background", "background-opacity", t), M(this, xe).minimap && M(this, xe).minimap.setBackgroundOpacity(t);
92875
92875
  }
92876
92876
  /**
92877
92877
  * Show and hide the minimap.
@@ -92879,7 +92879,7 @@ class Yyt {
92879
92879
  * @param {boolean} show Set false to hide minimap
92880
92880
  */
92881
92881
  showMinimap(t) {
92882
- M(this, be).minimap && M(this, be).minimap.show(t);
92882
+ M(this, xe).minimap && M(this, xe).minimap.show(t);
92883
92883
  }
92884
92884
  //==========================================================================
92885
92885
  /**
@@ -92888,8 +92888,8 @@ class Yyt {
92888
92888
  * @return {Array.<{id: string, description: string, enabled: boolean}>} An array with layer details
92889
92889
  */
92890
92890
  getLayers() {
92891
- if (M(this, be) !== null)
92892
- return M(this, be).getLayers();
92891
+ if (M(this, xe) !== null)
92892
+ return M(this, xe).getLayers();
92893
92893
  }
92894
92894
  /**
92895
92895
  * @param {string} layerId The layer identifier to enable
@@ -92897,8 +92897,8 @@ class Yyt {
92897
92897
  *
92898
92898
  */
92899
92899
  enableLayer(t, e = !0) {
92900
- if (M(this, be) !== null)
92901
- return M(this, be).enableLayer(t, e);
92900
+ if (M(this, xe) !== null)
92901
+ return M(this, xe).enableLayer(t, e);
92902
92902
  }
92903
92903
  /**
92904
92904
  * Show/hide flight path view.
@@ -92906,7 +92906,7 @@ class Yyt {
92906
92906
  * @param {boolean} [enable=true]
92907
92907
  */
92908
92908
  enableFlightPaths(t = !0) {
92909
- M(this, be) !== null && M(this, be).enableFlightPaths(t);
92909
+ M(this, xe) !== null && M(this, xe).enableFlightPaths(t);
92910
92910
  }
92911
92911
  //==========================================================================
92912
92912
  /**
@@ -92915,8 +92915,8 @@ class Yyt {
92915
92915
  * @return {Array.<{id: string, name: string, colour: string, enabled: boolean}>} An array with system details
92916
92916
  */
92917
92917
  getSystems() {
92918
- if (M(this, be) !== null)
92919
- return M(this, be).getSystems();
92918
+ if (M(this, xe) !== null)
92919
+ return M(this, xe).getSystems();
92920
92920
  }
92921
92921
  /**
92922
92922
  * @param {string} systemId The identifier of the system to enable
@@ -92924,8 +92924,8 @@ class Yyt {
92924
92924
  *
92925
92925
  */
92926
92926
  enableSystem(t, e = !0) {
92927
- if (M(this, be) !== null)
92928
- return M(this, be).enableSystem(t, e);
92927
+ if (M(this, xe) !== null)
92928
+ return M(this, xe).enableSystem(t, e);
92929
92929
  }
92930
92930
  //==========================================================================
92931
92931
  /**
@@ -92938,7 +92938,16 @@ class Yyt {
92938
92938
  * map doesn't contain a feature with the given anatomical identifier
92939
92939
  */
92940
92940
  addMarker(t, e = {}) {
92941
- return M(this, be) !== null ? M(this, be).addLayeredMarker(t, e) : [];
92941
+ if (M(this, xe) !== null) {
92942
+ if (e.kind === "multiscale")
92943
+ return M(this, xe).addLayeredMarker(t, e);
92944
+ {
92945
+ const n = M(this, xe).addMarker(t, e);
92946
+ if (n > 0)
92947
+ return [n];
92948
+ }
92949
+ }
92950
+ return [];
92942
92951
  }
92943
92952
  /**
92944
92953
  * Add a list of markers to the map.
@@ -92954,10 +92963,14 @@ class Yyt {
92954
92963
  e = Object.assign({ cluster: !0 }, e);
92955
92964
  const n = [];
92956
92965
  for (const i of t)
92957
- if (M(this, be) !== null) {
92958
- const o = M(this, be).addLayeredMarker(i, e);
92959
- o.push(...o);
92960
- }
92966
+ if (M(this, xe) !== null)
92967
+ if (e.kind === "multiscale") {
92968
+ const o = M(this, xe).addLayeredMarker(i, e);
92969
+ o.push(...o);
92970
+ } else {
92971
+ const o = M(this, xe).addMarker(i, e);
92972
+ o > 0 && n.push(o);
92973
+ }
92961
92974
  return n;
92962
92975
  }
92963
92976
  /**
@@ -92967,13 +92980,13 @@ class Yyt {
92967
92980
  * by ``addMarker()``
92968
92981
  */
92969
92982
  removeMarker(t) {
92970
- t > -1 && M(this, be) !== null && M(this, be).removeMarker(t);
92983
+ t > -1 && M(this, xe) !== null && M(this, xe).removeMarker(t);
92971
92984
  }
92972
92985
  /**
92973
92986
  * Remove all markers from the map.
92974
92987
  */
92975
92988
  clearMarkers() {
92976
- M(this, be) !== null && M(this, be).clearMarkers();
92989
+ M(this, xe) !== null && M(this, xe).clearMarkers();
92977
92990
  }
92978
92991
  /**
92979
92992
  * Add dataset markers to the map.
@@ -92983,13 +92996,13 @@ class Yyt {
92983
92996
  * associated anatomical terms
92984
92997
  */
92985
92998
  addDatasetMarkers(t) {
92986
- M(this, be) !== null && M(this, be).addDatasetMarkers(t);
92999
+ M(this, xe) !== null && M(this, xe).addDatasetMarkers(t);
92987
93000
  }
92988
93001
  /**
92989
93002
  * Remove all dataset markers from the map.
92990
93003
  */
92991
93004
  clearDatasetMarkers() {
92992
- M(this, be) !== null && M(this, be).clearDatasetMarkers();
93005
+ M(this, xe) !== null && M(this, xe).clearDatasetMarkers();
92993
93006
  }
92994
93007
  /**
92995
93008
  * Remove markers for a dataset from the map.
@@ -92998,7 +93011,7 @@ class Yyt {
92998
93011
  * to ``addDatasetMarkers()``
92999
93012
  */
93000
93013
  removeDatasetMarker(t) {
93001
- M(this, be) !== null && M(this, be).removeDatasetMarker(t);
93014
+ M(this, xe) !== null && M(this, xe).removeDatasetMarker(t);
93002
93015
  }
93003
93016
  /**
93004
93017
  * Return the set of anatomical identifiers visible in the current map view.
@@ -93006,8 +93019,8 @@ class Yyt {
93006
93019
  * @return {Array.<string>} A list of identifiers
93007
93020
  */
93008
93021
  visibleMarkerAnatomicalIds() {
93009
- if (M(this, be) !== null)
93010
- return M(this, be).visibleMarkerAnatomicalIds();
93022
+ if (M(this, xe) !== null)
93023
+ return M(this, xe).visibleMarkerAnatomicalIds();
93011
93024
  }
93012
93025
  /**
93013
93026
  * Shows a popup at a marker.
@@ -93023,7 +93036,7 @@ class Yyt {
93023
93036
  * The resulting popup is given a class name of ``flatmap-tooltip-popup``.
93024
93037
  */
93025
93038
  showMarkerPopup(t, e, n = {}) {
93026
- return M(this, be) !== null ? M(this, be).showMarkerPopup(t, e, n) : !1;
93039
+ return M(this, xe) !== null ? M(this, xe).showMarkerPopup(t, e, n) : !1;
93027
93040
  }
93028
93041
  exportedFeatureProperties(t) {
93029
93042
  const e = {};
@@ -93040,7 +93053,7 @@ class Yyt {
93040
93053
  * @param {boolean} [visible=true]
93041
93054
  */
93042
93055
  showAnnotator(t = !0) {
93043
- M(this, be) !== null && M(this, be).showAnnotator(t);
93056
+ M(this, xe) !== null && M(this, xe).showAnnotator(t);
93044
93057
  }
93045
93058
  /**
93046
93059
  * Generate an ``annotation`` callback event when a drawn annotation has been created
@@ -93063,7 +93076,7 @@ class Yyt {
93063
93076
  * @param event {AnnotationEvent} The object as received in an annotation callback
93064
93077
  */
93065
93078
  commitAnnotationEvent(t) {
93066
- M(this, be) && M(this, be).commitAnnotationEvent(t);
93079
+ M(this, xe) && M(this, xe).commitAnnotationEvent(t);
93067
93080
  }
93068
93081
  /**
93069
93082
  * Mark a drawn/changed annotation as having been rejected by the user.
@@ -93071,19 +93084,19 @@ class Yyt {
93071
93084
  * @param event {AnnotationEvent} The object as received in an annotation callback
93072
93085
  */
93073
93086
  rollbackAnnotationEvent(t) {
93074
- M(this, be) && M(this, be).rollbackAnnotationEvent(t);
93087
+ M(this, xe) && M(this, xe).rollbackAnnotationEvent(t);
93075
93088
  }
93076
93089
  /**
93077
93090
  * Clear all drawn annotations from current annotation layer.
93078
93091
  */
93079
93092
  clearAnnotationFeature() {
93080
- M(this, be) && M(this, be).clearAnnotationFeatures();
93093
+ M(this, xe) && M(this, xe).clearAnnotationFeatures();
93081
93094
  }
93082
93095
  /**
93083
93096
  * Delete the selected drawn feature
93084
93097
  */
93085
93098
  removeAnnotationFeature() {
93086
- M(this, be) && M(this, be).removeAnnotationFeature();
93099
+ M(this, xe) && M(this, xe).removeAnnotationFeature();
93087
93100
  }
93088
93101
  /**
93089
93102
  * Add a drawn feature to the annotation drawing tool.
@@ -93091,7 +93104,7 @@ class Yyt {
93091
93104
  * @param feature {AnnotatedFeature} The feature to add
93092
93105
  */
93093
93106
  addAnnotationFeature(t) {
93094
- M(this, be) && M(this, be).addAnnotationFeature(t);
93107
+ M(this, xe) && M(this, xe).addAnnotationFeature(t);
93095
93108
  }
93096
93109
  /**
93097
93110
  * Return the feature as it is currently drawn. This is so
@@ -93104,13 +93117,13 @@ class Yyt {
93104
93117
  * if the feature has been deleted.
93105
93118
  */
93106
93119
  refreshAnnotationFeatureGeometry(t) {
93107
- return M(this, be) ? M(this, be).refreshAnnotationFeatureGeometry(t) : null;
93120
+ return M(this, xe) ? M(this, xe).refreshAnnotationFeatureGeometry(t) : null;
93108
93121
  }
93109
93122
  /**
93110
93123
  * Changes the mode for drawing annotations.
93111
93124
  */
93112
93125
  changeAnnotationDrawMode(t) {
93113
- M(this, be) && M(this, be).changeAnnotationDrawMode(t);
93126
+ M(this, xe) && M(this, xe).changeAnnotationDrawMode(t);
93114
93127
  }
93115
93128
  /**
93116
93129
  * Generate a callback as a result of some event with a flatmap feature.
@@ -93181,7 +93194,7 @@ class Yyt {
93181
93194
  * otherwise disable them.
93182
93195
  */
93183
93196
  enablePanZoomEvents(t = !0) {
93184
- M(this, be) !== null && M(this, be).enablePanZoomEvents(t);
93197
+ M(this, xe) !== null && M(this, xe).enablePanZoomEvents(t);
93185
93198
  }
93186
93199
  /**
93187
93200
  * Generate a callback as a result of panning/zooming the map.
@@ -93232,10 +93245,10 @@ class Yyt {
93232
93245
  return e ? M(this, Lu).auto_suggest(t) : M(this, Lu).search(t);
93233
93246
  }
93234
93247
  clearSearchResults() {
93235
- M(this, be) !== null && M(this, be).clearSearchResults();
93248
+ M(this, xe) !== null && M(this, xe).clearSearchResults();
93236
93249
  }
93237
93250
  showSearchResults(t) {
93238
- M(this, be) !== null && M(this, be).showSearchResults(t.featureIds);
93251
+ M(this, xe) !== null && M(this, xe).showSearchResults(t.featureIds);
93239
93252
  }
93240
93253
  //==========================================================================
93241
93254
  /**
@@ -93244,9 +93257,9 @@ class Yyt {
93244
93257
  * @param externalIds An array of anaotomical terms identifing features to select
93245
93258
  */
93246
93259
  selectFeatures(t) {
93247
- if (M(this, be) !== null) {
93260
+ if (M(this, xe) !== null) {
93248
93261
  const e = this.modelFeatureIdList(t);
93249
- M(this, be).selectFeatures(e);
93262
+ M(this, xe).selectFeatures(e);
93250
93263
  }
93251
93264
  }
93252
93265
  /**
@@ -93262,9 +93275,9 @@ class Yyt {
93262
93275
  select: !0,
93263
93276
  highlight: !1,
93264
93277
  padding: 100
93265
- }), M(this, be) !== null) {
93278
+ }), M(this, xe) !== null) {
93266
93279
  const n = this.modelFeatureIdList(t);
93267
- M(this, be).zoomToFeatures(n, e);
93280
+ M(this, xe).zoomToFeatures(n, e);
93268
93281
  }
93269
93282
  }
93270
93283
  /**
@@ -93274,13 +93287,13 @@ class Yyt {
93274
93287
  * or an array of identifiers.
93275
93288
  */
93276
93289
  selectGeoJSONFeatures(t) {
93277
- M(this, be) !== null && M(this, be).selectFeatures(Array.isArray(t) ? t : [t]);
93290
+ M(this, xe) !== null && M(this, xe).selectFeatures(Array.isArray(t) ? t : [t]);
93278
93291
  }
93279
93292
  /**
93280
93293
  * Unselect all features on the map.
93281
93294
  */
93282
93295
  unselectGeoJSONFeatures() {
93283
- M(this, be) !== null && M(this, be).unselectFeatures();
93296
+ M(this, xe) !== null && M(this, xe).unselectFeatures();
93284
93297
  }
93285
93298
  /**
93286
93299
  * Select features and zoom the map to them.
@@ -93293,7 +93306,7 @@ class Yyt {
93293
93306
  select: !0,
93294
93307
  highlight: !1,
93295
93308
  padding: 100
93296
- }), M(this, be) !== null && M(this, be).zoomToFeatures(t, e);
93309
+ }), M(this, xe) !== null && M(this, xe).zoomToFeatures(t, e);
93297
93310
  }
93298
93311
  //==========================================================================
93299
93312
  /**
@@ -93310,7 +93323,7 @@ class Yyt {
93310
93323
  * there are no features with the given ``anatomicalId``.
93311
93324
  */
93312
93325
  addImage(t, e, n = {}) {
93313
- return M(this, be) !== null ? M(this, be).addImage(t, e, n) : null;
93326
+ return M(this, xe) !== null ? M(this, xe).addImage(t, e, n) : null;
93314
93327
  }
93315
93328
  /**
93316
93329
  * Remove images for an anatomical features.
@@ -93318,14 +93331,14 @@ class Yyt {
93318
93331
  * @param {string} mapImageId An image identifier previously returned by ``addImage()``.
93319
93332
  */
93320
93333
  removeImage(t) {
93321
- M(this, be) !== null && M(this, be).removeImage(t);
93334
+ M(this, xe) !== null && M(this, xe).removeImage(t);
93322
93335
  }
93323
93336
  //==========================================================================
93324
93337
  /**
93325
93338
  * Get a details of the nerve centrelines in the map.
93326
93339
  */
93327
93340
  getNerveDetails() {
93328
- return M(this, be) !== null ? M(this, be).getNerveDetails() : [];
93341
+ return M(this, xe) !== null ? M(this, xe).getNerveDetails() : [];
93329
93342
  }
93330
93343
  /**
93331
93344
  * Enable/disable the neuron paths associated with a nerve centreline.
@@ -93334,7 +93347,7 @@ class Yyt {
93334
93347
  * @param [enable=true]
93335
93348
  */
93336
93349
  enableNeuronPathsByNerve(t, e = !0) {
93337
- M(this, be) !== null && M(this, be).enableNeuronPathsByNerve(t, e);
93350
+ M(this, xe) !== null && M(this, xe).enableNeuronPathsByNerve(t, e);
93338
93351
  }
93339
93352
  //==========================================================================
93340
93353
  get knowledgeSource() {
@@ -93433,14 +93446,14 @@ class Yyt {
93433
93446
  }
93434
93447
  //==========================================================================
93435
93448
  addCloseControl() {
93436
- M(this, be) !== null && M(this, be).addCloseControl();
93449
+ M(this, xe) !== null && M(this, xe).addCloseControl();
93437
93450
  }
93438
93451
  removeCloseControl() {
93439
- M(this, be) !== null && M(this, be).removeCloseControl();
93452
+ M(this, xe) !== null && M(this, xe).removeCloseControl();
93440
93453
  }
93441
93454
  //==========================================================================
93442
93455
  }
93443
- Qu = new WeakMap(), pu = new WeakMap(), mu = new WeakMap(), V2 = new WeakMap(), gu = new WeakMap(), yu = new WeakMap(), Bf = new WeakMap(), Ql = new WeakMap(), pl = new WeakMap(), Q5 = new WeakMap(), Ff = new WeakMap(), _u = new WeakMap(), Nf = new WeakMap(), D4 = new WeakMap(), Ja = new WeakMap(), Qn = new WeakMap(), jf = new WeakMap(), m2 = new WeakMap(), vu = new WeakMap(), xu = new WeakMap(), bu = new WeakMap(), c3 = new WeakMap(), Jo = new WeakMap(), p5 = new WeakMap(), zf = new WeakMap(), Lu = new WeakMap(), u3 = new WeakMap(), ml = new WeakMap(), gl = new WeakMap(), wu = new WeakMap(), be = new WeakMap(), ta = new WeakMap(), ci = new WeakSet(), jz = async function() {
93456
+ Qu = new WeakMap(), pu = new WeakMap(), mu = new WeakMap(), V2 = new WeakMap(), gu = new WeakMap(), yu = new WeakMap(), Bf = new WeakMap(), Ql = new WeakMap(), pl = new WeakMap(), Q5 = new WeakMap(), Ff = new WeakMap(), _u = new WeakMap(), Nf = new WeakMap(), D4 = new WeakMap(), Ja = new WeakMap(), Qn = new WeakMap(), jf = new WeakMap(), m2 = new WeakMap(), vu = new WeakMap(), xu = new WeakMap(), bu = new WeakMap(), c3 = new WeakMap(), Jo = new WeakMap(), p5 = new WeakMap(), zf = new WeakMap(), Lu = new WeakMap(), u3 = new WeakMap(), ml = new WeakMap(), gl = new WeakMap(), wu = new WeakMap(), xe = new WeakMap(), ta = new WeakMap(), ci = new WeakSet(), jz = async function() {
93444
93457
  await Ht(this, ci, zw).call(this, M(this, ml));
93445
93458
  for (const e of this.taxonIdentifiers)
93446
93459
  await Ht(this, ci, zw).call(this, e);
@@ -93448,7 +93461,7 @@ Qu = new WeakMap(), pu = new WeakMap(), mu = new WeakMap(), V2 = new WeakMap(),
93448
93461
  await Ht(this, ci, Uz).call(this, e.id, e.url, "", e.options);
93449
93462
  await Xet(M(this, Qn));
93450
93463
  const t = await M(this, m2).mapTermGraph(M(this, ta));
93451
- M(this, xu).load(t), pt(this, be, new Uyt(this)), pt(this, u3, 1);
93464
+ M(this, xu).load(t), pt(this, xe, new Uyt(this)), pt(this, u3, 1);
93452
93465
  }, zz = async function(t) {
93453
93466
  return (await M(this, Qn).loadImage(t)).data;
93454
93467
  }, $z = function(t) {
@@ -93492,7 +93505,7 @@ Qu = new WeakMap(), pu = new WeakMap(), mu = new WeakMap(), V2 = new WeakMap(),
93492
93505
  return M(this, gl).set(t, e[0].label);
93493
93506
  }
93494
93507
  };
93495
- const Jyt = "4.1.6", t_t = 1.4;
93508
+ const Jyt = "4.2.0", t_t = 1.4;
93496
93509
  var Um, $f, yl, U1, Uf, Zf, L3, $w, Uw, Wz;
93497
93510
  class e_t {
93498
93511
  // also have a callback for viewer events...
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmap-viewer",
3
- "version": "4.1.6",
3
+ "version": "4.2.0",
4
4
  "description": "Flatmap viewer using Maplibre GL",
5
5
  "repository": {
6
6
  "type": "git",