circuit-json 0.0.312 → 0.0.314
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 +3 -0
- package/dist/index.d.mts +280 -2
- package/dist/index.mjs +18 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1136,7 +1136,8 @@ var schematic_voltage_probe = z61.object({
|
|
|
1136
1136
|
position: point,
|
|
1137
1137
|
schematic_trace_id: z61.string(),
|
|
1138
1138
|
voltage: voltage.optional(),
|
|
1139
|
-
subcircuit_id: z61.string().optional()
|
|
1139
|
+
subcircuit_id: z61.string().optional(),
|
|
1140
|
+
color: z61.string().optional()
|
|
1140
1141
|
}).describe("Defines a voltage probe measurement point on a schematic trace");
|
|
1141
1142
|
expectTypesMatch(true);
|
|
1142
1143
|
|
|
@@ -2372,10 +2373,20 @@ var pcb_cutout_polygon = pcb_cutout_base.extend({
|
|
|
2372
2373
|
points: z106.array(point)
|
|
2373
2374
|
});
|
|
2374
2375
|
expectTypesMatch(true);
|
|
2376
|
+
var pcb_cutout_path = pcb_cutout_base.extend({
|
|
2377
|
+
shape: z106.literal("path"),
|
|
2378
|
+
route: z106.array(point),
|
|
2379
|
+
slot_width: length,
|
|
2380
|
+
slot_length: length.optional(),
|
|
2381
|
+
space_between_slots: length.optional(),
|
|
2382
|
+
slot_corner_radius: length.optional()
|
|
2383
|
+
});
|
|
2384
|
+
expectTypesMatch(true);
|
|
2375
2385
|
var pcb_cutout = z106.discriminatedUnion("shape", [
|
|
2376
2386
|
pcb_cutout_rect,
|
|
2377
2387
|
pcb_cutout_circle,
|
|
2378
|
-
pcb_cutout_polygon
|
|
2388
|
+
pcb_cutout_polygon,
|
|
2389
|
+
pcb_cutout_path
|
|
2379
2390
|
]).describe("Defines a cutout on the PCB, removing board material.");
|
|
2380
2391
|
expectTypesMatch(true);
|
|
2381
2392
|
|
|
@@ -2803,7 +2814,8 @@ var simulation_transient_voltage_graph = z127.object({
|
|
|
2803
2814
|
time_per_step: duration_ms,
|
|
2804
2815
|
start_time_ms: ms,
|
|
2805
2816
|
end_time_ms: ms,
|
|
2806
|
-
name: z127.string().optional()
|
|
2817
|
+
name: z127.string().optional(),
|
|
2818
|
+
color: z127.string().optional()
|
|
2807
2819
|
}).describe("Stores voltage measurements over time for a simulation");
|
|
2808
2820
|
expectTypesMatch(true);
|
|
2809
2821
|
|
|
@@ -2830,7 +2842,8 @@ var simulation_voltage_probe = z129.object({
|
|
|
2830
2842
|
source_component_id: z129.string().optional(),
|
|
2831
2843
|
source_port_id: z129.string().optional(),
|
|
2832
2844
|
source_net_id: z129.string().optional(),
|
|
2833
|
-
subcircuit_id: z129.string().optional()
|
|
2845
|
+
subcircuit_id: z129.string().optional(),
|
|
2846
|
+
color: z129.string().optional()
|
|
2834
2847
|
}).describe(
|
|
2835
2848
|
"Defines a voltage probe for simulation, connected to a port or a net"
|
|
2836
2849
|
).refine(
|
|
@@ -3011,6 +3024,7 @@ export {
|
|
|
3011
3024
|
pcb_courtyard_rect,
|
|
3012
3025
|
pcb_cutout,
|
|
3013
3026
|
pcb_cutout_circle,
|
|
3027
|
+
pcb_cutout_path,
|
|
3014
3028
|
pcb_cutout_polygon,
|
|
3015
3029
|
pcb_cutout_rect,
|
|
3016
3030
|
pcb_fabrication_note_dimension,
|