kicad-to-circuit-json 0.0.154 → 0.0.155
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 +4 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -6123,6 +6123,7 @@ var CollectLibrarySymbolsStage = class extends ConverterStage {
|
|
|
6123
6123
|
source_component_id: sourceComponent.source_component_id,
|
|
6124
6124
|
center: { x: cjPos.x, y: cjPos.y },
|
|
6125
6125
|
size: { width: 1, height: 1 },
|
|
6126
|
+
...symbol.dnp ? { do_not_place: true } : {},
|
|
6126
6127
|
is_box_with_pins: !libSymbol,
|
|
6127
6128
|
...!libSymbol && symbolName ? { symbol_name: symbolName } : {},
|
|
6128
6129
|
symbol_display_value: value || void 0
|
|
@@ -6318,12 +6319,15 @@ var CollectSchematicAnnotationsStage = class extends ConverterStage {
|
|
|
6318
6319
|
const text = decodeKicadText(label.value);
|
|
6319
6320
|
const sourceNetId = this.getOrCreateSourceNetId(text);
|
|
6320
6321
|
const position = applyToPoint13(this.ctx.k2cMatSch, label.at);
|
|
6322
|
+
const height = label.effects?.font?.size?.height ?? 0;
|
|
6323
|
+
const fontSize = height * 4 / 3 * Math.abs(this.ctx.k2cMatSch.a);
|
|
6321
6324
|
this.ctx.db.schematic_net_label.insert({
|
|
6322
6325
|
source_net_id: sourceNetId,
|
|
6323
6326
|
center: position,
|
|
6324
6327
|
anchor_position: position,
|
|
6325
6328
|
anchor_side: angleToAnchorSide(label.at.angle),
|
|
6326
6329
|
text,
|
|
6330
|
+
...fontSize > 0 ? { font_size: fontSize } : {},
|
|
6327
6331
|
is_movable: false
|
|
6328
6332
|
});
|
|
6329
6333
|
this.incrementLabelCount();
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "kicad-to-circuit-json",
|
|
3
3
|
"main": "dist/index.js",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.155",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/tscircuit/kicad-to-circuit-json"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/react-dom": "^19.2.3",
|
|
39
39
|
"@vitejs/plugin-react": "^6.0.1",
|
|
40
40
|
"bun-match-svg": "^0.0.14",
|
|
41
|
-
"circuit-json": "
|
|
41
|
+
"circuit-json": "0.0.564",
|
|
42
42
|
"circuit-json-to-connectivity-map": "^0.0.25",
|
|
43
43
|
"circuit-to-canvas": "^0.0.126",
|
|
44
44
|
"kicadts": "^0.0.64",
|