@abi-software/flatmapvuer 0.6.1-auth.0 → 0.6.1-auth.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/dist/flatmapvuer.js +13 -9
- package/dist/flatmapvuer.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/FlatmapVuer.vue +26 -21
package/dist/flatmapvuer.js
CHANGED
|
@@ -91736,10 +91736,12 @@ const Yhe = (t, e) => {
|
|
|
91736
91736
|
dialogCssHacks: function() {
|
|
91737
91737
|
this.$nextTick(() => {
|
|
91738
91738
|
const t = this.$el.querySelector(".relevance-dialog");
|
|
91739
|
-
|
|
91740
|
-
|
|
91741
|
-
|
|
91742
|
-
|
|
91739
|
+
if (this.$el && t) {
|
|
91740
|
+
Yhe(this.$el, t);
|
|
91741
|
+
let e, n;
|
|
91742
|
+
const r = this.$el.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
91743
|
+
this.dialogPosition.x > r.width / 2 ? e = this.dialogPosition.x - i.width : e = this.dialogPosition.x, this.dialogPosition.y > r.height / 2 ? n = this.dialogPosition.y - i.height : n = this.dialogPosition.y, t.style.transform = `translate(${e - this.dialogPosition.offsetX}px, ${n - this.dialogPosition.offsetY}px)`;
|
|
91744
|
+
}
|
|
91743
91745
|
});
|
|
91744
91746
|
},
|
|
91745
91747
|
drawIconCssHacks: function() {
|
|
@@ -92431,14 +92433,16 @@ const Yhe = (t, e) => {
|
|
|
92431
92433
|
*/
|
|
92432
92434
|
dialogPosition: {
|
|
92433
92435
|
handler: function() {
|
|
92434
|
-
|
|
92435
|
-
|
|
92436
|
+
if (this.$el) {
|
|
92437
|
+
const t = this.$el.getBoundingClientRect();
|
|
92438
|
+
this.dialogPosition.offsetX = t.x, this.dialogPosition.offsetY = t.y;
|
|
92439
|
+
}
|
|
92436
92440
|
},
|
|
92437
92441
|
deep: !0,
|
|
92438
92442
|
once: !0
|
|
92439
92443
|
},
|
|
92440
92444
|
viewingMode: function(t) {
|
|
92441
|
-
t === "Annotation" ? (this.$el.querySelector(".maplibregl-canvas").addEventListener("click", (e) => {
|
|
92445
|
+
t === "Annotation" ? (console.log(this.userApiKey), this.$el.querySelector(".maplibregl-canvas").addEventListener("click", (e) => {
|
|
92442
92446
|
e.preventDefault(), this.dialogPosition.x = e.clientX, this.dialogPosition.y = e.clientY, this.activeDrawTool === "Point" && this.dialogCssHacks();
|
|
92443
92447
|
}, !1), this.showAnnotator(!0), this.annotator.authenticate(this.userApiKey).then((e) => {
|
|
92444
92448
|
e.name && e.email && (this.userInformation = e, this.setFeatureAnnotated(), this.drawnAnnotationFeatures || this.addAnnotationFeature());
|
|
@@ -92453,7 +92457,7 @@ const Yhe = (t, e) => {
|
|
|
92453
92457
|
mounted: function() {
|
|
92454
92458
|
this.openMapRef = Fa(this.$refs.openMapRef), this.backgroundIconRef = Fa(this.$refs.backgroundIconRef), this.tooltipWait = [], this.tooltipWait.length = this.hoverVisibilities.length, this.mapManager = new oP(this.flatmapAPI), this.flatmapQueries = new BX(), this.flatmapQueries.initialise(this.flatmapAPI), this.state ? this.setStateRequired && this.setState(this.state) : this.renderAtMounted && this.createFlatmap();
|
|
92455
92459
|
}
|
|
92456
|
-
}, Co = (t) => (K6("data-v-
|
|
92460
|
+
}, Co = (t) => (K6("data-v-7f745d83"), t = t(), Y6(), t), nde = {
|
|
92457
92461
|
class: "flatmap-container",
|
|
92458
92462
|
ref: "flatmapContainer",
|
|
92459
92463
|
"element-loading-text": "Loading...",
|
|
@@ -93315,7 +93319,7 @@ function bde(t, e, n, r, i, a) {
|
|
|
93315
93319
|
[se, t.loading]
|
|
93316
93320
|
]);
|
|
93317
93321
|
}
|
|
93318
|
-
const lP = /* @__PURE__ */ Qs(tde, [["render", bde], ["__scopeId", "data-v-
|
|
93322
|
+
const lP = /* @__PURE__ */ Qs(tde, [["render", bde], ["__scopeId", "data-v-7f745d83"]]), tS = {
|
|
93319
93323
|
"NCBITaxon:10114": "01fedbf9-d783-509c-a10c-827941ab13da",
|
|
93320
93324
|
"NCBITaxon:9823": "a336ac04-24db-561f-a25f-1c994fe17410",
|
|
93321
93325
|
"NCBITaxon:9606": "42ed6323-f645-5fbe-bada-9581819cf689",
|