@abi-software/mapintegratedvuer 1.3.4-beta.4 → 1.3.4-beta.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/mapintegratedvuer",
3
- "version": "1.3.4-beta.4",
3
+ "version": "1.3.4-beta.6",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "serve": "vite --host --force",
package/src/App.vue CHANGED
@@ -41,7 +41,8 @@
41
41
  :useHelpModeDialog="true"
42
42
  :connectivityInfoSidebar="true"
43
43
  @updateShareLinkRequested="updateUUID"
44
- @isReady="mapIsReady"
44
+ @isReady="viewerIsReady"
45
+ @isLoaded="mapIsLoaded"
45
46
  />
46
47
  </div>
47
48
  </div>
@@ -167,9 +168,12 @@ export default {
167
168
  setSearch: function() {
168
169
  this.$refs.map.openSearch([], "10.26275/1uno-tynt");
169
170
  },
170
- mapIsReady: function() {
171
- console.log("map is ready")
172
- this.changeViewingMode('Annotation')
171
+ mapIsLoaded: function() {
172
+ console.log("map is loaded")
173
+ // this.changeViewingMode('Annotation')
174
+ },
175
+ viewerIsReady: function() {
176
+ console.log("viewer is ready")
173
177
  },
174
178
  parseQuery: function () {
175
179
  this.$router.isReady().then(() => {
@@ -266,6 +266,11 @@ export default {
266
266
  */
267
267
  flowMounted: function () {
268
268
  this._flowMounted = true;
269
+ /**
270
+ * This event emit when the component is mounted.
271
+ */
272
+ this.$emit("isReady");
273
+
269
274
  // GA Tagging
270
275
  // Page view tracking for maps' buttons click on portal
271
276
  // category: AC | FC | WholeBody
@@ -324,11 +329,11 @@ export default {
324
329
  if (!this.state) {
325
330
  this.initialState = await initialState(this.startingMap, this.options.sparcApi);
326
331
  }
327
- EventBus.on('mapReady', () => {
332
+ EventBus.on('isLoaded', () => {
328
333
  /**
329
- * This event emit when the component is mounted and map is ready.
334
+ * This event emit when the map is loaded.
330
335
  */
331
- if (this._flowMounted) this.$emit("isReady");
336
+ this.$emit('isLoaded');
332
337
  });
333
338
  this.isReady = true;
334
339
  this.settingsStore.updateUseHelpModeDialog(this.useHelpModeDialog);
@@ -103,7 +103,7 @@ export default {
103
103
  if (this.entry.resource !== "FunctionalConnectivity"){
104
104
  this.flatmapReadyForMarkerUpdates(flatmap);
105
105
  }
106
- EventBus.emit("mapReady", flatmap);
106
+ EventBus.emit("isLoaded", flatmap);
107
107
  },
108
108
  onPathwaySelectionChanged: function (data) {
109
109
  const { label, property, checked, selectionsTitle } = data;
@@ -329,7 +329,7 @@ export default {
329
329
  const flatmapImp = flatmap.mapImp;
330
330
  this.flatmapMarkerUpdate(flatmapImp);
331
331
  this.updateProvCard();
332
- EventBus.emit("mapReady", flatmap);
332
+ EventBus.emit("isLoaded", flatmap);
333
333
  }
334
334
  },
335
335
  getFlatmapImp: function () {
@@ -139,7 +139,7 @@ export default {
139
139
  this.$refs.scaffold.toggleSyncControl(this.splitFlowStore.globalCallback, rotation);
140
140
  if (this.splitFlowStore.syncMode) this.$refs.scaffold.fitWindow();
141
141
  }
142
- EventBus.emit("mapReady", this.$refs.scaffold);
142
+ EventBus.emit("isLoaded", this.$refs.scaffold);
143
143
  },
144
144
  requestSynchronisedEvent: function (flag) {
145
145
  if (this.scaffoldLoaded) {
@@ -208,7 +208,7 @@ export const useSplitFlowStore = defineStore('splitFlow', {
208
208
  if (this._controller) this._controller.abort();
209
209
  this._controller = new AbortController();
210
210
  let signal = this._controller.signal;
211
- console.log("getAvailableTerms")
211
+ // console.log("getAvailableTerms")
212
212
  fetch(`${apiLocation}get-organ-curies`, {
213
213
  signal,
214
214
  })