@tscircuit/circuit-json-util 0.0.126 → 0.0.127

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 CHANGED
@@ -1105,6 +1105,9 @@ var transformPCBElement = (elm, matrix) => {
1105
1105
  elm.center = applyToPoint(matrix, elm.center);
1106
1106
  } else if (elm.type === "pcb_component") {
1107
1107
  elm.center = applyToPoint(matrix, elm.center);
1108
+ if (elm.footprint_origin) {
1109
+ elm.footprint_origin = applyToPoint(matrix, elm.footprint_origin);
1110
+ }
1108
1111
  elm.rotation = elm.rotation + rotationDegrees;
1109
1112
  elm.rotation = elm.rotation % 360;
1110
1113
  if (elm.cable_insertion_center) {