@tscircuit/core 0.0.119 → 0.0.120
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -977,7 +977,7 @@ var SmtPad = class extends PrimitiveComponent {
|
|
|
977
977
|
const decomposedMat = decomposeTSR(
|
|
978
978
|
this._computePcbGlobalTransformBeforeLayout()
|
|
979
979
|
);
|
|
980
|
-
const isRotated90 = Math.abs(decomposedMat.rotation.angle * (180 / Math.PI) - 90) < 0.01;
|
|
980
|
+
const isRotated90 = Math.abs(decomposedMat.rotation.angle * (180 / Math.PI) - 90) % 180 < 0.01;
|
|
981
981
|
const { maybeFlipLayer } = this._getPcbPrimitiveFlippedHelpers();
|
|
982
982
|
let pcb_smtpad = null;
|
|
983
983
|
const pcb_component_id = this.parent?.pcb_component_id ?? this.getPrimitiveContainer()?.pcb_component_id;
|
|
@@ -1242,7 +1242,7 @@ var Keepout = class extends PrimitiveComponent {
|
|
|
1242
1242
|
const decomposedMat = decomposeTSR2(
|
|
1243
1243
|
this._computePcbGlobalTransformBeforeLayout()
|
|
1244
1244
|
);
|
|
1245
|
-
const isRotated90 = Math.abs(decomposedMat.rotation.angle * (180 / Math.PI) - 90) < 0.01;
|
|
1245
|
+
const isRotated90 = Math.abs(decomposedMat.rotation.angle * (180 / Math.PI) - 90) % 180 < 0.01;
|
|
1246
1246
|
let pcb_keepout = null;
|
|
1247
1247
|
if (props.shape === "circle") {
|
|
1248
1248
|
pcb_keepout = db.pcb_keepout.insert({
|