altium-to-circuit-json 0.0.53 → 0.0.55

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/README.md CHANGED
@@ -129,7 +129,7 @@ boards. Each is downloaded directly from its checksum-pinned TI CAD/CAE archive
129
129
  and has an Altium-to-Circuit-JSON side-by-side SVG repro.
130
130
 
131
131
  The TI SPRCAL9 / TMDS62LEVM Rev. B regression corpus includes all 57
132
- schematic sheets and a top-copper PCB comparison. Its large downloaded source
132
+ schematic sheets and a full top-side PCB comparison. Its large downloaded source
133
133
  files are checksum-verified and cached in CI. To also write the complete
134
134
  converted Circuit JSON artifacts locally, run:
135
135
 
package/dist/index.js CHANGED
@@ -47,6 +47,21 @@ function isOverlayLayer(layer) {
47
47
  return normalizedLayer === "TOPOVERLAY" || normalizedLayer === "BOTTOMOVERLAY";
48
48
  }
49
49
 
50
+ // lib/pcb/layers/mapCourtyardLayer.ts
51
+ function mapCourtyardLayer(layer) {
52
+ return normalizeLayer(layer) === "MECHANICAL16" ? "bottom" : "top";
53
+ }
54
+
55
+ // lib/pcb/layers/mapMechanicalLayer.ts
56
+ function mapMechanicalLayer(layer) {
57
+ return normalizeLayer(layer).includes("BOTTOM") ? "bottom" : "top";
58
+ }
59
+
60
+ // lib/pcb/layers/mapOverlayLayer.ts
61
+ function mapOverlayLayer(layer) {
62
+ return normalizeLayer(layer) === "BOTTOMOVERLAY" ? "bottom" : "top";
63
+ }
64
+
50
65
  // lib/pcb/layers/getCopperLayerIdentity.ts
51
66
  function getCopperLayerIdentity(layer) {
52
67
  const normalized = normalizeLayer(layer);
@@ -206,21 +221,6 @@ var PcbCopperLayerMap = class {
206
221
  }
207
222
  };
208
223
 
209
- // lib/pcb/layers/mapCourtyardLayer.ts
210
- function mapCourtyardLayer(layer) {
211
- return normalizeLayer(layer) === "MECHANICAL16" ? "bottom" : "top";
212
- }
213
-
214
- // lib/pcb/layers/mapMechanicalLayer.ts
215
- function mapMechanicalLayer(layer) {
216
- return normalizeLayer(layer).includes("BOTTOM") ? "bottom" : "top";
217
- }
218
-
219
- // lib/pcb/layers/mapOverlayLayer.ts
220
- function mapOverlayLayer(layer) {
221
- return normalizeLayer(layer) === "BOTTOMOVERLAY" ? "bottom" : "top";
222
- }
223
-
224
224
  // lib/pcb/context/createPcbNetContext.ts
225
225
  function createPcbNetContext(document) {
226
226
  const sourceNetIdByAltiumNet = new Map(
@@ -325,7 +325,7 @@ function getCoordinateOrFallback({
325
325
  key,
326
326
  fallback
327
327
  }) {
328
- return getSchematicCoordinate(record, key, fallback);
328
+ return getSchematicCoordinate(record, { key, fallback });
329
329
  }
330
330
 
331
331
  // lib/schematic/geometry/getCorner.ts