circuit-json 0.0.529 → 0.0.530
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 +2 -0
- package/dist/index.d.mts +60 -0
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1780,6 +1780,8 @@ interface PcbBusLengthSkewError extends BaseCircuitJsonError {
|
|
|
1780
1780
|
interface PcbComponentMetadata {
|
|
1781
1781
|
kicad_footprint?: KicadFootprintMetadata
|
|
1782
1782
|
}
|
|
1783
|
+
|
|
1784
|
+
type SupplierPin1LocationMap = Partial<Record<SupplierName, PcbPin1Location>>
|
|
1783
1785
|
```
|
|
1784
1786
|
|
|
1785
1787
|
### PcbComponentInvalidLayerError
|
package/dist/index.d.mts
CHANGED
|
@@ -2760,6 +2760,16 @@ declare const pcb_component: z.ZodObject<{
|
|
|
2760
2760
|
x: string | number;
|
|
2761
2761
|
y: string | number;
|
|
2762
2762
|
}>;
|
|
2763
|
+
footprint_origin: z.ZodOptional<z.ZodObject<{
|
|
2764
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
2765
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
2766
|
+
}, "strip", z.ZodTypeAny, {
|
|
2767
|
+
x: number;
|
|
2768
|
+
y: number;
|
|
2769
|
+
}, {
|
|
2770
|
+
x: string | number;
|
|
2771
|
+
y: string | number;
|
|
2772
|
+
}>>;
|
|
2763
2773
|
layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>, z.ZodObject<{
|
|
2764
2774
|
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>;
|
|
2765
2775
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4084,6 +4094,10 @@ declare const pcb_component: z.ZodObject<{
|
|
|
4084
4094
|
pcb_component_id: string;
|
|
4085
4095
|
source_component_id: string;
|
|
4086
4096
|
obstructs_within_bounds: boolean;
|
|
4097
|
+
footprint_origin?: {
|
|
4098
|
+
x: number;
|
|
4099
|
+
y: number;
|
|
4100
|
+
} | undefined;
|
|
4087
4101
|
display_offset_x?: string | undefined;
|
|
4088
4102
|
display_offset_y?: string | undefined;
|
|
4089
4103
|
do_not_place?: boolean | undefined;
|
|
@@ -4253,6 +4267,10 @@ declare const pcb_component: z.ZodObject<{
|
|
|
4253
4267
|
};
|
|
4254
4268
|
source_component_id: string;
|
|
4255
4269
|
pcb_component_id?: string | undefined;
|
|
4270
|
+
footprint_origin?: {
|
|
4271
|
+
x: string | number;
|
|
4272
|
+
y: string | number;
|
|
4273
|
+
} | undefined;
|
|
4256
4274
|
display_offset_x?: string | undefined;
|
|
4257
4275
|
display_offset_y?: string | undefined;
|
|
4258
4276
|
do_not_place?: boolean | undefined;
|
|
@@ -4420,6 +4438,12 @@ interface PcbComponent {
|
|
|
4420
4438
|
source_component_id: string;
|
|
4421
4439
|
subcircuit_id?: string;
|
|
4422
4440
|
center: Point;
|
|
4441
|
+
/**
|
|
4442
|
+
* The footprint-local (0, 0) point after placement, in the right-handed
|
|
4443
|
+
* board-world frame: mm, +X right, +Y top, +Z above the board. Independent
|
|
4444
|
+
* of the axis-aligned copper bounding-box center and placement anchors.
|
|
4445
|
+
*/
|
|
4446
|
+
footprint_origin?: Point;
|
|
4423
4447
|
layer: LayerRef;
|
|
4424
4448
|
rotation: Rotation;
|
|
4425
4449
|
display_offset_x?: string;
|
|
@@ -45566,6 +45590,16 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
45566
45590
|
x: string | number;
|
|
45567
45591
|
y: string | number;
|
|
45568
45592
|
}>;
|
|
45593
|
+
footprint_origin: z.ZodOptional<z.ZodObject<{
|
|
45594
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
45595
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
45596
|
+
}, "strip", z.ZodTypeAny, {
|
|
45597
|
+
x: number;
|
|
45598
|
+
y: number;
|
|
45599
|
+
}, {
|
|
45600
|
+
x: string | number;
|
|
45601
|
+
y: string | number;
|
|
45602
|
+
}>>;
|
|
45569
45603
|
layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>, z.ZodObject<{
|
|
45570
45604
|
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>;
|
|
45571
45605
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -46890,6 +46924,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
46890
46924
|
pcb_component_id: string;
|
|
46891
46925
|
source_component_id: string;
|
|
46892
46926
|
obstructs_within_bounds: boolean;
|
|
46927
|
+
footprint_origin?: {
|
|
46928
|
+
x: number;
|
|
46929
|
+
y: number;
|
|
46930
|
+
} | undefined;
|
|
46893
46931
|
display_offset_x?: string | undefined;
|
|
46894
46932
|
display_offset_y?: string | undefined;
|
|
46895
46933
|
do_not_place?: boolean | undefined;
|
|
@@ -47059,6 +47097,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
47059
47097
|
};
|
|
47060
47098
|
source_component_id: string;
|
|
47061
47099
|
pcb_component_id?: string | undefined;
|
|
47100
|
+
footprint_origin?: {
|
|
47101
|
+
x: string | number;
|
|
47102
|
+
y: string | number;
|
|
47103
|
+
} | undefined;
|
|
47062
47104
|
display_offset_x?: string | undefined;
|
|
47063
47105
|
display_offset_y?: string | undefined;
|
|
47064
47106
|
do_not_place?: boolean | undefined;
|
|
@@ -69681,6 +69723,16 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
69681
69723
|
x: string | number;
|
|
69682
69724
|
y: string | number;
|
|
69683
69725
|
}>;
|
|
69726
|
+
footprint_origin: z.ZodOptional<z.ZodObject<{
|
|
69727
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
69728
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
69729
|
+
}, "strip", z.ZodTypeAny, {
|
|
69730
|
+
x: number;
|
|
69731
|
+
y: number;
|
|
69732
|
+
}, {
|
|
69733
|
+
x: string | number;
|
|
69734
|
+
y: string | number;
|
|
69735
|
+
}>>;
|
|
69684
69736
|
layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>, z.ZodObject<{
|
|
69685
69737
|
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6", "inner7", "inner8"]>;
|
|
69686
69738
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -71005,6 +71057,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
71005
71057
|
pcb_component_id: string;
|
|
71006
71058
|
source_component_id: string;
|
|
71007
71059
|
obstructs_within_bounds: boolean;
|
|
71060
|
+
footprint_origin?: {
|
|
71061
|
+
x: number;
|
|
71062
|
+
y: number;
|
|
71063
|
+
} | undefined;
|
|
71008
71064
|
display_offset_x?: string | undefined;
|
|
71009
71065
|
display_offset_y?: string | undefined;
|
|
71010
71066
|
do_not_place?: boolean | undefined;
|
|
@@ -71174,6 +71230,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
71174
71230
|
};
|
|
71175
71231
|
source_component_id: string;
|
|
71176
71232
|
pcb_component_id?: string | undefined;
|
|
71233
|
+
footprint_origin?: {
|
|
71234
|
+
x: string | number;
|
|
71235
|
+
y: string | number;
|
|
71236
|
+
} | undefined;
|
|
71177
71237
|
display_offset_x?: string | undefined;
|
|
71178
71238
|
display_offset_y?: string | undefined;
|
|
71179
71239
|
do_not_place?: boolean | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -2091,6 +2091,7 @@ var pcb_component = z116.object({
|
|
|
2091
2091
|
pcb_component_id: getZodPrefixedIdWithDefault("pcb_component"),
|
|
2092
2092
|
source_component_id: z116.string(),
|
|
2093
2093
|
center: point,
|
|
2094
|
+
footprint_origin: point.optional(),
|
|
2094
2095
|
layer: layer_ref,
|
|
2095
2096
|
rotation,
|
|
2096
2097
|
display_offset_x: z116.string().optional().describe(
|