@tscircuit/core 0.0.1217 → 0.0.1219

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
@@ -1,7 +1,7 @@
1
1
  import * as circuit_json from 'circuit-json';
2
2
  import { PcbTraceError, PcbPlacementError, PcbManualEditConflictWarning, PcbViaClearanceError, LayerRef, AnyCircuitElement, Size, PcbTraceRoutePoint, AnySourceComponent, PcbComponent, PcbTrace as PcbTrace$1, PcbVia, SchematicPort, SchematicComponent, RouteHintPoint, CircuitJson } from 'circuit-json';
3
3
  import * as _tscircuit_props from '@tscircuit/props';
4
- import { PlatformConfig, traceProps, netProps, subcircuitGroupProps, AutorouterConfig, PcbSx, SupplierPartNumbers, CadModelProp, SchematicPortArrangement, groupProps, boardProps, subcircuitProps, subpanelProps, capacitorProps, chipProps, pinoutProps, diodeProps, fuseProps, jumperProps, interconnectProps, solderjumperProps, ledProps, powerSourceProps, voltageSourceProps, currentSourceProps, resistorProps, constraintProps, fabricationNoteRectProps, fabricationNotePathProps, fabricationNoteTextProps, fabricationNoteDimensionProps, pcbNoteLineProps, pcbNoteRectProps, pcbNoteTextProps, pcbNotePathProps, pcbNoteDimensionProps, footprintProps, breakoutProps, breakoutPointProps, holeProps, pcbKeepoutProps, netLabelProps, cadmodelProps, cadassemblyProps, platedHoleProps, courtyardCircleProps, courtyardOutlineProps, courtyardRectProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, fiducialProps, traceHintProps, viaProps, copperPourProps, copperTextProps, cutoutProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, opampProps, OpAmpPinLabels, switchProps, SwitchProps, testpointProps, schematicTextProps, schematicLineProps, schematicRectProps, schematicArcProps, schematicCircleProps, schematicPathProps, schematicBoxProps, schematicTableProps, schematicRowProps, schematicCellProps, symbolProps, analogSimulationProps, voltageProbeProps, CapacitorProps, ChipProps, DiodeProps, ResistorProps, ManualEditEvent, ManualEditsFile, ChipConnections, manual_edits_file } from '@tscircuit/props';
4
+ import { PlatformConfig, traceProps, netProps, AutorouterProp, subcircuitGroupProps, AutorouterConfig, PcbSx, SupplierPartNumbers, CadModelProp, SchematicPortArrangement, groupProps, boardProps, subcircuitProps, subpanelProps, capacitorProps, chipProps, pinoutProps, diodeProps, fuseProps, jumperProps, interconnectProps, solderjumperProps, ledProps, powerSourceProps, voltageSourceProps, currentSourceProps, resistorProps, constraintProps, autoroutingPhaseProps, fabricationNoteRectProps, fabricationNotePathProps, fabricationNoteTextProps, fabricationNoteDimensionProps, pcbNoteLineProps, pcbNoteRectProps, pcbNoteTextProps, pcbNotePathProps, pcbNoteDimensionProps, footprintProps, breakoutProps, breakoutPointProps, holeProps, pcbKeepoutProps, netLabelProps, cadmodelProps, cadassemblyProps, platedHoleProps, courtyardCircleProps, courtyardOutlineProps, courtyardRectProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, fiducialProps, traceHintProps, viaProps, copperPourProps, copperTextProps, cutoutProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, opampProps, OpAmpPinLabels, switchProps, SwitchProps, testpointProps, schematicTextProps, schematicLineProps, schematicRectProps, schematicArcProps, schematicCircleProps, schematicPathProps, schematicBoxProps, schematicSectionProps, schematicTableProps, schematicRowProps, schematicCellProps, symbolProps, analogSimulationProps, voltageProbeProps, CapacitorProps, ChipProps, DiodeProps, ResistorProps, ManualEditEvent, ManualEditsFile, ChipConnections, manual_edits_file } from '@tscircuit/props';
5
5
  export { kicadFootprintStrings } from '@tscircuit/props';
6
6
  import * as react from 'react';
7
7
  import react__default, { ReactElement, DetailedHTMLProps, SVGProps } from 'react';
@@ -14,6 +14,7 @@ import { Matrix } from 'transformation-matrix';
14
14
  import { PackSolver2 } from 'calculate-packing';
15
15
  import { AutoroutingPipelineSolver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3, AutoroutingPipeline1_OriginalUnravel, AutoroutingPipelineSolver3_HgPortPointPathing, AutoroutingPipelineSolver5 } from '@tscircuit/capacity-autorouter';
16
16
  import { CopperPourPipelineSolver } from '@tscircuit/copper-pour-solver';
17
+ import { Bounds } from '@tscircuit/math-utils';
17
18
  import { ConnectivityMap } from 'circuit-json-to-connectivity-map';
18
19
  import { GraphicsObject } from 'graphics-debug';
19
20
 
@@ -190,9 +191,9 @@ interface IIsolatedCircuit {
190
191
  interface IRootCircuit extends IIsolatedCircuit {
191
192
  }
192
193
 
193
- declare const orderedRenderPhases: readonly ["ReactSubtreesRender", "RenderIsolatedSubcircuits", "InflateSubcircuitCircuitJson", "SourceNameDuplicateComponentRemoval", "PcbFootprintStringRender", "FetchPartFootprint", "InitializePortsFromChildren", "CreateNetsFromProps", "AssignFallbackProps", "CreateTracesFromProps", "CreateTracesFromNetLabels", "CreateTraceHintsFromProps", "SourceGroupRender", "AssignNameToUnnamedComponents", "SourceRender", "SourceComponentPropertyValidation", "SourceParentAttachment", "PortMatching", "OptimizeSelectorCache", "SourceTraceRender", "SourceAddConnectivityMapKey", "SourceDesignRuleChecks", "SimulationRender", "SchematicComponentRender", "SchematicPortRender", "SymbolContainerRender", "SchematicPrimitiveRender", "SchematicSymbolResize", "SchematicComponentSizeCalculation", "SchematicLayout", "SchematicTraceRender", "SchematicReplaceNetLabelsWithSymbols", "PanelBoardLayout", "ValidatePcbCoordinates", "PcbComponentRender", "PcbPrimitiveRender", "PcbFootprintLayout", "PcbPortRender", "PcbPortAttachment", "PcbComponentSizeCalculation", "PcbComponentAnchorAlignment", "PcbCalcPlacementResolution", "PcbLayout", "PcbBoardAutoSize", "PanelLayout", "PcbTraceHintRender", "PcbManualTraceRender", "PcbTraceRender", "PcbRouteNetIslands", "PcbCopperPourRender", "PcbDesignRuleChecks", "SilkscreenOverlapAdjustment", "CadModelRender", "PartsEngineRender", "SupplierFootprintMismatchWarning", "SimulationSpiceEngineRender"];
194
+ declare const orderedRenderPhases: readonly ["ReactSubtreesRender", "RenderIsolatedSubcircuits", "InflateSubcircuitCircuitJson", "SourceNameDuplicateComponentRemoval", "PcbFootprintStringRender", "FetchPartFootprint", "InitializePortsFromChildren", "CreateNetsFromProps", "AssignFallbackProps", "CreateTracesFromProps", "CreateTracesFromNetLabels", "CreateTraceHintsFromProps", "SourceGroupRender", "AssignNameToUnnamedComponents", "SourceRender", "SourceComponentPropertyValidation", "SourceParentAttachment", "PortMatching", "OptimizeSelectorCache", "SourceTraceRender", "SourceAddConnectivityMapKey", "SourceDesignRuleChecks", "SimulationRender", "SchematicComponentRender", "SchematicPortRender", "SymbolContainerRender", "SchematicPrimitiveRender", "SchematicSymbolResize", "SchematicComponentSizeCalculation", "SchematicLayout", "SchematicSectionRender", "SchematicTraceRender", "SchematicReplaceNetLabelsWithSymbols", "PanelBoardLayout", "ValidatePcbCoordinates", "PcbComponentRender", "PcbPrimitiveRender", "PcbFootprintLayout", "PcbPortRender", "PcbPortAttachment", "PcbComponentSizeCalculation", "PcbComponentAnchorAlignment", "PcbCalcPlacementResolution", "PcbLayout", "PcbBoardAutoSize", "PanelLayout", "PcbTraceHintRender", "PcbManualTraceRender", "PcbTraceRender", "PcbRouteNetIslands", "PcbCopperPourRender", "PcbDesignRuleChecks", "SilkscreenOverlapAdjustment", "CadModelRender", "PartsEngineRender", "SupplierFootprintMismatchWarning", "SimulationSpiceEngineRender"];
194
195
  type RenderPhase = (typeof orderedRenderPhases)[number];
195
- declare const renderPhaseIndexMap: Map<"ReactSubtreesRender" | "RenderIsolatedSubcircuits" | "InflateSubcircuitCircuitJson" | "SourceNameDuplicateComponentRemoval" | "PcbFootprintStringRender" | "FetchPartFootprint" | "InitializePortsFromChildren" | "CreateNetsFromProps" | "AssignFallbackProps" | "CreateTracesFromProps" | "CreateTracesFromNetLabels" | "CreateTraceHintsFromProps" | "SourceGroupRender" | "AssignNameToUnnamedComponents" | "SourceRender" | "SourceComponentPropertyValidation" | "SourceParentAttachment" | "PortMatching" | "OptimizeSelectorCache" | "SourceTraceRender" | "SourceAddConnectivityMapKey" | "SourceDesignRuleChecks" | "SimulationRender" | "SchematicComponentRender" | "SchematicPortRender" | "SymbolContainerRender" | "SchematicPrimitiveRender" | "SchematicSymbolResize" | "SchematicComponentSizeCalculation" | "SchematicLayout" | "SchematicTraceRender" | "SchematicReplaceNetLabelsWithSymbols" | "PanelBoardLayout" | "ValidatePcbCoordinates" | "PcbComponentRender" | "PcbPrimitiveRender" | "PcbFootprintLayout" | "PcbPortRender" | "PcbPortAttachment" | "PcbComponentSizeCalculation" | "PcbComponentAnchorAlignment" | "PcbCalcPlacementResolution" | "PcbLayout" | "PcbBoardAutoSize" | "PanelLayout" | "PcbTraceHintRender" | "PcbManualTraceRender" | "PcbTraceRender" | "PcbRouteNetIslands" | "PcbCopperPourRender" | "PcbDesignRuleChecks" | "SilkscreenOverlapAdjustment" | "CadModelRender" | "PartsEngineRender" | "SupplierFootprintMismatchWarning" | "SimulationSpiceEngineRender", number>;
196
+ declare const renderPhaseIndexMap: Map<"ReactSubtreesRender" | "RenderIsolatedSubcircuits" | "InflateSubcircuitCircuitJson" | "SourceNameDuplicateComponentRemoval" | "PcbFootprintStringRender" | "FetchPartFootprint" | "InitializePortsFromChildren" | "CreateNetsFromProps" | "AssignFallbackProps" | "CreateTracesFromProps" | "CreateTracesFromNetLabels" | "CreateTraceHintsFromProps" | "SourceGroupRender" | "AssignNameToUnnamedComponents" | "SourceRender" | "SourceComponentPropertyValidation" | "SourceParentAttachment" | "PortMatching" | "OptimizeSelectorCache" | "SourceTraceRender" | "SourceAddConnectivityMapKey" | "SourceDesignRuleChecks" | "SimulationRender" | "SchematicComponentRender" | "SchematicPortRender" | "SymbolContainerRender" | "SchematicPrimitiveRender" | "SchematicSymbolResize" | "SchematicComponentSizeCalculation" | "SchematicLayout" | "SchematicSectionRender" | "SchematicTraceRender" | "SchematicReplaceNetLabelsWithSymbols" | "PanelBoardLayout" | "ValidatePcbCoordinates" | "PcbComponentRender" | "PcbPrimitiveRender" | "PcbFootprintLayout" | "PcbPortRender" | "PcbPortAttachment" | "PcbComponentSizeCalculation" | "PcbComponentAnchorAlignment" | "PcbCalcPlacementResolution" | "PcbLayout" | "PcbBoardAutoSize" | "PanelLayout" | "PcbTraceHintRender" | "PcbManualTraceRender" | "PcbTraceRender" | "PcbRouteNetIslands" | "PcbCopperPourRender" | "PcbDesignRuleChecks" | "SilkscreenOverlapAdjustment" | "CadModelRender" | "PartsEngineRender" | "SupplierFootprintMismatchWarning" | "SimulationSpiceEngineRender", number>;
196
197
  type RenderPhaseFn<K extends RenderPhase = RenderPhase> = `doInitial${K}` | `update${K}` | `remove${K}`;
197
198
  type RenderPhaseStates = Record<RenderPhase, {
198
199
  initialized: boolean;
@@ -1340,6 +1341,7 @@ declare class Net extends PrimitiveComponent<typeof netProps> {
1340
1341
 
1341
1342
  interface RoutingPhasePlan {
1342
1343
  routingPhaseIndex: number | null;
1344
+ autorouter?: AutorouterProp;
1343
1345
  nets: Net[];
1344
1346
  traces: Trace[];
1345
1347
  }
@@ -7842,6 +7844,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, Polarized
7842
7844
  key: zod.ZodOptional<zod.ZodAny>;
7843
7845
  name: zod.ZodString;
7844
7846
  displayName: zod.ZodOptional<zod.ZodString>;
7847
+ schSectionName: zod.ZodOptional<zod.ZodString>;
7845
7848
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
7846
7849
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
7847
7850
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -11698,6 +11701,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, Polarized
11698
11701
  obstructsWithinBounds?: boolean | undefined;
11699
11702
  mfn?: string | undefined;
11700
11703
  manufacturerPartNumber?: string | undefined;
11704
+ schSectionName?: string | undefined;
11701
11705
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
11702
11706
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
11703
11707
  schSize?: number | "default" | "xs" | "sm" | "md" | undefined;
@@ -12286,6 +12290,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, Polarized
12286
12290
  obstructsWithinBounds?: boolean | undefined;
12287
12291
  mfn?: string | undefined;
12288
12292
  manufacturerPartNumber?: string | undefined;
12293
+ schSectionName?: string | undefined;
12289
12294
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
12290
12295
  schShowRatings?: boolean | undefined;
12291
12296
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
@@ -12403,6 +12408,7 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
12403
12408
  key: z.ZodOptional<z.ZodAny>;
12404
12409
  name: z.ZodString;
12405
12410
  displayName: z.ZodOptional<z.ZodString>;
12411
+ schSectionName: z.ZodOptional<z.ZodString>;
12406
12412
  datasheetUrl: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
12407
12413
  cadModel: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodType<string, z.ZodTypeDef, string>, z.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, z.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, z.ZodObject<{
12408
12414
  rotationOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
@@ -16541,6 +16547,7 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
16541
16547
  obstructsWithinBounds?: boolean | undefined;
16542
16548
  mfn?: string | undefined;
16543
16549
  manufacturerPartNumber?: string | undefined;
16550
+ schSectionName?: string | undefined;
16544
16551
  connections?: Record<string, string | readonly string[] | string[]> | undefined;
16545
16552
  schPinArrangement?: {
16546
16553
  leftSize?: number | undefined;
@@ -17196,6 +17203,7 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
17196
17203
  obstructsWithinBounds?: boolean | undefined;
17197
17204
  mfn?: string | undefined;
17198
17205
  manufacturerPartNumber?: string | undefined;
17206
+ schSectionName?: string | undefined;
17199
17207
  connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
17200
17208
  schPinArrangement?: {
17201
17209
  leftSize?: number | undefined;
@@ -17379,6 +17387,7 @@ declare class Pinout<PinLabels extends string = never> extends Chip<PinLabels> {
17379
17387
  key: z.ZodOptional<z.ZodAny>;
17380
17388
  name: z.ZodString;
17381
17389
  displayName: z.ZodOptional<z.ZodString>;
17390
+ schSectionName: z.ZodOptional<z.ZodString>;
17382
17391
  datasheetUrl: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
17383
17392
  cadModel: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodType<string, z.ZodTypeDef, string>, z.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, z.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, z.ZodObject<{
17384
17393
  rotationOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
@@ -21517,6 +21526,7 @@ declare class Pinout<PinLabels extends string = never> extends Chip<PinLabels> {
21517
21526
  obstructsWithinBounds?: boolean | undefined;
21518
21527
  mfn?: string | undefined;
21519
21528
  manufacturerPartNumber?: string | undefined;
21529
+ schSectionName?: string | undefined;
21520
21530
  connections?: Record<string, string | readonly string[] | string[]> | undefined;
21521
21531
  schPinArrangement?: {
21522
21532
  leftSize?: number | undefined;
@@ -22172,6 +22182,7 @@ declare class Pinout<PinLabels extends string = never> extends Chip<PinLabels> {
22172
22182
  obstructsWithinBounds?: boolean | undefined;
22173
22183
  mfn?: string | undefined;
22174
22184
  manufacturerPartNumber?: string | undefined;
22185
+ schSectionName?: string | undefined;
22175
22186
  connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
22176
22187
  schPinArrangement?: {
22177
22188
  leftSize?: number | undefined;
@@ -22352,6 +22363,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
22352
22363
  key: zod.ZodOptional<zod.ZodAny>;
22353
22364
  name: zod.ZodString;
22354
22365
  displayName: zod.ZodOptional<zod.ZodString>;
22366
+ schSectionName: zod.ZodOptional<zod.ZodString>;
22355
22367
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
22356
22368
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
22357
22369
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -26203,6 +26215,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
26203
26215
  obstructsWithinBounds?: boolean | undefined;
26204
26216
  mfn?: string | undefined;
26205
26217
  manufacturerPartNumber?: string | undefined;
26218
+ schSectionName?: string | undefined;
26206
26219
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
26207
26220
  standard?: boolean | undefined;
26208
26221
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
@@ -26789,6 +26802,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
26789
26802
  obstructsWithinBounds?: boolean | undefined;
26790
26803
  mfn?: string | undefined;
26791
26804
  manufacturerPartNumber?: string | undefined;
26805
+ schSectionName?: string | undefined;
26792
26806
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
26793
26807
  standard?: boolean | undefined;
26794
26808
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
@@ -27375,6 +27389,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
27375
27389
  obstructsWithinBounds?: boolean | undefined;
27376
27390
  mfn?: string | undefined;
27377
27391
  manufacturerPartNumber?: string | undefined;
27392
+ schSectionName?: string | undefined;
27378
27393
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
27379
27394
  standard?: boolean | undefined;
27380
27395
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
@@ -27961,6 +27976,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
27961
27976
  obstructsWithinBounds?: boolean | undefined;
27962
27977
  mfn?: string | undefined;
27963
27978
  manufacturerPartNumber?: string | undefined;
27979
+ schSectionName?: string | undefined;
27964
27980
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
27965
27981
  standard?: boolean | undefined;
27966
27982
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
@@ -28553,6 +28569,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
28553
28569
  obstructsWithinBounds?: boolean | undefined;
28554
28570
  mfn?: string | undefined;
28555
28571
  manufacturerPartNumber?: string | undefined;
28572
+ schSectionName?: string | undefined;
28556
28573
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
28557
28574
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
28558
28575
  }, {
@@ -29133,6 +29150,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
29133
29150
  obstructsWithinBounds?: boolean | undefined;
29134
29151
  mfn?: string | undefined;
29135
29152
  manufacturerPartNumber?: string | undefined;
29153
+ schSectionName?: string | undefined;
29136
29154
  connections?: Partial<Record<"pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
29137
29155
  standard?: boolean | undefined;
29138
29156
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
@@ -29250,6 +29268,7 @@ declare class Fuse extends NormalComponent<typeof fuseProps, PassivePorts> {
29250
29268
  key: zod.ZodOptional<zod.ZodAny>;
29251
29269
  name: zod.ZodString;
29252
29270
  displayName: zod.ZodOptional<zod.ZodString>;
29271
+ schSectionName: zod.ZodOptional<zod.ZodString>;
29253
29272
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
29254
29273
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
29255
29274
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -33097,6 +33116,7 @@ declare class Fuse extends NormalComponent<typeof fuseProps, PassivePorts> {
33097
33116
  obstructsWithinBounds?: boolean | undefined;
33098
33117
  mfn?: string | undefined;
33099
33118
  manufacturerPartNumber?: string | undefined;
33119
+ schSectionName?: string | undefined;
33100
33120
  connections?: Record<string, string | readonly string[] | string[]> | undefined;
33101
33121
  voltageRating?: string | number | undefined;
33102
33122
  schShowRatings?: boolean | undefined;
@@ -33680,6 +33700,7 @@ declare class Fuse extends NormalComponent<typeof fuseProps, PassivePorts> {
33680
33700
  obstructsWithinBounds?: boolean | undefined;
33681
33701
  mfn?: string | undefined;
33682
33702
  manufacturerPartNumber?: string | undefined;
33703
+ schSectionName?: string | undefined;
33683
33704
  connections?: Record<string, string | readonly string[] | string[]> | undefined;
33684
33705
  voltageRating?: string | number | undefined;
33685
33706
  schShowRatings?: boolean | undefined;
@@ -33787,6 +33808,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
33787
33808
  key: zod.ZodOptional<zod.ZodAny>;
33788
33809
  name: zod.ZodString;
33789
33810
  displayName: zod.ZodOptional<zod.ZodString>;
33811
+ schSectionName: zod.ZodOptional<zod.ZodString>;
33790
33812
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
33791
33813
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
33792
33814
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -37913,6 +37935,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
37913
37935
  obstructsWithinBounds?: boolean | undefined;
37914
37936
  mfn?: string | undefined;
37915
37937
  manufacturerPartNumber?: string | undefined;
37938
+ schSectionName?: string | undefined;
37916
37939
  connections?: Record<string, string | readonly string[] | string[]> | undefined;
37917
37940
  schPinArrangement?: {
37918
37941
  leftSize?: number | undefined;
@@ -38562,6 +38585,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
38562
38585
  obstructsWithinBounds?: boolean | undefined;
38563
38586
  mfn?: string | undefined;
38564
38587
  manufacturerPartNumber?: string | undefined;
38588
+ schSectionName?: string | undefined;
38565
38589
  connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
38566
38590
  schPinArrangement?: {
38567
38591
  leftSize?: number | undefined;
@@ -38738,6 +38762,7 @@ declare class Interconnect extends NormalComponent<typeof interconnectProps> {
38738
38762
  key: zod.ZodOptional<zod.ZodAny>;
38739
38763
  name: zod.ZodString;
38740
38764
  displayName: zod.ZodOptional<zod.ZodString>;
38765
+ schSectionName: zod.ZodOptional<zod.ZodString>;
38741
38766
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
38742
38767
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
38743
38768
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -42582,6 +42607,7 @@ declare class Interconnect extends NormalComponent<typeof interconnectProps> {
42582
42607
  obstructsWithinBounds?: boolean | undefined;
42583
42608
  mfn?: string | undefined;
42584
42609
  manufacturerPartNumber?: string | undefined;
42610
+ schSectionName?: string | undefined;
42585
42611
  pinLabels?: Record<string | number, string | string[]> | undefined;
42586
42612
  internallyConnectedPins?: (string | number)[][] | undefined;
42587
42613
  standard?: "0603" | "0805" | "1206" | "TSC0001_36P_XALT_2025_11" | undefined;
@@ -43163,6 +43189,7 @@ declare class Interconnect extends NormalComponent<typeof interconnectProps> {
43163
43189
  obstructsWithinBounds?: boolean | undefined;
43164
43190
  mfn?: string | undefined;
43165
43191
  manufacturerPartNumber?: string | undefined;
43192
+ schSectionName?: string | undefined;
43166
43193
  pinLabels?: Record<string | number, string | string[]> | undefined;
43167
43194
  internallyConnectedPins?: (string | number)[][] | undefined;
43168
43195
  standard?: "0603" | "0805" | "1206" | "TSC0001_36P_XALT_2025_11" | undefined;
@@ -43283,6 +43310,7 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
43283
43310
  key: zod.ZodOptional<zod.ZodAny>;
43284
43311
  name: zod.ZodString;
43285
43312
  displayName: zod.ZodOptional<zod.ZodString>;
43313
+ schSectionName: zod.ZodOptional<zod.ZodString>;
43286
43314
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
43287
43315
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
43288
43316
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -47412,6 +47440,7 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
47412
47440
  obstructsWithinBounds?: boolean | undefined;
47413
47441
  mfn?: string | undefined;
47414
47442
  manufacturerPartNumber?: string | undefined;
47443
+ schSectionName?: string | undefined;
47415
47444
  connections?: Record<string, string | readonly string[] | string[]> | undefined;
47416
47445
  schPinArrangement?: {
47417
47446
  leftSize?: number | undefined;
@@ -48063,6 +48092,7 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
48063
48092
  obstructsWithinBounds?: boolean | undefined;
48064
48093
  mfn?: string | undefined;
48065
48094
  manufacturerPartNumber?: string | undefined;
48095
+ schSectionName?: string | undefined;
48066
48096
  connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
48067
48097
  schPinArrangement?: {
48068
48098
  leftSize?: number | undefined;
@@ -48242,6 +48272,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
48242
48272
  key: zod.ZodOptional<zod.ZodAny>;
48243
48273
  name: zod.ZodString;
48244
48274
  displayName: zod.ZodOptional<zod.ZodString>;
48275
+ schSectionName: zod.ZodOptional<zod.ZodString>;
48245
48276
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
48246
48277
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
48247
48278
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -52089,6 +52120,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
52089
52120
  obstructsWithinBounds?: boolean | undefined;
52090
52121
  mfn?: string | undefined;
52091
52122
  manufacturerPartNumber?: string | undefined;
52123
+ schSectionName?: string | undefined;
52092
52124
  connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
52093
52125
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
52094
52126
  color?: string | undefined;
@@ -52673,6 +52705,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
52673
52705
  obstructsWithinBounds?: boolean | undefined;
52674
52706
  mfn?: string | undefined;
52675
52707
  manufacturerPartNumber?: string | undefined;
52708
+ schSectionName?: string | undefined;
52676
52709
  connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
52677
52710
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
52678
52711
  color?: string | undefined;
@@ -52789,6 +52822,7 @@ declare class PowerSource extends NormalComponent<typeof powerSourceProps, Polar
52789
52822
  key: zod.ZodOptional<zod.ZodAny>;
52790
52823
  name: zod.ZodString;
52791
52824
  displayName: zod.ZodOptional<zod.ZodString>;
52825
+ schSectionName: zod.ZodOptional<zod.ZodString>;
52792
52826
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
52793
52827
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
52794
52828
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -56632,6 +56666,7 @@ declare class PowerSource extends NormalComponent<typeof powerSourceProps, Polar
56632
56666
  obstructsWithinBounds?: boolean | undefined;
56633
56667
  mfn?: string | undefined;
56634
56668
  manufacturerPartNumber?: string | undefined;
56669
+ schSectionName?: string | undefined;
56635
56670
  }, {
56636
56671
  name: string;
56637
56672
  voltage: string | number;
@@ -57211,6 +57246,7 @@ declare class PowerSource extends NormalComponent<typeof powerSourceProps, Polar
57211
57246
  obstructsWithinBounds?: boolean | undefined;
57212
57247
  mfn?: string | undefined;
57213
57248
  manufacturerPartNumber?: string | undefined;
57249
+ schSectionName?: string | undefined;
57214
57250
  }>;
57215
57251
  sourceFtype: Ftype;
57216
57252
  };
@@ -57319,6 +57355,7 @@ declare class VoltageSource extends NormalComponent<typeof voltageSourceProps, "
57319
57355
  key: zod.ZodOptional<zod.ZodAny>;
57320
57356
  name: zod.ZodString;
57321
57357
  displayName: zod.ZodOptional<zod.ZodString>;
57358
+ schSectionName: zod.ZodOptional<zod.ZodString>;
57322
57359
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
57323
57360
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
57324
57361
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -61167,6 +61204,7 @@ declare class VoltageSource extends NormalComponent<typeof voltageSourceProps, "
61167
61204
  obstructsWithinBounds?: boolean | undefined;
61168
61205
  mfn?: string | undefined;
61169
61206
  manufacturerPartNumber?: string | undefined;
61207
+ schSectionName?: string | undefined;
61170
61208
  connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
61171
61209
  frequency?: number | undefined;
61172
61210
  voltage?: number | undefined;
@@ -61752,6 +61790,7 @@ declare class VoltageSource extends NormalComponent<typeof voltageSourceProps, "
61752
61790
  obstructsWithinBounds?: boolean | undefined;
61753
61791
  mfn?: string | undefined;
61754
61792
  manufacturerPartNumber?: string | undefined;
61793
+ schSectionName?: string | undefined;
61755
61794
  connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
61756
61795
  frequency?: string | number | undefined;
61757
61796
  voltage?: string | number | undefined;
@@ -61869,6 +61908,7 @@ declare class CurrentSource extends NormalComponent<typeof currentSourceProps, "
61869
61908
  key: zod.ZodOptional<zod.ZodAny>;
61870
61909
  name: zod.ZodString;
61871
61910
  displayName: zod.ZodOptional<zod.ZodString>;
61911
+ schSectionName: zod.ZodOptional<zod.ZodString>;
61872
61912
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
61873
61913
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
61874
61914
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -65717,6 +65757,7 @@ declare class CurrentSource extends NormalComponent<typeof currentSourceProps, "
65717
65757
  obstructsWithinBounds?: boolean | undefined;
65718
65758
  mfn?: string | undefined;
65719
65759
  manufacturerPartNumber?: string | undefined;
65760
+ schSectionName?: string | undefined;
65720
65761
  connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
65721
65762
  frequency?: number | undefined;
65722
65763
  waveShape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
@@ -66302,6 +66343,7 @@ declare class CurrentSource extends NormalComponent<typeof currentSourceProps, "
66302
66343
  obstructsWithinBounds?: boolean | undefined;
66303
66344
  mfn?: string | undefined;
66304
66345
  manufacturerPartNumber?: string | undefined;
66346
+ schSectionName?: string | undefined;
66305
66347
  connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
66306
66348
  frequency?: string | number | undefined;
66307
66349
  waveShape?: "square" | "sinewave" | "triangle" | "sawtooth" | undefined;
@@ -66420,6 +66462,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
66420
66462
  key: zod.ZodOptional<zod.ZodAny>;
66421
66463
  name: zod.ZodString;
66422
66464
  displayName: zod.ZodOptional<zod.ZodString>;
66465
+ schSectionName: zod.ZodOptional<zod.ZodString>;
66423
66466
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
66424
66467
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
66425
66468
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -70271,6 +70314,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
70271
70314
  obstructsWithinBounds?: boolean | undefined;
70272
70315
  mfn?: string | undefined;
70273
70316
  manufacturerPartNumber?: string | undefined;
70317
+ schSectionName?: string | undefined;
70274
70318
  connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
70275
70319
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
70276
70320
  tolerance?: number | undefined;
@@ -70858,6 +70902,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
70858
70902
  obstructsWithinBounds?: boolean | undefined;
70859
70903
  mfn?: string | undefined;
70860
70904
  manufacturerPartNumber?: string | undefined;
70905
+ schSectionName?: string | undefined;
70861
70906
  connections?: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>> | undefined;
70862
70907
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
70863
70908
  tolerance?: string | number | undefined;
@@ -70960,6 +71005,79 @@ declare class Constraint extends PrimitiveComponent<typeof constraintProps> {
70960
71005
  };
70961
71006
  }
70962
71007
 
71008
+ declare class AutoroutingPhase extends PrimitiveComponent<typeof autoroutingPhaseProps> {
71009
+ get config(): {
71010
+ componentName: string;
71011
+ zodProps: zod.ZodEffects<zod.ZodObject<{
71012
+ key: zod.ZodOptional<zod.ZodAny>;
71013
+ autorouter: zod.ZodOptional<zod.ZodType<_tscircuit_props.AutorouterProp, zod.ZodTypeDef, _tscircuit_props.AutorouterProp>>;
71014
+ phaseIndex: zod.ZodOptional<zod.ZodNumber>;
71015
+ region: zod.ZodOptional<zod.ZodObject<{
71016
+ minX: zod.ZodNumber;
71017
+ maxX: zod.ZodNumber;
71018
+ minY: zod.ZodNumber;
71019
+ maxY: zod.ZodNumber;
71020
+ }, "strip", zod.ZodTypeAny, {
71021
+ minX: number;
71022
+ maxX: number;
71023
+ minY: number;
71024
+ maxY: number;
71025
+ }, {
71026
+ minX: number;
71027
+ maxX: number;
71028
+ minY: number;
71029
+ maxY: number;
71030
+ }>>;
71031
+ reroute: zod.ZodOptional<zod.ZodBoolean>;
71032
+ }, "strip", zod.ZodTypeAny, {
71033
+ key?: any;
71034
+ autorouter?: _tscircuit_props.AutorouterProp | undefined;
71035
+ phaseIndex?: number | undefined;
71036
+ region?: {
71037
+ minX: number;
71038
+ maxX: number;
71039
+ minY: number;
71040
+ maxY: number;
71041
+ } | undefined;
71042
+ reroute?: boolean | undefined;
71043
+ }, {
71044
+ key?: any;
71045
+ autorouter?: _tscircuit_props.AutorouterProp | undefined;
71046
+ phaseIndex?: number | undefined;
71047
+ region?: {
71048
+ minX: number;
71049
+ maxX: number;
71050
+ minY: number;
71051
+ maxY: number;
71052
+ } | undefined;
71053
+ reroute?: boolean | undefined;
71054
+ }>, {
71055
+ key?: any;
71056
+ autorouter?: _tscircuit_props.AutorouterProp | undefined;
71057
+ phaseIndex?: number | undefined;
71058
+ region?: {
71059
+ minX: number;
71060
+ maxX: number;
71061
+ minY: number;
71062
+ maxY: number;
71063
+ } | undefined;
71064
+ reroute?: boolean | undefined;
71065
+ }, {
71066
+ key?: any;
71067
+ autorouter?: _tscircuit_props.AutorouterProp | undefined;
71068
+ phaseIndex?: number | undefined;
71069
+ region?: {
71070
+ minX: number;
71071
+ maxX: number;
71072
+ minY: number;
71073
+ maxY: number;
71074
+ } | undefined;
71075
+ reroute?: boolean | undefined;
71076
+ }>;
71077
+ };
71078
+ add(_component: PrimitiveComponent): void;
71079
+ }
71080
+
70963
71081
  declare class FabricationNoteRect extends PrimitiveComponent<typeof fabricationNoteRectProps> {
70964
71082
  fabrication_note_rect_id: string | null;
70965
71083
  isPcbPrimitive: boolean;
@@ -78099,6 +78217,7 @@ declare class Fiducial extends PrimitiveComponent<typeof fiducialProps> {
78099
78217
  key: z.ZodOptional<z.ZodAny>;
78100
78218
  name: z.ZodString;
78101
78219
  displayName: z.ZodOptional<z.ZodString>;
78220
+ schSectionName: z.ZodOptional<z.ZodString>;
78102
78221
  datasheetUrl: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
78103
78222
  cadModel: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodType<string, z.ZodTypeDef, string>, z.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, z.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, z.ZodObject<{
78104
78223
  rotationOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
@@ -81942,6 +82061,7 @@ declare class Fiducial extends PrimitiveComponent<typeof fiducialProps> {
81942
82061
  obstructsWithinBounds?: boolean | undefined;
81943
82062
  mfn?: string | undefined;
81944
82063
  manufacturerPartNumber?: string | undefined;
82064
+ schSectionName?: string | undefined;
81945
82065
  padDiameter?: number | undefined;
81946
82066
  soldermaskPullback?: number | undefined;
81947
82067
  }, {
@@ -82522,6 +82642,7 @@ declare class Fiducial extends PrimitiveComponent<typeof fiducialProps> {
82522
82642
  obstructsWithinBounds?: boolean | undefined;
82523
82643
  mfn?: string | undefined;
82524
82644
  manufacturerPartNumber?: string | undefined;
82645
+ schSectionName?: string | undefined;
82525
82646
  padDiameter?: string | number | undefined;
82526
82647
  soldermaskPullback?: string | number | undefined;
82527
82648
  }>;
@@ -84129,6 +84250,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
84129
84250
  key: zod.ZodOptional<zod.ZodAny>;
84130
84251
  name: zod.ZodString;
84131
84252
  displayName: zod.ZodOptional<zod.ZodString>;
84253
+ schSectionName: zod.ZodOptional<zod.ZodString>;
84132
84254
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
84133
84255
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
84134
84256
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -87974,6 +88096,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
87974
88096
  obstructsWithinBounds?: boolean | undefined;
87975
88097
  mfn?: string | undefined;
87976
88098
  manufacturerPartNumber?: string | undefined;
88099
+ schSectionName?: string | undefined;
87977
88100
  standard?: "AA" | "AAA" | "9V" | "CR2032" | "18650" | "C" | undefined;
87978
88101
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
87979
88102
  capacity?: number | undefined;
@@ -88556,6 +88679,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
88556
88679
  obstructsWithinBounds?: boolean | undefined;
88557
88680
  mfn?: string | undefined;
88558
88681
  manufacturerPartNumber?: string | undefined;
88682
+ schSectionName?: string | undefined;
88559
88683
  standard?: "AA" | "AAA" | "9V" | "CR2032" | "18650" | "C" | undefined;
88560
88684
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
88561
88685
  capacity?: string | number | undefined;
@@ -88672,6 +88796,7 @@ declare class Connector<PinLabels extends string = never> extends Chip<PinLabels
88672
88796
  key: zod.ZodOptional<zod.ZodAny>;
88673
88797
  name: zod.ZodString;
88674
88798
  displayName: zod.ZodOptional<zod.ZodString>;
88799
+ schSectionName: zod.ZodOptional<zod.ZodString>;
88675
88800
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
88676
88801
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
88677
88802
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -92812,6 +92937,7 @@ declare class Connector<PinLabels extends string = never> extends Chip<PinLabels
92812
92937
  obstructsWithinBounds?: boolean | undefined;
92813
92938
  mfn?: string | undefined;
92814
92939
  manufacturerPartNumber?: string | undefined;
92940
+ schSectionName?: string | undefined;
92815
92941
  connections?: Record<string, string | readonly string[] | string[]> | undefined;
92816
92942
  schPinArrangement?: {
92817
92943
  leftSize?: number | undefined;
@@ -93468,6 +93594,7 @@ declare class Connector<PinLabels extends string = never> extends Chip<PinLabels
93468
93594
  obstructsWithinBounds?: boolean | undefined;
93469
93595
  mfn?: string | undefined;
93470
93596
  manufacturerPartNumber?: string | undefined;
93597
+ schSectionName?: string | undefined;
93471
93598
  connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
93472
93599
  schPinArrangement?: {
93473
93600
  leftSize?: number | undefined;
@@ -93655,6 +93782,7 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
93655
93782
  key: zod.ZodOptional<zod.ZodAny>;
93656
93783
  name: zod.ZodString;
93657
93784
  displayName: zod.ZodOptional<zod.ZodString>;
93785
+ schSectionName: zod.ZodOptional<zod.ZodString>;
93658
93786
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
93659
93787
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
93660
93788
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -97667,6 +97795,7 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
97667
97795
  obstructsWithinBounds?: boolean | undefined;
97668
97796
  mfn?: string | undefined;
97669
97797
  manufacturerPartNumber?: string | undefined;
97798
+ schSectionName?: string | undefined;
97670
97799
  connections?: Record<string, string | readonly string[] | string[]> | undefined;
97671
97800
  schPinArrangement?: {
97672
97801
  leftSize?: number | undefined;
@@ -98297,6 +98426,7 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
98297
98426
  obstructsWithinBounds?: boolean | undefined;
98298
98427
  mfn?: string | undefined;
98299
98428
  manufacturerPartNumber?: string | undefined;
98429
+ schSectionName?: string | undefined;
98300
98430
  connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
98301
98431
  schPinArrangement?: {
98302
98432
  leftSize?: number | undefined;
@@ -98455,6 +98585,7 @@ declare class Resonator extends NormalComponent<typeof resonatorProps> {
98455
98585
  key: zod.ZodOptional<zod.ZodAny>;
98456
98586
  name: zod.ZodString;
98457
98587
  displayName: zod.ZodOptional<zod.ZodString>;
98588
+ schSectionName: zod.ZodOptional<zod.ZodString>;
98458
98589
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
98459
98590
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
98460
98591
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -102301,6 +102432,7 @@ declare class Resonator extends NormalComponent<typeof resonatorProps> {
102301
102432
  obstructsWithinBounds?: boolean | undefined;
102302
102433
  mfn?: string | undefined;
102303
102434
  manufacturerPartNumber?: string | undefined;
102435
+ schSectionName?: string | undefined;
102304
102436
  pinVariant?: "no_ground" | "ground_pin" | "two_ground_pins" | undefined;
102305
102437
  }, {
102306
102438
  name: string;
@@ -102882,6 +103014,7 @@ declare class Resonator extends NormalComponent<typeof resonatorProps> {
102882
103014
  obstructsWithinBounds?: boolean | undefined;
102883
103015
  mfn?: string | undefined;
102884
103016
  manufacturerPartNumber?: string | undefined;
103017
+ schSectionName?: string | undefined;
102885
103018
  pinVariant?: "no_ground" | "ground_pin" | "two_ground_pins" | undefined;
102886
103019
  }>;
102887
103020
  shouldRenderAsSchematicBox: boolean;
@@ -102988,6 +103121,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
102988
103121
  key: zod.ZodOptional<zod.ZodAny>;
102989
103122
  name: zod.ZodString;
102990
103123
  displayName: zod.ZodOptional<zod.ZodString>;
103124
+ schSectionName: zod.ZodOptional<zod.ZodString>;
102991
103125
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
102992
103126
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
102993
103127
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -106834,6 +106968,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
106834
106968
  obstructsWithinBounds?: boolean | undefined;
106835
106969
  mfn?: string | undefined;
106836
106970
  manufacturerPartNumber?: string | undefined;
106971
+ schSectionName?: string | undefined;
106837
106972
  connections?: Partial<Record<"left" | "right" | "pin1" | "pin2", string | readonly string[] | string[]>> | undefined;
106838
106973
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
106839
106974
  maxCurrentRating?: string | number | undefined;
@@ -107416,6 +107551,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
107416
107551
  obstructsWithinBounds?: boolean | undefined;
107417
107552
  mfn?: string | undefined;
107418
107553
  manufacturerPartNumber?: string | undefined;
107554
+ schSectionName?: string | undefined;
107419
107555
  connections?: Partial<Record<"left" | "right" | "pin1" | "pin2", string | readonly string[] | string[]>> | undefined;
107420
107556
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
107421
107557
  maxCurrentRating?: string | number | undefined;
@@ -107524,6 +107660,7 @@ declare class Potentiometer extends NormalComponent<typeof potentiometerProps> {
107524
107660
  key: zod.ZodOptional<zod.ZodAny>;
107525
107661
  name: zod.ZodString;
107526
107662
  displayName: zod.ZodOptional<zod.ZodString>;
107663
+ schSectionName: zod.ZodOptional<zod.ZodString>;
107527
107664
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
107528
107665
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
107529
107666
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -111369,6 +111506,7 @@ declare class Potentiometer extends NormalComponent<typeof potentiometerProps> {
111369
111506
  obstructsWithinBounds?: boolean | undefined;
111370
111507
  mfn?: string | undefined;
111371
111508
  manufacturerPartNumber?: string | undefined;
111509
+ schSectionName?: string | undefined;
111372
111510
  connections?: Partial<Record<"pin1" | "pin2" | "pin3", string | readonly string[] | string[]>> | undefined;
111373
111511
  pinVariant?: "two_pin" | "three_pin" | undefined;
111374
111512
  }, {
@@ -111950,6 +112088,7 @@ declare class Potentiometer extends NormalComponent<typeof potentiometerProps> {
111950
112088
  obstructsWithinBounds?: boolean | undefined;
111951
112089
  mfn?: string | undefined;
111952
112090
  manufacturerPartNumber?: string | undefined;
112091
+ schSectionName?: string | undefined;
111953
112092
  connections?: Partial<Record<"pin1" | "pin2" | "pin3", string | readonly string[] | string[]>> | undefined;
111954
112093
  pinVariant?: "two_pin" | "three_pin" | undefined;
111955
112094
  }>;
@@ -112054,6 +112193,7 @@ declare class PushButton extends NormalComponent<typeof pushButtonProps, Passive
112054
112193
  key: zod.ZodOptional<zod.ZodAny>;
112055
112194
  name: zod.ZodString;
112056
112195
  displayName: zod.ZodOptional<zod.ZodString>;
112196
+ schSectionName: zod.ZodOptional<zod.ZodString>;
112057
112197
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
112058
112198
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
112059
112199
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -116192,6 +116332,7 @@ declare class PushButton extends NormalComponent<typeof pushButtonProps, Passive
116192
116332
  obstructsWithinBounds?: boolean | undefined;
116193
116333
  mfn?: string | undefined;
116194
116334
  manufacturerPartNumber?: string | undefined;
116335
+ schSectionName?: string | undefined;
116195
116336
  connections?: Record<string, string | readonly string[] | string[]> | undefined;
116196
116337
  schPinArrangement?: {
116197
116338
  leftSize?: number | undefined;
@@ -116847,6 +116988,7 @@ declare class PushButton extends NormalComponent<typeof pushButtonProps, Passive
116847
116988
  obstructsWithinBounds?: boolean | undefined;
116848
116989
  mfn?: string | undefined;
116849
116990
  manufacturerPartNumber?: string | undefined;
116991
+ schSectionName?: string | undefined;
116850
116992
  connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
116851
116993
  schPinArrangement?: {
116852
116994
  leftSize?: number | undefined;
@@ -117027,6 +117169,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
117027
117169
  key: zod.ZodOptional<zod.ZodAny>;
117028
117170
  name: zod.ZodString;
117029
117171
  displayName: zod.ZodOptional<zod.ZodString>;
117172
+ schSectionName: zod.ZodOptional<zod.ZodString>;
117030
117173
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
117031
117174
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
117032
117175
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -120876,6 +121019,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
120876
121019
  obstructsWithinBounds?: boolean | undefined;
120877
121020
  mfn?: string | undefined;
120878
121021
  manufacturerPartNumber?: string | undefined;
121022
+ schSectionName?: string | undefined;
120879
121023
  connections?: Partial<Record<"left" | "right" | "pin1" | "pin2", string | readonly string[] | string[]>> | undefined;
120880
121024
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
120881
121025
  pinVariant?: "two_pin" | "four_pin" | undefined;
@@ -121460,6 +121604,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
121460
121604
  obstructsWithinBounds?: boolean | undefined;
121461
121605
  mfn?: string | undefined;
121462
121606
  manufacturerPartNumber?: string | undefined;
121607
+ schSectionName?: string | undefined;
121463
121608
  connections?: Partial<Record<"left" | "right" | "pin1" | "pin2", string | readonly string[] | string[]>> | undefined;
121464
121609
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
121465
121610
  pinVariant?: "two_pin" | "four_pin" | undefined;
@@ -121569,6 +121714,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
121569
121714
  key: zod.ZodOptional<zod.ZodAny>;
121570
121715
  name: zod.ZodString;
121571
121716
  displayName: zod.ZodOptional<zod.ZodString>;
121717
+ schSectionName: zod.ZodOptional<zod.ZodString>;
121572
121718
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
121573
121719
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
121574
121720
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -125413,6 +125559,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
125413
125559
  obstructsWithinBounds?: boolean | undefined;
125414
125560
  mfn?: string | undefined;
125415
125561
  manufacturerPartNumber?: string | undefined;
125562
+ schSectionName?: string | undefined;
125416
125563
  connections?: Partial<Record<"pin1" | "pin2" | "pin3" | "emitter" | "collector" | "base" | "gate" | "source" | "drain", string | readonly string[] | string[]>> | undefined;
125417
125564
  }, {
125418
125565
  type: "npn" | "pnp" | "bjt" | "jfet" | "mosfet" | "igbt";
@@ -125993,6 +126140,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
125993
126140
  obstructsWithinBounds?: boolean | undefined;
125994
126141
  mfn?: string | undefined;
125995
126142
  manufacturerPartNumber?: string | undefined;
126143
+ schSectionName?: string | undefined;
125996
126144
  connections?: Partial<Record<"pin1" | "pin2" | "pin3" | "emitter" | "collector" | "base" | "gate" | "source" | "drain", string | readonly string[] | string[]>> | undefined;
125997
126145
  }>;
125998
126146
  sourceFtype: Ftype;
@@ -126104,6 +126252,7 @@ declare class Mosfet extends NormalComponent<typeof mosfetProps> {
126104
126252
  key: zod.ZodOptional<zod.ZodAny>;
126105
126253
  name: zod.ZodString;
126106
126254
  displayName: zod.ZodOptional<zod.ZodString>;
126255
+ schSectionName: zod.ZodOptional<zod.ZodString>;
126107
126256
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
126108
126257
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
126109
126258
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -129949,6 +130098,7 @@ declare class Mosfet extends NormalComponent<typeof mosfetProps> {
129949
130098
  obstructsWithinBounds?: boolean | undefined;
129950
130099
  mfn?: string | undefined;
129951
130100
  manufacturerPartNumber?: string | undefined;
130101
+ schSectionName?: string | undefined;
129952
130102
  }, {
129953
130103
  name: string;
129954
130104
  channelType: "n" | "p";
@@ -130529,6 +130679,7 @@ declare class Mosfet extends NormalComponent<typeof mosfetProps> {
130529
130679
  obstructsWithinBounds?: boolean | undefined;
130530
130680
  mfn?: string | undefined;
130531
130681
  manufacturerPartNumber?: string | undefined;
130682
+ schSectionName?: string | undefined;
130532
130683
  }>;
130533
130684
  shouldRenderAsSchematicBox: boolean;
130534
130685
  };
@@ -130632,6 +130783,7 @@ declare class OpAmp extends NormalComponent<typeof opampProps, OpAmpPinLabels> {
130632
130783
  key: zod.ZodOptional<zod.ZodAny>;
130633
130784
  name: zod.ZodString;
130634
130785
  displayName: zod.ZodOptional<zod.ZodString>;
130786
+ schSectionName: zod.ZodOptional<zod.ZodString>;
130635
130787
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
130636
130788
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
130637
130789
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -134474,6 +134626,7 @@ declare class OpAmp extends NormalComponent<typeof opampProps, OpAmpPinLabels> {
134474
134626
  obstructsWithinBounds?: boolean | undefined;
134475
134627
  mfn?: string | undefined;
134476
134628
  manufacturerPartNumber?: string | undefined;
134629
+ schSectionName?: string | undefined;
134477
134630
  connections?: Partial<Record<"output" | "inverting_input" | "non_inverting_input" | "positive_supply" | "negative_supply", string | readonly string[] | string[]>> | undefined;
134478
134631
  }, {
134479
134632
  name: string;
@@ -135053,6 +135206,7 @@ declare class OpAmp extends NormalComponent<typeof opampProps, OpAmpPinLabels> {
135053
135206
  obstructsWithinBounds?: boolean | undefined;
135054
135207
  mfn?: string | undefined;
135055
135208
  manufacturerPartNumber?: string | undefined;
135209
+ schSectionName?: string | undefined;
135056
135210
  connections?: Partial<Record<"output" | "inverting_input" | "non_inverting_input" | "positive_supply" | "negative_supply", string | readonly string[] | string[]>> | undefined;
135057
135211
  }>;
135058
135212
  sourceFtype: Ftype;
@@ -135165,6 +135319,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
135165
135319
  key: zod.ZodOptional<zod.ZodAny>;
135166
135320
  name: zod.ZodString;
135167
135321
  displayName: zod.ZodOptional<zod.ZodString>;
135322
+ schSectionName: zod.ZodOptional<zod.ZodString>;
135168
135323
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
135169
135324
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
135170
135325
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -139020,6 +139175,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
139020
139175
  obstructsWithinBounds?: boolean | undefined;
139021
139176
  mfn?: string | undefined;
139022
139177
  manufacturerPartNumber?: string | undefined;
139178
+ schSectionName?: string | undefined;
139023
139179
  connections?: Record<string, string | readonly string[] | string[]> | undefined;
139024
139180
  spst?: boolean | undefined;
139025
139181
  spdt?: boolean | undefined;
@@ -139609,6 +139765,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
139609
139765
  obstructsWithinBounds?: boolean | undefined;
139610
139766
  mfn?: string | undefined;
139611
139767
  manufacturerPartNumber?: string | undefined;
139768
+ schSectionName?: string | undefined;
139612
139769
  connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
139613
139770
  spst?: boolean | undefined;
139614
139771
  spdt?: boolean | undefined;
@@ -140199,6 +140356,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
140199
140356
  obstructsWithinBounds?: boolean | undefined;
140200
140357
  mfn?: string | undefined;
140201
140358
  manufacturerPartNumber?: string | undefined;
140359
+ schSectionName?: string | undefined;
140202
140360
  connections?: Partial<Record<string, string | string[] | readonly string[]>> | undefined;
140203
140361
  spst?: boolean | undefined;
140204
140362
  spdt?: boolean | undefined;
@@ -140314,6 +140472,7 @@ declare class TestPoint extends NormalComponent<typeof testpointProps> {
140314
140472
  key: zod.ZodOptional<zod.ZodAny>;
140315
140473
  name: zod.ZodString;
140316
140474
  displayName: zod.ZodOptional<zod.ZodString>;
140475
+ schSectionName: zod.ZodOptional<zod.ZodString>;
140317
140476
  datasheetUrl: zod.ZodOptional<zod.ZodType<string, zod.ZodTypeDef, string>>;
140318
140477
  cadModel: zod.ZodOptional<zod.ZodUnion<[zod.ZodNull, zod.ZodType<string, zod.ZodTypeDef, string>, zod.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, zod.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, zod.ZodObject<{
140319
140478
  rotationOffset: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodObject<{
@@ -144169,6 +144328,7 @@ declare class TestPoint extends NormalComponent<typeof testpointProps> {
144169
144328
  obstructsWithinBounds?: boolean | undefined;
144170
144329
  mfn?: string | undefined;
144171
144330
  manufacturerPartNumber?: string | undefined;
144331
+ schSectionName?: string | undefined;
144172
144332
  width?: number | undefined;
144173
144333
  height?: number | undefined;
144174
144334
  connections?: {
@@ -144755,6 +144915,7 @@ declare class TestPoint extends NormalComponent<typeof testpointProps> {
144755
144915
  obstructsWithinBounds?: boolean | undefined;
144756
144916
  mfn?: string | undefined;
144757
144917
  manufacturerPartNumber?: string | undefined;
144918
+ schSectionName?: string | undefined;
144758
144919
  width?: string | number | undefined;
144759
144920
  height?: string | number | undefined;
144760
144921
  connections?: {
@@ -145341,6 +145502,7 @@ declare class TestPoint extends NormalComponent<typeof testpointProps> {
145341
145502
  obstructsWithinBounds?: boolean | undefined;
145342
145503
  mfn?: string | undefined;
145343
145504
  manufacturerPartNumber?: string | undefined;
145505
+ schSectionName?: string | undefined;
145344
145506
  width?: number | undefined;
145345
145507
  height?: number | undefined;
145346
145508
  connections?: {
@@ -145927,6 +146089,7 @@ declare class TestPoint extends NormalComponent<typeof testpointProps> {
145927
146089
  obstructsWithinBounds?: boolean | undefined;
145928
146090
  mfn?: string | undefined;
145929
146091
  manufacturerPartNumber?: string | undefined;
146092
+ schSectionName?: string | undefined;
145930
146093
  width?: string | number | undefined;
145931
146094
  height?: string | number | undefined;
145932
146095
  connections?: {
@@ -146340,6 +146503,25 @@ declare class SchematicBox extends PrimitiveComponent<typeof schematicBoxProps>
146340
146503
  doInitialSchematicPrimitiveRender(): void;
146341
146504
  }
146342
146505
 
146506
+ declare class SchematicSection extends PrimitiveComponent<typeof schematicSectionProps> {
146507
+ isSchematicPrimitive: boolean;
146508
+ get config(): {
146509
+ componentName: string;
146510
+ zodProps: zod.ZodObject<{
146511
+ displayName: zod.ZodOptional<zod.ZodString>;
146512
+ name: zod.ZodString;
146513
+ }, "strip", zod.ZodTypeAny, {
146514
+ name: string;
146515
+ displayName?: string | undefined;
146516
+ }, {
146517
+ name: string;
146518
+ displayName?: string | undefined;
146519
+ }>;
146520
+ };
146521
+ _computeSectionBounds(board: PrimitiveComponent): Bounds | null;
146522
+ doInitialSchematicSectionRender(): void;
146523
+ }
146524
+
146343
146525
  declare class SchematicTable extends PrimitiveComponent<typeof schematicTableProps> {
146344
146526
  isSchematicPrimitive: boolean;
146345
146527
  schematic_table_id: string | null;
@@ -146587,6 +146769,7 @@ declare class VoltageProbe extends PrimitiveComponent<typeof voltageProbeProps>
146587
146769
  key: z.ZodOptional<z.ZodAny>;
146588
146770
  name: z.ZodString;
146589
146771
  displayName: z.ZodOptional<z.ZodString>;
146772
+ schSectionName: z.ZodOptional<z.ZodString>;
146590
146773
  datasheetUrl: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
146591
146774
  cadModel: z.ZodOptional<z.ZodUnion<[z.ZodNull, z.ZodType<string, z.ZodTypeDef, string>, z.ZodType<react.ReactElement<any, string | react.JSXElementConstructor<any>>, z.ZodTypeDef, react.ReactElement<any, string | react.JSXElementConstructor<any>>>, z.ZodObject<{
146592
146775
  rotationOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
@@ -150433,6 +150616,7 @@ declare class VoltageProbe extends PrimitiveComponent<typeof voltageProbeProps>
150433
150616
  obstructsWithinBounds?: boolean | undefined;
150434
150617
  mfn?: string | undefined;
150435
150618
  manufacturerPartNumber?: string | undefined;
150619
+ schSectionName?: string | undefined;
150436
150620
  color?: string | undefined;
150437
150621
  referenceTo?: string | undefined;
150438
150622
  }, {
@@ -151014,6 +151198,7 @@ declare class VoltageProbe extends PrimitiveComponent<typeof voltageProbeProps>
151014
151198
  obstructsWithinBounds?: boolean | undefined;
151015
151199
  mfn?: string | undefined;
151016
151200
  manufacturerPartNumber?: string | undefined;
151201
+ schSectionName?: string | undefined;
151017
151202
  color?: string | undefined;
151018
151203
  referenceTo?: string | undefined;
151019
151204
  }>;
@@ -151643,6 +151828,7 @@ declare const useLed: <PropsFromHook extends Omit<{
151643
151828
  obstructsWithinBounds?: boolean | undefined;
151644
151829
  mfn?: string | undefined;
151645
151830
  manufacturerPartNumber?: string | undefined;
151831
+ schSectionName?: string | undefined;
151646
151832
  connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
151647
151833
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
151648
151834
  color?: string | undefined;
@@ -152227,6 +152413,7 @@ declare const useLed: <PropsFromHook extends Omit<{
152227
152413
  obstructsWithinBounds?: boolean | undefined;
152228
152414
  mfn?: string | undefined;
152229
152415
  manufacturerPartNumber?: string | undefined;
152416
+ schSectionName?: string | undefined;
152230
152417
  connections?: Partial<Record<"left" | "right" | "pin1" | "pin2" | "anode" | "pos" | "cathode" | "neg", string | readonly string[] | string[]>> | undefined;
152231
152418
  schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
152232
152419
  color?: string | undefined;
@@ -152439,6 +152626,7 @@ interface TscircuitElements {
152439
152626
  chip: _tscircuit_props.ChipProps;
152440
152627
  pinout: _tscircuit_props.PinoutProps;
152441
152628
  powersource: _tscircuit_props.PowerSourceProps;
152629
+ schematicsection: _tscircuit_props.SchematicSectionProps;
152442
152630
  via: _tscircuit_props.ViaProps;
152443
152631
  schematicbox: _tscircuit_props.SchematicBoxProps;
152444
152632
  schematicline: _tscircuit_props.SchematicLineProps;
@@ -152464,6 +152652,7 @@ interface TscircuitElements {
152464
152652
  trace: _tscircuit_props.TraceProps;
152465
152653
  breakout: _tscircuit_props.BreakoutProps;
152466
152654
  breakoutpoint: _tscircuit_props.BreakoutPointProps;
152655
+ autoroutingphase: _tscircuit_props.AutoroutingPhaseProps;
152467
152656
  custom: any;
152468
152657
  component: _tscircuit_props.ComponentProps;
152469
152658
  crystal: _tscircuit_props.CrystalProps;
@@ -152524,4 +152713,4 @@ declare module "react/jsx-runtime" {
152524
152713
  }
152525
152714
  }
152526
152715
 
152527
- export { AnalogSimulation, type AsyncEffect, type AutorouterCompleteEvent, type AutorouterErrorEvent, type AutorouterEvent, type AutorouterProgressEvent, type AutoroutingEndEvent, type AutoroutingErrorEvent, type AutoroutingProgressEvent, type AutoroutingStartEvent, Battery, Board, Breakout, BreakoutPoint, CadAssembly, CadModel, Capacitor, Chip, Circuit, type ComponentWithPins, Connector, Constraint, CopperPour, CopperText, CourtyardCircle, CourtyardOutline, CourtyardRect, Crystal, CurrentSource, Cutout, type DebugLogOutputEvent, Diode, FabricationNoteDimension, FabricationNotePath, FabricationNoteRect, FabricationNoteText, Fiducial, Footprint, Fuse, type GenericConnectionsAndSelectorsSel, type GenericLocalAutorouter, Group, Hole, type IIsolatedCircuit, type IRenderable, type IRootCircuit, Inductor, Interconnect, IsolatedCircuit, Jumper, Keepout, Led, type LocalCacheEngine, Mosfet, MountedBoard, Net, NetLabel, NormalComponent, type Obstacle, OpAmp, type PackingEndEvent, type PackingErrorEvent, type PackingStartEvent, Panel, PcbNoteDimension, PcbNoteLine, PcbNotePath, PcbNoteRect, PcbNoteText, PcbTrace, PinHeader, type PinLabelSpec, Pinout, PlatedHole, Port, Potentiometer, PowerSource, PrimitiveComponent, Project, PushButton, type RenderPhase, type RenderPhaseFn, type RenderPhaseFunctions, type RenderPhaseStates, Renderable, Resistor, Resonator, RootCircuit, type RootCircuitEventName, SOLVERS, SchematicArc, SchematicBox, SchematicCell, SchematicCircle, SchematicLine, SchematicPath, SchematicRect, SchematicRow, SchematicTable, SchematicText, type Sel, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, SmtPad, SolderJumper, type SolverName, type SolverStartedEvent, Subcircuit, Subpanel, Switch, SymbolComponent as Symbol, TestPoint, Trace, TraceHint, Transistor, Via, VoltageProbe, VoltageSource, applyEditEvents, applyEditEventsToManualEditsFile, applyPcbEditEventsToManualEditsFile, applySchematicEditEventsToManualEditsFile, createUseComponent, getPhaseTimingsFromRenderEvents, getSimpleRouteJsonFromCircuitJson, normalizePinLabels, orderedRenderPhases, renderPhaseIndexMap, resolveStaticFileImport, sel, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
152716
+ export { AnalogSimulation, type AsyncEffect, type AutorouterCompleteEvent, type AutorouterErrorEvent, type AutorouterEvent, type AutorouterProgressEvent, type AutoroutingEndEvent, type AutoroutingErrorEvent, AutoroutingPhase, type AutoroutingProgressEvent, type AutoroutingStartEvent, Battery, Board, Breakout, BreakoutPoint, CadAssembly, CadModel, Capacitor, Chip, Circuit, type ComponentWithPins, Connector, Constraint, CopperPour, CopperText, CourtyardCircle, CourtyardOutline, CourtyardRect, Crystal, CurrentSource, Cutout, type DebugLogOutputEvent, Diode, FabricationNoteDimension, FabricationNotePath, FabricationNoteRect, FabricationNoteText, Fiducial, Footprint, Fuse, type GenericConnectionsAndSelectorsSel, type GenericLocalAutorouter, Group, Hole, type IIsolatedCircuit, type IRenderable, type IRootCircuit, Inductor, Interconnect, IsolatedCircuit, Jumper, Keepout, Led, type LocalCacheEngine, Mosfet, MountedBoard, Net, NetLabel, NormalComponent, type Obstacle, OpAmp, type PackingEndEvent, type PackingErrorEvent, type PackingStartEvent, Panel, PcbNoteDimension, PcbNoteLine, PcbNotePath, PcbNoteRect, PcbNoteText, PcbTrace, PinHeader, type PinLabelSpec, Pinout, PlatedHole, Port, Potentiometer, PowerSource, PrimitiveComponent, Project, PushButton, type RenderPhase, type RenderPhaseFn, type RenderPhaseFunctions, type RenderPhaseStates, Renderable, Resistor, Resonator, RootCircuit, type RootCircuitEventName, SOLVERS, SchematicArc, SchematicBox, SchematicCell, SchematicCircle, SchematicLine, SchematicPath, SchematicRect, SchematicRow, SchematicSection, SchematicTable, SchematicText, type Sel, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, SmtPad, SolderJumper, type SolverName, type SolverStartedEvent, Subcircuit, Subpanel, Switch, SymbolComponent as Symbol, TestPoint, Trace, TraceHint, Transistor, Via, VoltageProbe, VoltageSource, applyEditEvents, applyEditEventsToManualEditsFile, applyPcbEditEventsToManualEditsFile, applySchematicEditEventsToManualEditsFile, createUseComponent, getPhaseTimingsFromRenderEvents, getSimpleRouteJsonFromCircuitJson, normalizePinLabels, orderedRenderPhases, renderPhaseIndexMap, resolveStaticFileImport, sel, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
package/dist/index.js CHANGED
@@ -8,6 +8,7 @@ var __export = (target, all) => {
8
8
  var components_exports = {};
9
9
  __export(components_exports, {
10
10
  AnalogSimulation: () => AnalogSimulation,
11
+ AutoroutingPhase: () => AutoroutingPhase,
11
12
  Battery: () => Battery,
12
13
  Board: () => Board,
13
14
  Breakout: () => Breakout,
@@ -73,6 +74,7 @@ __export(components_exports, {
73
74
  SchematicPath: () => SchematicPath,
74
75
  SchematicRect: () => SchematicRect,
75
76
  SchematicRow: () => SchematicRow,
77
+ SchematicSection: () => SchematicSection,
76
78
  SchematicTable: () => SchematicTable,
77
79
  SchematicText: () => SchematicText,
78
80
  SilkscreenCircle: () => SilkscreenCircle,
@@ -329,6 +331,7 @@ var orderedRenderPhases = [
329
331
  "SchematicSymbolResize",
330
332
  "SchematicComponentSizeCalculation",
331
333
  "SchematicLayout",
334
+ "SchematicSectionRender",
332
335
  "SchematicTraceRender",
333
336
  "SchematicReplaceNetLabelsWithSymbols",
334
337
  "PanelBoardLayout",
@@ -371,6 +374,7 @@ var asyncPhaseDependencies = {
371
374
  "FetchPartFootprint"
372
375
  ],
373
376
  SchematicLayout: ["PcbFootprintStringRender", "FetchPartFootprint"],
377
+ SchematicSectionRender: ["PcbFootprintStringRender", "FetchPartFootprint"],
374
378
  SchematicTraceRender: ["PcbFootprintStringRender", "FetchPartFootprint"],
375
379
  SchematicReplaceNetLabelsWithSymbols: [
376
380
  "PcbFootprintStringRender",
@@ -17040,6 +17044,15 @@ function createSchematicTraceSolverInputProblem(group) {
17040
17044
  ...childGroups.map((a) => a.schematic_group_id)
17041
17045
  ];
17042
17046
  const schematicComponents = db.schematic_component.list().filter((a) => allSchematicGroupIds.includes(a.schematic_group_id));
17047
+ const componentNameToSectionId = /* @__PURE__ */ new Map();
17048
+ for (const component of group.getDescendants()) {
17049
+ if (component.name && component._parsedProps?.schSectionName) {
17050
+ componentNameToSectionId.set(
17051
+ component.name,
17052
+ component._parsedProps.schSectionName
17053
+ );
17054
+ }
17055
+ }
17043
17056
  const chips = [];
17044
17057
  const pinIdToSchematicPortId = /* @__PURE__ */ new Map();
17045
17058
  const schematicPortIdToPinId = /* @__PURE__ */ new Map();
@@ -17065,12 +17078,17 @@ function createSchematicTraceSolverInputProblem(group) {
17065
17078
  y: schematicPort.center.y
17066
17079
  });
17067
17080
  }
17081
+ let sectionId;
17082
+ if (sourceComponent?.name) {
17083
+ sectionId = componentNameToSectionId.get(sourceComponent.name);
17084
+ }
17068
17085
  chips.push({
17069
17086
  chipId,
17070
17087
  center: schematicComponent.center,
17071
17088
  width: schematicComponent.size.width,
17072
17089
  height: schematicComponent.size.height,
17073
- pins
17090
+ pins,
17091
+ sectionId
17074
17092
  });
17075
17093
  }
17076
17094
  const allSourceAndSchematicPortIdsInScope = /* @__PURE__ */ new Set();
@@ -18188,7 +18206,7 @@ function getTraceRoutingPhaseIndex(trace) {
18188
18206
  let routingPhaseIndex = null;
18189
18207
  const connectedNets = trace._findConnectedNets().nets;
18190
18208
  for (const net of connectedNets) {
18191
- const netRoutingPhaseIndex = net.props.routingPhaseIndex;
18209
+ const netRoutingPhaseIndex = getNetRoutingPhaseIndex(net);
18192
18210
  if (typeof netRoutingPhaseIndex === "number") {
18193
18211
  if (routingPhaseIndex === null || netRoutingPhaseIndex < routingPhaseIndex) {
18194
18212
  routingPhaseIndex = netRoutingPhaseIndex;
@@ -18197,11 +18215,24 @@ function getTraceRoutingPhaseIndex(trace) {
18197
18215
  }
18198
18216
  return routingPhaseIndex;
18199
18217
  }
18218
+ function getAutoroutersByPhaseIndex(group) {
18219
+ const autoroutingPhases = group.selectAll(
18220
+ "autoroutingphase"
18221
+ );
18222
+ const autoroutersByPhaseIndex = /* @__PURE__ */ new Map();
18223
+ for (const autoroutingPhase of autoroutingPhases) {
18224
+ const { phaseIndex, autorouter } = autoroutingPhase._parsedProps;
18225
+ if (autorouter === void 0) continue;
18226
+ autoroutersByPhaseIndex.set(phaseIndex ?? null, autorouter);
18227
+ }
18228
+ return autoroutersByPhaseIndex;
18229
+ }
18200
18230
  function Group_getRoutingPhasePlans(group) {
18201
18231
  const traces = group.selectAll("trace");
18202
18232
  const nets = group.selectAll("net");
18203
18233
  if (traces.length === 0 && nets.length === 0) return [];
18204
18234
  const plansByPhaseIndex = /* @__PURE__ */ new Map();
18235
+ const autoroutersByPhaseIndex = getAutoroutersByPhaseIndex(group);
18205
18236
  for (const net of nets) {
18206
18237
  const routingPhaseIndex = getNetRoutingPhaseIndex(net);
18207
18238
  getOrCreateRoutingPhasePlan(plansByPhaseIndex, routingPhaseIndex).nets.push(
@@ -18215,7 +18246,13 @@ function Group_getRoutingPhasePlans(group) {
18215
18246
  routingPhaseIndex
18216
18247
  ).traces.push(trace);
18217
18248
  }
18218
- return Array.from(plansByPhaseIndex.values()).sort(compareRoutingPhasePlans);
18249
+ const plans = Array.from(plansByPhaseIndex.values()).sort(
18250
+ compareRoutingPhasePlans
18251
+ );
18252
+ for (const plan of plans) {
18253
+ plan.autorouter = autoroutersByPhaseIndex.get(plan.routingPhaseIndex);
18254
+ }
18255
+ return plans;
18219
18256
  }
18220
18257
 
18221
18258
  // lib/components/primitive-components/Group/Group_phasedAutoroutingUtils.ts
@@ -19105,6 +19142,7 @@ var Group6 = class extends NormalComponent3 {
19105
19142
  const outputTraces = [];
19106
19143
  const outputJumpers = [];
19107
19144
  for (const routingPhasePlan of routingPhasePlans) {
19145
+ const phaseAutorouterConfig = routingPhasePlan.autorouter ? getPresetAutoroutingConfig(routingPhasePlan.autorouter) : autorouterConfig;
19108
19146
  let simpleRouteJson = baseSimpleRouteJson;
19109
19147
  if (hasPhasedAutorouting) {
19110
19148
  simpleRouteJson = Group_filterSimpleRouteJsonForPhase(
@@ -19119,10 +19157,12 @@ var Group6 = class extends NormalComponent3 {
19119
19157
  if (hasPhasedAutorouting && simpleRouteJson.connections.length === 0) {
19120
19158
  continue;
19121
19159
  }
19122
- if (isAutoJumperPreset) {
19160
+ const phaseIsAutoJumperPreset = routingPhasePlan.autorouter !== void 0 ? this._isAutoJumperAutorouter(phaseAutorouterConfig) : isAutoJumperPreset;
19161
+ const phaseIsLaserPrefabPreset = routingPhasePlan.autorouter !== void 0 ? this._isLaserPrefabAutorouter(phaseAutorouterConfig) : isLaserPrefabPreset;
19162
+ if (phaseIsAutoJumperPreset) {
19123
19163
  simpleRouteJson.allowJumpers = true;
19124
- if (autorouterConfig.availableJumperTypes) {
19125
- simpleRouteJson.availableJumperTypes = autorouterConfig.availableJumperTypes;
19164
+ if (phaseAutorouterConfig.availableJumperTypes) {
19165
+ simpleRouteJson.availableJumperTypes = phaseAutorouterConfig.availableJumperTypes;
19126
19166
  }
19127
19167
  }
19128
19168
  if (debug11.enabled) {
@@ -19145,18 +19185,18 @@ var Group6 = class extends NormalComponent3 {
19145
19185
  simpleRouteJson
19146
19186
  });
19147
19187
  let autorouter;
19148
- if (autorouterConfig.algorithmFn) {
19149
- autorouter = await autorouterConfig.algorithmFn(simpleRouteJson);
19188
+ if (phaseAutorouterConfig.algorithmFn) {
19189
+ autorouter = await phaseAutorouterConfig.algorithmFn(simpleRouteJson);
19150
19190
  } else {
19151
19191
  const autorouterVersion2 = this.props.autorouterVersion;
19152
19192
  const effortLevel = this.props.autorouterEffortLevel;
19153
19193
  const effort = effortLevel ? Number.parseInt(effortLevel.replace("x", ""), 10) : void 0;
19154
19194
  autorouter = new TscircuitAutorouter(simpleRouteJson, {
19155
19195
  // Optional configuration parameters
19156
- capacityDepth: this.props.autorouter?.capacityDepth,
19157
- targetMinCapacity: this.props.autorouter?.targetMinCapacity,
19158
- useAssignableSolver: isLaserPrefabPreset || isSingleLayerBoard,
19159
- useAutoJumperSolver: isAutoJumperPreset,
19196
+ capacityDepth: phaseAutorouterConfig.capacityDepth,
19197
+ targetMinCapacity: phaseAutorouterConfig.targetMinCapacity,
19198
+ useAssignableSolver: phaseIsLaserPrefabPreset || isSingleLayerBoard,
19199
+ useAutoJumperSolver: phaseIsAutoJumperPreset,
19160
19200
  autorouterVersion: autorouterVersion2,
19161
19201
  effort,
19162
19202
  onSolverStarted: ({ solverName, solverParams }) => this.root?.emit("solver:started", {
@@ -20419,7 +20459,7 @@ import { identity as identity5 } from "transformation-matrix";
20419
20459
  var package_default = {
20420
20460
  name: "@tscircuit/core",
20421
20461
  type: "module",
20422
- version: "0.0.1216",
20462
+ version: "0.0.1218",
20423
20463
  types: "dist/index.d.ts",
20424
20464
  main: "dist/index.js",
20425
20465
  module: "dist/index.js",
@@ -20465,9 +20505,9 @@ var package_default = {
20465
20505
  "@tscircuit/math-utils": "^0.0.36",
20466
20506
  "@tscircuit/miniflex": "^0.0.4",
20467
20507
  "@tscircuit/ngspice-spice-engine": "^0.0.8",
20468
- "@tscircuit/props": "^0.0.521",
20508
+ "@tscircuit/props": "^0.0.522",
20469
20509
  "@tscircuit/schematic-match-adapt": "^0.0.16",
20470
- "@tscircuit/schematic-trace-solver": "^0.0.51",
20510
+ "@tscircuit/schematic-trace-solver": "^0.0.55",
20471
20511
  "@tscircuit/solver-utils": "^0.0.3",
20472
20512
  "@tscircuit/soup-util": "^0.0.41",
20473
20513
  "@types/bun": "^1.2.16",
@@ -20525,6 +20565,7 @@ var package_default = {
20525
20565
  dependencies: {
20526
20566
  "@flatten-js/core": "^1.6.2",
20527
20567
  "@lume/kiwi": "^0.4.3",
20568
+ "calculate-cell-boundaries": "^0.0.1",
20528
20569
  "calculate-packing": "0.0.73",
20529
20570
  "css-select": "5.1.0",
20530
20571
  "format-si-unit": "^0.0.3",
@@ -23143,6 +23184,20 @@ var Constraint3 = class extends PrimitiveComponent2 {
23143
23184
  }
23144
23185
  };
23145
23186
 
23187
+ // lib/components/primitive-components/AutoroutingPhase.ts
23188
+ import { autoroutingPhaseProps } from "@tscircuit/props";
23189
+ var AutoroutingPhase = class extends PrimitiveComponent2 {
23190
+ get config() {
23191
+ return {
23192
+ componentName: "AutoroutingPhase",
23193
+ zodProps: autoroutingPhaseProps
23194
+ };
23195
+ }
23196
+ add(_component) {
23197
+ throw new Error("<autoroutingphase> cannot contain children");
23198
+ }
23199
+ };
23200
+
23146
23201
  // lib/components/primitive-components/FabricationNoteDimension.ts
23147
23202
  import { fabricationNoteDimensionProps } from "@tscircuit/props";
23148
23203
  import { applyToPoint as applyToPoint18 } from "transformation-matrix";
@@ -25993,6 +26048,113 @@ var SchematicBox = class extends PrimitiveComponent2 {
25993
26048
  }
25994
26049
  };
25995
26050
 
26051
+ // lib/components/primitive-components/SchematicSection.ts
26052
+ import {
26053
+ calculateCellBoundaries,
26054
+ computeBoundsFromCellContents
26055
+ } from "calculate-cell-boundaries";
26056
+ import { schematicSectionProps } from "@tscircuit/props";
26057
+ var SchematicSection = class _SchematicSection extends PrimitiveComponent2 {
26058
+ isSchematicPrimitive = true;
26059
+ get config() {
26060
+ return {
26061
+ componentName: "SchematicSection",
26062
+ zodProps: schematicSectionProps
26063
+ };
26064
+ }
26065
+ _computeSectionBounds(board) {
26066
+ const { db } = this.root;
26067
+ const { name } = this._parsedProps;
26068
+ const members = board.getDescendants().filter((c) => c.props?.schSectionName === name);
26069
+ if (members.length === 0) return null;
26070
+ const positions = [];
26071
+ for (const member of members) {
26072
+ const schematicComponentId = member.schematic_component_id;
26073
+ if (!schematicComponentId) continue;
26074
+ const schComp = db.schematic_component.get(schematicComponentId);
26075
+ if (!schComp) continue;
26076
+ const hw = schComp.size.width / 2;
26077
+ const hh = schComp.size.height / 2;
26078
+ positions.push({
26079
+ minX: schComp.center.x - hw,
26080
+ maxX: schComp.center.x + hw,
26081
+ minY: schComp.center.y - hh,
26082
+ maxY: schComp.center.y + hh
26083
+ });
26084
+ }
26085
+ if (positions.length === 0) return null;
26086
+ return computeBoundsFromCellContents(positions);
26087
+ }
26088
+ doInitialSchematicSectionRender() {
26089
+ if (this.root?.schematicDisabled) return;
26090
+ const board = this.root?._getBoard();
26091
+ if (!board) return;
26092
+ const allSections = board.getDescendants().filter((c) => c instanceof _SchematicSection);
26093
+ if (allSections[0] !== this) return;
26094
+ const { db } = this.root;
26095
+ const PADDING = 0.5;
26096
+ const LABEL_PADDING = 0.2;
26097
+ const STROKE_WIDTH = 0.02;
26098
+ const TOL3 = 1e-3;
26099
+ const sectionData = allSections.map((section) => {
26100
+ const bounds = section._computeSectionBounds(board);
26101
+ if (!bounds) return null;
26102
+ return {
26103
+ section,
26104
+ rawBounds: bounds,
26105
+ cell: {
26106
+ minX: bounds.minX - PADDING,
26107
+ maxX: bounds.maxX + PADDING,
26108
+ minY: bounds.minY - PADDING,
26109
+ maxY: bounds.maxY + PADDING
26110
+ }
26111
+ };
26112
+ }).filter((s) => s !== null);
26113
+ if (sectionData.length === 0) return;
26114
+ const allCells = sectionData.map((s) => s.cell);
26115
+ const outer = computeBoundsFromCellContents(allCells);
26116
+ const dividers = calculateCellBoundaries(
26117
+ sectionData.map((s) => s.rawBounds)
26118
+ );
26119
+ for (const line of dividers) {
26120
+ db.schematic_line.insert({
26121
+ x1: line.start.x,
26122
+ y1: line.start.y,
26123
+ x2: line.end.x,
26124
+ y2: line.end.y,
26125
+ stroke_width: STROKE_WIDTH,
26126
+ color: "#000000",
26127
+ is_dashed: false
26128
+ });
26129
+ }
26130
+ const hDividers = dividers.filter(
26131
+ (l) => Math.abs(l.start.y - l.end.y) < TOL3
26132
+ );
26133
+ const vDividers = dividers.filter(
26134
+ (l) => Math.abs(l.start.x - l.end.x) < TOL3
26135
+ );
26136
+ for (const { section, cell, rawBounds } of sectionData) {
26137
+ const { displayName } = section._parsedProps;
26138
+ if (!displayName) continue;
26139
+ const dividersAbove = hDividers.map((l) => l.start.y).filter((y) => y > cell.minY);
26140
+ const topBoundary = dividersAbove.length > 0 ? Math.min(...dividersAbove) : outer.maxY;
26141
+ const dividersToLeft = vDividers.map((l) => l.start.x).filter((x) => x < rawBounds.minX);
26142
+ const leftBoundary = dividersToLeft.length > 0 ? Math.max(...dividersToLeft) : outer.minX;
26143
+ db.schematic_text.insert({
26144
+ anchor: "top_left",
26145
+ text: displayName,
26146
+ font_size: 0.18,
26147
+ color: "#000000",
26148
+ position: {
26149
+ x: leftBoundary + LABEL_PADDING,
26150
+ y: topBoundary - LABEL_PADDING
26151
+ },
26152
+ rotation: 0
26153
+ });
26154
+ }
26155
+ }
26156
+ };
26157
+
25996
26158
  // lib/components/primitive-components/SchematicTable.ts
25997
26159
  import { schematicTableProps } from "@tscircuit/props";
25998
26160
  var SchematicTable = class extends PrimitiveComponent2 {
@@ -26791,6 +26953,7 @@ extendCatalogue({
26791
26953
  });
26792
26954
  export {
26793
26955
  AnalogSimulation,
26956
+ AutoroutingPhase,
26794
26957
  Battery,
26795
26958
  Board,
26796
26959
  Breakout,
@@ -26861,6 +27024,7 @@ export {
26861
27024
  SchematicPath,
26862
27025
  SchematicRect,
26863
27026
  SchematicRow,
27027
+ SchematicSection,
26864
27028
  SchematicTable,
26865
27029
  SchematicText,
26866
27030
  SilkscreenCircle,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1217",
4
+ "version": "0.0.1219",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -47,9 +47,9 @@
47
47
  "@tscircuit/math-utils": "^0.0.36",
48
48
  "@tscircuit/miniflex": "^0.0.4",
49
49
  "@tscircuit/ngspice-spice-engine": "^0.0.8",
50
- "@tscircuit/props": "^0.0.521",
50
+ "@tscircuit/props": "^0.0.522",
51
51
  "@tscircuit/schematic-match-adapt": "^0.0.16",
52
- "@tscircuit/schematic-trace-solver": "^0.0.51",
52
+ "@tscircuit/schematic-trace-solver": "^0.0.55",
53
53
  "@tscircuit/solver-utils": "^0.0.3",
54
54
  "@tscircuit/soup-util": "^0.0.41",
55
55
  "@types/bun": "^1.2.16",
@@ -107,6 +107,7 @@
107
107
  "dependencies": {
108
108
  "@flatten-js/core": "^1.6.2",
109
109
  "@lume/kiwi": "^0.4.3",
110
+ "calculate-cell-boundaries": "^0.0.1",
110
111
  "calculate-packing": "0.0.73",
111
112
  "css-select": "5.1.0",
112
113
  "format-si-unit": "^0.0.3",