@tscircuit/core 0.0.1164 → 0.0.1165

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16242,6 +16242,17 @@ function Group_doInitialSchematicLayoutMatchPack(group) {
16242
16242
  `_${rotateDirection(schematicSymbolDirection[1], placement.ccwRotationDegrees)}`
16243
16243
  );
16244
16244
  }
16245
+ const schematicSymbolOrientation = schematicComponent.symbol_name.match(/_(horz|vert)$/);
16246
+ if (schematicSymbolOrientation) {
16247
+ const normalizedRotation2 = (placement.ccwRotationDegrees % 360 + 360) % 360;
16248
+ const shouldSwapOrientation = normalizedRotation2 === 90 || normalizedRotation2 === 270;
16249
+ if (shouldSwapOrientation) {
16250
+ schematicComponent.symbol_name = schematicComponent.symbol_name.replace(
16251
+ schematicSymbolOrientation[0],
16252
+ schematicSymbolOrientation[1] === "horz" ? "_vert" : "_horz"
16253
+ );
16254
+ }
16255
+ }
16245
16256
  }
16246
16257
  }
16247
16258
  }
@@ -19598,7 +19609,7 @@ import { identity as identity5 } from "transformation-matrix";
19598
19609
  var package_default = {
19599
19610
  name: "@tscircuit/core",
19600
19611
  type: "module",
19601
- version: "0.0.1163",
19612
+ version: "0.0.1164",
19602
19613
  types: "dist/index.d.ts",
19603
19614
  main: "dist/index.js",
19604
19615
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1164",
4
+ "version": "0.0.1165",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",