@abi-software/mapintegratedvuer 1.16.3-simulation.0 → 1.16.3-simulation.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/mapintegratedvuer",
3
- "version": "1.16.3-simulation.0",
3
+ "version": "1.16.3-simulation.1",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "serve": "vite --host --force",
@@ -57,7 +57,7 @@
57
57
  "@abi-software/map-utilities": "1.7.7",
58
58
  "@abi-software/plotvuer": "1.0.7",
59
59
  "@abi-software/scaffoldvuer": "1.13.1-beta.2",
60
- "@abi-software/simulationvuer": "3.0.12",
60
+ "@abi-software/simulationvuer": "3.0.13",
61
61
  "@abi-software/sparc-annotation": "0.3.2",
62
62
  "@abi-software/svg-sprite": "1.0.4",
63
63
  "@element-plus/icons-vue": "^2.3.1",
package/src/App.vue CHANGED
@@ -87,7 +87,6 @@ import {
87
87
  ElMessage as Message,
88
88
  } from 'element-plus'
89
89
  import 'element-plus/es/components/message/style/css'
90
- import { useSimulationPlotStore } from './stores/simulationPlotStore'
91
90
 
92
91
  const getAnnotationId = (api, withAnnotation) => {
93
92
  return new Promise((resolve) => {
@@ -174,7 +173,6 @@ export default {
174
173
  MapContent,
175
174
  },
176
175
  data: function () {
177
- const simulationPlotStore = useSimulationPlotStore()
178
176
  return {
179
177
  uuid: undefined,
180
178
  state: undefined,
@@ -187,7 +185,6 @@ export default {
187
185
  startingMap: 'AC',
188
186
  ElIconSetting: shallowRef(ElIconSetting),
189
187
  routerIsReady: false,
190
- simulationPlotStore,
191
188
  }
192
189
  },
193
190
  computed: {
@@ -509,10 +506,6 @@ export default {
509
506
  },
510
507
  mounted: function () {
511
508
  this.waitForRouter()
512
- this.simulationPlotStore.initListeners()
513
- },
514
- beforeUnmount: function () {
515
- this.simulationPlotStore.cleanupListeners()
516
509
  },
517
510
  }
518
511
  </script>
@@ -24,6 +24,7 @@ import SplitFlow from './SplitFlow.vue';
24
24
  import EventBus from './EventBus';
25
25
  import { mapStores } from 'pinia';
26
26
  import { useSettingsStore } from '../stores/settings';
27
+ import { useSimulationPlotStore } from '../stores/simulationPlotStore'
27
28
  import { useSplitFlowStore } from '../stores/splitFlow';
28
29
  import { defaultSpecies, findSpeciesKey } from './scripts/utilities.js';
29
30
  import { MapSvgSpriteColor} from '@abi-software/svg-sprite';
@@ -384,7 +385,7 @@ export default {
384
385
  },
385
386
  },
386
387
  computed: {
387
- ...mapStores(useSettingsStore, useSplitFlowStore),
388
+ ...mapStores(useSettingsStore, useSimulationPlotStore, useSplitFlowStore),
388
389
  stateToSet() {
389
390
  return this.state ? this.state : this.initialState;
390
391
  },
@@ -445,7 +446,11 @@ export default {
445
446
  this.settingsStore.updateUseHelpModeDialog(this.useHelpModeDialog);
446
447
  this.settingsStore.updateConnectivityInfoSidebar(this.connectivityInfoSidebar);
447
448
  this.settingsStore.updateAnnotationSidebar(this.annotationSidebar);
448
- }
449
+ this.simulationPlotStore.initListeners();
450
+ },
451
+ beforeUnmount: function () {
452
+ this.simulationPlotStore.cleanupListeners();
453
+ },
449
454
  }
450
455
 
451
456
  </script>
@@ -62,6 +62,7 @@ export default {
62
62
  mounted: function () {
63
63
  EventBus.on('simulation-data-request', this.handleDataRequest)
64
64
  EventBus.on('plot-window-closed', this.handleWindowClosed)
65
+
65
66
  EventBus.emit('simulation-ready', {
66
67
  resourceId: this.id,
67
68
  ready: true,
@@ -4,7 +4,7 @@ import EventBus from '../components/EventBus'
4
4
 
5
5
  const BASE_Z_INDEX = 100
6
6
 
7
- export const useSimulationPlotStore = defineStore('simulationPlots', () => {
7
+ export const useSimulationPlotStore = defineStore('simulationPlot', () => {
8
8
  const windows = ref([])
9
9
  const zStack = ref([])
10
10
  const simulationEntries = ref({})