circuit-json 0.0.148 → 0.0.150
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/README.md +0 -1
- package/dist/index.d.mts +25 -11
- package/dist/index.mjs +455 -446
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1504,6 +1504,30 @@ interface SourceSimpleMosfet extends SourceComponentBase {
|
|
|
1504
1504
|
mosfet_mode: "enhancement" | "depletion";
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
|
+
interface ProjectMetadata {
|
|
1508
|
+
type: "source_project_metadata";
|
|
1509
|
+
name?: string;
|
|
1510
|
+
software_used_string?: string;
|
|
1511
|
+
created_at?: string;
|
|
1512
|
+
}
|
|
1513
|
+
declare const project_metadata: z.ZodObject<{
|
|
1514
|
+
type: z.ZodLiteral<"source_project_metadata">;
|
|
1515
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1516
|
+
software_used_string: z.ZodOptional<z.ZodString>;
|
|
1517
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
1518
|
+
}, "strip", z.ZodTypeAny, {
|
|
1519
|
+
type: "source_project_metadata";
|
|
1520
|
+
name?: string | undefined;
|
|
1521
|
+
software_used_string?: string | undefined;
|
|
1522
|
+
created_at?: string | undefined;
|
|
1523
|
+
}, {
|
|
1524
|
+
type: "source_project_metadata";
|
|
1525
|
+
name?: string | undefined;
|
|
1526
|
+
software_used_string?: string | undefined;
|
|
1527
|
+
created_at?: string | undefined;
|
|
1528
|
+
}>;
|
|
1529
|
+
type InferredProjectMetadata = z.infer<typeof project_metadata>;
|
|
1530
|
+
|
|
1507
1531
|
interface SchematicBox {
|
|
1508
1532
|
type: "schematic_box";
|
|
1509
1533
|
schematic_component_id: string;
|
|
@@ -4817,7 +4841,6 @@ declare const pcb_silkscreen_text: z.ZodObject<{
|
|
|
4817
4841
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
4818
4842
|
font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
|
|
4819
4843
|
font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4820
|
-
stroke_width: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
|
|
4821
4844
|
pcb_component_id: z.ZodString;
|
|
4822
4845
|
text: z.ZodString;
|
|
4823
4846
|
ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
@@ -4851,7 +4874,6 @@ declare const pcb_silkscreen_text: z.ZodObject<{
|
|
|
4851
4874
|
};
|
|
4852
4875
|
pcb_component_id: string;
|
|
4853
4876
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
4854
|
-
stroke_width: number;
|
|
4855
4877
|
pcb_silkscreen_text_id: string;
|
|
4856
4878
|
font: "tscircuit2024";
|
|
4857
4879
|
font_size: number;
|
|
@@ -4874,7 +4896,6 @@ declare const pcb_silkscreen_text: z.ZodObject<{
|
|
|
4874
4896
|
} | undefined;
|
|
4875
4897
|
pcb_group_id?: string | undefined;
|
|
4876
4898
|
ccw_rotation?: number | undefined;
|
|
4877
|
-
stroke_width?: string | number | undefined;
|
|
4878
4899
|
pcb_silkscreen_text_id?: string | undefined;
|
|
4879
4900
|
font?: "tscircuit2024" | undefined;
|
|
4880
4901
|
font_size?: string | number | undefined;
|
|
@@ -4899,7 +4920,6 @@ interface PcbSilkscreenText {
|
|
|
4899
4920
|
is_mirrored?: boolean;
|
|
4900
4921
|
anchor_position: Point;
|
|
4901
4922
|
anchor_alignment: "center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
4902
|
-
stroke_width: Length;
|
|
4903
4923
|
}
|
|
4904
4924
|
/**
|
|
4905
4925
|
* @deprecated use PcbSilkscreenText
|
|
@@ -8040,7 +8060,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
8040
8060
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
8041
8061
|
font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
|
|
8042
8062
|
font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
8043
|
-
stroke_width: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
|
|
8044
8063
|
pcb_component_id: z.ZodString;
|
|
8045
8064
|
text: z.ZodString;
|
|
8046
8065
|
ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
@@ -8074,7 +8093,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
8074
8093
|
};
|
|
8075
8094
|
pcb_component_id: string;
|
|
8076
8095
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8077
|
-
stroke_width: number;
|
|
8078
8096
|
pcb_silkscreen_text_id: string;
|
|
8079
8097
|
font: "tscircuit2024";
|
|
8080
8098
|
font_size: number;
|
|
@@ -8097,7 +8115,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
8097
8115
|
} | undefined;
|
|
8098
8116
|
pcb_group_id?: string | undefined;
|
|
8099
8117
|
ccw_rotation?: number | undefined;
|
|
8100
|
-
stroke_width?: string | number | undefined;
|
|
8101
8118
|
pcb_silkscreen_text_id?: string | undefined;
|
|
8102
8119
|
font?: "tscircuit2024" | undefined;
|
|
8103
8120
|
font_size?: string | number | undefined;
|
|
@@ -11673,7 +11690,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11673
11690
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
11674
11691
|
font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
|
|
11675
11692
|
font_size: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
11676
|
-
stroke_width: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
|
|
11677
11693
|
pcb_component_id: z.ZodString;
|
|
11678
11694
|
text: z.ZodString;
|
|
11679
11695
|
ccw_rotation: z.ZodOptional<z.ZodNumber>;
|
|
@@ -11707,7 +11723,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11707
11723
|
};
|
|
11708
11724
|
pcb_component_id: string;
|
|
11709
11725
|
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
11710
|
-
stroke_width: number;
|
|
11711
11726
|
pcb_silkscreen_text_id: string;
|
|
11712
11727
|
font: "tscircuit2024";
|
|
11713
11728
|
font_size: number;
|
|
@@ -11730,7 +11745,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11730
11745
|
} | undefined;
|
|
11731
11746
|
pcb_group_id?: string | undefined;
|
|
11732
11747
|
ccw_rotation?: number | undefined;
|
|
11733
|
-
stroke_width?: string | number | undefined;
|
|
11734
11748
|
pcb_silkscreen_text_id?: string | undefined;
|
|
11735
11749
|
font?: "tscircuit2024" | undefined;
|
|
11736
11750
|
font_size?: string | number | undefined;
|
|
@@ -12935,4 +12949,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
12935
12949
|
*/
|
|
12936
12950
|
type CircuitJson = AnyCircuitElement[];
|
|
12937
12951
|
|
|
12938
|
-
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type CircuitJson, type Distance, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, type PCBManualEditConflictError, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbManualEditConflictError, type PcbManualEditConflictErrorInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteRect, type PcbText, type PcbTextInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicLine, type SchematicLineInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type Size, type SourceComponentBase, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceNet, type SourceNetInput, type SourcePort, type SourcePortInput, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_autorouting_error, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_error, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_line, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_group, source_led, source_net, source_port, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };
|
|
12952
|
+
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type CircuitJson, type Distance, type InferredProjectMetadata, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, type PCBManualEditConflictError, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbManualEditConflictError, type PcbManualEditConflictErrorInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteRect, type PcbText, type PcbTextInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type ProjectMetadata, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicLine, type SchematicLineInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type Size, type SourceComponentBase, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceNet, type SourceNetInput, type SourcePort, type SourcePortInput, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_autorouting_error, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_error, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, project_metadata, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_line, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_group, source_led, source_net, source_port, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };
|