@opencor/opencor 0.20251204.4 → 0.20251205.0

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.
@@ -7482,17 +7482,17 @@ class Jv extends hc {
7482
7482
  computedConstant(e) {
7483
7483
  return pe() ? ue.sedInstanceTaskComputedConstant(this._cppInstanceId, this._index, e) : this._wasmSedInstanceTask.computedConstantAsArray(e);
7484
7484
  }
7485
- algebraicCount() {
7486
- return pe() ? ue.sedInstanceTaskAlgebraicCount(this._cppInstanceId, this._index) : this._wasmSedInstanceTask.algebraicCount;
7485
+ algebraicVariableCount() {
7486
+ return pe() ? ue.sedInstanceTaskAlgebraicVariableCount(this._cppInstanceId, this._index) : this._wasmSedInstanceTask.algebraicVariableCount;
7487
7487
  }
7488
- algebraicName(e) {
7489
- return pe() ? ue.sedInstanceTaskAlgebraicName(this._cppInstanceId, this._index, e) : this._wasmSedInstanceTask.algebraicName(e);
7488
+ algebraicVariableName(e) {
7489
+ return pe() ? ue.sedInstanceTaskAlgebraicVariableName(this._cppInstanceId, this._index, e) : this._wasmSedInstanceTask.algebraicVariableName(e);
7490
7490
  }
7491
- algebraicUnit(e) {
7492
- return pe() ? ue.sedInstanceTaskAlgebraicUnit(this._cppInstanceId, this._index, e) : this._wasmSedInstanceTask.algebraicUnit(e);
7491
+ algebraicVariableUnit(e) {
7492
+ return pe() ? ue.sedInstanceTaskAlgebraicVariableUnit(this._cppInstanceId, this._index, e) : this._wasmSedInstanceTask.algebraicVariableUnit(e);
7493
7493
  }
7494
- algebraic(e) {
7495
- return pe() ? ue.sedInstanceTaskAlgebraic(this._cppInstanceId, this._index, e) : this._wasmSedInstanceTask.algebraicAsArray(e);
7494
+ algebraicVariable(e) {
7495
+ return pe() ? ue.sedInstanceTaskAlgebraicVariable(this._cppInstanceId, this._index, e) : this._wasmSedInstanceTask.algebraicVariableAsArray(e);
7496
7496
  }
7497
7497
  }
7498
7498
  var Jt = {}, at = {}, cd;
@@ -8676,7 +8676,7 @@ async function oy() {
8676
8676
  console.error("Failed to load libOpenCOR's WebAssembly module:", n);
8677
8677
  }
8678
8678
  }
8679
- const iy = "0.20251204.4", ay = { class: "space-y-7" }, sy = { class: "text-center" }, ly = { class: "text-3xl font-bold" }, cy = {
8679
+ const iy = "0.20251205.0", ay = { class: "space-y-7" }, sy = { class: "text-center" }, ly = { class: "text-3xl font-bold" }, cy = {
8680
8680
  key: 0,
8681
8681
  class: "text-xl italic font-bold"
8682
8682
  }, uy = { class: "text-sm italic" }, dy = { class: "space-y-2" }, py = /* @__PURE__ */ E("a", {
@@ -16022,7 +16022,7 @@ var Id = (function() {
16022
16022
  formats: this.formats,
16023
16023
  placeholder: this.placeholder
16024
16024
  };
16025
- Id ? (this.quill = new Id(this.$refs.editorElement, t), this.initQuill(), this.handleLoad()) : import("./quill-Big2jb0k.js").then(function(r) {
16025
+ Id ? (this.quill = new Id(this.$refs.editorElement, t), this.initQuill(), this.handleLoad()) : import("./quill-c3wy0V4g.js").then(function(r) {
16026
16026
  r && df(e.$refs.editorElement) && (r.default ? e.quill = new r.default(e.$refs.editorElement, t) : e.quill = new r(e.$refs.editorElement, t), e.initQuill());
16027
16027
  }).then(function() {
16028
16028
  e.handleLoad();
@@ -16967,12 +16967,12 @@ const Xk = {
16967
16967
  () => [e.plots, i.useLightMode()],
16968
16968
  () => {
16969
16969
  A.nextTick(() => {
16970
- const a = e.plots.length === 1 ? e.plots[0]?.x.axisTitle : "", s = e.plots.length === 1 ? e.plots[0]?.y.axisTitle : "";
16970
+ const a = e.plots.length === 1 ? e.plots[0]?.x.axisTitle : "", s = e.plots.length === 1 ? e.plots[0]?.y.axisTitle : "", l = 10;
16971
16971
  du.react(
16972
16972
  t.value,
16973
- e.plots.map((l) => ({
16974
- x: l.x.data,
16975
- y: l.y.data
16973
+ e.plots.map((c) => ({
16974
+ x: c.x.data,
16975
+ y: c.y.data
16976
16976
  // type: 'scattergl'
16977
16977
  //---OPENCOR---
16978
16978
  // Ideally, we would render using WebGL, but... Web browsers impose a limit on the number of active WebGL
@@ -16993,7 +16993,7 @@ const Xk = {
16993
16993
  margin: {
16994
16994
  t: 0,
16995
16995
  l: 0,
16996
- b: 0,
16996
+ b: 35,
16997
16997
  r: 0,
16998
16998
  pad: 0
16999
16999
  },
@@ -17002,6 +17002,9 @@ const Xk = {
17002
17002
  tickangle: 0,
17003
17003
  automargin: !0,
17004
17004
  title: {
17005
+ font: {
17006
+ size: l
17007
+ },
17005
17008
  text: a,
17006
17009
  standoff: 8
17007
17010
  }
@@ -17010,6 +17013,9 @@ const Xk = {
17010
17013
  tickangle: 0,
17011
17014
  automargin: !0,
17012
17015
  title: {
17016
+ font: {
17017
+ size: l
17018
+ },
17013
17019
  text: s,
17014
17020
  standoff: 8
17015
17021
  }
@@ -27298,8 +27304,8 @@ function qs(n, e) {
27298
27304
  type: 5,
27299
27305
  index: t
27300
27306
  };
27301
- for (let t = 0; t < n.algebraicCount(); t++)
27302
- if (e === n.algebraicName(t))
27307
+ for (let t = 0; t < n.algebraicVariableCount(); t++)
27308
+ if (e === n.algebraicVariableName(t))
27303
27309
  return {
27304
27310
  type: 6,
27305
27311
  index: t
@@ -27322,7 +27328,7 @@ function Qs(n, e) {
27322
27328
  case 5:
27323
27329
  return n.computedConstant(e.index);
27324
27330
  case 6:
27325
- return n.algebraic(e.index);
27331
+ return n.algebraicVariable(e.index);
27326
27332
  default:
27327
27333
  return [];
27328
27334
  }
@@ -27330,7 +27336,7 @@ function Qs(n, e) {
27330
27336
  const X2 = { key: 1 }, eT = {
27331
27337
  key: 1,
27332
27338
  class: "flex grow"
27333
- }, tT = { class: "ml-4 mr-4 mb-4" }, nT = { class: "flex flex-col grow gap-4" }, rT = /* @__PURE__ */ it({
27339
+ }, tT = { class: "ml-4 mr-4 mb-4" }, nT = { class: "flex flex-col grow gap-2" }, rT = /* @__PURE__ */ it({
27334
27340
  __name: "SimulationExperimentView",
27335
27341
  props: {
27336
27342
  file: {},
@@ -27357,8 +27363,8 @@ const X2 = { key: 1 }, eT = {
27357
27363
  ge(F.constantName(de));
27358
27364
  for (let de = 0; de < F.computedConstantCount(); de++)
27359
27365
  ge(F.computedConstantName(de));
27360
- for (let de = 0; de < F.algebraicCount(); de++)
27361
- ge(F.algebraicName(de));
27366
+ for (let de = 0; de < F.algebraicVariableCount(); de++)
27367
+ ge(F.algebraicVariableName(de));
27362
27368
  }
27363
27369
  const c = e.file.document(), p = c.simulation(0), u = c.instantiate(), d = u.task(0), f = A.ref([]), m = A.ref(d.voiName()), h = A.ref(d.stateName(0)), y = A.ref([
27364
27370
  {
@@ -27693,7 +27699,7 @@ const X2 = { key: 1 }, eT = {
27693
27699
  ]),
27694
27700
  (g(!0), S(se, null, Me($.uiJson.output.plots, (Be, pt) => Se((g(), R(mt, {
27695
27701
  key: `plot_${pt}`,
27696
- style: Kn({ height: `calc((100% - ${$.uiJson.output.plots.length - 1}rem) / ${$.uiJson.output.plots.length})` }),
27702
+ style: Kn({ height: `calc((100% - 0.5 * ${$.uiJson.output.plots.length - 1}rem) / ${$.uiJson.output.plots.length})` }),
27697
27703
  plots: Q(J)[pt] || [{ x: { data: [] }, y: { data: [] } }]
27698
27704
  }, null, 8, ["style", "plots"])), [
27699
27705
  [bt, Q(he).length === 0]
@@ -27707,7 +27713,7 @@ const X2 = { key: 1 }, eT = {
27707
27713
  ], 64);
27708
27714
  };
27709
27715
  }
27710
- }), oT = /* @__PURE__ */ ho(rT, [["__scopeId", "data-v-8bb16a4f"]]), iT = {
27716
+ }), oT = /* @__PURE__ */ ho(rT, [["__scopeId", "data-v-3031820d"]]), iT = {
27711
27717
  key: 0,
27712
27718
  class: "h-full"
27713
27719
  }, aT = ["value"], sT = {