@tscircuit/props 0.0.101 → 0.0.104
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 +642 -2
- package/dist/index.js +116 -73
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +28 -0
- package/lib/components/smtpad.ts +30 -2
- package/lib/index.ts +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1304,6 +1304,38 @@ interface PcbRouteCache {
|
|
|
1304
1304
|
pcbTraces: PcbTrace[];
|
|
1305
1305
|
cacheKey: string;
|
|
1306
1306
|
}
|
|
1307
|
+
interface AutorouterConfig {
|
|
1308
|
+
serverUrl?: string;
|
|
1309
|
+
inputFormat?: "simplified" | "circuit-json";
|
|
1310
|
+
cache?: PcbRouteCache;
|
|
1311
|
+
}
|
|
1312
|
+
type AutorouterProp = AutorouterConfig | "auto" | "auto-local" | "auto-cloud";
|
|
1313
|
+
declare const autorouterConfig: z.ZodObject<{
|
|
1314
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
|
1315
|
+
inputFormat: z.ZodOptional<z.ZodEnum<["simplified", "circuit-json"]>>;
|
|
1316
|
+
cache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
1317
|
+
}, "strip", z.ZodTypeAny, {
|
|
1318
|
+
serverUrl?: string | undefined;
|
|
1319
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1320
|
+
cache?: PcbRouteCache | undefined;
|
|
1321
|
+
}, {
|
|
1322
|
+
serverUrl?: string | undefined;
|
|
1323
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1324
|
+
cache?: PcbRouteCache | undefined;
|
|
1325
|
+
}>;
|
|
1326
|
+
declare const autorouterProp: z.ZodUnion<[z.ZodObject<{
|
|
1327
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
|
1328
|
+
inputFormat: z.ZodOptional<z.ZodEnum<["simplified", "circuit-json"]>>;
|
|
1329
|
+
cache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
1330
|
+
}, "strip", z.ZodTypeAny, {
|
|
1331
|
+
serverUrl?: string | undefined;
|
|
1332
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1333
|
+
cache?: PcbRouteCache | undefined;
|
|
1334
|
+
}, {
|
|
1335
|
+
serverUrl?: string | undefined;
|
|
1336
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1337
|
+
cache?: PcbRouteCache | undefined;
|
|
1338
|
+
}>, z.ZodLiteral<"auto">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>;
|
|
1307
1339
|
interface SubcircuitGroupProps extends BaseGroupProps {
|
|
1308
1340
|
layout?: LayoutBuilder;
|
|
1309
1341
|
manualEdits?: ManualEditFile;
|
|
@@ -1311,6 +1343,7 @@ interface SubcircuitGroupProps extends BaseGroupProps {
|
|
|
1311
1343
|
defaultTraceWidth?: Distance;
|
|
1312
1344
|
minTraceWidth?: Distance;
|
|
1313
1345
|
pcbRouteCache?: PcbRouteCache;
|
|
1346
|
+
autorouter?: AutorouterProp;
|
|
1314
1347
|
/**
|
|
1315
1348
|
* If true, we'll automatically layout the schematic for this group. Must be
|
|
1316
1349
|
* a subcircuit (currently). This is eventually going to be replaced with more
|
|
@@ -1400,6 +1433,19 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1400
1433
|
minTraceWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
1401
1434
|
partsEngine: z.ZodOptional<z.ZodType<PartsEngine, z.ZodTypeDef, PartsEngine>>;
|
|
1402
1435
|
pcbRouteCache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
1436
|
+
autorouter: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1437
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
inputFormat: z.ZodOptional<z.ZodEnum<["simplified", "circuit-json"]>>;
|
|
1439
|
+
cache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
1440
|
+
}, "strip", z.ZodTypeAny, {
|
|
1441
|
+
serverUrl?: string | undefined;
|
|
1442
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1443
|
+
cache?: PcbRouteCache | undefined;
|
|
1444
|
+
}, {
|
|
1445
|
+
serverUrl?: string | undefined;
|
|
1446
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1447
|
+
cache?: PcbRouteCache | undefined;
|
|
1448
|
+
}>, z.ZodLiteral<"auto">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>>;
|
|
1403
1449
|
}>, "strip", z.ZodTypeAny, {
|
|
1404
1450
|
pcbX?: number | undefined;
|
|
1405
1451
|
pcbY?: number | undefined;
|
|
@@ -1417,6 +1463,11 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1417
1463
|
defaultTraceWidth?: number | undefined;
|
|
1418
1464
|
minTraceWidth?: number | undefined;
|
|
1419
1465
|
pcbRouteCache?: PcbRouteCache | undefined;
|
|
1466
|
+
autorouter?: "auto" | "auto-local" | "auto-cloud" | {
|
|
1467
|
+
serverUrl?: string | undefined;
|
|
1468
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1469
|
+
cache?: PcbRouteCache | undefined;
|
|
1470
|
+
} | undefined;
|
|
1420
1471
|
schAutoLayoutEnabled?: boolean | undefined;
|
|
1421
1472
|
partsEngine?: PartsEngine | undefined;
|
|
1422
1473
|
}, {
|
|
@@ -1438,6 +1489,11 @@ declare const subcircuitGroupProps: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
1438
1489
|
defaultTraceWidth?: string | number | undefined;
|
|
1439
1490
|
minTraceWidth?: string | number | undefined;
|
|
1440
1491
|
pcbRouteCache?: PcbRouteCache | undefined;
|
|
1492
|
+
autorouter?: "auto" | "auto-local" | "auto-cloud" | {
|
|
1493
|
+
serverUrl?: string | undefined;
|
|
1494
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1495
|
+
cache?: PcbRouteCache | undefined;
|
|
1496
|
+
} | undefined;
|
|
1441
1497
|
schAutoLayoutEnabled?: boolean | undefined;
|
|
1442
1498
|
partsEngine?: PartsEngine | undefined;
|
|
1443
1499
|
}>;
|
|
@@ -1470,6 +1526,19 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
|
|
|
1470
1526
|
minTraceWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
1471
1527
|
partsEngine: z.ZodOptional<z.ZodType<PartsEngine, z.ZodTypeDef, PartsEngine>>;
|
|
1472
1528
|
pcbRouteCache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
1529
|
+
autorouter: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1530
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
|
1531
|
+
inputFormat: z.ZodOptional<z.ZodEnum<["simplified", "circuit-json"]>>;
|
|
1532
|
+
cache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
1533
|
+
}, "strip", z.ZodTypeAny, {
|
|
1534
|
+
serverUrl?: string | undefined;
|
|
1535
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1536
|
+
cache?: PcbRouteCache | undefined;
|
|
1537
|
+
}, {
|
|
1538
|
+
serverUrl?: string | undefined;
|
|
1539
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1540
|
+
cache?: PcbRouteCache | undefined;
|
|
1541
|
+
}>, z.ZodLiteral<"auto">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>>;
|
|
1473
1542
|
}>, {
|
|
1474
1543
|
subcircuit: z.ZodLiteral<true>;
|
|
1475
1544
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -1490,6 +1559,11 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
|
|
|
1490
1559
|
defaultTraceWidth?: number | undefined;
|
|
1491
1560
|
minTraceWidth?: number | undefined;
|
|
1492
1561
|
pcbRouteCache?: PcbRouteCache | undefined;
|
|
1562
|
+
autorouter?: "auto" | "auto-local" | "auto-cloud" | {
|
|
1563
|
+
serverUrl?: string | undefined;
|
|
1564
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1565
|
+
cache?: PcbRouteCache | undefined;
|
|
1566
|
+
} | undefined;
|
|
1493
1567
|
schAutoLayoutEnabled?: boolean | undefined;
|
|
1494
1568
|
partsEngine?: PartsEngine | undefined;
|
|
1495
1569
|
}, {
|
|
@@ -1512,6 +1586,11 @@ declare const subcircuitGroupPropsWithBool: z.ZodObject<z.objectUtil.extendShape
|
|
|
1512
1586
|
defaultTraceWidth?: string | number | undefined;
|
|
1513
1587
|
minTraceWidth?: string | number | undefined;
|
|
1514
1588
|
pcbRouteCache?: PcbRouteCache | undefined;
|
|
1589
|
+
autorouter?: "auto" | "auto-local" | "auto-cloud" | {
|
|
1590
|
+
serverUrl?: string | undefined;
|
|
1591
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1592
|
+
cache?: PcbRouteCache | undefined;
|
|
1593
|
+
} | undefined;
|
|
1515
1594
|
schAutoLayoutEnabled?: boolean | undefined;
|
|
1516
1595
|
partsEngine?: PartsEngine | undefined;
|
|
1517
1596
|
}>;
|
|
@@ -1592,6 +1671,19 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
|
|
|
1592
1671
|
minTraceWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
1593
1672
|
partsEngine: z.ZodOptional<z.ZodType<PartsEngine, z.ZodTypeDef, PartsEngine>>;
|
|
1594
1673
|
pcbRouteCache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
1674
|
+
autorouter: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1675
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
|
1676
|
+
inputFormat: z.ZodOptional<z.ZodEnum<["simplified", "circuit-json"]>>;
|
|
1677
|
+
cache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
1678
|
+
}, "strip", z.ZodTypeAny, {
|
|
1679
|
+
serverUrl?: string | undefined;
|
|
1680
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1681
|
+
cache?: PcbRouteCache | undefined;
|
|
1682
|
+
}, {
|
|
1683
|
+
serverUrl?: string | undefined;
|
|
1684
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1685
|
+
cache?: PcbRouteCache | undefined;
|
|
1686
|
+
}>, z.ZodLiteral<"auto">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>>;
|
|
1595
1687
|
}>, {
|
|
1596
1688
|
subcircuit: z.ZodLiteral<true>;
|
|
1597
1689
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -1612,6 +1704,11 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
|
|
|
1612
1704
|
defaultTraceWidth?: number | undefined;
|
|
1613
1705
|
minTraceWidth?: number | undefined;
|
|
1614
1706
|
pcbRouteCache?: PcbRouteCache | undefined;
|
|
1707
|
+
autorouter?: "auto" | "auto-local" | "auto-cloud" | {
|
|
1708
|
+
serverUrl?: string | undefined;
|
|
1709
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1710
|
+
cache?: PcbRouteCache | undefined;
|
|
1711
|
+
} | undefined;
|
|
1615
1712
|
schAutoLayoutEnabled?: boolean | undefined;
|
|
1616
1713
|
partsEngine?: PartsEngine | undefined;
|
|
1617
1714
|
}, {
|
|
@@ -1634,6 +1731,11 @@ declare const groupProps: z.ZodDiscriminatedUnion<"subcircuit", [z.ZodObject<z.o
|
|
|
1634
1731
|
defaultTraceWidth?: string | number | undefined;
|
|
1635
1732
|
minTraceWidth?: string | number | undefined;
|
|
1636
1733
|
pcbRouteCache?: PcbRouteCache | undefined;
|
|
1734
|
+
autorouter?: "auto" | "auto-local" | "auto-cloud" | {
|
|
1735
|
+
serverUrl?: string | undefined;
|
|
1736
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1737
|
+
cache?: PcbRouteCache | undefined;
|
|
1738
|
+
} | undefined;
|
|
1637
1739
|
schAutoLayoutEnabled?: boolean | undefined;
|
|
1638
1740
|
partsEngine?: PartsEngine | undefined;
|
|
1639
1741
|
}>]>;
|
|
@@ -1677,6 +1779,19 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
|
|
|
1677
1779
|
minTraceWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
1678
1780
|
partsEngine: z.ZodOptional<z.ZodType<PartsEngine, z.ZodTypeDef, PartsEngine>>;
|
|
1679
1781
|
pcbRouteCache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
1782
|
+
autorouter: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1783
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
|
1784
|
+
inputFormat: z.ZodOptional<z.ZodEnum<["simplified", "circuit-json"]>>;
|
|
1785
|
+
cache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
1786
|
+
}, "strip", z.ZodTypeAny, {
|
|
1787
|
+
serverUrl?: string | undefined;
|
|
1788
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1789
|
+
cache?: PcbRouteCache | undefined;
|
|
1790
|
+
}, {
|
|
1791
|
+
serverUrl?: string | undefined;
|
|
1792
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1793
|
+
cache?: PcbRouteCache | undefined;
|
|
1794
|
+
}>, z.ZodLiteral<"auto">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>>;
|
|
1680
1795
|
}>, {
|
|
1681
1796
|
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
1682
1797
|
height: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -1709,6 +1824,11 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
|
|
|
1709
1824
|
defaultTraceWidth?: number | undefined;
|
|
1710
1825
|
minTraceWidth?: number | undefined;
|
|
1711
1826
|
pcbRouteCache?: PcbRouteCache | undefined;
|
|
1827
|
+
autorouter?: "auto" | "auto-local" | "auto-cloud" | {
|
|
1828
|
+
serverUrl?: string | undefined;
|
|
1829
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1830
|
+
cache?: PcbRouteCache | undefined;
|
|
1831
|
+
} | undefined;
|
|
1712
1832
|
schAutoLayoutEnabled?: boolean | undefined;
|
|
1713
1833
|
partsEngine?: PartsEngine | undefined;
|
|
1714
1834
|
outline?: {
|
|
@@ -1736,6 +1856,11 @@ declare const boardProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
|
|
|
1736
1856
|
defaultTraceWidth?: string | number | undefined;
|
|
1737
1857
|
minTraceWidth?: string | number | undefined;
|
|
1738
1858
|
pcbRouteCache?: PcbRouteCache | undefined;
|
|
1859
|
+
autorouter?: "auto" | "auto-local" | "auto-cloud" | {
|
|
1860
|
+
serverUrl?: string | undefined;
|
|
1861
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
1862
|
+
cache?: PcbRouteCache | undefined;
|
|
1863
|
+
} | undefined;
|
|
1739
1864
|
schAutoLayoutEnabled?: boolean | undefined;
|
|
1740
1865
|
partsEngine?: PartsEngine | undefined;
|
|
1741
1866
|
outline?: {
|
|
@@ -4506,6 +4631,412 @@ declare const potentiometerProps: z.ZodObject<z.objectUtil.extendShape<z.objectU
|
|
|
4506
4631
|
}>;
|
|
4507
4632
|
declare const potentiometerPins: readonly ["pin1", "left", "pin2", "right"];
|
|
4508
4633
|
|
|
4634
|
+
interface CrystalProps extends CommonComponentProps {
|
|
4635
|
+
frequency: number | string;
|
|
4636
|
+
loadCapacitance: number | string;
|
|
4637
|
+
}
|
|
4638
|
+
declare const crystalProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
4639
|
+
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4640
|
+
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4641
|
+
pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4642
|
+
schX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4643
|
+
schY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4644
|
+
schRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4645
|
+
layer: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
4646
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
4647
|
+
}, "strip", z.ZodTypeAny, {
|
|
4648
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
4649
|
+
}, {
|
|
4650
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
4651
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
4652
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
4653
|
+
}>>;
|
|
4654
|
+
footprint: z.ZodOptional<z.ZodType<Footprint, z.ZodTypeDef, Footprint>>;
|
|
4655
|
+
}, {
|
|
4656
|
+
supplierPartNumbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
4657
|
+
}>, {
|
|
4658
|
+
key: z.ZodOptional<z.ZodAny>;
|
|
4659
|
+
name: z.ZodString;
|
|
4660
|
+
cadModel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<z.objectUtil.extendShape<{
|
|
4661
|
+
rotationOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
4662
|
+
x: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4663
|
+
y: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4664
|
+
z: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4665
|
+
}, "strip", z.ZodTypeAny, {
|
|
4666
|
+
x: string | number;
|
|
4667
|
+
y: string | number;
|
|
4668
|
+
z: string | number;
|
|
4669
|
+
}, {
|
|
4670
|
+
x: string | number;
|
|
4671
|
+
y: string | number;
|
|
4672
|
+
z: string | number;
|
|
4673
|
+
}>]>>;
|
|
4674
|
+
positionOffset: z.ZodOptional<z.ZodObject<{
|
|
4675
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4676
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4677
|
+
z: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4678
|
+
}, "strip", z.ZodTypeAny, {
|
|
4679
|
+
x: number;
|
|
4680
|
+
y: number;
|
|
4681
|
+
z: number;
|
|
4682
|
+
}, {
|
|
4683
|
+
x: string | number;
|
|
4684
|
+
y: string | number;
|
|
4685
|
+
z: string | number;
|
|
4686
|
+
}>>;
|
|
4687
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
4688
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4689
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4690
|
+
z: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4691
|
+
}, "strip", z.ZodTypeAny, {
|
|
4692
|
+
x: number;
|
|
4693
|
+
y: number;
|
|
4694
|
+
z: number;
|
|
4695
|
+
}, {
|
|
4696
|
+
x: string | number;
|
|
4697
|
+
y: string | number;
|
|
4698
|
+
z: string | number;
|
|
4699
|
+
}>>;
|
|
4700
|
+
}, {
|
|
4701
|
+
stlUrl: z.ZodString;
|
|
4702
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4703
|
+
stlUrl: string;
|
|
4704
|
+
rotationOffset?: number | {
|
|
4705
|
+
x: string | number;
|
|
4706
|
+
y: string | number;
|
|
4707
|
+
z: string | number;
|
|
4708
|
+
} | undefined;
|
|
4709
|
+
positionOffset?: {
|
|
4710
|
+
x: number;
|
|
4711
|
+
y: number;
|
|
4712
|
+
z: number;
|
|
4713
|
+
} | undefined;
|
|
4714
|
+
size?: {
|
|
4715
|
+
x: number;
|
|
4716
|
+
y: number;
|
|
4717
|
+
z: number;
|
|
4718
|
+
} | undefined;
|
|
4719
|
+
}, {
|
|
4720
|
+
stlUrl: string;
|
|
4721
|
+
rotationOffset?: number | {
|
|
4722
|
+
x: string | number;
|
|
4723
|
+
y: string | number;
|
|
4724
|
+
z: string | number;
|
|
4725
|
+
} | undefined;
|
|
4726
|
+
positionOffset?: {
|
|
4727
|
+
x: string | number;
|
|
4728
|
+
y: string | number;
|
|
4729
|
+
z: string | number;
|
|
4730
|
+
} | undefined;
|
|
4731
|
+
size?: {
|
|
4732
|
+
x: string | number;
|
|
4733
|
+
y: string | number;
|
|
4734
|
+
z: string | number;
|
|
4735
|
+
} | undefined;
|
|
4736
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
4737
|
+
rotationOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
4738
|
+
x: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4739
|
+
y: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4740
|
+
z: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4741
|
+
}, "strip", z.ZodTypeAny, {
|
|
4742
|
+
x: string | number;
|
|
4743
|
+
y: string | number;
|
|
4744
|
+
z: string | number;
|
|
4745
|
+
}, {
|
|
4746
|
+
x: string | number;
|
|
4747
|
+
y: string | number;
|
|
4748
|
+
z: string | number;
|
|
4749
|
+
}>]>>;
|
|
4750
|
+
positionOffset: z.ZodOptional<z.ZodObject<{
|
|
4751
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4752
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4753
|
+
z: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4754
|
+
}, "strip", z.ZodTypeAny, {
|
|
4755
|
+
x: number;
|
|
4756
|
+
y: number;
|
|
4757
|
+
z: number;
|
|
4758
|
+
}, {
|
|
4759
|
+
x: string | number;
|
|
4760
|
+
y: string | number;
|
|
4761
|
+
z: string | number;
|
|
4762
|
+
}>>;
|
|
4763
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
4764
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4765
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4766
|
+
z: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4767
|
+
}, "strip", z.ZodTypeAny, {
|
|
4768
|
+
x: number;
|
|
4769
|
+
y: number;
|
|
4770
|
+
z: number;
|
|
4771
|
+
}, {
|
|
4772
|
+
x: string | number;
|
|
4773
|
+
y: string | number;
|
|
4774
|
+
z: string | number;
|
|
4775
|
+
}>>;
|
|
4776
|
+
}, {
|
|
4777
|
+
objUrl: z.ZodString;
|
|
4778
|
+
mtlUrl: z.ZodOptional<z.ZodString>;
|
|
4779
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4780
|
+
objUrl: string;
|
|
4781
|
+
rotationOffset?: number | {
|
|
4782
|
+
x: string | number;
|
|
4783
|
+
y: string | number;
|
|
4784
|
+
z: string | number;
|
|
4785
|
+
} | undefined;
|
|
4786
|
+
positionOffset?: {
|
|
4787
|
+
x: number;
|
|
4788
|
+
y: number;
|
|
4789
|
+
z: number;
|
|
4790
|
+
} | undefined;
|
|
4791
|
+
size?: {
|
|
4792
|
+
x: number;
|
|
4793
|
+
y: number;
|
|
4794
|
+
z: number;
|
|
4795
|
+
} | undefined;
|
|
4796
|
+
mtlUrl?: string | undefined;
|
|
4797
|
+
}, {
|
|
4798
|
+
objUrl: string;
|
|
4799
|
+
rotationOffset?: number | {
|
|
4800
|
+
x: string | number;
|
|
4801
|
+
y: string | number;
|
|
4802
|
+
z: string | number;
|
|
4803
|
+
} | undefined;
|
|
4804
|
+
positionOffset?: {
|
|
4805
|
+
x: string | number;
|
|
4806
|
+
y: string | number;
|
|
4807
|
+
z: string | number;
|
|
4808
|
+
} | undefined;
|
|
4809
|
+
size?: {
|
|
4810
|
+
x: string | number;
|
|
4811
|
+
y: string | number;
|
|
4812
|
+
z: string | number;
|
|
4813
|
+
} | undefined;
|
|
4814
|
+
mtlUrl?: string | undefined;
|
|
4815
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
4816
|
+
rotationOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
4817
|
+
x: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4818
|
+
y: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4819
|
+
z: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4820
|
+
}, "strip", z.ZodTypeAny, {
|
|
4821
|
+
x: string | number;
|
|
4822
|
+
y: string | number;
|
|
4823
|
+
z: string | number;
|
|
4824
|
+
}, {
|
|
4825
|
+
x: string | number;
|
|
4826
|
+
y: string | number;
|
|
4827
|
+
z: string | number;
|
|
4828
|
+
}>]>>;
|
|
4829
|
+
positionOffset: z.ZodOptional<z.ZodObject<{
|
|
4830
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4831
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4832
|
+
z: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4833
|
+
}, "strip", z.ZodTypeAny, {
|
|
4834
|
+
x: number;
|
|
4835
|
+
y: number;
|
|
4836
|
+
z: number;
|
|
4837
|
+
}, {
|
|
4838
|
+
x: string | number;
|
|
4839
|
+
y: string | number;
|
|
4840
|
+
z: string | number;
|
|
4841
|
+
}>>;
|
|
4842
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
4843
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4844
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4845
|
+
z: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4846
|
+
}, "strip", z.ZodTypeAny, {
|
|
4847
|
+
x: number;
|
|
4848
|
+
y: number;
|
|
4849
|
+
z: number;
|
|
4850
|
+
}, {
|
|
4851
|
+
x: string | number;
|
|
4852
|
+
y: string | number;
|
|
4853
|
+
z: string | number;
|
|
4854
|
+
}>>;
|
|
4855
|
+
}, {
|
|
4856
|
+
jscad: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
4857
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4858
|
+
jscad: Record<string, any>;
|
|
4859
|
+
rotationOffset?: number | {
|
|
4860
|
+
x: string | number;
|
|
4861
|
+
y: string | number;
|
|
4862
|
+
z: string | number;
|
|
4863
|
+
} | undefined;
|
|
4864
|
+
positionOffset?: {
|
|
4865
|
+
x: number;
|
|
4866
|
+
y: number;
|
|
4867
|
+
z: number;
|
|
4868
|
+
} | undefined;
|
|
4869
|
+
size?: {
|
|
4870
|
+
x: number;
|
|
4871
|
+
y: number;
|
|
4872
|
+
z: number;
|
|
4873
|
+
} | undefined;
|
|
4874
|
+
}, {
|
|
4875
|
+
jscad: Record<string, any>;
|
|
4876
|
+
rotationOffset?: number | {
|
|
4877
|
+
x: string | number;
|
|
4878
|
+
y: string | number;
|
|
4879
|
+
z: string | number;
|
|
4880
|
+
} | undefined;
|
|
4881
|
+
positionOffset?: {
|
|
4882
|
+
x: string | number;
|
|
4883
|
+
y: string | number;
|
|
4884
|
+
z: string | number;
|
|
4885
|
+
} | undefined;
|
|
4886
|
+
size?: {
|
|
4887
|
+
x: string | number;
|
|
4888
|
+
y: string | number;
|
|
4889
|
+
z: string | number;
|
|
4890
|
+
} | undefined;
|
|
4891
|
+
}>]>>;
|
|
4892
|
+
children: z.ZodOptional<z.ZodAny>;
|
|
4893
|
+
symbolName: z.ZodOptional<z.ZodString>;
|
|
4894
|
+
}>, {
|
|
4895
|
+
frequency: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4896
|
+
loadCapacitance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4897
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4898
|
+
name: string;
|
|
4899
|
+
frequency: number;
|
|
4900
|
+
loadCapacitance: number;
|
|
4901
|
+
pcbX?: number | undefined;
|
|
4902
|
+
pcbY?: number | undefined;
|
|
4903
|
+
pcbRotation?: number | undefined;
|
|
4904
|
+
schX?: number | undefined;
|
|
4905
|
+
schY?: number | undefined;
|
|
4906
|
+
schRotation?: number | undefined;
|
|
4907
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
4908
|
+
footprint?: Footprint | undefined;
|
|
4909
|
+
supplierPartNumbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4910
|
+
key?: any;
|
|
4911
|
+
cadModel?: string | {
|
|
4912
|
+
stlUrl: string;
|
|
4913
|
+
rotationOffset?: number | {
|
|
4914
|
+
x: string | number;
|
|
4915
|
+
y: string | number;
|
|
4916
|
+
z: string | number;
|
|
4917
|
+
} | undefined;
|
|
4918
|
+
positionOffset?: {
|
|
4919
|
+
x: number;
|
|
4920
|
+
y: number;
|
|
4921
|
+
z: number;
|
|
4922
|
+
} | undefined;
|
|
4923
|
+
size?: {
|
|
4924
|
+
x: number;
|
|
4925
|
+
y: number;
|
|
4926
|
+
z: number;
|
|
4927
|
+
} | undefined;
|
|
4928
|
+
} | {
|
|
4929
|
+
objUrl: string;
|
|
4930
|
+
rotationOffset?: number | {
|
|
4931
|
+
x: string | number;
|
|
4932
|
+
y: string | number;
|
|
4933
|
+
z: string | number;
|
|
4934
|
+
} | undefined;
|
|
4935
|
+
positionOffset?: {
|
|
4936
|
+
x: number;
|
|
4937
|
+
y: number;
|
|
4938
|
+
z: number;
|
|
4939
|
+
} | undefined;
|
|
4940
|
+
size?: {
|
|
4941
|
+
x: number;
|
|
4942
|
+
y: number;
|
|
4943
|
+
z: number;
|
|
4944
|
+
} | undefined;
|
|
4945
|
+
mtlUrl?: string | undefined;
|
|
4946
|
+
} | {
|
|
4947
|
+
jscad: Record<string, any>;
|
|
4948
|
+
rotationOffset?: number | {
|
|
4949
|
+
x: string | number;
|
|
4950
|
+
y: string | number;
|
|
4951
|
+
z: string | number;
|
|
4952
|
+
} | undefined;
|
|
4953
|
+
positionOffset?: {
|
|
4954
|
+
x: number;
|
|
4955
|
+
y: number;
|
|
4956
|
+
z: number;
|
|
4957
|
+
} | undefined;
|
|
4958
|
+
size?: {
|
|
4959
|
+
x: number;
|
|
4960
|
+
y: number;
|
|
4961
|
+
z: number;
|
|
4962
|
+
} | undefined;
|
|
4963
|
+
} | undefined;
|
|
4964
|
+
children?: any;
|
|
4965
|
+
symbolName?: string | undefined;
|
|
4966
|
+
}, {
|
|
4967
|
+
name: string;
|
|
4968
|
+
frequency: string | number;
|
|
4969
|
+
loadCapacitance: string | number;
|
|
4970
|
+
pcbX?: string | number | undefined;
|
|
4971
|
+
pcbY?: string | number | undefined;
|
|
4972
|
+
pcbRotation?: string | number | undefined;
|
|
4973
|
+
schX?: string | number | undefined;
|
|
4974
|
+
schY?: string | number | undefined;
|
|
4975
|
+
schRotation?: string | number | undefined;
|
|
4976
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
4977
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
4978
|
+
} | undefined;
|
|
4979
|
+
footprint?: Footprint | undefined;
|
|
4980
|
+
supplierPartNumbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4981
|
+
key?: any;
|
|
4982
|
+
cadModel?: string | {
|
|
4983
|
+
stlUrl: string;
|
|
4984
|
+
rotationOffset?: number | {
|
|
4985
|
+
x: string | number;
|
|
4986
|
+
y: string | number;
|
|
4987
|
+
z: string | number;
|
|
4988
|
+
} | undefined;
|
|
4989
|
+
positionOffset?: {
|
|
4990
|
+
x: string | number;
|
|
4991
|
+
y: string | number;
|
|
4992
|
+
z: string | number;
|
|
4993
|
+
} | undefined;
|
|
4994
|
+
size?: {
|
|
4995
|
+
x: string | number;
|
|
4996
|
+
y: string | number;
|
|
4997
|
+
z: string | number;
|
|
4998
|
+
} | undefined;
|
|
4999
|
+
} | {
|
|
5000
|
+
objUrl: string;
|
|
5001
|
+
rotationOffset?: number | {
|
|
5002
|
+
x: string | number;
|
|
5003
|
+
y: string | number;
|
|
5004
|
+
z: string | number;
|
|
5005
|
+
} | undefined;
|
|
5006
|
+
positionOffset?: {
|
|
5007
|
+
x: string | number;
|
|
5008
|
+
y: string | number;
|
|
5009
|
+
z: string | number;
|
|
5010
|
+
} | undefined;
|
|
5011
|
+
size?: {
|
|
5012
|
+
x: string | number;
|
|
5013
|
+
y: string | number;
|
|
5014
|
+
z: string | number;
|
|
5015
|
+
} | undefined;
|
|
5016
|
+
mtlUrl?: string | undefined;
|
|
5017
|
+
} | {
|
|
5018
|
+
jscad: Record<string, any>;
|
|
5019
|
+
rotationOffset?: number | {
|
|
5020
|
+
x: string | number;
|
|
5021
|
+
y: string | number;
|
|
5022
|
+
z: string | number;
|
|
5023
|
+
} | undefined;
|
|
5024
|
+
positionOffset?: {
|
|
5025
|
+
x: string | number;
|
|
5026
|
+
y: string | number;
|
|
5027
|
+
z: string | number;
|
|
5028
|
+
} | undefined;
|
|
5029
|
+
size?: {
|
|
5030
|
+
x: string | number;
|
|
5031
|
+
y: string | number;
|
|
5032
|
+
z: string | number;
|
|
5033
|
+
} | undefined;
|
|
5034
|
+
} | undefined;
|
|
5035
|
+
children?: any;
|
|
5036
|
+
symbolName?: string | undefined;
|
|
5037
|
+
}>;
|
|
5038
|
+
declare const crystalPins: readonly ["pin1", "left", "pin2", "right"];
|
|
5039
|
+
|
|
4509
5040
|
interface CapacitorProps extends CommonComponentProps {
|
|
4510
5041
|
capacitance: number | string;
|
|
4511
5042
|
polarized?: boolean;
|
|
@@ -5162,12 +5693,19 @@ interface RectSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
|
5162
5693
|
height: Distance;
|
|
5163
5694
|
portHints?: PortHints;
|
|
5164
5695
|
}
|
|
5696
|
+
interface RotatedRectSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
5697
|
+
shape: "rotated_rect";
|
|
5698
|
+
width: Distance;
|
|
5699
|
+
height: Distance;
|
|
5700
|
+
ccwRotation: number;
|
|
5701
|
+
portHints?: PortHints;
|
|
5702
|
+
}
|
|
5165
5703
|
interface CircleSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
5166
5704
|
shape: "circle";
|
|
5167
5705
|
radius: Distance;
|
|
5168
5706
|
portHints?: PortHints;
|
|
5169
5707
|
}
|
|
5170
|
-
type SmtPadProps = RectSmtPadProps | CircleSmtPadProps;
|
|
5708
|
+
type SmtPadProps = RectSmtPadProps | CircleSmtPadProps | RotatedRectSmtPadProps;
|
|
5171
5709
|
declare const rectSmtPadProps: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
5172
5710
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5173
5711
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -5205,6 +5743,46 @@ declare const rectSmtPadProps: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
5205
5743
|
} | undefined;
|
|
5206
5744
|
portHints?: (string | number)[] | undefined;
|
|
5207
5745
|
}>;
|
|
5746
|
+
declare const rotatedRectSmtPadProps: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
5747
|
+
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5748
|
+
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5749
|
+
pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5750
|
+
layer: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
5751
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
5752
|
+
}, "strip", z.ZodTypeAny, {
|
|
5753
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5754
|
+
}, {
|
|
5755
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5756
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5757
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5758
|
+
}>>;
|
|
5759
|
+
}, "pcbRotation">, {
|
|
5760
|
+
shape: z.ZodLiteral<"rotated_rect">;
|
|
5761
|
+
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5762
|
+
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5763
|
+
ccwRotation: z.ZodNumber;
|
|
5764
|
+
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
5765
|
+
}>, "strip", z.ZodTypeAny, {
|
|
5766
|
+
shape: "rotated_rect";
|
|
5767
|
+
width: number;
|
|
5768
|
+
height: number;
|
|
5769
|
+
ccwRotation: number;
|
|
5770
|
+
pcbX?: number | undefined;
|
|
5771
|
+
pcbY?: number | undefined;
|
|
5772
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5773
|
+
portHints?: (string | number)[] | undefined;
|
|
5774
|
+
}, {
|
|
5775
|
+
shape: "rotated_rect";
|
|
5776
|
+
width: string | number;
|
|
5777
|
+
height: string | number;
|
|
5778
|
+
ccwRotation: number;
|
|
5779
|
+
pcbX?: string | number | undefined;
|
|
5780
|
+
pcbY?: string | number | undefined;
|
|
5781
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5782
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5783
|
+
} | undefined;
|
|
5784
|
+
portHints?: (string | number)[] | undefined;
|
|
5785
|
+
}>;
|
|
5208
5786
|
declare const circleSmtPadProps: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
5209
5787
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5210
5788
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -5308,6 +5886,45 @@ declare const smtPadProps: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<Omit
|
|
|
5308
5886
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5309
5887
|
} | undefined;
|
|
5310
5888
|
portHints?: (string | number)[] | undefined;
|
|
5889
|
+
}>, z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
5890
|
+
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5891
|
+
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5892
|
+
pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5893
|
+
layer: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
5894
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
5895
|
+
}, "strip", z.ZodTypeAny, {
|
|
5896
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5897
|
+
}, {
|
|
5898
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5899
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5900
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5901
|
+
}>>;
|
|
5902
|
+
}, "pcbRotation">, {
|
|
5903
|
+
shape: z.ZodLiteral<"rotated_rect">;
|
|
5904
|
+
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5905
|
+
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5906
|
+
ccwRotation: z.ZodNumber;
|
|
5907
|
+
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
5908
|
+
}>, "strip", z.ZodTypeAny, {
|
|
5909
|
+
shape: "rotated_rect";
|
|
5910
|
+
width: number;
|
|
5911
|
+
height: number;
|
|
5912
|
+
ccwRotation: number;
|
|
5913
|
+
pcbX?: number | undefined;
|
|
5914
|
+
pcbY?: number | undefined;
|
|
5915
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5916
|
+
portHints?: (string | number)[] | undefined;
|
|
5917
|
+
}, {
|
|
5918
|
+
shape: "rotated_rect";
|
|
5919
|
+
width: string | number;
|
|
5920
|
+
height: string | number;
|
|
5921
|
+
ccwRotation: number;
|
|
5922
|
+
pcbX?: string | number | undefined;
|
|
5923
|
+
pcbY?: string | number | undefined;
|
|
5924
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5925
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5926
|
+
} | undefined;
|
|
5927
|
+
portHints?: (string | number)[] | undefined;
|
|
5311
5928
|
}>]>;
|
|
5312
5929
|
type InferredSmtPadProps = z.input<typeof smtPadProps>;
|
|
5313
5930
|
|
|
@@ -7042,6 +7659,19 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
7042
7659
|
minTraceWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
7043
7660
|
partsEngine: z.ZodOptional<z.ZodType<PartsEngine, z.ZodTypeDef, PartsEngine>>;
|
|
7044
7661
|
pcbRouteCache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
7662
|
+
autorouter: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
7663
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
|
7664
|
+
inputFormat: z.ZodOptional<z.ZodEnum<["simplified", "circuit-json"]>>;
|
|
7665
|
+
cache: z.ZodOptional<z.ZodType<PcbRouteCache, z.ZodTypeDef, PcbRouteCache>>;
|
|
7666
|
+
}, "strip", z.ZodTypeAny, {
|
|
7667
|
+
serverUrl?: string | undefined;
|
|
7668
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
7669
|
+
cache?: PcbRouteCache | undefined;
|
|
7670
|
+
}, {
|
|
7671
|
+
serverUrl?: string | undefined;
|
|
7672
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
7673
|
+
cache?: PcbRouteCache | undefined;
|
|
7674
|
+
}>, z.ZodLiteral<"auto">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>>;
|
|
7045
7675
|
}>, "strip", z.ZodTypeAny, {
|
|
7046
7676
|
pcbX?: number | undefined;
|
|
7047
7677
|
pcbY?: number | undefined;
|
|
@@ -7059,6 +7689,11 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
7059
7689
|
defaultTraceWidth?: number | undefined;
|
|
7060
7690
|
minTraceWidth?: number | undefined;
|
|
7061
7691
|
pcbRouteCache?: PcbRouteCache | undefined;
|
|
7692
|
+
autorouter?: "auto" | "auto-local" | "auto-cloud" | {
|
|
7693
|
+
serverUrl?: string | undefined;
|
|
7694
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
7695
|
+
cache?: PcbRouteCache | undefined;
|
|
7696
|
+
} | undefined;
|
|
7062
7697
|
schAutoLayoutEnabled?: boolean | undefined;
|
|
7063
7698
|
partsEngine?: PartsEngine | undefined;
|
|
7064
7699
|
}, {
|
|
@@ -7080,6 +7715,11 @@ declare const subcircuitProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
7080
7715
|
defaultTraceWidth?: string | number | undefined;
|
|
7081
7716
|
minTraceWidth?: string | number | undefined;
|
|
7082
7717
|
pcbRouteCache?: PcbRouteCache | undefined;
|
|
7718
|
+
autorouter?: "auto" | "auto-local" | "auto-cloud" | {
|
|
7719
|
+
serverUrl?: string | undefined;
|
|
7720
|
+
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
7721
|
+
cache?: PcbRouteCache | undefined;
|
|
7722
|
+
} | undefined;
|
|
7083
7723
|
schAutoLayoutEnabled?: boolean | undefined;
|
|
7084
7724
|
partsEngine?: PartsEngine | undefined;
|
|
7085
7725
|
}>;
|
|
@@ -10345,4 +10985,4 @@ declare const fabricationNotePathProps: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
10345
10985
|
}>;
|
|
10346
10986
|
type FabricationNotePathProps = z.input<typeof fabricationNotePathProps>;
|
|
10347
10987
|
|
|
10348
|
-
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 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 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, 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, subcircuitGroupPropsWithBool, subcircuitProps, supplierProps, switchProps, traceHintProps, traceProps, viaProps };
|
|
10988
|
+
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 };
|