altium-to-circuit-json 0.0.85 → 0.0.86
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 +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3305,12 +3305,19 @@ function convertOwnedComponentRecords({
|
|
|
3305
3305
|
},
|
|
3306
3306
|
renderingContext
|
|
3307
3307
|
);
|
|
3308
|
-
return elements.map(
|
|
3309
|
-
|
|
3308
|
+
return elements.map((element) => {
|
|
3309
|
+
const preparedElement = record instanceof AltiumSchPinRecord && element.type === "schematic_line" ? {
|
|
3310
3310
|
...element,
|
|
3311
|
+
stroke_width: Math.max(
|
|
3312
|
+
scaleLength(1, renderingContext.scale),
|
|
3313
|
+
0.05
|
|
3314
|
+
)
|
|
3315
|
+
} : element;
|
|
3316
|
+
return preparedElement.type === "schematic_text" ? preparedElement : {
|
|
3317
|
+
...preparedElement,
|
|
3311
3318
|
schematic_component_id: schematicComponentId
|
|
3312
|
-
}
|
|
3313
|
-
);
|
|
3319
|
+
};
|
|
3320
|
+
});
|
|
3314
3321
|
});
|
|
3315
3322
|
}
|
|
3316
3323
|
|