@tscircuit/props 0.0.95 → 0.0.97
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 +188 -113
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/lib/common/schematicPinDefinitions.ts +2 -2
- package/lib/components/chip.ts +12 -0
- package/lib/components/jumper.ts +4 -2
- package/lib/components/subcircuit.ts +11 -0
- package/lib/index.ts +1 -0
- package/lib/typecheck.ts +21 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { LayerRef, LayerRefInput, AnySourceComponent } from 'circuit-json';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
|
+
import * as _tscircuit_layout from '@tscircuit/layout';
|
|
4
5
|
import { LayoutBuilder, ManualEditFile } from '@tscircuit/layout';
|
|
5
6
|
|
|
6
7
|
declare const direction: z.ZodEnum<["up", "down", "left", "right"]>;
|
|
@@ -1142,7 +1143,7 @@ interface SchematicPortArrangementWithPinCounts {
|
|
|
1142
1143
|
bottomPinCount?: number;
|
|
1143
1144
|
}
|
|
1144
1145
|
interface PinSideDefinition {
|
|
1145
|
-
pins: number
|
|
1146
|
+
pins: Array<number | string>;
|
|
1146
1147
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1147
1148
|
}
|
|
1148
1149
|
interface SchematicPortArrangementWithSides {
|
|
@@ -1154,14 +1155,14 @@ interface SchematicPortArrangementWithSides {
|
|
|
1154
1155
|
interface SchematicPortArrangement extends SchematicPortArrangementWithSizes, SchematicPortArrangementWithSides, SchematicPortArrangementWithPinCounts {
|
|
1155
1156
|
}
|
|
1156
1157
|
declare const explicitPinSideDefinition: z.ZodObject<{
|
|
1157
|
-
pins: z.
|
|
1158
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
1158
1159
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
1159
1160
|
}, "strip", z.ZodTypeAny, {
|
|
1160
1161
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1161
|
-
pins: string
|
|
1162
|
+
pins: (string | number)[];
|
|
1162
1163
|
}, {
|
|
1163
1164
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1164
|
-
pins: string
|
|
1165
|
+
pins: (string | number)[];
|
|
1165
1166
|
}>;
|
|
1166
1167
|
declare const schematicPortArrangement: z.ZodObject<{
|
|
1167
1168
|
leftSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1173,44 +1174,44 @@ declare const schematicPortArrangement: z.ZodObject<{
|
|
|
1173
1174
|
topPinCount: z.ZodOptional<z.ZodNumber>;
|
|
1174
1175
|
bottomPinCount: z.ZodOptional<z.ZodNumber>;
|
|
1175
1176
|
leftSide: z.ZodOptional<z.ZodObject<{
|
|
1176
|
-
pins: z.
|
|
1177
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
1177
1178
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
1178
1179
|
}, "strip", z.ZodTypeAny, {
|
|
1179
1180
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1180
|
-
pins: string
|
|
1181
|
+
pins: (string | number)[];
|
|
1181
1182
|
}, {
|
|
1182
1183
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1183
|
-
pins: string
|
|
1184
|
+
pins: (string | number)[];
|
|
1184
1185
|
}>>;
|
|
1185
1186
|
rightSide: z.ZodOptional<z.ZodObject<{
|
|
1186
|
-
pins: z.
|
|
1187
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
1187
1188
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
1188
1189
|
}, "strip", z.ZodTypeAny, {
|
|
1189
1190
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1190
|
-
pins: string
|
|
1191
|
+
pins: (string | number)[];
|
|
1191
1192
|
}, {
|
|
1192
1193
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1193
|
-
pins: string
|
|
1194
|
+
pins: (string | number)[];
|
|
1194
1195
|
}>>;
|
|
1195
1196
|
topSide: z.ZodOptional<z.ZodObject<{
|
|
1196
|
-
pins: z.
|
|
1197
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
1197
1198
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
1198
1199
|
}, "strip", z.ZodTypeAny, {
|
|
1199
1200
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1200
|
-
pins: string
|
|
1201
|
+
pins: (string | number)[];
|
|
1201
1202
|
}, {
|
|
1202
1203
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1203
|
-
pins: string
|
|
1204
|
+
pins: (string | number)[];
|
|
1204
1205
|
}>>;
|
|
1205
1206
|
bottomSide: z.ZodOptional<z.ZodObject<{
|
|
1206
|
-
pins: z.
|
|
1207
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
1207
1208
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
1208
1209
|
}, "strip", z.ZodTypeAny, {
|
|
1209
1210
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1210
|
-
pins: string
|
|
1211
|
+
pins: (string | number)[];
|
|
1211
1212
|
}, {
|
|
1212
1213
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1213
|
-
pins: string
|
|
1214
|
+
pins: (string | number)[];
|
|
1214
1215
|
}>>;
|
|
1215
1216
|
}, "strip", z.ZodTypeAny, {
|
|
1216
1217
|
leftSize?: number | undefined;
|
|
@@ -1219,19 +1220,19 @@ declare const schematicPortArrangement: z.ZodObject<{
|
|
|
1219
1220
|
bottomSize?: number | undefined;
|
|
1220
1221
|
leftSide?: {
|
|
1221
1222
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1222
|
-
pins: string
|
|
1223
|
+
pins: (string | number)[];
|
|
1223
1224
|
} | undefined;
|
|
1224
1225
|
topSide?: {
|
|
1225
1226
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1226
|
-
pins: string
|
|
1227
|
+
pins: (string | number)[];
|
|
1227
1228
|
} | undefined;
|
|
1228
1229
|
rightSide?: {
|
|
1229
1230
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1230
|
-
pins: string
|
|
1231
|
+
pins: (string | number)[];
|
|
1231
1232
|
} | undefined;
|
|
1232
1233
|
bottomSide?: {
|
|
1233
1234
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1234
|
-
pins: string
|
|
1235
|
+
pins: (string | number)[];
|
|
1235
1236
|
} | undefined;
|
|
1236
1237
|
leftPinCount?: number | undefined;
|
|
1237
1238
|
rightPinCount?: number | undefined;
|
|
@@ -1244,19 +1245,19 @@ declare const schematicPortArrangement: z.ZodObject<{
|
|
|
1244
1245
|
bottomSize?: number | undefined;
|
|
1245
1246
|
leftSide?: {
|
|
1246
1247
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1247
|
-
pins: string
|
|
1248
|
+
pins: (string | number)[];
|
|
1248
1249
|
} | undefined;
|
|
1249
1250
|
topSide?: {
|
|
1250
1251
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1251
|
-
pins: string
|
|
1252
|
+
pins: (string | number)[];
|
|
1252
1253
|
} | undefined;
|
|
1253
1254
|
rightSide?: {
|
|
1254
1255
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1255
|
-
pins: string
|
|
1256
|
+
pins: (string | number)[];
|
|
1256
1257
|
} | undefined;
|
|
1257
1258
|
bottomSide?: {
|
|
1258
1259
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1259
|
-
pins: string
|
|
1260
|
+
pins: (string | number)[];
|
|
1260
1261
|
} | undefined;
|
|
1261
1262
|
leftPinCount?: number | undefined;
|
|
1262
1263
|
rightPinCount?: number | undefined;
|
|
@@ -1658,6 +1659,8 @@ interface ChipProps extends CommonComponentProps {
|
|
|
1658
1659
|
schWidth?: Distance;
|
|
1659
1660
|
schHeight?: Distance;
|
|
1660
1661
|
}
|
|
1662
|
+
type PinLabels = Record<number | string, string | readonly string[] | string[]>;
|
|
1663
|
+
declare const pinLabelsProp: z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>;
|
|
1661
1664
|
declare const chipProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1662
1665
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
1663
1666
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -1927,44 +1930,44 @@ declare const chipProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exten
|
|
|
1927
1930
|
topPinCount: z.ZodOptional<z.ZodNumber>;
|
|
1928
1931
|
bottomPinCount: z.ZodOptional<z.ZodNumber>;
|
|
1929
1932
|
leftSide: z.ZodOptional<z.ZodObject<{
|
|
1930
|
-
pins: z.
|
|
1933
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
1931
1934
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
1932
1935
|
}, "strip", z.ZodTypeAny, {
|
|
1933
1936
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1934
|
-
pins: string
|
|
1937
|
+
pins: (string | number)[];
|
|
1935
1938
|
}, {
|
|
1936
1939
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1937
|
-
pins: string
|
|
1940
|
+
pins: (string | number)[];
|
|
1938
1941
|
}>>;
|
|
1939
1942
|
rightSide: z.ZodOptional<z.ZodObject<{
|
|
1940
|
-
pins: z.
|
|
1943
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
1941
1944
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
1942
1945
|
}, "strip", z.ZodTypeAny, {
|
|
1943
1946
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1944
|
-
pins: string
|
|
1947
|
+
pins: (string | number)[];
|
|
1945
1948
|
}, {
|
|
1946
1949
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1947
|
-
pins: string
|
|
1950
|
+
pins: (string | number)[];
|
|
1948
1951
|
}>>;
|
|
1949
1952
|
topSide: z.ZodOptional<z.ZodObject<{
|
|
1950
|
-
pins: z.
|
|
1953
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
1951
1954
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
1952
1955
|
}, "strip", z.ZodTypeAny, {
|
|
1953
1956
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1954
|
-
pins: string
|
|
1957
|
+
pins: (string | number)[];
|
|
1955
1958
|
}, {
|
|
1956
1959
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1957
|
-
pins: string
|
|
1960
|
+
pins: (string | number)[];
|
|
1958
1961
|
}>>;
|
|
1959
1962
|
bottomSide: z.ZodOptional<z.ZodObject<{
|
|
1960
|
-
pins: z.
|
|
1963
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
1961
1964
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
1962
1965
|
}, "strip", z.ZodTypeAny, {
|
|
1963
1966
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1964
|
-
pins: string
|
|
1967
|
+
pins: (string | number)[];
|
|
1965
1968
|
}, {
|
|
1966
1969
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1967
|
-
pins: string
|
|
1970
|
+
pins: (string | number)[];
|
|
1968
1971
|
}>>;
|
|
1969
1972
|
}, "strip", z.ZodTypeAny, {
|
|
1970
1973
|
leftSize?: number | undefined;
|
|
@@ -1973,19 +1976,19 @@ declare const chipProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exten
|
|
|
1973
1976
|
bottomSize?: number | undefined;
|
|
1974
1977
|
leftSide?: {
|
|
1975
1978
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1976
|
-
pins: string
|
|
1979
|
+
pins: (string | number)[];
|
|
1977
1980
|
} | undefined;
|
|
1978
1981
|
topSide?: {
|
|
1979
1982
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1980
|
-
pins: string
|
|
1983
|
+
pins: (string | number)[];
|
|
1981
1984
|
} | undefined;
|
|
1982
1985
|
rightSide?: {
|
|
1983
1986
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1984
|
-
pins: string
|
|
1987
|
+
pins: (string | number)[];
|
|
1985
1988
|
} | undefined;
|
|
1986
1989
|
bottomSide?: {
|
|
1987
1990
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
1988
|
-
pins: string
|
|
1991
|
+
pins: (string | number)[];
|
|
1989
1992
|
} | undefined;
|
|
1990
1993
|
leftPinCount?: number | undefined;
|
|
1991
1994
|
rightPinCount?: number | undefined;
|
|
@@ -1998,19 +2001,19 @@ declare const chipProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exten
|
|
|
1998
2001
|
bottomSize?: number | undefined;
|
|
1999
2002
|
leftSide?: {
|
|
2000
2003
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2001
|
-
pins: string
|
|
2004
|
+
pins: (string | number)[];
|
|
2002
2005
|
} | undefined;
|
|
2003
2006
|
topSide?: {
|
|
2004
2007
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2005
|
-
pins: string
|
|
2008
|
+
pins: (string | number)[];
|
|
2006
2009
|
} | undefined;
|
|
2007
2010
|
rightSide?: {
|
|
2008
2011
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2009
|
-
pins: string
|
|
2012
|
+
pins: (string | number)[];
|
|
2010
2013
|
} | undefined;
|
|
2011
2014
|
bottomSide?: {
|
|
2012
2015
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2013
|
-
pins: string
|
|
2016
|
+
pins: (string | number)[];
|
|
2014
2017
|
} | undefined;
|
|
2015
2018
|
leftPinCount?: number | undefined;
|
|
2016
2019
|
rightPinCount?: number | undefined;
|
|
@@ -2112,19 +2115,19 @@ declare const chipProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exten
|
|
|
2112
2115
|
bottomSize?: number | undefined;
|
|
2113
2116
|
leftSide?: {
|
|
2114
2117
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2115
|
-
pins: string
|
|
2118
|
+
pins: (string | number)[];
|
|
2116
2119
|
} | undefined;
|
|
2117
2120
|
topSide?: {
|
|
2118
2121
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2119
|
-
pins: string
|
|
2122
|
+
pins: (string | number)[];
|
|
2120
2123
|
} | undefined;
|
|
2121
2124
|
rightSide?: {
|
|
2122
2125
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2123
|
-
pins: string
|
|
2126
|
+
pins: (string | number)[];
|
|
2124
2127
|
} | undefined;
|
|
2125
2128
|
bottomSide?: {
|
|
2126
2129
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2127
|
-
pins: string
|
|
2130
|
+
pins: (string | number)[];
|
|
2128
2131
|
} | undefined;
|
|
2129
2132
|
leftPinCount?: number | undefined;
|
|
2130
2133
|
rightPinCount?: number | undefined;
|
|
@@ -2218,19 +2221,19 @@ declare const chipProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exten
|
|
|
2218
2221
|
bottomSize?: number | undefined;
|
|
2219
2222
|
leftSide?: {
|
|
2220
2223
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2221
|
-
pins: string
|
|
2224
|
+
pins: (string | number)[];
|
|
2222
2225
|
} | undefined;
|
|
2223
2226
|
topSide?: {
|
|
2224
2227
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2225
|
-
pins: string
|
|
2228
|
+
pins: (string | number)[];
|
|
2226
2229
|
} | undefined;
|
|
2227
2230
|
rightSide?: {
|
|
2228
2231
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2229
|
-
pins: string
|
|
2232
|
+
pins: (string | number)[];
|
|
2230
2233
|
} | undefined;
|
|
2231
2234
|
bottomSide?: {
|
|
2232
2235
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2233
|
-
pins: string
|
|
2236
|
+
pins: (string | number)[];
|
|
2234
2237
|
} | undefined;
|
|
2235
2238
|
leftPinCount?: number | undefined;
|
|
2236
2239
|
rightPinCount?: number | undefined;
|
|
@@ -2519,44 +2522,44 @@ declare const bugProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extend
|
|
|
2519
2522
|
topPinCount: z.ZodOptional<z.ZodNumber>;
|
|
2520
2523
|
bottomPinCount: z.ZodOptional<z.ZodNumber>;
|
|
2521
2524
|
leftSide: z.ZodOptional<z.ZodObject<{
|
|
2522
|
-
pins: z.
|
|
2525
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
2523
2526
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
2524
2527
|
}, "strip", z.ZodTypeAny, {
|
|
2525
2528
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2526
|
-
pins: string
|
|
2529
|
+
pins: (string | number)[];
|
|
2527
2530
|
}, {
|
|
2528
2531
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2529
|
-
pins: string
|
|
2532
|
+
pins: (string | number)[];
|
|
2530
2533
|
}>>;
|
|
2531
2534
|
rightSide: z.ZodOptional<z.ZodObject<{
|
|
2532
|
-
pins: z.
|
|
2535
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
2533
2536
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
2534
2537
|
}, "strip", z.ZodTypeAny, {
|
|
2535
2538
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2536
|
-
pins: string
|
|
2539
|
+
pins: (string | number)[];
|
|
2537
2540
|
}, {
|
|
2538
2541
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2539
|
-
pins: string
|
|
2542
|
+
pins: (string | number)[];
|
|
2540
2543
|
}>>;
|
|
2541
2544
|
topSide: z.ZodOptional<z.ZodObject<{
|
|
2542
|
-
pins: z.
|
|
2545
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
2543
2546
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
2544
2547
|
}, "strip", z.ZodTypeAny, {
|
|
2545
2548
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2546
|
-
pins: string
|
|
2549
|
+
pins: (string | number)[];
|
|
2547
2550
|
}, {
|
|
2548
2551
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2549
|
-
pins: string
|
|
2552
|
+
pins: (string | number)[];
|
|
2550
2553
|
}>>;
|
|
2551
2554
|
bottomSide: z.ZodOptional<z.ZodObject<{
|
|
2552
|
-
pins: z.
|
|
2555
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
2553
2556
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
2554
2557
|
}, "strip", z.ZodTypeAny, {
|
|
2555
2558
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2556
|
-
pins: string
|
|
2559
|
+
pins: (string | number)[];
|
|
2557
2560
|
}, {
|
|
2558
2561
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2559
|
-
pins: string
|
|
2562
|
+
pins: (string | number)[];
|
|
2560
2563
|
}>>;
|
|
2561
2564
|
}, "strip", z.ZodTypeAny, {
|
|
2562
2565
|
leftSize?: number | undefined;
|
|
@@ -2565,19 +2568,19 @@ declare const bugProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extend
|
|
|
2565
2568
|
bottomSize?: number | undefined;
|
|
2566
2569
|
leftSide?: {
|
|
2567
2570
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2568
|
-
pins: string
|
|
2571
|
+
pins: (string | number)[];
|
|
2569
2572
|
} | undefined;
|
|
2570
2573
|
topSide?: {
|
|
2571
2574
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2572
|
-
pins: string
|
|
2575
|
+
pins: (string | number)[];
|
|
2573
2576
|
} | undefined;
|
|
2574
2577
|
rightSide?: {
|
|
2575
2578
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2576
|
-
pins: string
|
|
2579
|
+
pins: (string | number)[];
|
|
2577
2580
|
} | undefined;
|
|
2578
2581
|
bottomSide?: {
|
|
2579
2582
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2580
|
-
pins: string
|
|
2583
|
+
pins: (string | number)[];
|
|
2581
2584
|
} | undefined;
|
|
2582
2585
|
leftPinCount?: number | undefined;
|
|
2583
2586
|
rightPinCount?: number | undefined;
|
|
@@ -2590,19 +2593,19 @@ declare const bugProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extend
|
|
|
2590
2593
|
bottomSize?: number | undefined;
|
|
2591
2594
|
leftSide?: {
|
|
2592
2595
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2593
|
-
pins: string
|
|
2596
|
+
pins: (string | number)[];
|
|
2594
2597
|
} | undefined;
|
|
2595
2598
|
topSide?: {
|
|
2596
2599
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2597
|
-
pins: string
|
|
2600
|
+
pins: (string | number)[];
|
|
2598
2601
|
} | undefined;
|
|
2599
2602
|
rightSide?: {
|
|
2600
2603
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2601
|
-
pins: string
|
|
2604
|
+
pins: (string | number)[];
|
|
2602
2605
|
} | undefined;
|
|
2603
2606
|
bottomSide?: {
|
|
2604
2607
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2605
|
-
pins: string
|
|
2608
|
+
pins: (string | number)[];
|
|
2606
2609
|
} | undefined;
|
|
2607
2610
|
leftPinCount?: number | undefined;
|
|
2608
2611
|
rightPinCount?: number | undefined;
|
|
@@ -2704,19 +2707,19 @@ declare const bugProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extend
|
|
|
2704
2707
|
bottomSize?: number | undefined;
|
|
2705
2708
|
leftSide?: {
|
|
2706
2709
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2707
|
-
pins: string
|
|
2710
|
+
pins: (string | number)[];
|
|
2708
2711
|
} | undefined;
|
|
2709
2712
|
topSide?: {
|
|
2710
2713
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2711
|
-
pins: string
|
|
2714
|
+
pins: (string | number)[];
|
|
2712
2715
|
} | undefined;
|
|
2713
2716
|
rightSide?: {
|
|
2714
2717
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2715
|
-
pins: string
|
|
2718
|
+
pins: (string | number)[];
|
|
2716
2719
|
} | undefined;
|
|
2717
2720
|
bottomSide?: {
|
|
2718
2721
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2719
|
-
pins: string
|
|
2722
|
+
pins: (string | number)[];
|
|
2720
2723
|
} | undefined;
|
|
2721
2724
|
leftPinCount?: number | undefined;
|
|
2722
2725
|
rightPinCount?: number | undefined;
|
|
@@ -2810,19 +2813,19 @@ declare const bugProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extend
|
|
|
2810
2813
|
bottomSize?: number | undefined;
|
|
2811
2814
|
leftSide?: {
|
|
2812
2815
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2813
|
-
pins: string
|
|
2816
|
+
pins: (string | number)[];
|
|
2814
2817
|
} | undefined;
|
|
2815
2818
|
topSide?: {
|
|
2816
2819
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2817
|
-
pins: string
|
|
2820
|
+
pins: (string | number)[];
|
|
2818
2821
|
} | undefined;
|
|
2819
2822
|
rightSide?: {
|
|
2820
2823
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2821
|
-
pins: string
|
|
2824
|
+
pins: (string | number)[];
|
|
2822
2825
|
} | undefined;
|
|
2823
2826
|
bottomSide?: {
|
|
2824
2827
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
2825
|
-
pins: string
|
|
2828
|
+
pins: (string | number)[];
|
|
2826
2829
|
} | undefined;
|
|
2827
2830
|
leftPinCount?: number | undefined;
|
|
2828
2831
|
rightPinCount?: number | undefined;
|
|
@@ -2843,7 +2846,7 @@ type InferredChipProps = z.input<typeof chipProps>;
|
|
|
2843
2846
|
|
|
2844
2847
|
interface JumperProps extends CommonComponentProps {
|
|
2845
2848
|
manufacturerPartNumber?: string;
|
|
2846
|
-
pinLabels?: Record<number | string, string>;
|
|
2849
|
+
pinLabels?: Record<number | string, string | string[]>;
|
|
2847
2850
|
schPinStyle?: SchematicPinStyle;
|
|
2848
2851
|
schPinSpacing?: number | string;
|
|
2849
2852
|
schWidth?: number | string;
|
|
@@ -3109,7 +3112,7 @@ declare const jumperProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ext
|
|
|
3109
3112
|
symbolName: z.ZodOptional<z.ZodString>;
|
|
3110
3113
|
}>, {
|
|
3111
3114
|
manufacturerPartNumber: z.ZodOptional<z.ZodString>;
|
|
3112
|
-
pinLabels: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodString
|
|
3115
|
+
pinLabels: z.ZodOptional<z.ZodRecord<z.ZodUnion<[z.ZodNumber, z.ZodString]>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
|
|
3113
3116
|
schPinStyle: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3114
3117
|
leftMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
3115
3118
|
rightMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -3140,44 +3143,44 @@ declare const jumperProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ext
|
|
|
3140
3143
|
topPinCount: z.ZodOptional<z.ZodNumber>;
|
|
3141
3144
|
bottomPinCount: z.ZodOptional<z.ZodNumber>;
|
|
3142
3145
|
leftSide: z.ZodOptional<z.ZodObject<{
|
|
3143
|
-
pins: z.
|
|
3146
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
3144
3147
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
3145
3148
|
}, "strip", z.ZodTypeAny, {
|
|
3146
3149
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3147
|
-
pins: string
|
|
3150
|
+
pins: (string | number)[];
|
|
3148
3151
|
}, {
|
|
3149
3152
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3150
|
-
pins: string
|
|
3153
|
+
pins: (string | number)[];
|
|
3151
3154
|
}>>;
|
|
3152
3155
|
rightSide: z.ZodOptional<z.ZodObject<{
|
|
3153
|
-
pins: z.
|
|
3156
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
3154
3157
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
3155
3158
|
}, "strip", z.ZodTypeAny, {
|
|
3156
3159
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3157
|
-
pins: string
|
|
3160
|
+
pins: (string | number)[];
|
|
3158
3161
|
}, {
|
|
3159
3162
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3160
|
-
pins: string
|
|
3163
|
+
pins: (string | number)[];
|
|
3161
3164
|
}>>;
|
|
3162
3165
|
topSide: z.ZodOptional<z.ZodObject<{
|
|
3163
|
-
pins: z.
|
|
3166
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
3164
3167
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
3165
3168
|
}, "strip", z.ZodTypeAny, {
|
|
3166
3169
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3167
|
-
pins: string
|
|
3170
|
+
pins: (string | number)[];
|
|
3168
3171
|
}, {
|
|
3169
3172
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3170
|
-
pins: string
|
|
3173
|
+
pins: (string | number)[];
|
|
3171
3174
|
}>>;
|
|
3172
3175
|
bottomSide: z.ZodOptional<z.ZodObject<{
|
|
3173
|
-
pins: z.
|
|
3176
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
3174
3177
|
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
3175
3178
|
}, "strip", z.ZodTypeAny, {
|
|
3176
3179
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3177
|
-
pins: string
|
|
3180
|
+
pins: (string | number)[];
|
|
3178
3181
|
}, {
|
|
3179
3182
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3180
|
-
pins: string
|
|
3183
|
+
pins: (string | number)[];
|
|
3181
3184
|
}>>;
|
|
3182
3185
|
}, "strip", z.ZodTypeAny, {
|
|
3183
3186
|
leftSize?: number | undefined;
|
|
@@ -3186,19 +3189,19 @@ declare const jumperProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ext
|
|
|
3186
3189
|
bottomSize?: number | undefined;
|
|
3187
3190
|
leftSide?: {
|
|
3188
3191
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3189
|
-
pins: string
|
|
3192
|
+
pins: (string | number)[];
|
|
3190
3193
|
} | undefined;
|
|
3191
3194
|
topSide?: {
|
|
3192
3195
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3193
|
-
pins: string
|
|
3196
|
+
pins: (string | number)[];
|
|
3194
3197
|
} | undefined;
|
|
3195
3198
|
rightSide?: {
|
|
3196
3199
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3197
|
-
pins: string
|
|
3200
|
+
pins: (string | number)[];
|
|
3198
3201
|
} | undefined;
|
|
3199
3202
|
bottomSide?: {
|
|
3200
3203
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3201
|
-
pins: string
|
|
3204
|
+
pins: (string | number)[];
|
|
3202
3205
|
} | undefined;
|
|
3203
3206
|
leftPinCount?: number | undefined;
|
|
3204
3207
|
rightPinCount?: number | undefined;
|
|
@@ -3211,19 +3214,19 @@ declare const jumperProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ext
|
|
|
3211
3214
|
bottomSize?: number | undefined;
|
|
3212
3215
|
leftSide?: {
|
|
3213
3216
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3214
|
-
pins: string
|
|
3217
|
+
pins: (string | number)[];
|
|
3215
3218
|
} | undefined;
|
|
3216
3219
|
topSide?: {
|
|
3217
3220
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3218
|
-
pins: string
|
|
3221
|
+
pins: (string | number)[];
|
|
3219
3222
|
} | undefined;
|
|
3220
3223
|
rightSide?: {
|
|
3221
3224
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3222
|
-
pins: string
|
|
3225
|
+
pins: (string | number)[];
|
|
3223
3226
|
} | undefined;
|
|
3224
3227
|
bottomSide?: {
|
|
3225
3228
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3226
|
-
pins: string
|
|
3229
|
+
pins: (string | number)[];
|
|
3227
3230
|
} | undefined;
|
|
3228
3231
|
leftPinCount?: number | undefined;
|
|
3229
3232
|
rightPinCount?: number | undefined;
|
|
@@ -3298,7 +3301,7 @@ declare const jumperProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ext
|
|
|
3298
3301
|
children?: any;
|
|
3299
3302
|
symbolName?: string | undefined;
|
|
3300
3303
|
manufacturerPartNumber?: string | undefined;
|
|
3301
|
-
pinLabels?: Record<string | number, string> | undefined;
|
|
3304
|
+
pinLabels?: Record<string | number, string | string[]> | undefined;
|
|
3302
3305
|
schPortArrangement?: {
|
|
3303
3306
|
leftSize?: number | undefined;
|
|
3304
3307
|
topSize?: number | undefined;
|
|
@@ -3306,19 +3309,19 @@ declare const jumperProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ext
|
|
|
3306
3309
|
bottomSize?: number | undefined;
|
|
3307
3310
|
leftSide?: {
|
|
3308
3311
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3309
|
-
pins: string
|
|
3312
|
+
pins: (string | number)[];
|
|
3310
3313
|
} | undefined;
|
|
3311
3314
|
topSide?: {
|
|
3312
3315
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3313
|
-
pins: string
|
|
3316
|
+
pins: (string | number)[];
|
|
3314
3317
|
} | undefined;
|
|
3315
3318
|
rightSide?: {
|
|
3316
3319
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3317
|
-
pins: string
|
|
3320
|
+
pins: (string | number)[];
|
|
3318
3321
|
} | undefined;
|
|
3319
3322
|
bottomSide?: {
|
|
3320
3323
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3321
|
-
pins: string
|
|
3324
|
+
pins: (string | number)[];
|
|
3322
3325
|
} | undefined;
|
|
3323
3326
|
leftPinCount?: number | undefined;
|
|
3324
3327
|
rightPinCount?: number | undefined;
|
|
@@ -3405,7 +3408,7 @@ declare const jumperProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ext
|
|
|
3405
3408
|
children?: any;
|
|
3406
3409
|
symbolName?: string | undefined;
|
|
3407
3410
|
manufacturerPartNumber?: string | undefined;
|
|
3408
|
-
pinLabels?: Record<string | number, string> | undefined;
|
|
3411
|
+
pinLabels?: Record<string | number, string | string[]> | undefined;
|
|
3409
3412
|
schPortArrangement?: {
|
|
3410
3413
|
leftSize?: number | undefined;
|
|
3411
3414
|
topSize?: number | undefined;
|
|
@@ -3413,19 +3416,19 @@ declare const jumperProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ext
|
|
|
3413
3416
|
bottomSize?: number | undefined;
|
|
3414
3417
|
leftSide?: {
|
|
3415
3418
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3416
|
-
pins: string
|
|
3419
|
+
pins: (string | number)[];
|
|
3417
3420
|
} | undefined;
|
|
3418
3421
|
topSide?: {
|
|
3419
3422
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3420
|
-
pins: string
|
|
3423
|
+
pins: (string | number)[];
|
|
3421
3424
|
} | undefined;
|
|
3422
3425
|
rightSide?: {
|
|
3423
3426
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3424
|
-
pins: string
|
|
3427
|
+
pins: (string | number)[];
|
|
3425
3428
|
} | undefined;
|
|
3426
3429
|
bottomSide?: {
|
|
3427
3430
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3428
|
-
pins: string
|
|
3431
|
+
pins: (string | number)[];
|
|
3429
3432
|
} | undefined;
|
|
3430
3433
|
leftPinCount?: number | undefined;
|
|
3431
3434
|
rightPinCount?: number | undefined;
|
|
@@ -6915,6 +6918,78 @@ declare const pushButtonProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
6915
6918
|
}>;
|
|
6916
6919
|
type PushButtonProps = z.input<typeof pushButtonProps>;
|
|
6917
6920
|
|
|
6921
|
+
type SubcircuitProps = SubcircuitGroupProps;
|
|
6922
|
+
declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
6923
|
+
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
6924
|
+
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
6925
|
+
pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
6926
|
+
schX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
6927
|
+
schY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
6928
|
+
schRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
6929
|
+
layer: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
6930
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
6931
|
+
}, "strip", z.ZodTypeAny, {
|
|
6932
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
6933
|
+
}, {
|
|
6934
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
6935
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
6936
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
6937
|
+
}>>;
|
|
6938
|
+
footprint: z.ZodOptional<z.ZodType<Footprint, z.ZodTypeDef, Footprint>>;
|
|
6939
|
+
}, {
|
|
6940
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6941
|
+
children: z.ZodOptional<z.ZodAny>;
|
|
6942
|
+
}>, {
|
|
6943
|
+
subcircuit: z.ZodLiteral<true>;
|
|
6944
|
+
layout: z.ZodOptional<z.ZodType<_tscircuit_layout.LayoutBuilder, z.ZodTypeDef, _tscircuit_layout.LayoutBuilder>>;
|
|
6945
|
+
manualEdits: z.ZodOptional<z.ZodType<_tscircuit_layout.ManualEditFile, z.ZodTypeDef, _tscircuit_layout.ManualEditFile>>;
|
|
6946
|
+
schAutoLayoutEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
6947
|
+
routingDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
6948
|
+
defaultTraceWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
6949
|
+
minTraceWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
6950
|
+
partsEngine: z.ZodOptional<z.ZodType<PartsEngine, z.ZodTypeDef, PartsEngine>>;
|
|
6951
|
+
}>, "strip", z.ZodTypeAny, {
|
|
6952
|
+
subcircuit: true;
|
|
6953
|
+
pcbX?: number | undefined;
|
|
6954
|
+
pcbY?: number | undefined;
|
|
6955
|
+
pcbRotation?: number | undefined;
|
|
6956
|
+
schX?: number | undefined;
|
|
6957
|
+
schY?: number | undefined;
|
|
6958
|
+
schRotation?: number | undefined;
|
|
6959
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
6960
|
+
footprint?: Footprint | undefined;
|
|
6961
|
+
name?: string | undefined;
|
|
6962
|
+
children?: any;
|
|
6963
|
+
layout?: _tscircuit_layout.LayoutBuilder | undefined;
|
|
6964
|
+
manualEdits?: _tscircuit_layout.ManualEditFile | undefined;
|
|
6965
|
+
routingDisabled?: boolean | undefined;
|
|
6966
|
+
defaultTraceWidth?: number | undefined;
|
|
6967
|
+
minTraceWidth?: number | undefined;
|
|
6968
|
+
schAutoLayoutEnabled?: boolean | undefined;
|
|
6969
|
+
partsEngine?: PartsEngine | undefined;
|
|
6970
|
+
}, {
|
|
6971
|
+
subcircuit: true;
|
|
6972
|
+
pcbX?: string | number | undefined;
|
|
6973
|
+
pcbY?: string | number | undefined;
|
|
6974
|
+
pcbRotation?: string | number | undefined;
|
|
6975
|
+
schX?: string | number | undefined;
|
|
6976
|
+
schY?: string | number | undefined;
|
|
6977
|
+
schRotation?: string | number | undefined;
|
|
6978
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
6979
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
6980
|
+
} | undefined;
|
|
6981
|
+
footprint?: Footprint | undefined;
|
|
6982
|
+
name?: string | undefined;
|
|
6983
|
+
children?: any;
|
|
6984
|
+
layout?: _tscircuit_layout.LayoutBuilder | undefined;
|
|
6985
|
+
manualEdits?: _tscircuit_layout.ManualEditFile | undefined;
|
|
6986
|
+
routingDisabled?: boolean | undefined;
|
|
6987
|
+
defaultTraceWidth?: string | number | undefined;
|
|
6988
|
+
minTraceWidth?: string | number | undefined;
|
|
6989
|
+
schAutoLayoutEnabled?: boolean | undefined;
|
|
6990
|
+
partsEngine?: PartsEngine | undefined;
|
|
6991
|
+
}>;
|
|
6992
|
+
|
|
6918
6993
|
declare const inductorProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
6919
6994
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
6920
6995
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -10176,4 +10251,4 @@ declare const fabricationNotePathProps: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
10176
10251
|
}>;
|
|
10177
10252
|
type FabricationNotePathProps = z.input<typeof fabricationNotePathProps>;
|
|
10178
10253
|
|
|
10179
|
-
export { 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 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 OvalPlatedHoleProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, type PcbSameXConstraint, type PcbSameYConstraint, type PcbTraceProps, type PcbXDistConstraint, type PcbYDistConstraint, type PillPlatedHoleProps, type PinHeaderProps, type PinSideDefinition, type PlatedHoleProps, type PortHints, type PortProps, type PotentiometerProps, type PowerSourceProps, type PushButtonProps, type RectSmtPadProps, type RectSolderPasteProps, type ResistorProps, 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 SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type TraceHintProps, type TraceProps, type ViaProps, baseGroupProps, batteryPins, batteryProps, boardProps, bugProps, cadModelBase, cadModelJscad, cadModelObj, cadModelProp, cadModelStl, capacitorPins, capacitorProps, chipProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, constrainedLayoutProps, constraintProps, 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, platedHoleProps, point3, portHints, portProps, portRef, potentiometerPins, potentiometerProps, powerSourceProps, pushButtonProps, rectSmtPadProps, rectSolderPasteProps, resistorPins, resistorProps, rotationPoint3, routeHintPointProps, schematicBoxProps, schematicLineProps, schematicPathProps, schematicPinStyle, schematicPortArrangement, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, subcircuitGroupProps, supplierProps, switchProps, traceHintProps, traceProps, viaProps };
|
|
10254
|
+
export { 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 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 OvalPlatedHoleProps, type PartsEngine, type PcbKeepoutProps, type PcbLayoutProps, 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 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 SubcircuitProps, type SupplierName, type SupplierPartNumbers, type SupplierProps, type SwitchProps, type TraceHintProps, type TraceProps, type ViaProps, baseGroupProps, batteryPins, batteryProps, boardProps, bugProps, cadModelBase, cadModelJscad, cadModelObj, cadModelProp, cadModelStl, capacitorPins, capacitorProps, chipProps, circleSmtPadProps, circleSolderPasteProps, commonComponentProps, commonLayoutProps, componentProps, constrainedLayoutProps, constraintProps, 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, rotationPoint3, routeHintPointProps, schematicBoxProps, schematicLineProps, schematicPathProps, schematicPinStyle, schematicPortArrangement, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, solderPasteProps, subcircuitGroupProps, subcircuitProps, supplierProps, switchProps, traceHintProps, traceProps, viaProps };
|