circuit-json-to-tscircuit 0.0.69 → 0.0.70
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/cli/main.js +1 -1
- package/package.json +1 -1
- package/tests/fixtures/create-ti-evm-roundtrip.ts +3 -3
- package/tests/ti-evms/__snapshots__/ti-drv8307evm-roundtrip-schematic-comparison.snap.svg +2 -2
- package/tests/ti-evms/__snapshots__/ti-lm251772evm-pd-roundtrip-schematic-comparison.snap.svg +2 -2
- package/tests/ti-evms/__snapshots__/ti-lm5155evm-fly-roundtrip-schematic-comparison.snap.svg +2 -2
- package/tests/ti-evms/__snapshots__/ti-lmg342x-bb-evm-roundtrip-schematic-comparison.snap.svg +2 -2
package/dist/cli/main.js
CHANGED
package/package.json
CHANGED
|
@@ -87,7 +87,7 @@ export async function createTiEvmRoundtrip({
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
function createComparisonSvg({
|
|
90
|
+
export function createComparisonSvg({
|
|
91
91
|
fixtureName,
|
|
92
92
|
kind,
|
|
93
93
|
renderedSvg,
|
|
@@ -100,8 +100,8 @@ function createComparisonSvg({
|
|
|
100
100
|
}): string {
|
|
101
101
|
return stackSvgsHorizontally([sourceSvg, renderedSvg], {
|
|
102
102
|
gap: 24,
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
// Schematic SVGs have no viewBox; normalizing only their canvas clips them.
|
|
104
|
+
normalizeSize: false,
|
|
105
105
|
rootAttributes: {
|
|
106
106
|
"aria-label": `${fixtureName} ${kind}: source Circuit JSON on left, generated tscircuit render on right`,
|
|
107
107
|
role: "img",
|