circuit-to-svg 0.0.242 → 0.0.243
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/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3174,7 +3174,7 @@ function getSoftwareUsedString(circuitJson) {
|
|
|
3174
3174
|
var package_default = {
|
|
3175
3175
|
name: "circuit-to-svg",
|
|
3176
3176
|
type: "module",
|
|
3177
|
-
version: "0.0.
|
|
3177
|
+
version: "0.0.242",
|
|
3178
3178
|
description: "Convert Circuit JSON to SVG",
|
|
3179
3179
|
main: "dist/index.js",
|
|
3180
3180
|
files: [
|
|
@@ -3198,7 +3198,7 @@ var package_default = {
|
|
|
3198
3198
|
"bun-match-svg": "^0.0.12",
|
|
3199
3199
|
esbuild: "^0.20.2",
|
|
3200
3200
|
"performance-now": "^2.1.0",
|
|
3201
|
-
"circuit-json": "^0.0.
|
|
3201
|
+
"circuit-json": "^0.0.281",
|
|
3202
3202
|
react: "19.1.0",
|
|
3203
3203
|
"react-cosmos": "7.0.0",
|
|
3204
3204
|
"react-cosmos-plugin-vite": "7.0.0",
|
|
@@ -9577,8 +9577,9 @@ function prepareSimulationGraphs(graphs, circuitJson) {
|
|
|
9577
9577
|
const points = createGraphPoints(graph);
|
|
9578
9578
|
const paletteColor = palette.length > 0 ? palette[index % palette.length] : FALLBACK_LINE_COLOR;
|
|
9579
9579
|
const color = paletteColor ?? FALLBACK_LINE_COLOR;
|
|
9580
|
-
const
|
|
9581
|
-
const
|
|
9580
|
+
const probeId = graph.simulation_voltage_probe_id ?? graph.schematic_voltage_probe_id;
|
|
9581
|
+
const probeName = probeId ? probeIdToName.get(probeId) : void 0;
|
|
9582
|
+
const label = probeName ? `V(${probeName})` : graph.name || (probeId ? `Probe ${probeId}` : graph.simulation_transient_voltage_graph_id);
|
|
9582
9583
|
return { graph, points, color, label };
|
|
9583
9584
|
}).filter((entry) => entry.points.length > 0);
|
|
9584
9585
|
}
|