@abi-software/flatmap-viewer 4.3.0 → 4.3.1

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.3.0`
7
+ * `pnpm install @abi-software/flatmap-viewer@4.3.1`
8
8
 
9
9
  ---
10
10
 
package/dist/index.js CHANGED
@@ -23722,6 +23722,7 @@ class Qrt extends lg {
23722
23722
  return new ls({
23723
23723
  OR: [
23724
23724
  { NOT: { "tile-layer": fo } },
23725
+ { type: "nerve" },
23725
23726
  { AND: [
23726
23727
  { "tile-layer": fo },
23727
23728
  { HAS: "kind" },
@@ -92206,7 +92207,20 @@ class m_t {
92206
92207
  if (i || o) {
92207
92208
  M(this, c1) && (n && n.preserveSelection && (M(this, c1).options.preserveSelection = n.preserveSelection), M(this, c1).remove()), n && n.preserveSelection ? delete n.preserveSelection : this.unselectFeatures(), this.selectFeature(t);
92208
92209
  let s;
92209
- "positionAtLastClick" in n && n.positionAtLastClick && M(this, mu) !== null ? s = M(this, mu) : o ? s = n.annotationFeatureGeometry : s = this.markerPosition(i), M(this, xr).getBounds().contains(s) || M(this, xr).panTo(s), It(this, Ee, r$).call(this), mt(this, c1, new V1.Popup(n).addTo(M(this, xr))), M(this, c1).on("close", It(this, Ee, n$).bind(this)), o && M(this, c1).on("close", this.abortAnnotationEvent.bind(this)), M(this, c1).setLngLat(s), typeof e == "object" ? M(this, c1).setDOMContent(e) : M(this, c1).setText(e);
92210
+ if ("positionAtLastClick" in n && n.positionAtLastClick && M(this, mu) !== null ? s = M(this, mu) : o ? s = n.annotationFeatureGeometry : s = this.markerPosition(i), M(this, xr).getBounds().contains(s) || M(this, xr).panTo(s), It(this, Ee, r$).call(this), mt(this, c1, new V1.Popup(n).addTo(M(this, xr))), M(this, c1).on("close", It(this, Ee, n$).bind(this)), o) {
92211
+ const a = {
92212
+ type: "created",
92213
+ feature: {
92214
+ id: t,
92215
+ geometry: {
92216
+ type: "Point",
92217
+ coordinates: n.annotationFeatureGeometry
92218
+ }
92219
+ }
92220
+ }, u = n.annotationEvent || a;
92221
+ M(this, c1).on("close", () => this.abortAnnotationEvent(u));
92222
+ }
92223
+ M(this, c1).setLngLat(s), typeof e == "object" ? M(this, c1).setDOMContent(e) : M(this, c1).setText(e);
92210
92224
  }
92211
92225
  }
92212
92226
  /**
@@ -94076,7 +94090,7 @@ Lu = new WeakMap(), wu = new WeakMap(), Au = new WeakMap(), z2 = new WeakMap(),
94076
94090
  return M(this, Sl).set(t, e[0].label);
94077
94091
  }
94078
94092
  };
94079
- const w_t = "4.3.0", A_t = 1.4;
94093
+ const w_t = "4.3.1", A_t = 1.4;
94080
94094
  var Jm, td, Cl, J1, ed, rd, I3, iA, oA, T$;
94081
94095
  class M_t {
94082
94096
  // 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.0",
3
+ "version": "4.3.1",
4
4
  "description": "Flatmap viewer using Maplibre GL",
5
5
  "repository": {
6
6
  "type": "git",