@tscircuit/schematic-trace-solver 0.0.74 → 0.0.75

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.d.ts CHANGED
@@ -63,6 +63,16 @@ interface InputPin {
63
63
  y: number;
64
64
  _facingDirection?: "x+" | "x-" | "y+" | "y-";
65
65
  }
66
+ interface TextBoxes {
67
+ chipId?: ChipId;
68
+ center: {
69
+ x: number;
70
+ y: number;
71
+ };
72
+ width: number;
73
+ height: number;
74
+ text?: string;
75
+ }
66
76
  interface InputChip {
67
77
  chipId: ChipId;
68
78
  center: {
@@ -89,6 +99,7 @@ interface InputProblem {
89
99
  chips: Array<InputChip>;
90
100
  directConnections: Array<InputDirectConnection>;
91
101
  netConnections: Array<InputNetConnection>;
102
+ textBoxes?: Array<TextBoxes>;
92
103
  availableNetLabelOrientations: Record<NetId, FacingDirection[]>;
93
104
  maxMspPairDistance?: number;
94
105
  _chipObstacleSpatialIndex?: ChipObstacleSpatialIndex;
@@ -988,4 +999,4 @@ declare class SchematicTracePipelineSolver extends BaseSolver {
988
999
  preview(): GraphicsObject;
989
1000
  }
990
1001
 
991
- export { type ChipId, type InputChip, type InputDirectConnection, type InputNetConnection, type InputPin, type InputProblem, type NetId, type PinId, SchematicTracePipelineSolver, type SchematicTracePipelineSolverParams, SchematicTraceSingleLineSolver2, type SectionId };
1002
+ export { type ChipId, type InputChip, type InputDirectConnection, type InputNetConnection, type InputPin, type InputProblem, type NetId, type PinId, SchematicTracePipelineSolver, type SchematicTracePipelineSolverParams, SchematicTraceSingleLineSolver2, type SectionId, type TextBoxes };
@@ -13,6 +13,15 @@ export interface InputPin {
13
13
 
14
14
  _facingDirection?: "x+" | "x-" | "y+" | "y-"
15
15
  }
16
+
17
+ export interface TextBoxes {
18
+ chipId?: ChipId
19
+ center: { x: number; y: number }
20
+ width: number
21
+ height: number
22
+ text?: string
23
+ }
24
+
16
25
  export interface InputChip {
17
26
  chipId: ChipId
18
27
  center: { x: number; y: number }
@@ -38,6 +47,7 @@ export interface InputProblem {
38
47
  chips: Array<InputChip>
39
48
  directConnections: Array<InputDirectConnection>
40
49
  netConnections: Array<InputNetConnection>
50
+ textBoxes?: Array<TextBoxes>
41
51
 
42
52
  availableNetLabelOrientations: Record<NetId, FacingDirection[]>
43
53
  maxMspPairDistance?: number
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/schematic-trace-solver",
3
3
  "main": "dist/index.js",
4
- "version": "0.0.74",
4
+ "version": "0.0.75",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "start": "cosmos",