circuit-json-to-tscircuit 0.0.77 → 0.0.78
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 +9 -0
- package/tests/fixtures/ti-evms/README.md +5 -0
- package/tests/fixtures/ti-evms/lm251772evm-pd.circuit.json.gz +0 -0
- package/tests/fixtures/ti-evms/lm5155evm-fly.circuit.json.gz +0 -0
- package/tests/fixtures/ti-evms/lmg342x-bb-evm.circuit.json.gz +0 -0
- package/tests/ti-evms/__snapshots__/ti-lm251772evm-pd-roundtrip-pcb-comparison.snap.svg +2 -2
- package/tests/ti-evms/__snapshots__/ti-lm251772evm-pd-roundtrip.test.tsx.snap +2 -2
- package/tests/ti-evms/__snapshots__/ti-lm5155evm-fly-roundtrip-pcb-comparison.snap.svg +2 -2
- package/tests/ti-evms/__snapshots__/ti-lmg342x-bb-evm-roundtrip-pcb-comparison.snap.svg +2 -2
- package/tests/ti-evms/__snapshots__/ti-lmg342x-bb-evm-roundtrip.test.tsx.snap +1 -1
- package/tests/ti-evms/ti-lm5155evm-fly-roundtrip.test.tsx +1 -1
package/dist/cli/main.js
CHANGED
package/package.json
CHANGED
|
@@ -58,6 +58,15 @@ export async function createTiEvmRoundtrip({
|
|
|
58
58
|
sourceCircuitJson.filter((element) => element.type === "pcb_via").length,
|
|
59
59
|
)
|
|
60
60
|
|
|
61
|
+
for (const circuitJson of [sourceCircuitJson, renderedCircuitJson]) {
|
|
62
|
+
const unresolvedProjectStrings = circuitJson.filter(
|
|
63
|
+
(element) =>
|
|
64
|
+
element.type === "pcb_silkscreen_text" &&
|
|
65
|
+
/\.(?:PRJ_[A-Za-z0-9_]+|PCB_Rev)\b/u.test(element.text),
|
|
66
|
+
)
|
|
67
|
+
expect(unresolvedProjectStrings).toEqual([])
|
|
68
|
+
}
|
|
69
|
+
|
|
61
70
|
const sourcePcbSvg = convertCircuitJsonToPcbSvg(sourceCircuitJson, {
|
|
62
71
|
matchBoardAspectRatio: true,
|
|
63
72
|
})
|
|
@@ -5,6 +5,11 @@ Texas Instruments' published Altium design files. They were generated with
|
|
|
5
5
|
`tscircuit/altium-to-circuit-json` at commit
|
|
6
6
|
`9a578b5762e1dcca06e6d3f84f1d2950d0acc301`.
|
|
7
7
|
|
|
8
|
+
Project special strings in the LM251772EVM-PD, LM5155EVM-FLY, and
|
|
9
|
+
LMG342X-BB-EVM PCB fixtures were resolved from their matching `.PrjPcb` files using
|
|
10
|
+
`tscircuit/altium-to-circuit-json` commit
|
|
11
|
+
`c630289c2cae01c8a4d4dc9b896b33f8a3d90f34`.
|
|
12
|
+
|
|
8
13
|
The upstream files and checksums are maintained in that repository's
|
|
9
14
|
`scripts/references/reference-manifest.ts`. The gzip files only avoid committing
|
|
10
15
|
several megabytes of repetitive JSON; tests expand them before conversion.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|