@tscircuit/core 0.0.801 → 0.0.802
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 +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1907,8 +1907,11 @@ var SmtPad = class extends PrimitiveComponent2 {
|
|
|
1907
1907
|
const rotationTolerance = 0.01;
|
|
1908
1908
|
const isAxisAligned = Math.abs(normalizedRotationDegrees) < rotationTolerance || Math.abs(normalizedRotationDegrees - 180) < rotationTolerance || Math.abs(normalizedRotationDegrees - 360) < rotationTolerance;
|
|
1909
1909
|
const isRotated90Degrees = Math.abs(normalizedRotationDegrees - 90) < rotationTolerance || Math.abs(normalizedRotationDegrees - 270) < rotationTolerance;
|
|
1910
|
-
|
|
1911
|
-
const { maybeFlipLayer } = this._getPcbPrimitiveFlippedHelpers();
|
|
1910
|
+
let finalRotationDegrees = Math.abs(normalizedRotationDegrees - 360) < rotationTolerance ? 0 : normalizedRotationDegrees;
|
|
1911
|
+
const { maybeFlipLayer, isFlipped } = this._getPcbPrimitiveFlippedHelpers();
|
|
1912
|
+
if (isFlipped) {
|
|
1913
|
+
finalRotationDegrees = (360 - finalRotationDegrees + 360) % 360;
|
|
1914
|
+
}
|
|
1912
1915
|
let pcb_smtpad = null;
|
|
1913
1916
|
const pcb_component_id = this.parent?.pcb_component_id ?? this.getPrimitiveContainer()?.pcb_component_id;
|
|
1914
1917
|
if (props.shape === "circle") {
|
|
@@ -17053,7 +17056,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
17053
17056
|
var package_default = {
|
|
17054
17057
|
name: "@tscircuit/core",
|
|
17055
17058
|
type: "module",
|
|
17056
|
-
version: "0.0.
|
|
17059
|
+
version: "0.0.801",
|
|
17057
17060
|
types: "dist/index.d.ts",
|
|
17058
17061
|
main: "dist/index.js",
|
|
17059
17062
|
module: "dist/index.js",
|