circuit-json-to-tscircuit 0.0.79 → 0.0.80
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/{chunk-43HJS53G.js → chunk-FAZLXH7M.js} +2 -1
- package/dist/cli/main.js +2 -2
- package/dist/lib/index.js +1 -1
- package/lib/generate-board-schematic-tsx/convert-box-components.ts +3 -1
- package/package.json +1 -1
- package/tests/ti-evms/__snapshots__/ti-drv8307evm-roundtrip-schematic-comparison.snap.svg +2 -2
- package/tests/ti-evms/__snapshots__/ti-drv8307evm-roundtrip.test.tsx.snap +134 -134
- package/tests/ti-evms/__snapshots__/ti-lm251772evm-pd-roundtrip-schematic-comparison.snap.svg +2 -2
- package/tests/ti-evms/__snapshots__/ti-lm251772evm-pd-roundtrip.test.tsx.snap +45 -45
- 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/tests/ti-evms/__snapshots__/ti-lmg342x-bb-evm-roundtrip.test.tsx.snap +28 -28
- package/tests/ti-evms/ti-lm251772evm-pd-roundtrip.test.tsx +3 -1
- package/tests/ti-evms/ti-lm5155evm-fly-roundtrip.test.tsx +13 -13
|
@@ -767,6 +767,7 @@ var convertBoxComponent = ({
|
|
|
767
767
|
schematicComponent,
|
|
768
768
|
schematicPort
|
|
769
769
|
});
|
|
770
|
+
const pinLabelFontSize = schematicPort.display_pin_label_font_size ?? DEFAULT_PIN_TEXT_FONT_SIZE;
|
|
770
771
|
if (displayPinLabel)
|
|
771
772
|
primitives.push(
|
|
772
773
|
formatElement("schematictext", {
|
|
@@ -774,7 +775,7 @@ var convertBoxComponent = ({
|
|
|
774
775
|
schX: labelPosition.x,
|
|
775
776
|
schY: labelPosition.y,
|
|
776
777
|
anchor,
|
|
777
|
-
fontSize:
|
|
778
|
+
fontSize: pinLabelFontSize,
|
|
778
779
|
color: DEFAULT_PIN_TEXT_COLOR,
|
|
779
780
|
schRotation: rotation || void 0
|
|
780
781
|
})
|
package/dist/cli/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
convertCircuitJsonToTscircuit
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-FAZLXH7M.js";
|
|
5
5
|
|
|
6
6
|
// cli/main.ts
|
|
7
7
|
import { Command } from "commander";
|
|
@@ -16,7 +16,7 @@ var package_default = {
|
|
|
16
16
|
"./cli": "./dist/cli/main.js"
|
|
17
17
|
},
|
|
18
18
|
type: "module",
|
|
19
|
-
version: "0.0.
|
|
19
|
+
version: "0.0.79",
|
|
20
20
|
repository: {
|
|
21
21
|
type: "git",
|
|
22
22
|
url: "https://github.com/tscircuit/circuit-json-to-tscircuit.git"
|
package/dist/lib/index.js
CHANGED
|
@@ -106,6 +106,8 @@ export const convertBoxComponent = ({
|
|
|
106
106
|
schematicComponent,
|
|
107
107
|
schematicPort,
|
|
108
108
|
})
|
|
109
|
+
const pinLabelFontSize =
|
|
110
|
+
schematicPort.display_pin_label_font_size ?? DEFAULT_PIN_TEXT_FONT_SIZE
|
|
109
111
|
if (displayPinLabel)
|
|
110
112
|
primitives.push(
|
|
111
113
|
formatElement("schematictext", {
|
|
@@ -113,7 +115,7 @@ export const convertBoxComponent = ({
|
|
|
113
115
|
schX: labelPosition.x,
|
|
114
116
|
schY: labelPosition.y,
|
|
115
117
|
anchor,
|
|
116
|
-
fontSize:
|
|
118
|
+
fontSize: pinLabelFontSize,
|
|
117
119
|
color: DEFAULT_PIN_TEXT_COLOR,
|
|
118
120
|
schRotation: rotation || undefined,
|
|
119
121
|
}),
|