circuit-json 0.0.278 → 0.0.279

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 CHANGED
@@ -1030,8 +1030,8 @@ interface PcbFabricationNoteDimension {
1030
1030
  pcb_group_id?: string
1031
1031
  subcircuit_id?: string
1032
1032
  layer: VisibleLayer
1033
- from: Point | string
1034
- to: Point | string
1033
+ from: Point
1034
+ to: Point
1035
1035
  text?: string
1036
1036
  offset?: Length
1037
1037
  font: "tscircuit2024"
package/dist/index.d.mts CHANGED
@@ -3945,7 +3945,7 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
3945
3945
  pcb_group_id: z.ZodOptional<z.ZodString>;
3946
3946
  subcircuit_id: z.ZodOptional<z.ZodString>;
3947
3947
  layer: z.ZodEnum<["top", "bottom"]>;
3948
- from: z.ZodUnion<[z.ZodObject<{
3948
+ from: z.ZodObject<{
3949
3949
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
3950
3950
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
3951
3951
  }, "strip", z.ZodTypeAny, {
@@ -3954,8 +3954,8 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
3954
3954
  }, {
3955
3955
  x: string | number;
3956
3956
  y: string | number;
3957
- }>, z.ZodString]>;
3958
- to: z.ZodUnion<[z.ZodObject<{
3957
+ }>;
3958
+ to: z.ZodObject<{
3959
3959
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
3960
3960
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
3961
3961
  }, "strip", z.ZodTypeAny, {
@@ -3964,7 +3964,7 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
3964
3964
  }, {
3965
3965
  x: string | number;
3966
3966
  y: string | number;
3967
- }>, z.ZodString]>;
3967
+ }>;
3968
3968
  text: z.ZodOptional<z.ZodString>;
3969
3969
  offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
3970
3970
  font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
@@ -3978,11 +3978,11 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
3978
3978
  font: "tscircuit2024";
3979
3979
  font_size: number;
3980
3980
  pcb_fabrication_note_dimension_id: string;
3981
- from: string | {
3981
+ from: {
3982
3982
  x: number;
3983
3983
  y: number;
3984
3984
  };
3985
- to: string | {
3985
+ to: {
3986
3986
  x: number;
3987
3987
  y: number;
3988
3988
  };
@@ -3996,11 +3996,11 @@ declare const pcb_fabrication_note_dimension: z.ZodObject<{
3996
3996
  type: "pcb_fabrication_note_dimension";
3997
3997
  pcb_component_id: string;
3998
3998
  layer: "top" | "bottom";
3999
- from: string | {
3999
+ from: {
4000
4000
  x: string | number;
4001
4001
  y: string | number;
4002
4002
  };
4003
- to: string | {
4003
+ to: {
4004
4004
  x: string | number;
4005
4005
  y: string | number;
4006
4006
  };
@@ -4025,8 +4025,8 @@ interface PcbFabricationNoteDimension {
4025
4025
  pcb_group_id?: string;
4026
4026
  subcircuit_id?: string;
4027
4027
  layer: VisibleLayer;
4028
- from: Point | string;
4029
- to: Point | string;
4028
+ from: Point;
4029
+ to: Point;
4030
4030
  text?: string;
4031
4031
  offset?: Length;
4032
4032
  font: "tscircuit2024";
@@ -15831,7 +15831,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15831
15831
  pcb_group_id: z.ZodOptional<z.ZodString>;
15832
15832
  subcircuit_id: z.ZodOptional<z.ZodString>;
15833
15833
  layer: z.ZodEnum<["top", "bottom"]>;
15834
- from: z.ZodUnion<[z.ZodObject<{
15834
+ from: z.ZodObject<{
15835
15835
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
15836
15836
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
15837
15837
  }, "strip", z.ZodTypeAny, {
@@ -15840,8 +15840,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15840
15840
  }, {
15841
15841
  x: string | number;
15842
15842
  y: string | number;
15843
- }>, z.ZodString]>;
15844
- to: z.ZodUnion<[z.ZodObject<{
15843
+ }>;
15844
+ to: z.ZodObject<{
15845
15845
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
15846
15846
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
15847
15847
  }, "strip", z.ZodTypeAny, {
@@ -15850,7 +15850,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15850
15850
  }, {
15851
15851
  x: string | number;
15852
15852
  y: string | number;
15853
- }>, z.ZodString]>;
15853
+ }>;
15854
15854
  text: z.ZodOptional<z.ZodString>;
15855
15855
  offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
15856
15856
  font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
@@ -15864,11 +15864,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15864
15864
  font: "tscircuit2024";
15865
15865
  font_size: number;
15866
15866
  pcb_fabrication_note_dimension_id: string;
15867
- from: string | {
15867
+ from: {
15868
15868
  x: number;
15869
15869
  y: number;
15870
15870
  };
15871
- to: string | {
15871
+ to: {
15872
15872
  x: number;
15873
15873
  y: number;
15874
15874
  };
@@ -15882,11 +15882,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
15882
15882
  type: "pcb_fabrication_note_dimension";
15883
15883
  pcb_component_id: string;
15884
15884
  layer: "top" | "bottom";
15885
- from: string | {
15885
+ from: {
15886
15886
  x: string | number;
15887
15887
  y: string | number;
15888
15888
  };
15889
- to: string | {
15889
+ to: {
15890
15890
  x: string | number;
15891
15891
  y: string | number;
15892
15892
  };
@@ -22954,7 +22954,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
22954
22954
  pcb_group_id: z.ZodOptional<z.ZodString>;
22955
22955
  subcircuit_id: z.ZodOptional<z.ZodString>;
22956
22956
  layer: z.ZodEnum<["top", "bottom"]>;
22957
- from: z.ZodUnion<[z.ZodObject<{
22957
+ from: z.ZodObject<{
22958
22958
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
22959
22959
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
22960
22960
  }, "strip", z.ZodTypeAny, {
@@ -22963,8 +22963,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
22963
22963
  }, {
22964
22964
  x: string | number;
22965
22965
  y: string | number;
22966
- }>, z.ZodString]>;
22967
- to: z.ZodUnion<[z.ZodObject<{
22966
+ }>;
22967
+ to: z.ZodObject<{
22968
22968
  x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
22969
22969
  y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
22970
22970
  }, "strip", z.ZodTypeAny, {
@@ -22973,7 +22973,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
22973
22973
  }, {
22974
22974
  x: string | number;
22975
22975
  y: string | number;
22976
- }>, z.ZodString]>;
22976
+ }>;
22977
22977
  text: z.ZodOptional<z.ZodString>;
22978
22978
  offset: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
22979
22979
  font: z.ZodDefault<z.ZodLiteral<"tscircuit2024">>;
@@ -22987,11 +22987,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
22987
22987
  font: "tscircuit2024";
22988
22988
  font_size: number;
22989
22989
  pcb_fabrication_note_dimension_id: string;
22990
- from: string | {
22990
+ from: {
22991
22991
  x: number;
22992
22992
  y: number;
22993
22993
  };
22994
- to: string | {
22994
+ to: {
22995
22995
  x: number;
22996
22996
  y: number;
22997
22997
  };
@@ -23005,11 +23005,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
23005
23005
  type: "pcb_fabrication_note_dimension";
23006
23006
  pcb_component_id: string;
23007
23007
  layer: "top" | "bottom";
23008
- from: string | {
23008
+ from: {
23009
23009
  x: string | number;
23010
23010
  y: string | number;
23011
23011
  };
23012
- to: string | {
23012
+ to: {
23013
23013
  x: string | number;
23014
23014
  y: string | number;
23015
23015
  };
package/dist/index.mjs CHANGED
@@ -2027,8 +2027,8 @@ var pcb_fabrication_note_dimension = z93.object({
2027
2027
  pcb_group_id: z93.string().optional(),
2028
2028
  subcircuit_id: z93.string().optional(),
2029
2029
  layer: visible_layer,
2030
- from: point.or(z93.string()),
2031
- to: point.or(z93.string()),
2030
+ from: point,
2031
+ to: point,
2032
2032
  text: z93.string().optional(),
2033
2033
  offset: length.optional(),
2034
2034
  font: z93.literal("tscircuit2024").default("tscircuit2024"),