@abi-software/flatmap-viewer 4.2.8 → 4.2.9

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/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.2.8`
7
+ * `pnpm install @abi-software/flatmap-viewer@4.2.9`
8
8
 
9
9
  ---
10
10
 
package/dist/index.js CHANGED
@@ -94037,9 +94037,36 @@ bu = new WeakMap(), Lu = new WeakMap(), wu = new WeakMap(), z2 = new WeakMap(),
94037
94037
  return M(this, El).set(t, e[0].label);
94038
94038
  }
94039
94039
  };
94040
- const L_t = "4.2.8", w_t = 1.4;
94040
+ const L_t = [
94041
+ {
94042
+ prompt: "Tissue region",
94043
+ colour: "#FA00C0",
94044
+ style: "circle"
94045
+ },
94046
+ {
94047
+ prompt: "Brain nuclei",
94048
+ colour: "#EA431C",
94049
+ style: "circle"
94050
+ },
94051
+ {
94052
+ prompt: "Ganglia",
94053
+ colour: "#A5F160",
94054
+ style: "circle"
94055
+ },
94056
+ {
94057
+ prompt: "Gaglionated nerve plexus",
94058
+ colour: "#EAED59",
94059
+ style: "star"
94060
+ },
94061
+ {
94062
+ prompt: "Featured dataset marker",
94063
+ colour: "#FFFF09",
94064
+ style: "star",
94065
+ border: "black"
94066
+ }
94067
+ ], w_t = "4.2.9", A_t = 1.4;
94041
94068
  var Jm, td, Sl, J1, ed, rd, I3, iA, oA, T$;
94042
- class A_t {
94069
+ class M_t {
94043
94070
  // also have a callback for viewer events...
94044
94071
  // -- as an option in MapViewerOptions?
94045
94072
  //
@@ -94056,6 +94083,9 @@ class A_t {
94056
94083
  ut(this, "mapServerUrl");
94057
94084
  this.mapServerUrl = t, mt(this, J1, new m_t(t)), mt(this, ed, e ? e.images || [] : []);
94058
94085
  }
94086
+ get flatmapLegend() {
94087
+ return L_t;
94088
+ }
94059
94089
  get mapServer() {
94060
94090
  return M(this, J1);
94061
94091
  }
@@ -94160,7 +94190,7 @@ Jm = new WeakMap(), td = new WeakMap(), Sl = new WeakMap(), J1 = new WeakMap(),
94160
94190
  return;
94161
94191
  }
94162
94192
  for (const e of t)
94163
- e.separateLayers = "version" in e && e.version >= w_t, M(this, Sl).push(e);
94193
+ e.separateLayers = "version" in e && e.version >= A_t, M(this, Sl).push(e);
94164
94194
  await M(this, rd).load(M(this, J1)), mt(this, td, !0);
94165
94195
  }
94166
94196
  });
@@ -94184,8 +94214,8 @@ Jm = new WeakMap(), td = new WeakMap(), Sl = new WeakMap(), J1 = new WeakMap(),
94184
94214
  }, /**
94185
94215
  * The released version of the viewer
94186
94216
  */
94187
- ut(A_t, "version", L_t);
94217
+ ut(M_t, "version", w_t);
94188
94218
  export {
94189
94219
  b_t as FlatMap,
94190
- A_t as MapViewer
94220
+ M_t as MapViewer
94191
94221
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmap-viewer",
3
- "version": "4.2.8",
3
+ "version": "4.2.9",
4
4
  "description": "Flatmap viewer using Maplibre GL",
5
5
  "repository": {
6
6
  "type": "git",