@tscircuit/capacity-autorouter 0.0.781 → 0.0.783
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 +34 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -63,6 +63,14 @@ type PointId = string;
|
|
|
63
63
|
type OffBoardConnectionId = string;
|
|
64
64
|
type ObstacleId = string;
|
|
65
65
|
type RootConnectionName = string;
|
|
66
|
+
type CircuitJsonMetadata = {
|
|
67
|
+
pcb_smtpad_id?: string;
|
|
68
|
+
pcb_plated_hole_id?: string;
|
|
69
|
+
pcb_port_id?: string;
|
|
70
|
+
pcb_via_id?: string;
|
|
71
|
+
source_component_name?: string;
|
|
72
|
+
source_port_name?: string;
|
|
73
|
+
};
|
|
66
74
|
type TerminalViaHint = {
|
|
67
75
|
toLayer: string;
|
|
68
76
|
viaDiameter?: number;
|
|
@@ -158,6 +166,11 @@ interface Obstacle {
|
|
|
158
166
|
obstacleId?: string;
|
|
159
167
|
/** Optional source component identifier associated with this obstacle. */
|
|
160
168
|
componentId?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Optional Circuit JSON provenance carried through SRJ.
|
|
171
|
+
* Routing algorithms must not use this field.
|
|
172
|
+
*/
|
|
173
|
+
circuitJsonMetadata?: CircuitJsonMetadata;
|
|
161
174
|
type: "rect";
|
|
162
175
|
layers: string[];
|
|
163
176
|
/** Public z-layer indexes supplied by SimpleRouteJson producers. */
|
|
@@ -912,6 +925,10 @@ interface PreloadedTracePortAssignment {
|
|
|
912
925
|
traceId: string;
|
|
913
926
|
fixedNetId: string;
|
|
914
927
|
routePosition: number;
|
|
928
|
+
tracePoint: {
|
|
929
|
+
x: number;
|
|
930
|
+
y: number;
|
|
931
|
+
};
|
|
915
932
|
z: number;
|
|
916
933
|
}
|
|
917
934
|
interface SegmentPortPoint {
|
|
@@ -5005,6 +5022,17 @@ declare class NodeDimensionSubdivisionSolver extends BaseSolver {
|
|
|
5005
5022
|
visualize(): GraphicsObject;
|
|
5006
5023
|
}
|
|
5007
5024
|
|
|
5025
|
+
type PreloadedTraceConnectionId = string & {
|
|
5026
|
+
readonly __brand: "PreloadedTraceConnectionId";
|
|
5027
|
+
};
|
|
5028
|
+
|
|
5029
|
+
type ChangedPreloadedTraceSection = {
|
|
5030
|
+
connectionName: PreloadedTraceConnectionId;
|
|
5031
|
+
traceId: string;
|
|
5032
|
+
startRoutePosition: number;
|
|
5033
|
+
endRoutePosition: number;
|
|
5034
|
+
connection: SimpleRouteConnection;
|
|
5035
|
+
};
|
|
5008
5036
|
declare class TinyHypergraphPortPointPathingSolver extends BaseSolver {
|
|
5009
5037
|
private params;
|
|
5010
5038
|
private tinyPipelineSolver;
|
|
@@ -5026,6 +5054,7 @@ declare class TinyHypergraphPortPointPathingSolver extends BaseSolver {
|
|
|
5026
5054
|
getOutput(): {
|
|
5027
5055
|
nodesWithPortPoints: NodeWithPortPoints[];
|
|
5028
5056
|
inputNodeWithPortPoints: InputNodeWithPortPoints[];
|
|
5057
|
+
changedPreloadedTraceSections: ChangedPreloadedTraceSection[];
|
|
5029
5058
|
};
|
|
5030
5059
|
computeNodePf(node: InputNodeWithPortPoints): number | null;
|
|
5031
5060
|
tryFinalAcceptance(): void;
|
|
@@ -6025,6 +6054,8 @@ declare class AutoroutingPipelineSolver8 extends BaseSolver {
|
|
|
6025
6054
|
type PreloadedHighDensityRoute = HighDensityRoute$1 & {
|
|
6026
6055
|
preloadedTraceIndex: number;
|
|
6027
6056
|
preloadedRouteIndex: number;
|
|
6057
|
+
preloadedRoutePositionStart?: number;
|
|
6058
|
+
preloadedRoutePositionEnd?: number;
|
|
6028
6059
|
};
|
|
6029
6060
|
|
|
6030
6061
|
type RoutePoint = HighDensityRoute$1["route"][number];
|
|
@@ -6272,7 +6303,9 @@ declare class AutoroutingPipelineSolver9_PreloadedTraceGraph extends BaseSolver
|
|
|
6272
6303
|
preview(): GraphicsObject;
|
|
6273
6304
|
_getOutputHdRoutes(): HighDensityRoute$1[];
|
|
6274
6305
|
private getOriginalFixedHdRoutes;
|
|
6275
|
-
private
|
|
6306
|
+
private getChangedPreloadedTraceSections;
|
|
6307
|
+
private getPreloadedTraceUpdatesAfterHighDensity;
|
|
6308
|
+
private getSrjWithMaterializedPreloadedTraces;
|
|
6276
6309
|
getUpdatedPreloadedTraces(): SimplifiedPcbTraces;
|
|
6277
6310
|
getMutatedPreloadedTraces(): SimplifiedPcbTraces;
|
|
6278
6311
|
private getNewOutputSimplifiedPcbTraces;
|