@abi-software/flatmap-viewer 4.3.4 → 4.3.5

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 +12 -14
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -4,7 +4,7 @@ A web-browser viewer for anatomical flatmaps generated by [flatmap-maker](https:
4
4
 
5
5
  ## Package Installation
6
6
 
7
- * `pnpm install @abi-software/flatmap-viewer@4.3.4`
7
+ * `pnpm install @abi-software/flatmap-viewer@4.3.5`
8
8
 
9
9
  ---
10
10
 
package/dist/index.js CHANGED
@@ -28748,20 +28748,18 @@ class kit {
28748
28748
  }
28749
28749
  });
28750
28750
  }
28751
- markerTerms(t) {
28751
+ datasetTerms(t) {
28752
28752
  const e = Math.floor(A(this, A4).getZoom());
28753
28753
  return [...(A(this, Z7).get(t)[e] || []).values()].map((i) => {
28754
- let o = i;
28755
- const s = A(this, n3).modelFeatureIds(i);
28754
+ const o = {
28755
+ term: i,
28756
+ kind: A(this, $7).get(i) || "dataset"
28757
+ }, s = A(this, n3).modelFeatureIds(i);
28756
28758
  if (s.length) {
28757
28759
  const a = A(this, n3).annotation(s[0]);
28758
- a && "label" in a && (o = a.label);
28760
+ a && "label" in a && (o.label = a.label);
28759
28761
  }
28760
- return {
28761
- term: i,
28762
- label: o,
28763
- kind: A(this, $7).get(i) || "dataset"
28764
- };
28762
+ return o;
28765
28763
  });
28766
28764
  }
28767
28765
  addDatasetMarkers(t) {
@@ -56339,8 +56337,8 @@ class Y7t {
56339
56337
  clearDatasetMarkers() {
56340
56338
  A(this, h3).clearDatasetMarkers();
56341
56339
  }
56342
- markerTerms(t) {
56343
- return A(this, h3).markerTerms(t);
56340
+ datasetTerms(t) {
56341
+ return A(this, h3).datasetTerms(t);
56344
56342
  }
56345
56343
  removeDatasetMarker(t) {
56346
56344
  A(this, h3).removeDatasetMarker(t);
@@ -92549,7 +92547,7 @@ n$ = function() {
92549
92547
  let i;
92550
92548
  if (qx(e)) {
92551
92549
  const o = Object.assign({}, e.properties, n), s = o.models;
92552
- return o["marker-terms"] = A(this, on).markerTerms(s), A(this, Zr).markerEvent(t, +e.id, o);
92550
+ return o["dataset-terms"] = A(this, on).datasetTerms(s), A(this, Zr).markerEvent(t, +e.id, o);
92553
92551
  } else if ("properties" in e)
92554
92552
  return i = Object.assign({}, e.properties, n), A(this, Zr).featureEvent(t, i);
92555
92553
  return !1;
@@ -92894,7 +92892,7 @@ const y_t = [
92894
92892
  "dataset-ids",
92895
92893
  "kind",
92896
92894
  "label",
92897
- "marker-terms",
92895
+ "dataset-terms",
92898
92896
  "models",
92899
92897
  "source",
92900
92898
  "taxons",
@@ -94142,7 +94140,7 @@ Su = new WeakMap(), Cu = new WeakMap(), Hu = new WeakMap(), U2 = new WeakMap(),
94142
94140
  return A(this, Hl).set(t, e[0].label);
94143
94141
  }
94144
94142
  };
94145
- const w_t = "4.3.4", A_t = 1.4;
94143
+ const w_t = "4.3.5", A_t = 1.4;
94146
94144
  var Ym, td, Pl, M2, ed, R3, oA, aA, Q$;
94147
94145
  class M_t {
94148
94146
  // 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.3.4",
3
+ "version": "4.3.5",
4
4
  "description": "Flatmap viewer using Maplibre GL",
5
5
  "repository": {
6
6
  "type": "git",