@tscircuit/core 0.0.584 → 0.0.585

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 +22 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4958,6 +4958,21 @@ var pushEdgesOfSchematicTraceToPreventOverlap = ({
4958
4958
  }
4959
4959
  };
4960
4960
 
4961
+ // lib/utils/schematic/convertFacingDirectionToElbowDirection.ts
4962
+ var convertFacingDirectionToElbowDirection = (facingDirection) => {
4963
+ switch (facingDirection) {
4964
+ case "up":
4965
+ return "y+";
4966
+ case "down":
4967
+ return "y-";
4968
+ case "left":
4969
+ return "x-";
4970
+ case "right":
4971
+ return "x+";
4972
+ default:
4973
+ }
4974
+ };
4975
+
4961
4976
  // lib/components/primitive-components/Trace/Trace_doInitialSchematicTraceRender.ts
4962
4977
  var Trace_doInitialSchematicTraceRender = (trace) => {
4963
4978
  if (trace.root?.schematicDisabled) return;
@@ -5078,12 +5093,16 @@ var Trace_doInitialSchematicTraceRender = (trace) => {
5078
5093
  {
5079
5094
  x: start.position.x,
5080
5095
  y: start.position.y,
5081
- facingDirection: start.facingDirection
5096
+ facingDirection: convertFacingDirectionToElbowDirection(
5097
+ start.facingDirection
5098
+ )
5082
5099
  },
5083
5100
  {
5084
5101
  x: end.position.x,
5085
5102
  y: end.position.y,
5086
- facingDirection: end.facingDirection
5103
+ facingDirection: convertFacingDirectionToElbowDirection(
5104
+ end.facingDirection
5105
+ )
5087
5106
  }
5088
5107
  );
5089
5108
  for (let j = 0; j < path.length - 1; j++) {
@@ -11140,7 +11159,7 @@ import { identity as identity5 } from "transformation-matrix";
11140
11159
  var package_default = {
11141
11160
  name: "@tscircuit/core",
11142
11161
  type: "module",
11143
- version: "0.0.583",
11162
+ version: "0.0.584",
11144
11163
  types: "dist/index.d.ts",
11145
11164
  main: "dist/index.js",
11146
11165
  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.584",
4
+ "version": "0.0.585",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",