@tscircuit/core 0.0.1054 → 0.0.1056
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 +9 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -10161,7 +10161,7 @@ var NormalComponent3 = class extends PrimitiveComponent2 {
|
|
|
10161
10161
|
if (symbol) {
|
|
10162
10162
|
const schematic_component2 = db.schematic_component.insert({
|
|
10163
10163
|
center,
|
|
10164
|
-
size: symbol.size,
|
|
10164
|
+
size: { ...symbol.size },
|
|
10165
10165
|
source_component_id: this.source_component_id,
|
|
10166
10166
|
is_box_with_pins: true,
|
|
10167
10167
|
symbol_name,
|
|
@@ -14457,6 +14457,12 @@ function Group_doInitialSchematicLayoutMatchPack(group) {
|
|
|
14457
14457
|
debug6(
|
|
14458
14458
|
`Component ${chipId} has rotation: ${placement.ccwRotationDegrees}\xB0`
|
|
14459
14459
|
);
|
|
14460
|
+
const normalizedRotation = (Math.round(placement.ccwRotationDegrees) % 360 + 360) % 360;
|
|
14461
|
+
if ((normalizedRotation === 90 || normalizedRotation === 270) && schematicComponent.size) {
|
|
14462
|
+
const prevWidth = schematicComponent.size.width;
|
|
14463
|
+
schematicComponent.size.width = schematicComponent.size.height;
|
|
14464
|
+
schematicComponent.size.height = prevWidth;
|
|
14465
|
+
}
|
|
14460
14466
|
const angleRad = placement.ccwRotationDegrees * Math.PI / 180;
|
|
14461
14467
|
const cos = Math.cos(angleRad);
|
|
14462
14468
|
const sin = Math.sin(angleRad);
|
|
@@ -18079,7 +18085,7 @@ import { identity as identity4 } from "transformation-matrix";
|
|
|
18079
18085
|
var package_default = {
|
|
18080
18086
|
name: "@tscircuit/core",
|
|
18081
18087
|
type: "module",
|
|
18082
|
-
version: "0.0.
|
|
18088
|
+
version: "0.0.1055",
|
|
18083
18089
|
types: "dist/index.d.ts",
|
|
18084
18090
|
main: "dist/index.js",
|
|
18085
18091
|
module: "dist/index.js",
|
|
@@ -18111,7 +18117,7 @@ var package_default = {
|
|
|
18111
18117
|
"@biomejs/biome": "^1.8.3",
|
|
18112
18118
|
"@resvg/resvg-js": "^2.6.2",
|
|
18113
18119
|
"@tscircuit/alphabet": "0.0.18",
|
|
18114
|
-
"@tscircuit/capacity-autorouter": "^0.0.
|
|
18120
|
+
"@tscircuit/capacity-autorouter": "^0.0.287",
|
|
18115
18121
|
"@tscircuit/checks": "^0.0.91",
|
|
18116
18122
|
"@tscircuit/circuit-json-util": "^0.0.77",
|
|
18117
18123
|
"@tscircuit/common": "^0.0.20",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.1056",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@biomejs/biome": "^1.8.3",
|
|
34
34
|
"@resvg/resvg-js": "^2.6.2",
|
|
35
35
|
"@tscircuit/alphabet": "0.0.18",
|
|
36
|
-
"@tscircuit/capacity-autorouter": "^0.0.
|
|
36
|
+
"@tscircuit/capacity-autorouter": "^0.0.287",
|
|
37
37
|
"@tscircuit/checks": "^0.0.91",
|
|
38
38
|
"@tscircuit/circuit-json-util": "^0.0.77",
|
|
39
39
|
"@tscircuit/common": "^0.0.20",
|