@abi-software/mapintegratedvuer 1.3.4-beta.7 → 1.3.4-beta.8

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.7",
3
+ "version": "1.3.4-beta.8",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "serve": "vite --host --force",
@@ -54,7 +54,7 @@
54
54
  "@abi-software/map-side-bar": "^2.3.2-beta.4",
55
55
  "@abi-software/map-utilities": "^1.0.1-beta.2",
56
56
  "@abi-software/plotvuer": "1.0.0",
57
- "@abi-software/scaffoldvuer": "^1.3.3-beta.0",
57
+ "@abi-software/scaffoldvuer": "^1.3.3-beta.1",
58
58
  "@abi-software/simulationvuer": "1.0.0",
59
59
  "@abi-software/svg-sprite": "1.0.0",
60
60
  "@element-plus/icons-vue": "^2.3.1",
package/src/App.vue CHANGED
@@ -168,9 +168,9 @@ export default {
168
168
  setSearch: function() {
169
169
  this.$refs.map.openSearch([], "10.26275/1uno-tynt");
170
170
  },
171
- mapIsLoaded: function() {
172
- console.log("map is loaded")
173
- // this.changeViewingMode('Annotation')
171
+ mapIsLoaded: function(map) {
172
+ console.log("map is loaded", map)
173
+ map.changeViewingMode('Annotation')
174
174
  },
175
175
  viewerIsReady: function() {
176
176
  console.log("viewer is ready")
@@ -280,9 +280,6 @@ export default {
280
280
  'category': this.startingMap
281
281
  });
282
282
  },
283
- changeViewingMode: function(modeName) {
284
- EventBus.emit("changeViewingMode", modeName);
285
- },
286
283
  },
287
284
  computed: {
288
285
  ...mapStores(useSettingsStore, useSplitFlowStore),
@@ -329,11 +326,11 @@ export default {
329
326
  if (!this.state) {
330
327
  this.initialState = await initialState(this.startingMap, this.options.sparcApi);
331
328
  }
332
- EventBus.on("mapLoaded", () => {
329
+ EventBus.on("mapLoaded", (map) => {
333
330
  /**
334
331
  * This event emit when the map is loaded.
335
332
  */
336
- this.$emit("mapLoaded");
333
+ this.$emit("mapLoaded", map);
337
334
  });
338
335
  this.isReady = true;
339
336
  this.settingsStore.updateUseHelpModeDialog(this.useHelpModeDialog);
@@ -185,9 +185,6 @@ export default {
185
185
  });
186
186
  }
187
187
  });
188
- EventBus.on("changeViewingMode", (modeName) => {
189
- this.changeViewingMode(modeName);
190
- });
191
188
  },
192
189
  };
193
190
  </script>
@@ -459,11 +459,6 @@ export default {
459
459
  this.mapHoverHighlight(this.$refs.multiflatmap.getCurrentFlatmap().mapImp);
460
460
  }
461
461
  });
462
- EventBus.on("changeViewingMode", (modeName) => {
463
- if (this.flatmapReady) {
464
- this.changeViewingMode(modeName);
465
- }
466
- });
467
462
  },
468
463
  };
469
464
  </script>
@@ -221,11 +221,6 @@ export default {
221
221
  this.mapHoverHighlight(this.$refs.scaffold);
222
222
  }
223
223
  });
224
- EventBus.on("changeViewingMode", (modeName) => {
225
- if (this.scaffoldLoaded) {
226
- this.changeViewingMode(modeName);
227
- }
228
- });
229
224
  },
230
225
  };
231
226
  </script>
@@ -8,7 +8,7 @@ import { defineStore } from 'pinia'
8
8
  export const useMainStore = defineStore('main', {
9
9
  state: () => ({
10
10
  userProfile: {
11
- token: ''
11
+ token: 'eyJraWQiOiJ1UUMzRDl1RGpTTlhoNzZJRW1ldExcL05uOGRMazFyaU1LWSt5T2ZTUytHaz0iLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjNDhmZDkyOS0wYjIwLTQxNjEtOTEyZi03NTBmMGZiY2VkNWQiLCJ0b2tlbl91c2UiOiJhY2Nlc3MiLCJzY29wZSI6Im9wZW5pZCIsImF1dGhfdGltZSI6MTcyMzU4NDMwMywiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfRlZMaEo3Q1FBIiwiZXhwIjoxNzIzNTg3OTAzLCJpYXQiOjE3MjM1ODQzMDMsInZlcnNpb24iOjIsImp0aSI6Ijc5ZjIyODVhLTIwNjYtNGE3My1iYWNhLWI1ZWU5MmM3ZmEyZCIsImNsaWVudF9pZCI6IjcwM2xtNWQ4b2RjY3UyMXBhZ2NmamtlYWVhIiwidXNlcm5hbWUiOiJjNDhmZDkyOS0wYjIwLTQxNjEtOTEyZi03NTBmMGZiY2VkNWQifQ.kkkDHoHfruqyuWxa8MyVCtfgO9oKRjilrNWa2tbHZPwhkGuolLPfGOETVQH2qqru0cvXTCvB7Y69YNP0vhLis2ikAL5p0qhC5x4Wr4Igii48LqglKtozql2Oyn5dgxC4945sb9-lnhH4Ao-YB8SRL0XhM5wMIB0nwdyaEkth8ain_YGXknBmrSnyaspHP3zmXpPm5WJDJdfkJ2BWf_mZx-wMfOjBlVVf1eMHuVd6rw89mZnBW7fM1GPaI6auYxbYD5Vqj3JOcCr6HU6dImP6bOaL9Rusjd7u_lE10nSVPPO1nMGhFX9npqL3OHiDpAT_5c-5I1IN2IRQ-Dm3rcuLhg'
12
12
  },
13
13
  }),
14
14
  getters: {