@tscircuit/core 0.0.380 → 0.0.382
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 +8 -2
- package/dist/index.js +2520 -2485
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tscircuit_props from '@tscircuit/props';
|
|
2
|
-
import { subcircuitGroupProps, AutorouterConfig, traceProps, SupplierPartNumbers, SchematicPortArrangement, groupProps, boardProps, capacitorProps, chipProps, diodeProps, jumperProps, ledProps, powerSourceProps, resistorProps, constraintProps, fabricationNotePathProps, fabricationNoteTextProps, footprintProps, subcircuitProps, holeProps, pcbKeepoutProps, netAliasProps, platedHoleProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, traceHintProps, viaProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, switchProps, CapacitorProps, ChipProps, DiodeProps, ResistorProps, ManualEditEvent, ManualEditsFile, ChipConnections, manual_edits_file } from '@tscircuit/props';
|
|
2
|
+
import { PlatformConfig, subcircuitGroupProps, AutorouterConfig, traceProps, SupplierPartNumbers, SchematicPortArrangement, groupProps, boardProps, capacitorProps, chipProps, diodeProps, jumperProps, ledProps, powerSourceProps, resistorProps, constraintProps, fabricationNotePathProps, fabricationNoteTextProps, footprintProps, subcircuitProps, holeProps, pcbKeepoutProps, netAliasProps, platedHoleProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, traceHintProps, viaProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, switchProps, CapacitorProps, ChipProps, DiodeProps, ResistorProps, ManualEditEvent, ManualEditsFile, ChipConnections, manual_edits_file } from '@tscircuit/props';
|
|
3
3
|
import React, { ReactElement, DetailedHTMLProps, SVGProps } from 'react';
|
|
4
4
|
export { createElement } from 'react';
|
|
5
5
|
import * as zod from 'zod';
|
|
@@ -201,8 +201,11 @@ declare class RootCircuit {
|
|
|
201
201
|
* as the display_name parameter for autorouting effects.
|
|
202
202
|
*/
|
|
203
203
|
name?: string;
|
|
204
|
+
platform?: PlatformConfig;
|
|
204
205
|
_hasRenderedAtleastOnce: boolean;
|
|
205
|
-
constructor(
|
|
206
|
+
constructor({ platform }?: {
|
|
207
|
+
platform?: PlatformConfig;
|
|
208
|
+
});
|
|
206
209
|
add(componentOrElm: PrimitiveComponent | ReactElement): void;
|
|
207
210
|
/**
|
|
208
211
|
* Get the main board for this Circuit.
|
|
@@ -530,6 +533,7 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
530
533
|
schematic_trace_id: string | null;
|
|
531
534
|
_portsRoutedOnPcb: Port[];
|
|
532
535
|
subcircuit_connectivity_map_key: string | null;
|
|
536
|
+
_traceConnectionHash: string | null;
|
|
533
537
|
constructor(props: z.input<typeof traceProps>);
|
|
534
538
|
get config(): {
|
|
535
539
|
zodProps: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -763,6 +767,7 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
|
|
|
763
767
|
*/
|
|
764
768
|
_isExplicitlyConnectedToNet(net: Net): boolean;
|
|
765
769
|
doInitialCreateNetsFromProps(): void;
|
|
770
|
+
_computeTraceConnectionHash(): string | null;
|
|
766
771
|
doInitialSourceTraceRender(): void;
|
|
767
772
|
_insertErrorIfTraceIsOutsideBoard(mergedRoute: PcbTraceRoutePoint[], ports: Port[]): void;
|
|
768
773
|
doInitialPcbTraceRender(): void;
|
|
@@ -1049,6 +1054,7 @@ declare class Group<Props extends z.ZodType<any, any, any> = typeof groupProps>
|
|
|
1049
1054
|
declare class Board extends Group<typeof boardProps> {
|
|
1050
1055
|
pcb_board_id: string | null;
|
|
1051
1056
|
_drcChecksComplete: boolean;
|
|
1057
|
+
_connectedSchematicPortPairs: Set<string>;
|
|
1052
1058
|
get isSubcircuit(): boolean;
|
|
1053
1059
|
get config(): {
|
|
1054
1060
|
componentName: string;
|