altium-to-circuit-json 0.0.96 → 0.0.97
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 +3 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1919,10 +1919,8 @@ function convertSchematicRecord({
|
|
|
1919
1919
|
const kind = record.recordKind;
|
|
1920
1920
|
const scale5 = context.scale;
|
|
1921
1921
|
const color = altiumColorToCss(record.getCaseInsensitive("COLOR"), "#1f2937");
|
|
1922
|
-
const
|
|
1923
|
-
|
|
1924
|
-
0.05
|
|
1925
|
-
);
|
|
1922
|
+
const widthEnum = record.getNumber("LINEWIDTH") ?? 0;
|
|
1923
|
+
const strokeWidth = scaleLength([1, 1, 3, 5][widthEnum] ?? 1, scale5);
|
|
1926
1924
|
if (record instanceof AltiumSchImageRecord) {
|
|
1927
1925
|
return renderSchematicImageRecord({ context, index, record });
|
|
1928
1926
|
}
|
|
@@ -3439,10 +3437,7 @@ function convertOwnedComponentRecords({
|
|
|
3439
3437
|
return elements.map((element) => {
|
|
3440
3438
|
const preparedElement = record instanceof AltiumSchPinRecord && element.type === "schematic_line" ? {
|
|
3441
3439
|
...element,
|
|
3442
|
-
stroke_width:
|
|
3443
|
-
scaleLength(1, renderingContext.scale),
|
|
3444
|
-
0.05
|
|
3445
|
-
)
|
|
3440
|
+
stroke_width: scaleLength(1, renderingContext.scale)
|
|
3446
3441
|
} : element;
|
|
3447
3442
|
return {
|
|
3448
3443
|
...preparedElement,
|