@tscircuit/core 0.0.921 → 0.0.923
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 +17 -2
- package/dist/index.js +182 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ import { Matrix } from 'transformation-matrix';
|
|
|
12
12
|
import { CircuitJsonUtilObjects } from '@tscircuit/circuit-json-util';
|
|
13
13
|
import { ConnectivityMap } from 'circuit-json-to-connectivity-map';
|
|
14
14
|
import { GraphicsObject } from 'graphics-debug';
|
|
15
|
+
import { PackSolver2 } from 'calculate-packing';
|
|
16
|
+
import { AutoroutingPipelineSolver, AssignableViaAutoroutingPipelineSolver } from '@tscircuit/capacity-autorouter';
|
|
15
17
|
|
|
16
18
|
declare const orderedRenderPhases: readonly ["ReactSubtreesRender", "InflateSubcircuitCircuitJson", "SourceNameDuplicateComponentRemoval", "PcbFootprintStringRender", "InitializePortsFromChildren", "CreateNetsFromProps", "AssignFallbackProps", "CreateTracesFromProps", "CreateTracesFromNetLabels", "CreateTraceHintsFromProps", "SourceGroupRender", "AssignNameToUnnamedComponents", "SourceRender", "SourceParentAttachment", "PortMatching", "OptimizeSelectorCache", "SourceTraceRender", "SourceAddConnectivityMapKey", "SourceDesignRuleChecks", "SimulationRender", "SchematicComponentRender", "SchematicPortRender", "SchematicPrimitiveRender", "SchematicComponentSizeCalculation", "SchematicLayout", "SchematicTraceRender", "SchematicReplaceNetLabelsWithSymbols", "PcbComponentRender", "PcbPrimitiveRender", "PcbFootprintLayout", "PcbPortRender", "PcbPortAttachment", "PcbComponentSizeCalculation", "PcbComponentAnchorAlignment", "PcbLayout", "PcbBoardAutoSize", "PanelLayout", "PcbTraceHintRender", "PcbManualTraceRender", "PcbTraceRender", "PcbRouteNetIslands", "PcbCopperPourRender", "PcbDesignRuleChecks", "SilkscreenOverlapAdjustment", "CadModelRender", "PartsEngineRender", "SimulationSpiceEngineRender"];
|
|
17
19
|
type RenderPhase = (typeof orderedRenderPhases)[number];
|
|
@@ -183,7 +185,7 @@ interface SimpleRouteJson {
|
|
|
183
185
|
traces?: SimplifiedPcbTrace[];
|
|
184
186
|
}
|
|
185
187
|
|
|
186
|
-
type RootCircuitEventName = "asyncEffect:start" | "asyncEffect:end" | "renderable:renderLifecycle:anyEvent" | `renderable:renderLifecycle:${RenderPhase}:start` | `renderable:renderLifecycle:${RenderPhase}:end` | `board:renderPhaseStarted` | "external:evalError" | "autorouting:start" | "autorouting:end" | "autorouting:error" | "autorouting:progress" | "packing:start" | "packing:end" | "packing:error" | "renderComplete" | "debug:logOutput";
|
|
188
|
+
type RootCircuitEventName = "asyncEffect:start" | "asyncEffect:end" | "renderable:renderLifecycle:anyEvent" | `renderable:renderLifecycle:${RenderPhase}:start` | `renderable:renderLifecycle:${RenderPhase}:end` | `board:renderPhaseStarted` | "external:evalError" | "autorouting:start" | "autorouting:end" | "autorouting:error" | "autorouting:progress" | "packing:start" | "packing:end" | "packing:error" | "solver:started" | "renderComplete" | "debug:logOutput";
|
|
187
189
|
interface AutoroutingStartEvent {
|
|
188
190
|
type: "autorouting:start";
|
|
189
191
|
subcircuit_id: string;
|
|
@@ -230,6 +232,12 @@ interface PackingErrorEvent {
|
|
|
230
232
|
message: string;
|
|
231
233
|
};
|
|
232
234
|
}
|
|
235
|
+
interface SolverStartedEvent {
|
|
236
|
+
type: "solver:started";
|
|
237
|
+
solverName: string;
|
|
238
|
+
solverParams: unknown;
|
|
239
|
+
componentName: string;
|
|
240
|
+
}
|
|
233
241
|
interface DebugLogOutputEvent {
|
|
234
242
|
type: "debug:logOutput";
|
|
235
243
|
name: string;
|
|
@@ -43227,6 +43235,13 @@ declare const applySchematicEditEventsToManualEditsFile: ({ circuitJson, editEve
|
|
|
43227
43235
|
manualEditsFile: z.infer<typeof manual_edits_file>;
|
|
43228
43236
|
}) => z.infer<typeof manual_edits_file>;
|
|
43229
43237
|
|
|
43238
|
+
declare const SOLVERS: {
|
|
43239
|
+
PackSolver2: typeof PackSolver2;
|
|
43240
|
+
AutoroutingPipelineSolver: typeof AutoroutingPipelineSolver;
|
|
43241
|
+
AssignableViaAutoroutingPipelineSolver: typeof AssignableViaAutoroutingPipelineSolver;
|
|
43242
|
+
};
|
|
43243
|
+
type SolverName = keyof typeof SOLVERS;
|
|
43244
|
+
|
|
43230
43245
|
interface TscircuitElements {
|
|
43231
43246
|
resistor: _tscircuit_props.ResistorProps;
|
|
43232
43247
|
capacitor: _tscircuit_props.CapacitorProps;
|
|
@@ -43322,4 +43337,4 @@ declare module "react/jsx-runtime" {
|
|
|
43322
43337
|
}
|
|
43323
43338
|
}
|
|
43324
43339
|
|
|
43325
|
-
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, Constraint, CopperPour, Crystal, Cutout, type DebugLogOutputEvent, Diode, FabricationNoteDimension, FabricationNotePath, FabricationNoteRect, FabricationNoteText, Footprint, Fuse, type GenericConnectionsAndSelectorsSel, type GenericLocalAutorouter, Group, Hole, type IRenderable, Inductor, Interconnect, Jumper, Keepout, Led, type LocalCacheEngine, Mosfet, Net, NetLabel, NormalComponent, type Obstacle, 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, SchematicArc, SchematicBox, SchematicCell, SchematicCircle, SchematicLine, SchematicRect, SchematicRow, SchematicTable, SchematicText, type Sel, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, SmtPad, SolderJumper, Subcircuit, Switch, SymbolComponent as Symbol, TestPoint, Trace, TraceHint, Transistor, Via, VoltageProbe, VoltageSource, applyEditEvents, applyEditEventsToManualEditsFile, applyPcbEditEventsToManualEditsFile, applySchematicEditEventsToManualEditsFile, createUseComponent, getPhaseTimingsFromRenderEvents, getSimpleRouteJsonFromCircuitJson, normalizePinLabels, orderedRenderPhases, resolveStaticFileImport, sel, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
|
|
43340
|
+
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, Constraint, CopperPour, Crystal, Cutout, type DebugLogOutputEvent, Diode, FabricationNoteDimension, FabricationNotePath, FabricationNoteRect, FabricationNoteText, Footprint, Fuse, type GenericConnectionsAndSelectorsSel, type GenericLocalAutorouter, Group, Hole, type IRenderable, Inductor, Interconnect, Jumper, Keepout, Led, type LocalCacheEngine, Mosfet, Net, NetLabel, NormalComponent, type Obstacle, 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, SchematicRect, SchematicRow, SchematicTable, SchematicText, type Sel, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, SmtPad, SolderJumper, type SolverName, type SolverStartedEvent, Subcircuit, Switch, SymbolComponent as Symbol, TestPoint, Trace, TraceHint, Transistor, Via, VoltageProbe, VoltageSource, applyEditEvents, applyEditEventsToManualEditsFile, applyPcbEditEventsToManualEditsFile, applySchematicEditEventsToManualEditsFile, createUseComponent, getPhaseTimingsFromRenderEvents, getSimpleRouteJsonFromCircuitJson, normalizePinLabels, orderedRenderPhases, resolveStaticFileImport, sel, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
|
package/dist/index.js
CHANGED
|
@@ -9575,18 +9575,30 @@ var CapacityMeshAutorouter = class {
|
|
|
9575
9575
|
capacityDepth,
|
|
9576
9576
|
targetMinCapacity,
|
|
9577
9577
|
stepDelay = 0,
|
|
9578
|
-
useAssignableViaSolver = false
|
|
9578
|
+
useAssignableViaSolver = false,
|
|
9579
|
+
onSolverStarted
|
|
9579
9580
|
} = options;
|
|
9580
9581
|
const {
|
|
9581
|
-
AutoroutingPipelineSolver,
|
|
9582
|
-
AssignableViaAutoroutingPipelineSolver
|
|
9582
|
+
AutoroutingPipelineSolver: AutoroutingPipelineSolver2,
|
|
9583
|
+
AssignableViaAutoroutingPipelineSolver: AssignableViaAutoroutingPipelineSolver2
|
|
9583
9584
|
} = CapacityAutorouter;
|
|
9584
|
-
const SolverClass = useAssignableViaSolver ?
|
|
9585
|
+
const SolverClass = useAssignableViaSolver ? AssignableViaAutoroutingPipelineSolver2 : AutoroutingPipelineSolver2;
|
|
9585
9586
|
this.solver = new SolverClass(input, {
|
|
9586
9587
|
capacityDepth,
|
|
9587
9588
|
targetMinCapacity,
|
|
9588
9589
|
cacheProvider: null
|
|
9589
9590
|
});
|
|
9591
|
+
onSolverStarted?.({
|
|
9592
|
+
solverName: SolverClass.name,
|
|
9593
|
+
solverParams: {
|
|
9594
|
+
input,
|
|
9595
|
+
options: {
|
|
9596
|
+
capacityDepth,
|
|
9597
|
+
targetMinCapacity,
|
|
9598
|
+
cacheProvider: null
|
|
9599
|
+
}
|
|
9600
|
+
}
|
|
9601
|
+
});
|
|
9590
9602
|
this.stepDelay = stepDelay;
|
|
9591
9603
|
}
|
|
9592
9604
|
/**
|
|
@@ -11897,7 +11909,7 @@ function getPresetAutoroutingConfig(autorouterConfig) {
|
|
|
11897
11909
|
|
|
11898
11910
|
// lib/components/primitive-components/Group/Group_doInitialPcbLayoutPack/Group_doInitialPcbLayoutPack.ts
|
|
11899
11911
|
import {
|
|
11900
|
-
|
|
11912
|
+
PackSolver2,
|
|
11901
11913
|
convertCircuitJsonToPackOutput,
|
|
11902
11914
|
convertPackOutputToPackInput,
|
|
11903
11915
|
getGraphicsFromPackOutput
|
|
@@ -12403,7 +12415,18 @@ var Group_doInitialPcbLayoutPack = (group) => {
|
|
|
12403
12415
|
}
|
|
12404
12416
|
let packOutput;
|
|
12405
12417
|
try {
|
|
12406
|
-
|
|
12418
|
+
const solver = new PackSolver2(packInput);
|
|
12419
|
+
group.root?.emit("solver:started", {
|
|
12420
|
+
type: "solver:started",
|
|
12421
|
+
solverName: solver.constructor.name,
|
|
12422
|
+
solverParams: solver.getConstructorParams(),
|
|
12423
|
+
componentName: group.getString()
|
|
12424
|
+
});
|
|
12425
|
+
solver.solve();
|
|
12426
|
+
packOutput = {
|
|
12427
|
+
...packInput,
|
|
12428
|
+
components: solver.packedComponents
|
|
12429
|
+
};
|
|
12407
12430
|
} catch (error) {
|
|
12408
12431
|
group.root?.emit("packing:error", {
|
|
12409
12432
|
subcircuit_id: group.subcircuit_id,
|
|
@@ -14016,7 +14039,13 @@ var Group6 = class extends NormalComponent3 {
|
|
|
14016
14039
|
// Optional configuration parameters
|
|
14017
14040
|
capacityDepth: this.props.autorouter?.capacityDepth,
|
|
14018
14041
|
targetMinCapacity: this.props.autorouter?.targetMinCapacity,
|
|
14019
|
-
useAssignableViaSolver: isLaserPrefabPreset || isSingleLayerBoard
|
|
14042
|
+
useAssignableViaSolver: isLaserPrefabPreset || isSingleLayerBoard,
|
|
14043
|
+
onSolverStarted: ({ solverName, solverParams }) => this.root?.emit("solver:started", {
|
|
14044
|
+
type: "solver:started",
|
|
14045
|
+
solverName,
|
|
14046
|
+
solverParams,
|
|
14047
|
+
componentName: this.getString()
|
|
14048
|
+
})
|
|
14020
14049
|
});
|
|
14021
14050
|
}
|
|
14022
14051
|
const routingPromise = new Promise(
|
|
@@ -19156,6 +19185,127 @@ var AnalogSimulation = class extends PrimitiveComponent2 {
|
|
|
19156
19185
|
// lib/components/primitive-components/VoltageProbe.ts
|
|
19157
19186
|
import { voltageProbeProps } from "@tscircuit/props";
|
|
19158
19187
|
import "zod";
|
|
19188
|
+
|
|
19189
|
+
// lib/utils/schematic/selectBestLabelAlignment.ts
|
|
19190
|
+
import { doBoundsOverlap as doBoundsOverlap2 } from "@tscircuit/math-utils";
|
|
19191
|
+
function getLabelBounds(probePosition, labelText, alignment, labelOffset = 0.3) {
|
|
19192
|
+
const charWidth = 0.1;
|
|
19193
|
+
const labelWidth = Math.max(labelText.length * charWidth, 0.3);
|
|
19194
|
+
const labelHeight = 0.25;
|
|
19195
|
+
const labelHeightWithPadding = labelHeight + 0.2;
|
|
19196
|
+
let anchorX = probePosition.x;
|
|
19197
|
+
let anchorY = probePosition.y;
|
|
19198
|
+
const offsetMultiplier = labelOffset + labelWidth / 2;
|
|
19199
|
+
if (alignment.includes("top")) {
|
|
19200
|
+
anchorY += offsetMultiplier;
|
|
19201
|
+
} else if (alignment.includes("bottom")) {
|
|
19202
|
+
anchorY -= offsetMultiplier;
|
|
19203
|
+
}
|
|
19204
|
+
if (alignment.includes("right")) {
|
|
19205
|
+
anchorX += offsetMultiplier;
|
|
19206
|
+
} else if (alignment.includes("left")) {
|
|
19207
|
+
anchorX -= offsetMultiplier;
|
|
19208
|
+
}
|
|
19209
|
+
let minX, maxX, minY, maxY;
|
|
19210
|
+
if (alignment.includes("left")) {
|
|
19211
|
+
minX = anchorX;
|
|
19212
|
+
maxX = anchorX + labelWidth;
|
|
19213
|
+
} else if (alignment.includes("right")) {
|
|
19214
|
+
minX = anchorX - labelWidth;
|
|
19215
|
+
maxX = anchorX;
|
|
19216
|
+
} else {
|
|
19217
|
+
minX = anchorX - labelWidth / 2;
|
|
19218
|
+
maxX = anchorX + labelWidth / 2;
|
|
19219
|
+
}
|
|
19220
|
+
if (alignment.includes("top")) {
|
|
19221
|
+
minY = anchorY - labelHeightWithPadding;
|
|
19222
|
+
maxY = anchorY;
|
|
19223
|
+
} else if (alignment.includes("bottom")) {
|
|
19224
|
+
minY = anchorY;
|
|
19225
|
+
maxY = anchorY + labelHeightWithPadding;
|
|
19226
|
+
} else {
|
|
19227
|
+
minY = anchorY - labelHeightWithPadding / 2;
|
|
19228
|
+
maxY = anchorY + labelHeightWithPadding / 2;
|
|
19229
|
+
}
|
|
19230
|
+
return { minX, maxX, minY, maxY };
|
|
19231
|
+
}
|
|
19232
|
+
function getElementBounds(elm) {
|
|
19233
|
+
let cx;
|
|
19234
|
+
let cy;
|
|
19235
|
+
let w;
|
|
19236
|
+
let h;
|
|
19237
|
+
if (elm.type === "schematic_component") {
|
|
19238
|
+
cx = elm.center?.x;
|
|
19239
|
+
cy = elm.center?.y;
|
|
19240
|
+
w = elm.size?.width;
|
|
19241
|
+
h = elm.size?.height;
|
|
19242
|
+
} else if (elm.type === "schematic_text") {
|
|
19243
|
+
cx = elm.position?.x;
|
|
19244
|
+
cy = elm.position?.y;
|
|
19245
|
+
w = (elm.text?.length ?? 0) * 0.1;
|
|
19246
|
+
h = 0.2;
|
|
19247
|
+
} else {
|
|
19248
|
+
return null;
|
|
19249
|
+
}
|
|
19250
|
+
if (typeof cx === "number" && typeof cy === "number" && typeof w === "number" && typeof h === "number") {
|
|
19251
|
+
return {
|
|
19252
|
+
minX: cx - w / 2,
|
|
19253
|
+
maxX: cx + w / 2,
|
|
19254
|
+
minY: cy - h / 2,
|
|
19255
|
+
maxY: cy + h / 2
|
|
19256
|
+
};
|
|
19257
|
+
}
|
|
19258
|
+
return null;
|
|
19259
|
+
}
|
|
19260
|
+
function getOverlapArea(a, b) {
|
|
19261
|
+
if (!doBoundsOverlap2(a, b)) return 0;
|
|
19262
|
+
const overlapWidth = Math.min(a.maxX, b.maxX) - Math.max(a.minX, b.minX);
|
|
19263
|
+
const overlapHeight = Math.min(a.maxY, b.maxY) - Math.max(a.minY, b.minY);
|
|
19264
|
+
return overlapWidth * overlapHeight;
|
|
19265
|
+
}
|
|
19266
|
+
function selectBestLabelAlignment({
|
|
19267
|
+
probePosition,
|
|
19268
|
+
labelText,
|
|
19269
|
+
schematicElements,
|
|
19270
|
+
defaultAlignment = "top_right"
|
|
19271
|
+
}) {
|
|
19272
|
+
const alignmentOptions = [
|
|
19273
|
+
"top_right",
|
|
19274
|
+
"top_left",
|
|
19275
|
+
"bottom_right",
|
|
19276
|
+
"bottom_left",
|
|
19277
|
+
"top_center",
|
|
19278
|
+
"bottom_center",
|
|
19279
|
+
"center_right",
|
|
19280
|
+
"center_left"
|
|
19281
|
+
];
|
|
19282
|
+
const orderedAlignments = [
|
|
19283
|
+
defaultAlignment,
|
|
19284
|
+
...alignmentOptions.filter((a) => a !== defaultAlignment)
|
|
19285
|
+
];
|
|
19286
|
+
let bestAlignment = defaultAlignment;
|
|
19287
|
+
let minOverlapArea = Infinity;
|
|
19288
|
+
for (const alignment of orderedAlignments) {
|
|
19289
|
+
const labelBounds = getLabelBounds(probePosition, labelText, alignment);
|
|
19290
|
+
let totalOverlapArea = 0;
|
|
19291
|
+
for (const element of schematicElements) {
|
|
19292
|
+
const elementBounds = getElementBounds(element);
|
|
19293
|
+
if (elementBounds) {
|
|
19294
|
+
totalOverlapArea += getOverlapArea(labelBounds, elementBounds);
|
|
19295
|
+
}
|
|
19296
|
+
}
|
|
19297
|
+
if (totalOverlapArea === 0) {
|
|
19298
|
+
return alignment;
|
|
19299
|
+
}
|
|
19300
|
+
if (totalOverlapArea < minOverlapArea) {
|
|
19301
|
+
minOverlapArea = totalOverlapArea;
|
|
19302
|
+
bestAlignment = alignment;
|
|
19303
|
+
}
|
|
19304
|
+
}
|
|
19305
|
+
return bestAlignment;
|
|
19306
|
+
}
|
|
19307
|
+
|
|
19308
|
+
// lib/components/primitive-components/VoltageProbe.ts
|
|
19159
19309
|
var VoltageProbe = class extends PrimitiveComponent2 {
|
|
19160
19310
|
simulation_voltage_probe_id = null;
|
|
19161
19311
|
schematic_voltage_probe_id = null;
|
|
@@ -19280,12 +19430,22 @@ var VoltageProbe = class extends PrimitiveComponent2 {
|
|
|
19280
19430
|
return;
|
|
19281
19431
|
}
|
|
19282
19432
|
const probeName = this.finalProbeName;
|
|
19433
|
+
const labelAlignment = selectBestLabelAlignment({
|
|
19434
|
+
probePosition: position,
|
|
19435
|
+
labelText: probeName,
|
|
19436
|
+
schematicElements: [
|
|
19437
|
+
...db.schematic_component.list(),
|
|
19438
|
+
...db.schematic_text.list()
|
|
19439
|
+
],
|
|
19440
|
+
defaultAlignment: "top_right"
|
|
19441
|
+
});
|
|
19283
19442
|
const schematic_voltage_probe = db.schematic_voltage_probe.insert({
|
|
19284
19443
|
name: probeName,
|
|
19285
19444
|
position,
|
|
19286
19445
|
schematic_trace_id: targetTraceId,
|
|
19287
19446
|
subcircuit_id: subcircuit.subcircuit_id || void 0,
|
|
19288
|
-
color: this.color ?? void 0
|
|
19447
|
+
color: this.color ?? void 0,
|
|
19448
|
+
label_alignment: labelAlignment
|
|
19289
19449
|
});
|
|
19290
19450
|
this.schematic_voltage_probe_id = schematic_voltage_probe.schematic_voltage_probe_id;
|
|
19291
19451
|
}
|
|
@@ -19300,7 +19460,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
19300
19460
|
var package_default = {
|
|
19301
19461
|
name: "@tscircuit/core",
|
|
19302
19462
|
type: "module",
|
|
19303
|
-
version: "0.0.
|
|
19463
|
+
version: "0.0.922",
|
|
19304
19464
|
types: "dist/index.d.ts",
|
|
19305
19465
|
main: "dist/index.js",
|
|
19306
19466
|
module: "dist/index.js",
|
|
@@ -19830,6 +19990,18 @@ var sel = new Proxy(
|
|
|
19830
19990
|
}
|
|
19831
19991
|
);
|
|
19832
19992
|
|
|
19993
|
+
// lib/solvers.ts
|
|
19994
|
+
import { PackSolver2 as PackSolver22 } from "calculate-packing";
|
|
19995
|
+
import {
|
|
19996
|
+
AutoroutingPipelineSolver,
|
|
19997
|
+
AssignableViaAutoroutingPipelineSolver
|
|
19998
|
+
} from "@tscircuit/capacity-autorouter";
|
|
19999
|
+
var SOLVERS = {
|
|
20000
|
+
PackSolver2: PackSolver22,
|
|
20001
|
+
AutoroutingPipelineSolver,
|
|
20002
|
+
AssignableViaAutoroutingPipelineSolver
|
|
20003
|
+
};
|
|
20004
|
+
|
|
19833
20005
|
// lib/index.ts
|
|
19834
20006
|
import { createElement } from "react";
|
|
19835
20007
|
|
|
@@ -19891,6 +20063,7 @@ export {
|
|
|
19891
20063
|
Resistor,
|
|
19892
20064
|
Resonator,
|
|
19893
20065
|
RootCircuit,
|
|
20066
|
+
SOLVERS,
|
|
19894
20067
|
SchematicArc,
|
|
19895
20068
|
SchematicBox,
|
|
19896
20069
|
SchematicCell,
|