@tscircuit/props 0.0.109 → 0.0.111
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/dist/index.d.ts +367 -2
- package/dist/index.js +205 -126
- package/dist/index.js.map +1 -1
- package/lib/components/crystal.ts +5 -1
- package/lib/index.ts +1 -0
- package/lib/manual-edits/index.ts +4 -0
- package/lib/manual-edits/manual-edit-events/base_manual_edit_event.ts +20 -0
- package/lib/manual-edits/manual-edit-events/edit_component_location_event.ts +29 -0
- package/lib/manual-edits/manual-edit-events/edit_trace_hint_event.ts +29 -0
- package/lib/manual-edits/manual-edit-events/index.ts +3 -0
- package/lib/manual-edits/manual_edit_event.ts +21 -0
- package/lib/manual-edits/manual_edit_file.ts +9 -0
- package/lib/manual-edits/manual_pcb_position.ts +15 -0
- package/lib/manual-edits/manual_trace_hint.ts +17 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { LayerRef, LayerRefInput, AnySourceComponent, PcbTrace } from 'circuit-json';
|
|
2
|
+
import { LayerRef, LayerRefInput, AnySourceComponent, PcbTrace, RouteHintPoint } from 'circuit-json';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
4
|
import * as _tscircuit_layout from '@tscircuit/layout';
|
|
5
5
|
import { LayoutBuilder, ManualEditFile } from '@tscircuit/layout';
|
|
@@ -4658,9 +4658,11 @@ declare const potentiometerProps: z.ZodObject<z.objectUtil.extendShape<z.objectU
|
|
|
4658
4658
|
}>;
|
|
4659
4659
|
declare const potentiometerPins: readonly ["pin1", "left", "pin2", "right"];
|
|
4660
4660
|
|
|
4661
|
+
type PinVariant = "2pin" | "4pin";
|
|
4661
4662
|
interface CrystalProps extends CommonComponentProps {
|
|
4662
4663
|
frequency: number | string;
|
|
4663
4664
|
loadCapacitance: number | string;
|
|
4665
|
+
pinVariant?: PinVariant;
|
|
4664
4666
|
}
|
|
4665
4667
|
declare const crystalProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
4666
4668
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -4921,6 +4923,7 @@ declare const crystalProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
|
|
|
4921
4923
|
}>, {
|
|
4922
4924
|
frequency: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4923
4925
|
loadCapacitance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4926
|
+
pinVariant: z.ZodOptional<z.ZodEnum<["2pin", "4pin"]>>;
|
|
4924
4927
|
}>, "strip", z.ZodTypeAny, {
|
|
4925
4928
|
name: string;
|
|
4926
4929
|
frequency: number;
|
|
@@ -4990,6 +4993,7 @@ declare const crystalProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
|
|
|
4990
4993
|
} | undefined;
|
|
4991
4994
|
children?: any;
|
|
4992
4995
|
symbolName?: string | undefined;
|
|
4996
|
+
pinVariant?: "2pin" | "4pin" | undefined;
|
|
4993
4997
|
}, {
|
|
4994
4998
|
name: string;
|
|
4995
4999
|
frequency: string | number;
|
|
@@ -5061,6 +5065,7 @@ declare const crystalProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
|
|
|
5061
5065
|
} | undefined;
|
|
5062
5066
|
children?: any;
|
|
5063
5067
|
symbolName?: string | undefined;
|
|
5068
|
+
pinVariant?: "2pin" | "4pin" | undefined;
|
|
5064
5069
|
}>;
|
|
5065
5070
|
declare const crystalPins: readonly ["pin1", "left", "pin2", "right"];
|
|
5066
5071
|
|
|
@@ -7762,6 +7767,366 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
7762
7767
|
partsEngine?: PartsEngine | undefined;
|
|
7763
7768
|
}>;
|
|
7764
7769
|
|
|
7770
|
+
declare const base_manual_edit_event: z.ZodObject<{
|
|
7771
|
+
edit_event_id: z.ZodString;
|
|
7772
|
+
in_progress: z.ZodOptional<z.ZodBoolean>;
|
|
7773
|
+
created_at: z.ZodNumber;
|
|
7774
|
+
}, "strip", z.ZodTypeAny, {
|
|
7775
|
+
edit_event_id: string;
|
|
7776
|
+
created_at: number;
|
|
7777
|
+
in_progress?: boolean | undefined;
|
|
7778
|
+
}, {
|
|
7779
|
+
edit_event_id: string;
|
|
7780
|
+
created_at: number;
|
|
7781
|
+
in_progress?: boolean | undefined;
|
|
7782
|
+
}>;
|
|
7783
|
+
interface BaseManualEditEvent {
|
|
7784
|
+
edit_event_id: string;
|
|
7785
|
+
in_progress?: boolean;
|
|
7786
|
+
created_at: number;
|
|
7787
|
+
}
|
|
7788
|
+
type BaseManualEditEventInput = z.input<typeof base_manual_edit_event>;
|
|
7789
|
+
|
|
7790
|
+
declare const edit_component_location_event: z.ZodObject<z.objectUtil.extendShape<{
|
|
7791
|
+
edit_event_id: z.ZodString;
|
|
7792
|
+
in_progress: z.ZodOptional<z.ZodBoolean>;
|
|
7793
|
+
created_at: z.ZodNumber;
|
|
7794
|
+
}, {
|
|
7795
|
+
pcb_edit_event_type: z.ZodLiteral<"edit_component_location">;
|
|
7796
|
+
pcb_component_id: z.ZodString;
|
|
7797
|
+
original_center: z.ZodObject<{
|
|
7798
|
+
x: z.ZodNumber;
|
|
7799
|
+
y: z.ZodNumber;
|
|
7800
|
+
}, "strip", z.ZodTypeAny, {
|
|
7801
|
+
x: number;
|
|
7802
|
+
y: number;
|
|
7803
|
+
}, {
|
|
7804
|
+
x: number;
|
|
7805
|
+
y: number;
|
|
7806
|
+
}>;
|
|
7807
|
+
new_center: z.ZodObject<{
|
|
7808
|
+
x: z.ZodNumber;
|
|
7809
|
+
y: z.ZodNumber;
|
|
7810
|
+
}, "strip", z.ZodTypeAny, {
|
|
7811
|
+
x: number;
|
|
7812
|
+
y: number;
|
|
7813
|
+
}, {
|
|
7814
|
+
x: number;
|
|
7815
|
+
y: number;
|
|
7816
|
+
}>;
|
|
7817
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7818
|
+
edit_event_id: string;
|
|
7819
|
+
created_at: number;
|
|
7820
|
+
pcb_edit_event_type: "edit_component_location";
|
|
7821
|
+
pcb_component_id: string;
|
|
7822
|
+
original_center: {
|
|
7823
|
+
x: number;
|
|
7824
|
+
y: number;
|
|
7825
|
+
};
|
|
7826
|
+
new_center: {
|
|
7827
|
+
x: number;
|
|
7828
|
+
y: number;
|
|
7829
|
+
};
|
|
7830
|
+
in_progress?: boolean | undefined;
|
|
7831
|
+
}, {
|
|
7832
|
+
edit_event_id: string;
|
|
7833
|
+
created_at: number;
|
|
7834
|
+
pcb_edit_event_type: "edit_component_location";
|
|
7835
|
+
pcb_component_id: string;
|
|
7836
|
+
original_center: {
|
|
7837
|
+
x: number;
|
|
7838
|
+
y: number;
|
|
7839
|
+
};
|
|
7840
|
+
new_center: {
|
|
7841
|
+
x: number;
|
|
7842
|
+
y: number;
|
|
7843
|
+
};
|
|
7844
|
+
in_progress?: boolean | undefined;
|
|
7845
|
+
}>;
|
|
7846
|
+
interface EditComponentLocationEvent extends BaseManualEditEvent {
|
|
7847
|
+
pcb_edit_event_type: "edit_component_location";
|
|
7848
|
+
pcb_component_id: string;
|
|
7849
|
+
original_center: {
|
|
7850
|
+
x: number;
|
|
7851
|
+
y: number;
|
|
7852
|
+
};
|
|
7853
|
+
new_center: {
|
|
7854
|
+
x: number;
|
|
7855
|
+
y: number;
|
|
7856
|
+
};
|
|
7857
|
+
}
|
|
7858
|
+
type EditComponentLocationEventInput = z.input<typeof edit_component_location_event>;
|
|
7859
|
+
|
|
7860
|
+
declare const edit_trace_hint_event: z.ZodObject<z.objectUtil.extendShape<{
|
|
7861
|
+
edit_event_id: z.ZodString;
|
|
7862
|
+
in_progress: z.ZodOptional<z.ZodBoolean>;
|
|
7863
|
+
created_at: z.ZodNumber;
|
|
7864
|
+
}, {
|
|
7865
|
+
pcb_edit_event_type: z.ZodLiteral<"edit_trace_hint">;
|
|
7866
|
+
pcb_port_id: z.ZodString;
|
|
7867
|
+
pcb_trace_hint_id: z.ZodOptional<z.ZodString>;
|
|
7868
|
+
route: z.ZodArray<z.ZodObject<{
|
|
7869
|
+
x: z.ZodNumber;
|
|
7870
|
+
y: z.ZodNumber;
|
|
7871
|
+
via: z.ZodOptional<z.ZodBoolean>;
|
|
7872
|
+
}, "strip", z.ZodTypeAny, {
|
|
7873
|
+
x: number;
|
|
7874
|
+
y: number;
|
|
7875
|
+
via?: boolean | undefined;
|
|
7876
|
+
}, {
|
|
7877
|
+
x: number;
|
|
7878
|
+
y: number;
|
|
7879
|
+
via?: boolean | undefined;
|
|
7880
|
+
}>, "many">;
|
|
7881
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7882
|
+
route: {
|
|
7883
|
+
x: number;
|
|
7884
|
+
y: number;
|
|
7885
|
+
via?: boolean | undefined;
|
|
7886
|
+
}[];
|
|
7887
|
+
edit_event_id: string;
|
|
7888
|
+
created_at: number;
|
|
7889
|
+
pcb_edit_event_type: "edit_trace_hint";
|
|
7890
|
+
pcb_port_id: string;
|
|
7891
|
+
in_progress?: boolean | undefined;
|
|
7892
|
+
pcb_trace_hint_id?: string | undefined;
|
|
7893
|
+
}, {
|
|
7894
|
+
route: {
|
|
7895
|
+
x: number;
|
|
7896
|
+
y: number;
|
|
7897
|
+
via?: boolean | undefined;
|
|
7898
|
+
}[];
|
|
7899
|
+
edit_event_id: string;
|
|
7900
|
+
created_at: number;
|
|
7901
|
+
pcb_edit_event_type: "edit_trace_hint";
|
|
7902
|
+
pcb_port_id: string;
|
|
7903
|
+
in_progress?: boolean | undefined;
|
|
7904
|
+
pcb_trace_hint_id?: string | undefined;
|
|
7905
|
+
}>;
|
|
7906
|
+
interface EditTraceHintEvent extends BaseManualEditEvent {
|
|
7907
|
+
pcb_edit_event_type: "edit_trace_hint";
|
|
7908
|
+
pcb_port_id: string;
|
|
7909
|
+
pcb_trace_hint_id?: string;
|
|
7910
|
+
route: Array<{
|
|
7911
|
+
x: number;
|
|
7912
|
+
y: number;
|
|
7913
|
+
via?: boolean;
|
|
7914
|
+
}>;
|
|
7915
|
+
}
|
|
7916
|
+
type EditTraceHintEventInput = z.input<typeof edit_trace_hint_event>;
|
|
7917
|
+
|
|
7918
|
+
declare const manual_edit_file: z.ZodObject<{
|
|
7919
|
+
pcb_placements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7920
|
+
selector: z.ZodString;
|
|
7921
|
+
relative_to: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7922
|
+
center: z.ZodObject<{
|
|
7923
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
7924
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
7925
|
+
}, "strip", z.ZodTypeAny, {
|
|
7926
|
+
x: number;
|
|
7927
|
+
y: number;
|
|
7928
|
+
}, {
|
|
7929
|
+
x: string | number;
|
|
7930
|
+
y: string | number;
|
|
7931
|
+
}>;
|
|
7932
|
+
}, "strip", z.ZodTypeAny, {
|
|
7933
|
+
center: {
|
|
7934
|
+
x: number;
|
|
7935
|
+
y: number;
|
|
7936
|
+
};
|
|
7937
|
+
selector: string;
|
|
7938
|
+
relative_to: string;
|
|
7939
|
+
}, {
|
|
7940
|
+
center: {
|
|
7941
|
+
x: string | number;
|
|
7942
|
+
y: string | number;
|
|
7943
|
+
};
|
|
7944
|
+
selector: string;
|
|
7945
|
+
relative_to?: string | undefined;
|
|
7946
|
+
}>, "many">>;
|
|
7947
|
+
manual_trace_hints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7948
|
+
pcb_port_selector: z.ZodString;
|
|
7949
|
+
offsets: z.ZodArray<z.ZodObject<{
|
|
7950
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
7951
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
7952
|
+
via: z.ZodOptional<z.ZodBoolean>;
|
|
7953
|
+
to_layer: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
7954
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
7955
|
+
}, "strip", z.ZodTypeAny, {
|
|
7956
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
7957
|
+
}, {
|
|
7958
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
7959
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
7960
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
7961
|
+
}>>;
|
|
7962
|
+
trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
7963
|
+
}, "strip", z.ZodTypeAny, {
|
|
7964
|
+
x: number;
|
|
7965
|
+
y: number;
|
|
7966
|
+
trace_width?: number | undefined;
|
|
7967
|
+
via?: boolean | undefined;
|
|
7968
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
7969
|
+
}, {
|
|
7970
|
+
x: string | number;
|
|
7971
|
+
y: string | number;
|
|
7972
|
+
trace_width?: string | number | undefined;
|
|
7973
|
+
via?: boolean | undefined;
|
|
7974
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
7975
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
7976
|
+
} | undefined;
|
|
7977
|
+
}>, "many">;
|
|
7978
|
+
}, "strip", z.ZodTypeAny, {
|
|
7979
|
+
offsets: {
|
|
7980
|
+
x: number;
|
|
7981
|
+
y: number;
|
|
7982
|
+
trace_width?: number | undefined;
|
|
7983
|
+
via?: boolean | undefined;
|
|
7984
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
7985
|
+
}[];
|
|
7986
|
+
pcb_port_selector: string;
|
|
7987
|
+
}, {
|
|
7988
|
+
offsets: {
|
|
7989
|
+
x: string | number;
|
|
7990
|
+
y: string | number;
|
|
7991
|
+
trace_width?: string | number | undefined;
|
|
7992
|
+
via?: boolean | undefined;
|
|
7993
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
7994
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
7995
|
+
} | undefined;
|
|
7996
|
+
}[];
|
|
7997
|
+
pcb_port_selector: string;
|
|
7998
|
+
}>, "many">>;
|
|
7999
|
+
}, "strip", z.ZodTypeAny, {
|
|
8000
|
+
pcb_placements?: {
|
|
8001
|
+
center: {
|
|
8002
|
+
x: number;
|
|
8003
|
+
y: number;
|
|
8004
|
+
};
|
|
8005
|
+
selector: string;
|
|
8006
|
+
relative_to: string;
|
|
8007
|
+
}[] | undefined;
|
|
8008
|
+
manual_trace_hints?: {
|
|
8009
|
+
offsets: {
|
|
8010
|
+
x: number;
|
|
8011
|
+
y: number;
|
|
8012
|
+
trace_width?: number | undefined;
|
|
8013
|
+
via?: boolean | undefined;
|
|
8014
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8015
|
+
}[];
|
|
8016
|
+
pcb_port_selector: string;
|
|
8017
|
+
}[] | undefined;
|
|
8018
|
+
}, {
|
|
8019
|
+
pcb_placements?: {
|
|
8020
|
+
center: {
|
|
8021
|
+
x: string | number;
|
|
8022
|
+
y: string | number;
|
|
8023
|
+
};
|
|
8024
|
+
selector: string;
|
|
8025
|
+
relative_to?: string | undefined;
|
|
8026
|
+
}[] | undefined;
|
|
8027
|
+
manual_trace_hints?: {
|
|
8028
|
+
offsets: {
|
|
8029
|
+
x: string | number;
|
|
8030
|
+
y: string | number;
|
|
8031
|
+
trace_width?: string | number | undefined;
|
|
8032
|
+
via?: boolean | undefined;
|
|
8033
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8034
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8035
|
+
} | undefined;
|
|
8036
|
+
}[];
|
|
8037
|
+
pcb_port_selector: string;
|
|
8038
|
+
}[] | undefined;
|
|
8039
|
+
}>;
|
|
8040
|
+
|
|
8041
|
+
declare const manual_pcb_placement: z.ZodObject<{
|
|
8042
|
+
selector: z.ZodString;
|
|
8043
|
+
relative_to: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8044
|
+
center: z.ZodObject<{
|
|
8045
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8046
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8047
|
+
}, "strip", z.ZodTypeAny, {
|
|
8048
|
+
x: number;
|
|
8049
|
+
y: number;
|
|
8050
|
+
}, {
|
|
8051
|
+
x: string | number;
|
|
8052
|
+
y: string | number;
|
|
8053
|
+
}>;
|
|
8054
|
+
}, "strip", z.ZodTypeAny, {
|
|
8055
|
+
center: {
|
|
8056
|
+
x: number;
|
|
8057
|
+
y: number;
|
|
8058
|
+
};
|
|
8059
|
+
selector: string;
|
|
8060
|
+
relative_to: string;
|
|
8061
|
+
}, {
|
|
8062
|
+
center: {
|
|
8063
|
+
x: string | number;
|
|
8064
|
+
y: string | number;
|
|
8065
|
+
};
|
|
8066
|
+
selector: string;
|
|
8067
|
+
relative_to?: string | undefined;
|
|
8068
|
+
}>;
|
|
8069
|
+
type ManualPcbPosition = z.infer<typeof manual_pcb_placement>;
|
|
8070
|
+
type ManualPcbPositionInput = z.input<typeof manual_pcb_placement>;
|
|
8071
|
+
|
|
8072
|
+
declare const manual_trace_hint: z.ZodObject<{
|
|
8073
|
+
pcb_port_selector: z.ZodString;
|
|
8074
|
+
offsets: z.ZodArray<z.ZodObject<{
|
|
8075
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8076
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8077
|
+
via: z.ZodOptional<z.ZodBoolean>;
|
|
8078
|
+
to_layer: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
8079
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
8080
|
+
}, "strip", z.ZodTypeAny, {
|
|
8081
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8082
|
+
}, {
|
|
8083
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8084
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8085
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8086
|
+
}>>;
|
|
8087
|
+
trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
8088
|
+
}, "strip", z.ZodTypeAny, {
|
|
8089
|
+
x: number;
|
|
8090
|
+
y: number;
|
|
8091
|
+
trace_width?: number | undefined;
|
|
8092
|
+
via?: boolean | undefined;
|
|
8093
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8094
|
+
}, {
|
|
8095
|
+
x: string | number;
|
|
8096
|
+
y: string | number;
|
|
8097
|
+
trace_width?: string | number | undefined;
|
|
8098
|
+
via?: boolean | undefined;
|
|
8099
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8100
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8101
|
+
} | undefined;
|
|
8102
|
+
}>, "many">;
|
|
8103
|
+
}, "strip", z.ZodTypeAny, {
|
|
8104
|
+
offsets: {
|
|
8105
|
+
x: number;
|
|
8106
|
+
y: number;
|
|
8107
|
+
trace_width?: number | undefined;
|
|
8108
|
+
via?: boolean | undefined;
|
|
8109
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8110
|
+
}[];
|
|
8111
|
+
pcb_port_selector: string;
|
|
8112
|
+
}, {
|
|
8113
|
+
offsets: {
|
|
8114
|
+
x: string | number;
|
|
8115
|
+
y: string | number;
|
|
8116
|
+
trace_width?: string | number | undefined;
|
|
8117
|
+
via?: boolean | undefined;
|
|
8118
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8119
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8120
|
+
} | undefined;
|
|
8121
|
+
}[];
|
|
8122
|
+
pcb_port_selector: string;
|
|
8123
|
+
}>;
|
|
8124
|
+
interface ManualTraceHint {
|
|
8125
|
+
pcb_port_selector: string;
|
|
8126
|
+
offsets: Array<RouteHintPoint>;
|
|
8127
|
+
}
|
|
8128
|
+
type ManualTraceHintInput = z.input<typeof manual_trace_hint>;
|
|
8129
|
+
|
|
7765
8130
|
declare const inductorProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
7766
8131
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
7767
8132
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -11023,4 +11388,4 @@ declare const fabricationNotePathProps: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
11023
11388
|
}>;
|
|
11024
11389
|
type FabricationNotePathProps = z.input<typeof fabricationNotePathProps>;
|
|
11025
11390
|
|
|
11026
|
-
export { type AutorouterConfig, type AutorouterProp, type BaseGroupProps, type BatteryProps, type BoardProps, type CadModelBase, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelStl, type CapacitorProps, type ChipProps, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConstrainedLayoutProps, type ConstraintProps, type CrystalProps, type DiodeProps, type Direction, type DirectionAlongEdge, type FabricationNotePathProps, type FabricationNoteTextProps, type Footprint, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type GroupProps, type HoleProps, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredHoleProps, type InferredSmtPadProps, type InferredSolderPasteProps, type JumperProps, type LedProps, type NetAliasProps, type NetProps, type NonSubcircuitGroupProps, type OvalPlatedHoleProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillPlatedHoleProps, type PinHeaderProps, type PinLabels, type PinSideDefinition, type PlatedHoleProps, type PortHints, type PortProps, type PotentiometerProps, type PowerSourceProps, type PushButtonProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorProps, type RotatedRectSmtPadProps, type SchematicBoxProps, type SchematicLineProps, type SchematicPathProps, type SchematicPinStyle, type SchematicPortArrangement, type SchematicPortArrangementWithPinCounts, type SchematicPortArrangementWithSides, type SchematicPortArrangementWithSizes, type SchematicTextProps, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SmtPadProps, type SolderPasteProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type TraceHintProps, type TraceProps, type ViaProps, autorouterConfig, autorouterProp, baseGroupProps, batteryPins, batteryProps, boardProps, bugProps, cadModelBase, cadModelJscad, cadModelObj, cadModelProp, cadModelStl, capacitorPins, capacitorProps, chipProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, constrainedLayoutProps, constraintProps, crystalPins, crystalProps, diodePins, diodeProps, direction, directionAlongEdge, distanceOrMultiplier, explicitPinSideDefinition, fabricationNotePathProps, fabricationNoteTextProps, footprintProp, footprintProps, groupProps, holeProps, inductorPins, inductorProps, jumperProps, ledPins, ledProps, lrPins, lrPolarPins, netAliasProps, netProps, pcbKeepoutProps, pcbLayoutProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pinHeaderProps, pinLabelsProp, platedHoleProps, point3, portHints, portProps, portRef, potentiometerPins, potentiometerProps, powerSourceProps, pushButtonProps, rectSmtPadProps, rectSolderPasteProps, resistorPins, resistorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, schematicBoxProps, schematicLineProps, schematicPathProps, schematicPinStyle, schematicPortArrangement, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, traceHintProps, traceProps, viaProps };
|
|
11391
|
+
export { type AutorouterConfig, type AutorouterProp, type BaseGroupProps, type BaseManualEditEvent, type BaseManualEditEventInput, type BatteryProps, type BoardProps, type CadModelBase, type CadModelJscad, type CadModelObj, type CadModelProp, type CadModelStl, type CapacitorProps, type ChipProps, type CirclePlatedHoleProps, type CircleSmtPadProps, type CircleSolderPasteProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConstrainedLayoutProps, type ConstraintProps, type CrystalProps, type DiodeProps, type Direction, type DirectionAlongEdge, type EditComponentLocationEvent, type EditComponentLocationEventInput, type EditTraceHintEvent, type EditTraceHintEventInput, type FabricationNotePathProps, type FabricationNoteTextProps, type Footprint, type FootprintProps, type FootprintPropsInput, type FootprintSoupElements, type GroupProps, type HoleProps, type InductorProps, type InferredChipProps, type InferredConstrainedLayoutProps, type InferredHoleProps, type InferredSmtPadProps, type InferredSolderPasteProps, type JumperProps, type LedProps, type ManualPcbPosition, type ManualPcbPositionInput, type ManualTraceHint, type ManualTraceHintInput, type NetAliasProps, type NetProps, type NonSubcircuitGroupProps, type OvalPlatedHoleProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbRouteCache, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillPlatedHoleProps, type PinHeaderProps, type PinLabels, type PinSideDefinition, type PinVariant, type PlatedHoleProps, type PortHints, type PortProps, type PotentiometerProps, type PowerSourceProps, type PushButtonProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorProps, type RotatedRectSmtPadProps, type SchematicBoxProps, type SchematicLineProps, type SchematicPathProps, type SchematicPinStyle, type SchematicPortArrangement, type SchematicPortArrangementWithPinCounts, type SchematicPortArrangementWithSides, type SchematicPortArrangementWithSizes, type SchematicTextProps, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SmtPadProps, type SolderPasteProps, type SubcircuitGroupProps, type SubcircuitGroupPropsWithBool, type SubcircuitProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type TraceHintProps, type TraceProps, type ViaProps, autorouterConfig, autorouterProp, baseGroupProps, base_manual_edit_event, batteryPins, batteryProps, boardProps, bugProps, cadModelBase, cadModelJscad, cadModelObj, cadModelProp, cadModelStl, capacitorPins, capacitorProps, chipProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, constrainedLayoutProps, constraintProps, crystalPins, crystalProps, diodePins, diodeProps, direction, directionAlongEdge, distanceOrMultiplier, edit_component_location_event, edit_trace_hint_event, explicitPinSideDefinition, fabricationNotePathProps, fabricationNoteTextProps, footprintProp, footprintProps, groupProps, holeProps, inductorPins, inductorProps, jumperProps, ledPins, ledProps, lrPins, lrPolarPins, manual_edit_file, manual_pcb_placement, manual_trace_hint, netAliasProps, netProps, pcbKeepoutProps, pcbLayoutProps, pcbSameXConstraintProps, pcbSameYConstraintProps, pcbTraceProps, pcbXDistConstraintProps, pcbYDistConstraintProps, pinHeaderProps, pinLabelsProp, platedHoleProps, point3, portHints, portProps, portRef, potentiometerPins, potentiometerProps, powerSourceProps, pushButtonProps, rectSmtPadProps, rectSolderPasteProps, resistorPins, resistorProps, rotatedRectSmtPadProps, rotationPoint3, routeHintPointProps, schematicBoxProps, schematicLineProps, schematicPathProps, schematicPinStyle, schematicPortArrangement, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, subcircuitGroupProps, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, traceHintProps, traceProps, viaProps };
|