@abi-software/simulationvuer 3.0.13 → 3.0.15

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/simulationvuer",
3
- "version": "3.0.13",
3
+ "version": "3.0.15",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vite serve --host --force",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@abi-software/plotvuer": "1.0.7",
24
- "@opencor/opencor": "^0.20260311.0",
24
+ "@opencor/opencor": "^0.20260318.1",
25
25
  "element-plus": "2.8.4",
26
26
  "jsonschema": "^1.4.0",
27
27
  "mathjs": "^15.1.0",
@@ -419,8 +419,9 @@ export default {
419
419
 
420
420
  this.activeSubscriptions.forEach((activeSubscription) => {
421
421
  const modelParameter = `${activeSubscription.component}/${activeSubscription.variable}`;
422
+ const simData = simulationData[modelParameter];
422
423
 
423
- if (simulationData[modelParameter] == null) {
424
+ if (simData == null) {
424
425
  console.warn(
425
426
  `SimulationVuer: onSimulationData: no data for ${modelParameter}.`,
426
427
  );
@@ -429,8 +430,8 @@ export default {
429
430
  }
430
431
 
431
432
  const data = {
432
- y: simulationData[modelParameter],
433
- title: `${activeSubscription.component}.${activeSubscription.variable}`,
433
+ y: simData.data,
434
+ title: `${activeSubscription.component}.${activeSubscription.variable} (${simData.unit})`,
434
435
  };
435
436
 
436
437
  if (activeSubscription.withVOI) {