@tscircuit/core 0.0.333 → 0.0.335
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 +29 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { Matrix } from 'transformation-matrix';
|
|
|
10
10
|
import { SoupUtilObjects } from '@tscircuit/soup-util';
|
|
11
11
|
import * as _tscircuit_layout from '@tscircuit/layout';
|
|
12
12
|
import { ConnectivityMap } from 'circuit-json-to-connectivity-map';
|
|
13
|
+
import { GraphicsObject } from 'graphics-debug';
|
|
13
14
|
|
|
14
15
|
declare const orderedRenderPhases: readonly ["ReactSubtreesRender", "InitializePortsFromChildren", "CreateNetsFromProps", "CreateTracesFromProps", "CreateTraceHintsFromProps", "SourceRender", "SourceParentAttachment", "PortMatching", "SourceTraceRender", "SourceAddConnectivityMapKey", "SchematicComponentRender", "SchematicPortRender", "SchematicLayout", "SchematicTraceRender", "PcbComponentRender", "PcbPrimitiveRender", "PcbFootprintLayout", "PcbPortRender", "PcbPortAttachment", "PcbLayout", "PcbComponentSizeCalculation", "PcbBoardAutoSize", "PcbTraceRender", "PcbTraceHintRender", "PcbRouteNetIslands", "CadModelRender", "PartsEngineRender"];
|
|
15
16
|
type RenderPhase = (typeof orderedRenderPhases)[number];
|
|
@@ -10787,6 +10788,33 @@ type SelWithoutSubcircuit = NonPolarizedSel & PolarizedSel & TransistorSel & Jum
|
|
|
10787
10788
|
type Sel = SubcircuitSel & SelWithoutSubcircuit;
|
|
10788
10789
|
declare const sel: Sel;
|
|
10789
10790
|
|
|
10791
|
+
type AutorouterCompleteEvent = {
|
|
10792
|
+
type: "complete";
|
|
10793
|
+
traces: SimplifiedPcbTrace[];
|
|
10794
|
+
};
|
|
10795
|
+
type AutorouterErrorEvent = {
|
|
10796
|
+
type: "error";
|
|
10797
|
+
error: Error;
|
|
10798
|
+
};
|
|
10799
|
+
type AutorouterProgressEvent = {
|
|
10800
|
+
type: "progress";
|
|
10801
|
+
steps: number;
|
|
10802
|
+
progress: number;
|
|
10803
|
+
phase?: string;
|
|
10804
|
+
debugGraphics?: GraphicsObject;
|
|
10805
|
+
};
|
|
10806
|
+
type AutorouterEvent = AutorouterCompleteEvent | AutorouterErrorEvent | AutorouterProgressEvent;
|
|
10807
|
+
interface GenericLocalAutorouter {
|
|
10808
|
+
input: SimpleRouteJson;
|
|
10809
|
+
isRouting: boolean;
|
|
10810
|
+
start(): void;
|
|
10811
|
+
stop(): void;
|
|
10812
|
+
on(event: "complete", callback: (ev: AutorouterCompleteEvent) => void): void;
|
|
10813
|
+
on(event: "error", callback: (ev: AutorouterErrorEvent) => void): void;
|
|
10814
|
+
on(event: "progress", callback: (ev: AutorouterProgressEvent) => void): void;
|
|
10815
|
+
solveSync(): SimplifiedPcbTrace[];
|
|
10816
|
+
}
|
|
10817
|
+
|
|
10790
10818
|
interface TscircuitElements {
|
|
10791
10819
|
resistor: _tscircuit_props.ResistorProps;
|
|
10792
10820
|
capacitor: _tscircuit_props.CapacitorProps;
|
|
@@ -10852,4 +10880,4 @@ declare module "react/jsx-runtime" {
|
|
|
10852
10880
|
}
|
|
10853
10881
|
}
|
|
10854
10882
|
|
|
10855
|
-
export { type AsyncEffect, Battery, Board, Capacitor, Chip, Circuit, type ComponentWithPins, Constraint, Crystal, Diode, FabricationNotePath, FabricationNoteText, Footprint, Group, Hole, type IRenderable, Inductor, Jumper, Keepout, Led, Mosfet, Net, NetAlias, NormalComponent, PinHeader, type PinLabelSpec, PlatedHole, Port, Potentiometer, PowerSource, PrimitiveComponent, Project, PushButton, type RenderPhase, type RenderPhaseFn, type RenderPhaseFunctions, type RenderPhaseStates, Renderable, Resistor, Resonator, RootCircuit, type RootCircuitEventName, type Sel, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, SmtPad, Subcircuit, Switch, Trace, TraceHint, Transistor, Via, applyEditEventsToManualEditsFile, createUseComponent, getPhaseTimingsFromRenderEvents, getSimpleRouteJsonFromCircuitJson, orderedRenderPhases, sel, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
|
|
10883
|
+
export { type AsyncEffect, type AutorouterCompleteEvent, type AutorouterErrorEvent, type AutorouterEvent, type AutorouterProgressEvent, Battery, Board, Capacitor, Chip, Circuit, type ComponentWithPins, Constraint, Crystal, Diode, FabricationNotePath, FabricationNoteText, Footprint, type GenericLocalAutorouter, Group, Hole, type IRenderable, Inductor, Jumper, Keepout, Led, Mosfet, Net, NetAlias, NormalComponent, type Obstacle, PinHeader, type PinLabelSpec, PlatedHole, Port, Potentiometer, PowerSource, PrimitiveComponent, Project, PushButton, type RenderPhase, type RenderPhaseFn, type RenderPhaseFunctions, type RenderPhaseStates, Renderable, Resistor, Resonator, RootCircuit, type RootCircuitEventName, type Sel, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, SmtPad, Subcircuit, Switch, Trace, TraceHint, Transistor, Via, applyEditEventsToManualEditsFile, createUseComponent, getPhaseTimingsFromRenderEvents, getSimpleRouteJsonFromCircuitJson, orderedRenderPhases, sel, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
|