@abi-software/mapintegratedvuer 1.24.0 → 1.24.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/{ConnectivityGraph-CCxk8vcE.js → ConnectivityGraph-Cye6QvZR.js} +1 -1
- package/dist/{ContentMixin-Db8nqZax.js → ContentMixin-SBI5HTPO.js} +3 -7
- package/dist/{Flatmap-CqUzOkdl.js → Flatmap-TcOqOyD5.js} +1 -1
- package/dist/{Iframe-I-xdZ2FP.js → Iframe-D-Eq3G6T.js} +1 -1
- package/dist/{MultiFlatmap-11L97ycJ.js → MultiFlatmap-C122IUmB.js} +1 -1
- package/dist/{Plot-Bd9RqyVD.js → Plot-DTv-vd63.js} +1 -1
- package/dist/{Scaffold-CySWXQxI.js → Scaffold-B2g3O1xF.js} +1 -1
- package/dist/{Simulation-ChUbGudZ.js → Simulation-ClMZ5HHt.js} +1 -1
- package/dist/mapintegratedvuer.js +1 -1
- package/dist/mapintegratedvuer.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/mixins/ContentMixin.js +9 -11
package/package.json
CHANGED
|
@@ -705,8 +705,10 @@ export default {
|
|
|
705
705
|
let validNerves = [];
|
|
706
706
|
|
|
707
707
|
if (!this.connectivityKnowledge[sckanVersion]) {
|
|
708
|
-
this.flatmapQueries
|
|
709
|
-
|
|
708
|
+
if (!this.flatmapQueries) {
|
|
709
|
+
this.flatmapQueries = markRaw(new FlatmapQueries());
|
|
710
|
+
this.flatmapQueries.initialise(this.flatmapAPI);
|
|
711
|
+
}
|
|
710
712
|
const knowledge = await loadAndStoreKnowledge(flatmapImp, this.flatmapQueries);
|
|
711
713
|
this.connectivityKnowledge[sckanVersion] = knowledge
|
|
712
714
|
.filter((item) => item.connectivity?.length)
|
|
@@ -783,10 +785,8 @@ export default {
|
|
|
783
785
|
EventBus.emit('species-layout-connectivity-update');
|
|
784
786
|
},
|
|
785
787
|
knowledgeTooltipQuery: async function (data) {
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
});
|
|
789
|
-
let tooltip = await this.flatmapQueries.createTooltipData(this.flatmapService.mapImp, {
|
|
788
|
+
// queryTooltipData does not share state between queries, so it can run in parallel
|
|
789
|
+
let tooltip = await this.flatmapQueries.queryTooltipData(this.flatmapService.mapImp, {
|
|
790
790
|
resource: [data.id],
|
|
791
791
|
label: data.label,
|
|
792
792
|
provenanceTaxonomy: data.taxons,
|
|
@@ -806,12 +806,10 @@ export default {
|
|
|
806
806
|
);
|
|
807
807
|
EventBus.emit('connectivity-info-open', this.tooltipEntry);
|
|
808
808
|
|
|
809
|
-
let prom1 = [];
|
|
810
809
|
// While having placeholders displayed, get details for all paths and then replace.
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
this.tooltipEntry = await Promise.all(prom1);
|
|
810
|
+
this.tooltipEntry = await Promise.all(
|
|
811
|
+
payload.data.map((data) => this.knowledgeTooltipQuery(data)),
|
|
812
|
+
);
|
|
815
813
|
const featureIds = this.tooltipEntry.map((tooltip) => tooltip.featureId[0]);
|
|
816
814
|
if (featureIds.length > 0) {
|
|
817
815
|
EventBus.emit('connectivity-info-open', this.tooltipEntry);
|