easyeda 0.0.210 → 0.0.212
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/browser/{chunk-OTDH63JU.js → chunk-E4KXPJ7N.js} +12 -2
- package/dist/browser/chunk-E4KXPJ7N.js.map +1 -0
- package/dist/browser/{dist-NBAEN3WC.js → dist-BRJESIII.js} +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/main.cjs +13 -3
- package/dist/main.cjs.map +1 -1
- package/package.json +2 -2
- package/dist/browser/chunk-OTDH63JU.js.map +0 -1
- /package/dist/browser/{dist-NBAEN3WC.js.map → dist-BRJESIII.js.map} +0 -0
|
@@ -3746,6 +3746,8 @@ var cjuIndexed = (soup, options = {}) => {
|
|
|
3746
3746
|
};
|
|
3747
3747
|
cjuIndexed.unparsed = cjuIndexed;
|
|
3748
3748
|
var transformPCBElement = (elm, matrix) => {
|
|
3749
|
+
const tsr = decomposeTSR(matrix);
|
|
3750
|
+
const flipPadWidthHeight = Math.round(tsr.rotation.angle / (Math.PI / 2)) % 2 === 1;
|
|
3749
3751
|
if (elm.type === "pcb_plated_hole" || elm.type === "pcb_hole" || elm.type === "pcb_via" || elm.type === "pcb_smtpad" || elm.type === "pcb_port") {
|
|
3750
3752
|
const { x, y } = applyToPoint(matrix, {
|
|
3751
3753
|
x: Number(elm.x),
|
|
@@ -3757,8 +3759,16 @@ var transformPCBElement = (elm, matrix) => {
|
|
|
3757
3759
|
elm.center = applyToPoint(matrix, elm.center);
|
|
3758
3760
|
} else if (elm.type === "pcb_silkscreen_text" || elm.type === "pcb_fabrication_note_text") {
|
|
3759
3761
|
elm.anchor_position = applyToPoint(matrix, elm.anchor_position);
|
|
3760
|
-
} else if (elm.type === "pcb_silkscreen_circle" || elm.type === "pcb_silkscreen_rect"
|
|
3762
|
+
} else if (elm.type === "pcb_silkscreen_circle" || elm.type === "pcb_silkscreen_rect") {
|
|
3761
3763
|
elm.center = applyToPoint(matrix, elm.center);
|
|
3764
|
+
} else if (elm.type === "pcb_component") {
|
|
3765
|
+
elm.center = applyToPoint(matrix, elm.center);
|
|
3766
|
+
elm.rotation = elm.rotation + tsr.rotation.angle / Math.PI * 180;
|
|
3767
|
+
elm.rotation = elm.rotation % 360;
|
|
3768
|
+
if (flipPadWidthHeight) {
|
|
3769
|
+
;
|
|
3770
|
+
[elm.width, elm.height] = [elm.height, elm.width];
|
|
3771
|
+
}
|
|
3762
3772
|
} else if (elm.type === "pcb_silkscreen_path" || elm.type === "pcb_trace" || elm.type === "pcb_fabrication_note_path") {
|
|
3763
3773
|
elm.route = elm.route.map((rp) => {
|
|
3764
3774
|
const tp = applyToPoint(matrix, rp);
|
|
@@ -26227,4 +26237,4 @@ svgson/dist/svgson.umd.js:
|
|
|
26227
26237
|
* @license MIT
|
|
26228
26238
|
*)
|
|
26229
26239
|
*/
|
|
26230
|
-
//# sourceMappingURL=chunk-
|
|
26240
|
+
//# sourceMappingURL=chunk-E4KXPJ7N.js.map
|