circuit-json 0.0.340 → 0.0.342
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 -41
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -163,7 +163,6 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
163
163
|
- [SchematicTrace](#schematictrace)
|
|
164
164
|
- [SchematicVoltageProbe](#schematicvoltageprobe)
|
|
165
165
|
- [Simulation Elements](#simulation-elements)
|
|
166
|
-
- [SimulationCurrentSource](#simulationcurrentsource)
|
|
167
166
|
- [SimulationExperiment](#simulationexperiment)
|
|
168
167
|
- [SimulationSwitch](#simulationswitch)
|
|
169
168
|
- [SimulationTransientVoltageGraph](#simulationtransientvoltagegraph)
|
|
@@ -2694,46 +2693,6 @@ interface SchematicVoltageProbe {
|
|
|
2694
2693
|
|
|
2695
2694
|
## Simulation Elements
|
|
2696
2695
|
|
|
2697
|
-
### SimulationCurrentSource
|
|
2698
|
-
|
|
2699
|
-
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_current_source.ts)
|
|
2700
|
-
|
|
2701
|
-
```typescript
|
|
2702
|
-
type SimulationCurrentSource =
|
|
2703
|
-
| SimulationDcCurrentSource
|
|
2704
|
-
| SimulationAcCurrentSource
|
|
2705
|
-
|
|
2706
|
-
/** Defines a DC current source for simulation purposes. It forces a current
|
|
2707
|
-
* between two source ports. */
|
|
2708
|
-
interface SimulationDcCurrentSource {
|
|
2709
|
-
type: "simulation_current_source"
|
|
2710
|
-
simulation_current_source_id: string
|
|
2711
|
-
is_dc_source: true
|
|
2712
|
-
positive_source_port_id?: string
|
|
2713
|
-
positive_source_net_id?: string
|
|
2714
|
-
negative_source_port_id?: string
|
|
2715
|
-
negative_source_net_id?: string
|
|
2716
|
-
current: number
|
|
2717
|
-
}
|
|
2718
|
-
|
|
2719
|
-
/** Defines an AC current source for simulation purposes. */
|
|
2720
|
-
interface SimulationAcCurrentSource {
|
|
2721
|
-
type: "simulation_current_source"
|
|
2722
|
-
simulation_current_source_id: string
|
|
2723
|
-
is_dc_source: false
|
|
2724
|
-
terminal1_source_port_id?: string
|
|
2725
|
-
terminal2_source_port_id?: string
|
|
2726
|
-
terminal1_source_net_id?: string
|
|
2727
|
-
terminal2_source_net_id?: string
|
|
2728
|
-
current?: number
|
|
2729
|
-
frequency?: number
|
|
2730
|
-
peak_to_peak_current?: number
|
|
2731
|
-
wave_shape?: WaveShape
|
|
2732
|
-
phase?: number
|
|
2733
|
-
duty_cycle?: number
|
|
2734
|
-
}
|
|
2735
|
-
```
|
|
2736
|
-
|
|
2737
2696
|
### SimulationExperiment
|
|
2738
2697
|
|
|
2739
2698
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/simulation/simulation_experiment.ts)
|
package/dist/index.d.mts
CHANGED
|
@@ -3681,7 +3681,7 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3681
3681
|
x: string | number;
|
|
3682
3682
|
y: string | number;
|
|
3683
3683
|
}>>;
|
|
3684
|
-
anchor_alignment: z.
|
|
3684
|
+
anchor_alignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
|
|
3685
3685
|
position_mode: z.ZodOptional<z.ZodEnum<["relative_to_panel_anchor", "none"]>>;
|
|
3686
3686
|
}, "strip", z.ZodTypeAny, {
|
|
3687
3687
|
type: "pcb_board";
|
|
@@ -3693,7 +3693,6 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3693
3693
|
thickness: number;
|
|
3694
3694
|
num_layers: number;
|
|
3695
3695
|
material: "fr4" | "fr1";
|
|
3696
|
-
anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
3697
3696
|
width?: number | undefined;
|
|
3698
3697
|
height?: number | undefined;
|
|
3699
3698
|
display_offset_x?: string | undefined;
|
|
@@ -3711,6 +3710,7 @@ declare const pcb_board: z.ZodObject<{
|
|
|
3711
3710
|
x: number;
|
|
3712
3711
|
y: number;
|
|
3713
3712
|
} | undefined;
|
|
3713
|
+
anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
3714
3714
|
}, {
|
|
3715
3715
|
type: "pcb_board";
|
|
3716
3716
|
center: {
|
|
@@ -3760,7 +3760,7 @@ interface PcbBoard {
|
|
|
3760
3760
|
shape?: "rect" | "polygon";
|
|
3761
3761
|
material: "fr4" | "fr1";
|
|
3762
3762
|
anchor_position?: Point;
|
|
3763
|
-
anchor_alignment
|
|
3763
|
+
anchor_alignment?: NinePointAnchor;
|
|
3764
3764
|
position_mode?: "relative_to_panel_anchor" | "none";
|
|
3765
3765
|
}
|
|
3766
3766
|
type PcbBoardInput = z.input<typeof pcb_board>;
|
|
@@ -17468,7 +17468,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17468
17468
|
x: string | number;
|
|
17469
17469
|
y: string | number;
|
|
17470
17470
|
}>>;
|
|
17471
|
-
anchor_alignment: z.
|
|
17471
|
+
anchor_alignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
|
|
17472
17472
|
position_mode: z.ZodOptional<z.ZodEnum<["relative_to_panel_anchor", "none"]>>;
|
|
17473
17473
|
}, "strip", z.ZodTypeAny, {
|
|
17474
17474
|
type: "pcb_board";
|
|
@@ -17480,7 +17480,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17480
17480
|
thickness: number;
|
|
17481
17481
|
num_layers: number;
|
|
17482
17482
|
material: "fr4" | "fr1";
|
|
17483
|
-
anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
17484
17483
|
width?: number | undefined;
|
|
17485
17484
|
height?: number | undefined;
|
|
17486
17485
|
display_offset_x?: string | undefined;
|
|
@@ -17498,6 +17497,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17498
17497
|
x: number;
|
|
17499
17498
|
y: number;
|
|
17500
17499
|
} | undefined;
|
|
17500
|
+
anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
17501
17501
|
}, {
|
|
17502
17502
|
type: "pcb_board";
|
|
17503
17503
|
center: {
|
|
@@ -25712,7 +25712,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
25712
25712
|
x: string | number;
|
|
25713
25713
|
y: string | number;
|
|
25714
25714
|
}>>;
|
|
25715
|
-
anchor_alignment: z.
|
|
25715
|
+
anchor_alignment: z.ZodOptional<z.ZodEnum<["top_left", "top_center", "top_right", "center_left", "center", "center_right", "bottom_left", "bottom_center", "bottom_right"]>>;
|
|
25716
25716
|
position_mode: z.ZodOptional<z.ZodEnum<["relative_to_panel_anchor", "none"]>>;
|
|
25717
25717
|
}, "strip", z.ZodTypeAny, {
|
|
25718
25718
|
type: "pcb_board";
|
|
@@ -25724,7 +25724,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
25724
25724
|
thickness: number;
|
|
25725
25725
|
num_layers: number;
|
|
25726
25726
|
material: "fr4" | "fr1";
|
|
25727
|
-
anchor_alignment: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right";
|
|
25728
25727
|
width?: number | undefined;
|
|
25729
25728
|
height?: number | undefined;
|
|
25730
25729
|
display_offset_x?: string | undefined;
|
|
@@ -25742,6 +25741,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
25742
25741
|
x: number;
|
|
25743
25742
|
y: number;
|
|
25744
25743
|
} | undefined;
|
|
25744
|
+
anchor_alignment?: "center" | "top_left" | "top_center" | "top_right" | "center_left" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
25745
25745
|
}, {
|
|
25746
25746
|
type: "pcb_board";
|
|
25747
25747
|
center: {
|
package/dist/index.mjs
CHANGED
|
@@ -2019,7 +2019,7 @@ var pcb_board = z88.object({
|
|
|
2019
2019
|
shape: z88.enum(["rect", "polygon"]).optional(),
|
|
2020
2020
|
material: z88.enum(["fr4", "fr1"]).default("fr4"),
|
|
2021
2021
|
anchor_position: point.optional(),
|
|
2022
|
-
anchor_alignment: ninePointAnchor.
|
|
2022
|
+
anchor_alignment: ninePointAnchor.optional(),
|
|
2023
2023
|
position_mode: z88.enum(["relative_to_panel_anchor", "none"]).optional()
|
|
2024
2024
|
}).describe("Defines the board outline of the PCB");
|
|
2025
2025
|
expectTypesMatch(true);
|