@tscircuit/props 0.0.110 → 0.0.112
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 +580 -2
- package/dist/index.js +157 -51
- package/dist/index.js.map +1 -1
- package/lib/index.ts +1 -0
- package/lib/manual-edits/index.ts +5 -0
- package/lib/manual-edits/manual-edit-events/base_manual_edit_event.ts +20 -0
- package/lib/manual-edits/manual-edit-events/edit_pcb_component_location_event.ts +37 -0
- package/lib/manual-edits/manual-edit-events/edit_schematic_component_location_event.ts +31 -0
- package/lib/manual-edits/manual-edit-events/edit_trace_hint_event.ts +29 -0
- package/lib/manual-edits/manual-edit-events/index.ts +4 -0
- package/lib/manual-edits/manual_edit_event.ts +22 -0
- package/lib/manual-edits/manual_edit_file.ts +11 -0
- package/lib/manual-edits/manual_pcb_placement.ts +24 -0
- package/lib/manual-edits/manual_schematic_placement.ts +30 -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, Point as Point$1, 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';
|
|
@@ -7767,6 +7767,584 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
7767
7767
|
partsEngine?: PartsEngine | undefined;
|
|
7768
7768
|
}>;
|
|
7769
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_pcb_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
|
+
edit_event_type: z.ZodLiteral<"edit_pcb_component_location">;
|
|
7797
|
+
pcb_component_id: z.ZodString;
|
|
7798
|
+
original_center: z.ZodObject<{
|
|
7799
|
+
x: z.ZodNumber;
|
|
7800
|
+
y: z.ZodNumber;
|
|
7801
|
+
}, "strip", z.ZodTypeAny, {
|
|
7802
|
+
x: number;
|
|
7803
|
+
y: number;
|
|
7804
|
+
}, {
|
|
7805
|
+
x: number;
|
|
7806
|
+
y: number;
|
|
7807
|
+
}>;
|
|
7808
|
+
new_center: z.ZodObject<{
|
|
7809
|
+
x: z.ZodNumber;
|
|
7810
|
+
y: z.ZodNumber;
|
|
7811
|
+
}, "strip", z.ZodTypeAny, {
|
|
7812
|
+
x: number;
|
|
7813
|
+
y: number;
|
|
7814
|
+
}, {
|
|
7815
|
+
x: number;
|
|
7816
|
+
y: number;
|
|
7817
|
+
}>;
|
|
7818
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7819
|
+
edit_event_id: string;
|
|
7820
|
+
created_at: number;
|
|
7821
|
+
pcb_edit_event_type: "edit_component_location";
|
|
7822
|
+
edit_event_type: "edit_pcb_component_location";
|
|
7823
|
+
pcb_component_id: string;
|
|
7824
|
+
original_center: {
|
|
7825
|
+
x: number;
|
|
7826
|
+
y: number;
|
|
7827
|
+
};
|
|
7828
|
+
new_center: {
|
|
7829
|
+
x: number;
|
|
7830
|
+
y: number;
|
|
7831
|
+
};
|
|
7832
|
+
in_progress?: boolean | undefined;
|
|
7833
|
+
}, {
|
|
7834
|
+
edit_event_id: string;
|
|
7835
|
+
created_at: number;
|
|
7836
|
+
pcb_edit_event_type: "edit_component_location";
|
|
7837
|
+
edit_event_type: "edit_pcb_component_location";
|
|
7838
|
+
pcb_component_id: string;
|
|
7839
|
+
original_center: {
|
|
7840
|
+
x: number;
|
|
7841
|
+
y: number;
|
|
7842
|
+
};
|
|
7843
|
+
new_center: {
|
|
7844
|
+
x: number;
|
|
7845
|
+
y: number;
|
|
7846
|
+
};
|
|
7847
|
+
in_progress?: boolean | undefined;
|
|
7848
|
+
}>;
|
|
7849
|
+
/** @deprecated use edit_pcb_component_location_event instead */
|
|
7850
|
+
declare const edit_component_location_event: z.ZodObject<z.objectUtil.extendShape<{
|
|
7851
|
+
edit_event_id: z.ZodString;
|
|
7852
|
+
in_progress: z.ZodOptional<z.ZodBoolean>;
|
|
7853
|
+
created_at: z.ZodNumber;
|
|
7854
|
+
}, {
|
|
7855
|
+
pcb_edit_event_type: z.ZodLiteral<"edit_component_location">;
|
|
7856
|
+
edit_event_type: z.ZodLiteral<"edit_pcb_component_location">;
|
|
7857
|
+
pcb_component_id: z.ZodString;
|
|
7858
|
+
original_center: z.ZodObject<{
|
|
7859
|
+
x: z.ZodNumber;
|
|
7860
|
+
y: z.ZodNumber;
|
|
7861
|
+
}, "strip", z.ZodTypeAny, {
|
|
7862
|
+
x: number;
|
|
7863
|
+
y: number;
|
|
7864
|
+
}, {
|
|
7865
|
+
x: number;
|
|
7866
|
+
y: number;
|
|
7867
|
+
}>;
|
|
7868
|
+
new_center: z.ZodObject<{
|
|
7869
|
+
x: z.ZodNumber;
|
|
7870
|
+
y: z.ZodNumber;
|
|
7871
|
+
}, "strip", z.ZodTypeAny, {
|
|
7872
|
+
x: number;
|
|
7873
|
+
y: number;
|
|
7874
|
+
}, {
|
|
7875
|
+
x: number;
|
|
7876
|
+
y: number;
|
|
7877
|
+
}>;
|
|
7878
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7879
|
+
edit_event_id: string;
|
|
7880
|
+
created_at: number;
|
|
7881
|
+
pcb_edit_event_type: "edit_component_location";
|
|
7882
|
+
edit_event_type: "edit_pcb_component_location";
|
|
7883
|
+
pcb_component_id: string;
|
|
7884
|
+
original_center: {
|
|
7885
|
+
x: number;
|
|
7886
|
+
y: number;
|
|
7887
|
+
};
|
|
7888
|
+
new_center: {
|
|
7889
|
+
x: number;
|
|
7890
|
+
y: number;
|
|
7891
|
+
};
|
|
7892
|
+
in_progress?: boolean | undefined;
|
|
7893
|
+
}, {
|
|
7894
|
+
edit_event_id: string;
|
|
7895
|
+
created_at: number;
|
|
7896
|
+
pcb_edit_event_type: "edit_component_location";
|
|
7897
|
+
edit_event_type: "edit_pcb_component_location";
|
|
7898
|
+
pcb_component_id: string;
|
|
7899
|
+
original_center: {
|
|
7900
|
+
x: number;
|
|
7901
|
+
y: number;
|
|
7902
|
+
};
|
|
7903
|
+
new_center: {
|
|
7904
|
+
x: number;
|
|
7905
|
+
y: number;
|
|
7906
|
+
};
|
|
7907
|
+
in_progress?: boolean | undefined;
|
|
7908
|
+
}>;
|
|
7909
|
+
interface EditPcbComponentLocationEvent extends BaseManualEditEvent {
|
|
7910
|
+
edit_event_type: "edit_pcb_component_location";
|
|
7911
|
+
/** @deprecated */
|
|
7912
|
+
pcb_edit_event_type: "edit_component_location";
|
|
7913
|
+
pcb_component_id: string;
|
|
7914
|
+
original_center: {
|
|
7915
|
+
x: number;
|
|
7916
|
+
y: number;
|
|
7917
|
+
};
|
|
7918
|
+
new_center: {
|
|
7919
|
+
x: number;
|
|
7920
|
+
y: number;
|
|
7921
|
+
};
|
|
7922
|
+
}
|
|
7923
|
+
type EditPcbComponentLocationEventInput = z.input<typeof edit_pcb_component_location_event>;
|
|
7924
|
+
|
|
7925
|
+
declare const edit_trace_hint_event: z.ZodObject<z.objectUtil.extendShape<{
|
|
7926
|
+
edit_event_id: z.ZodString;
|
|
7927
|
+
in_progress: z.ZodOptional<z.ZodBoolean>;
|
|
7928
|
+
created_at: z.ZodNumber;
|
|
7929
|
+
}, {
|
|
7930
|
+
pcb_edit_event_type: z.ZodLiteral<"edit_trace_hint">;
|
|
7931
|
+
pcb_port_id: z.ZodString;
|
|
7932
|
+
pcb_trace_hint_id: z.ZodOptional<z.ZodString>;
|
|
7933
|
+
route: z.ZodArray<z.ZodObject<{
|
|
7934
|
+
x: z.ZodNumber;
|
|
7935
|
+
y: z.ZodNumber;
|
|
7936
|
+
via: z.ZodOptional<z.ZodBoolean>;
|
|
7937
|
+
}, "strip", z.ZodTypeAny, {
|
|
7938
|
+
x: number;
|
|
7939
|
+
y: number;
|
|
7940
|
+
via?: boolean | undefined;
|
|
7941
|
+
}, {
|
|
7942
|
+
x: number;
|
|
7943
|
+
y: number;
|
|
7944
|
+
via?: boolean | undefined;
|
|
7945
|
+
}>, "many">;
|
|
7946
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7947
|
+
route: {
|
|
7948
|
+
x: number;
|
|
7949
|
+
y: number;
|
|
7950
|
+
via?: boolean | undefined;
|
|
7951
|
+
}[];
|
|
7952
|
+
edit_event_id: string;
|
|
7953
|
+
created_at: number;
|
|
7954
|
+
pcb_edit_event_type: "edit_trace_hint";
|
|
7955
|
+
pcb_port_id: string;
|
|
7956
|
+
in_progress?: boolean | undefined;
|
|
7957
|
+
pcb_trace_hint_id?: string | undefined;
|
|
7958
|
+
}, {
|
|
7959
|
+
route: {
|
|
7960
|
+
x: number;
|
|
7961
|
+
y: number;
|
|
7962
|
+
via?: boolean | undefined;
|
|
7963
|
+
}[];
|
|
7964
|
+
edit_event_id: string;
|
|
7965
|
+
created_at: number;
|
|
7966
|
+
pcb_edit_event_type: "edit_trace_hint";
|
|
7967
|
+
pcb_port_id: string;
|
|
7968
|
+
in_progress?: boolean | undefined;
|
|
7969
|
+
pcb_trace_hint_id?: string | undefined;
|
|
7970
|
+
}>;
|
|
7971
|
+
interface EditTraceHintEvent extends BaseManualEditEvent {
|
|
7972
|
+
pcb_edit_event_type: "edit_trace_hint";
|
|
7973
|
+
pcb_port_id: string;
|
|
7974
|
+
pcb_trace_hint_id?: string;
|
|
7975
|
+
route: Array<{
|
|
7976
|
+
x: number;
|
|
7977
|
+
y: number;
|
|
7978
|
+
via?: boolean;
|
|
7979
|
+
}>;
|
|
7980
|
+
}
|
|
7981
|
+
type EditTraceHintEventInput = z.input<typeof edit_trace_hint_event>;
|
|
7982
|
+
|
|
7983
|
+
declare const edit_schematic_component_location_event: z.ZodObject<z.objectUtil.extendShape<{
|
|
7984
|
+
edit_event_id: z.ZodString;
|
|
7985
|
+
in_progress: z.ZodOptional<z.ZodBoolean>;
|
|
7986
|
+
created_at: z.ZodNumber;
|
|
7987
|
+
}, {
|
|
7988
|
+
edit_event_type: z.ZodLiteral<"edit_schematic_component_location">;
|
|
7989
|
+
schematic_component_id: z.ZodString;
|
|
7990
|
+
original_center: z.ZodObject<{
|
|
7991
|
+
x: z.ZodNumber;
|
|
7992
|
+
y: z.ZodNumber;
|
|
7993
|
+
}, "strip", z.ZodTypeAny, {
|
|
7994
|
+
x: number;
|
|
7995
|
+
y: number;
|
|
7996
|
+
}, {
|
|
7997
|
+
x: number;
|
|
7998
|
+
y: number;
|
|
7999
|
+
}>;
|
|
8000
|
+
new_center: z.ZodObject<{
|
|
8001
|
+
x: z.ZodNumber;
|
|
8002
|
+
y: z.ZodNumber;
|
|
8003
|
+
}, "strip", z.ZodTypeAny, {
|
|
8004
|
+
x: number;
|
|
8005
|
+
y: number;
|
|
8006
|
+
}, {
|
|
8007
|
+
x: number;
|
|
8008
|
+
y: number;
|
|
8009
|
+
}>;
|
|
8010
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8011
|
+
edit_event_id: string;
|
|
8012
|
+
created_at: number;
|
|
8013
|
+
edit_event_type: "edit_schematic_component_location";
|
|
8014
|
+
original_center: {
|
|
8015
|
+
x: number;
|
|
8016
|
+
y: number;
|
|
8017
|
+
};
|
|
8018
|
+
new_center: {
|
|
8019
|
+
x: number;
|
|
8020
|
+
y: number;
|
|
8021
|
+
};
|
|
8022
|
+
schematic_component_id: string;
|
|
8023
|
+
in_progress?: boolean | undefined;
|
|
8024
|
+
}, {
|
|
8025
|
+
edit_event_id: string;
|
|
8026
|
+
created_at: number;
|
|
8027
|
+
edit_event_type: "edit_schematic_component_location";
|
|
8028
|
+
original_center: {
|
|
8029
|
+
x: number;
|
|
8030
|
+
y: number;
|
|
8031
|
+
};
|
|
8032
|
+
new_center: {
|
|
8033
|
+
x: number;
|
|
8034
|
+
y: number;
|
|
8035
|
+
};
|
|
8036
|
+
schematic_component_id: string;
|
|
8037
|
+
in_progress?: boolean | undefined;
|
|
8038
|
+
}>;
|
|
8039
|
+
interface EditSchematicComponentLocationEvent extends BaseManualEditEvent {
|
|
8040
|
+
edit_event_type: "edit_schematic_component_location";
|
|
8041
|
+
schematic_component_id: string;
|
|
8042
|
+
original_center: {
|
|
8043
|
+
x: number;
|
|
8044
|
+
y: number;
|
|
8045
|
+
};
|
|
8046
|
+
new_center: {
|
|
8047
|
+
x: number;
|
|
8048
|
+
y: number;
|
|
8049
|
+
};
|
|
8050
|
+
}
|
|
8051
|
+
type EditSchematicComponentLocationEventInput = z.input<typeof edit_schematic_component_location_event>;
|
|
8052
|
+
|
|
8053
|
+
declare const manual_edit_file: z.ZodObject<{
|
|
8054
|
+
pcb_placements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8055
|
+
selector: z.ZodString;
|
|
8056
|
+
relative_to: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8057
|
+
center: z.ZodObject<{
|
|
8058
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8059
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8060
|
+
}, "strip", z.ZodTypeAny, {
|
|
8061
|
+
x: number;
|
|
8062
|
+
y: number;
|
|
8063
|
+
}, {
|
|
8064
|
+
x: string | number;
|
|
8065
|
+
y: string | number;
|
|
8066
|
+
}>;
|
|
8067
|
+
}, "strip", z.ZodTypeAny, {
|
|
8068
|
+
center: {
|
|
8069
|
+
x: number;
|
|
8070
|
+
y: number;
|
|
8071
|
+
};
|
|
8072
|
+
selector: string;
|
|
8073
|
+
relative_to: string;
|
|
8074
|
+
}, {
|
|
8075
|
+
center: {
|
|
8076
|
+
x: string | number;
|
|
8077
|
+
y: string | number;
|
|
8078
|
+
};
|
|
8079
|
+
selector: string;
|
|
8080
|
+
relative_to?: string | undefined;
|
|
8081
|
+
}>, "many">>;
|
|
8082
|
+
manual_trace_hints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8083
|
+
pcb_port_selector: z.ZodString;
|
|
8084
|
+
offsets: z.ZodArray<z.ZodObject<{
|
|
8085
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8086
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8087
|
+
via: z.ZodOptional<z.ZodBoolean>;
|
|
8088
|
+
to_layer: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
8089
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
8090
|
+
}, "strip", z.ZodTypeAny, {
|
|
8091
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8092
|
+
}, {
|
|
8093
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8094
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8095
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8096
|
+
}>>;
|
|
8097
|
+
trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
8098
|
+
}, "strip", z.ZodTypeAny, {
|
|
8099
|
+
x: number;
|
|
8100
|
+
y: number;
|
|
8101
|
+
trace_width?: number | undefined;
|
|
8102
|
+
via?: boolean | undefined;
|
|
8103
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8104
|
+
}, {
|
|
8105
|
+
x: string | number;
|
|
8106
|
+
y: string | number;
|
|
8107
|
+
trace_width?: string | number | undefined;
|
|
8108
|
+
via?: boolean | undefined;
|
|
8109
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8110
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8111
|
+
} | undefined;
|
|
8112
|
+
}>, "many">;
|
|
8113
|
+
}, "strip", z.ZodTypeAny, {
|
|
8114
|
+
offsets: {
|
|
8115
|
+
x: number;
|
|
8116
|
+
y: number;
|
|
8117
|
+
trace_width?: number | undefined;
|
|
8118
|
+
via?: boolean | undefined;
|
|
8119
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8120
|
+
}[];
|
|
8121
|
+
pcb_port_selector: string;
|
|
8122
|
+
}, {
|
|
8123
|
+
offsets: {
|
|
8124
|
+
x: string | number;
|
|
8125
|
+
y: string | number;
|
|
8126
|
+
trace_width?: string | number | undefined;
|
|
8127
|
+
via?: boolean | undefined;
|
|
8128
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8129
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8130
|
+
} | undefined;
|
|
8131
|
+
}[];
|
|
8132
|
+
pcb_port_selector: string;
|
|
8133
|
+
}>, "many">>;
|
|
8134
|
+
schematic_placements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8135
|
+
selector: z.ZodString;
|
|
8136
|
+
relative_to: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8137
|
+
center: z.ZodObject<{
|
|
8138
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8139
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8140
|
+
}, "strip", z.ZodTypeAny, {
|
|
8141
|
+
x: number;
|
|
8142
|
+
y: number;
|
|
8143
|
+
}, {
|
|
8144
|
+
x: string | number;
|
|
8145
|
+
y: string | number;
|
|
8146
|
+
}>;
|
|
8147
|
+
}, "strip", z.ZodTypeAny, {
|
|
8148
|
+
center: {
|
|
8149
|
+
x: number;
|
|
8150
|
+
y: number;
|
|
8151
|
+
};
|
|
8152
|
+
selector: string;
|
|
8153
|
+
relative_to: string;
|
|
8154
|
+
}, {
|
|
8155
|
+
center: {
|
|
8156
|
+
x: string | number;
|
|
8157
|
+
y: string | number;
|
|
8158
|
+
};
|
|
8159
|
+
selector: string;
|
|
8160
|
+
relative_to?: string | undefined;
|
|
8161
|
+
}>, "many">>;
|
|
8162
|
+
}, "strip", z.ZodTypeAny, {
|
|
8163
|
+
pcb_placements?: {
|
|
8164
|
+
center: {
|
|
8165
|
+
x: number;
|
|
8166
|
+
y: number;
|
|
8167
|
+
};
|
|
8168
|
+
selector: string;
|
|
8169
|
+
relative_to: string;
|
|
8170
|
+
}[] | undefined;
|
|
8171
|
+
manual_trace_hints?: {
|
|
8172
|
+
offsets: {
|
|
8173
|
+
x: number;
|
|
8174
|
+
y: number;
|
|
8175
|
+
trace_width?: number | undefined;
|
|
8176
|
+
via?: boolean | undefined;
|
|
8177
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8178
|
+
}[];
|
|
8179
|
+
pcb_port_selector: string;
|
|
8180
|
+
}[] | undefined;
|
|
8181
|
+
schematic_placements?: {
|
|
8182
|
+
center: {
|
|
8183
|
+
x: number;
|
|
8184
|
+
y: number;
|
|
8185
|
+
};
|
|
8186
|
+
selector: string;
|
|
8187
|
+
relative_to: string;
|
|
8188
|
+
}[] | undefined;
|
|
8189
|
+
}, {
|
|
8190
|
+
pcb_placements?: {
|
|
8191
|
+
center: {
|
|
8192
|
+
x: string | number;
|
|
8193
|
+
y: string | number;
|
|
8194
|
+
};
|
|
8195
|
+
selector: string;
|
|
8196
|
+
relative_to?: string | undefined;
|
|
8197
|
+
}[] | undefined;
|
|
8198
|
+
manual_trace_hints?: {
|
|
8199
|
+
offsets: {
|
|
8200
|
+
x: string | number;
|
|
8201
|
+
y: string | number;
|
|
8202
|
+
trace_width?: string | number | undefined;
|
|
8203
|
+
via?: boolean | undefined;
|
|
8204
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8205
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8206
|
+
} | undefined;
|
|
8207
|
+
}[];
|
|
8208
|
+
pcb_port_selector: string;
|
|
8209
|
+
}[] | undefined;
|
|
8210
|
+
schematic_placements?: {
|
|
8211
|
+
center: {
|
|
8212
|
+
x: string | number;
|
|
8213
|
+
y: string | number;
|
|
8214
|
+
};
|
|
8215
|
+
selector: string;
|
|
8216
|
+
relative_to?: string | undefined;
|
|
8217
|
+
}[] | undefined;
|
|
8218
|
+
}>;
|
|
8219
|
+
|
|
8220
|
+
declare const manual_pcb_placement: z.ZodObject<{
|
|
8221
|
+
selector: z.ZodString;
|
|
8222
|
+
relative_to: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8223
|
+
center: z.ZodObject<{
|
|
8224
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8225
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8226
|
+
}, "strip", z.ZodTypeAny, {
|
|
8227
|
+
x: number;
|
|
8228
|
+
y: number;
|
|
8229
|
+
}, {
|
|
8230
|
+
x: string | number;
|
|
8231
|
+
y: string | number;
|
|
8232
|
+
}>;
|
|
8233
|
+
}, "strip", z.ZodTypeAny, {
|
|
8234
|
+
center: {
|
|
8235
|
+
x: number;
|
|
8236
|
+
y: number;
|
|
8237
|
+
};
|
|
8238
|
+
selector: string;
|
|
8239
|
+
relative_to: string;
|
|
8240
|
+
}, {
|
|
8241
|
+
center: {
|
|
8242
|
+
x: string | number;
|
|
8243
|
+
y: string | number;
|
|
8244
|
+
};
|
|
8245
|
+
selector: string;
|
|
8246
|
+
relative_to?: string | undefined;
|
|
8247
|
+
}>;
|
|
8248
|
+
interface ManualPcbPlacement {
|
|
8249
|
+
selector: string;
|
|
8250
|
+
relative_to: string;
|
|
8251
|
+
center: Point$1;
|
|
8252
|
+
}
|
|
8253
|
+
type ManualPcbPlacementInput = z.input<typeof manual_pcb_placement>;
|
|
8254
|
+
|
|
8255
|
+
declare const manual_schematic_placement: z.ZodObject<{
|
|
8256
|
+
selector: z.ZodString;
|
|
8257
|
+
relative_to: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8258
|
+
center: z.ZodObject<{
|
|
8259
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8260
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8261
|
+
}, "strip", z.ZodTypeAny, {
|
|
8262
|
+
x: number;
|
|
8263
|
+
y: number;
|
|
8264
|
+
}, {
|
|
8265
|
+
x: string | number;
|
|
8266
|
+
y: string | number;
|
|
8267
|
+
}>;
|
|
8268
|
+
}, "strip", z.ZodTypeAny, {
|
|
8269
|
+
center: {
|
|
8270
|
+
x: number;
|
|
8271
|
+
y: number;
|
|
8272
|
+
};
|
|
8273
|
+
selector: string;
|
|
8274
|
+
relative_to: string;
|
|
8275
|
+
}, {
|
|
8276
|
+
center: {
|
|
8277
|
+
x: string | number;
|
|
8278
|
+
y: string | number;
|
|
8279
|
+
};
|
|
8280
|
+
selector: string;
|
|
8281
|
+
relative_to?: string | undefined;
|
|
8282
|
+
}>;
|
|
8283
|
+
interface ManualSchematicPlacement {
|
|
8284
|
+
selector: string;
|
|
8285
|
+
relative_to: string;
|
|
8286
|
+
center: Point$1;
|
|
8287
|
+
}
|
|
8288
|
+
type ManualSchematicPlacementInput = z.input<typeof manual_schematic_placement>;
|
|
8289
|
+
|
|
8290
|
+
declare const manual_trace_hint: z.ZodObject<{
|
|
8291
|
+
pcb_port_selector: z.ZodString;
|
|
8292
|
+
offsets: z.ZodArray<z.ZodObject<{
|
|
8293
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8294
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8295
|
+
via: z.ZodOptional<z.ZodBoolean>;
|
|
8296
|
+
to_layer: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
8297
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
8298
|
+
}, "strip", z.ZodTypeAny, {
|
|
8299
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8300
|
+
}, {
|
|
8301
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8302
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8303
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8304
|
+
}>>;
|
|
8305
|
+
trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
8306
|
+
}, "strip", z.ZodTypeAny, {
|
|
8307
|
+
x: number;
|
|
8308
|
+
y: number;
|
|
8309
|
+
trace_width?: number | undefined;
|
|
8310
|
+
via?: boolean | undefined;
|
|
8311
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8312
|
+
}, {
|
|
8313
|
+
x: string | number;
|
|
8314
|
+
y: string | number;
|
|
8315
|
+
trace_width?: string | number | undefined;
|
|
8316
|
+
via?: boolean | undefined;
|
|
8317
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8318
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8319
|
+
} | undefined;
|
|
8320
|
+
}>, "many">;
|
|
8321
|
+
}, "strip", z.ZodTypeAny, {
|
|
8322
|
+
offsets: {
|
|
8323
|
+
x: number;
|
|
8324
|
+
y: number;
|
|
8325
|
+
trace_width?: number | undefined;
|
|
8326
|
+
via?: boolean | undefined;
|
|
8327
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
8328
|
+
}[];
|
|
8329
|
+
pcb_port_selector: string;
|
|
8330
|
+
}, {
|
|
8331
|
+
offsets: {
|
|
8332
|
+
x: string | number;
|
|
8333
|
+
y: string | number;
|
|
8334
|
+
trace_width?: string | number | undefined;
|
|
8335
|
+
via?: boolean | undefined;
|
|
8336
|
+
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8337
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8338
|
+
} | undefined;
|
|
8339
|
+
}[];
|
|
8340
|
+
pcb_port_selector: string;
|
|
8341
|
+
}>;
|
|
8342
|
+
interface ManualTraceHint {
|
|
8343
|
+
pcb_port_selector: string;
|
|
8344
|
+
offsets: Array<RouteHintPoint>;
|
|
8345
|
+
}
|
|
8346
|
+
type ManualTraceHintInput = z.input<typeof manual_trace_hint>;
|
|
8347
|
+
|
|
7770
8348
|
declare const inductorProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
7771
8349
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
7772
8350
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -11028,4 +11606,4 @@ declare const fabricationNotePathProps: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
11028
11606
|
}>;
|
|
11029
11607
|
type FabricationNotePathProps = z.input<typeof fabricationNotePathProps>;
|
|
11030
11608
|
|
|
11031
|
-
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 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, 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 };
|
|
11609
|
+
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 EditPcbComponentLocationEvent, type EditPcbComponentLocationEventInput, type EditSchematicComponentLocationEvent, type EditSchematicComponentLocationEventInput, 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 ManualPcbPlacement, type ManualPcbPlacementInput, type ManualSchematicPlacement, type ManualSchematicPlacementInput, 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_pcb_component_location_event, edit_schematic_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_schematic_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 };
|