@tscircuit/props 0.0.313 → 0.0.315
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/index.d.ts +37 -406
- package/dist/index.js +14 -38
- package/dist/index.js.map +1 -1
- package/lib/components/copper-pour.ts +16 -71
- package/lib/components/platedhole.ts +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -771,7 +771,9 @@ var platedHoleProps = z34.discriminatedUnion("shape", [
|
|
|
771
771
|
rectPadHeight: distance11,
|
|
772
772
|
holeShape: z34.literal("circle").optional(),
|
|
773
773
|
padShape: z34.literal("rect").optional(),
|
|
774
|
-
portHints: portHints.optional()
|
|
774
|
+
portHints: portHints.optional(),
|
|
775
|
+
pcbHoleOffsetX: distance11.optional(),
|
|
776
|
+
pcbHoleOffsetY: distance11.optional()
|
|
775
777
|
}),
|
|
776
778
|
pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
|
|
777
779
|
name: z34.string().optional(),
|
|
@@ -1491,38 +1493,15 @@ var pcbKeepoutProps = z69.union([
|
|
|
1491
1493
|
|
|
1492
1494
|
// lib/components/copper-pour.ts
|
|
1493
1495
|
import { z as z70 } from "zod";
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1496
|
+
import { layer_ref as layer_ref6 } from "circuit-json";
|
|
1497
|
+
var copperPourProps = z70.object({
|
|
1498
|
+
name: z70.string().optional(),
|
|
1499
|
+
layer: layer_ref6,
|
|
1500
|
+
connectsTo: z70.string(),
|
|
1501
|
+
padMargin: distance.optional(),
|
|
1502
|
+
traceMargin: distance.optional()
|
|
1501
1503
|
});
|
|
1502
1504
|
expectTypesMatch(true);
|
|
1503
|
-
var circleCopperPourProps = pcbLayoutProps.omit({
|
|
1504
|
-
pcbRotation: true
|
|
1505
|
-
}).extend({
|
|
1506
|
-
shape: z70.literal("circle"),
|
|
1507
|
-
radius: distance,
|
|
1508
|
-
connectsTo: z70.string().or(z70.array(z70.string())).optional()
|
|
1509
|
-
});
|
|
1510
|
-
expectTypesMatch(
|
|
1511
|
-
true
|
|
1512
|
-
);
|
|
1513
|
-
var polygonCopperPourProps = pcbLayoutProps.omit({
|
|
1514
|
-
pcbRotation: true
|
|
1515
|
-
}).extend({
|
|
1516
|
-
shape: z70.literal("polygon"),
|
|
1517
|
-
points: z70.array(point),
|
|
1518
|
-
connectsTo: z70.string().or(z70.array(z70.string())).optional()
|
|
1519
|
-
});
|
|
1520
|
-
expectTypesMatch(true);
|
|
1521
|
-
var copperPourProps = z70.discriminatedUnion("shape", [
|
|
1522
|
-
rectCopperPourProps,
|
|
1523
|
-
circleCopperPourProps,
|
|
1524
|
-
polygonCopperPourProps
|
|
1525
|
-
]);
|
|
1526
1505
|
|
|
1527
1506
|
// lib/components/power-source.ts
|
|
1528
1507
|
import { voltage as voltage3 } from "circuit-json";
|
|
@@ -1688,14 +1667,14 @@ var schematicCellProps = z80.object({
|
|
|
1688
1667
|
expectTypesMatch(true);
|
|
1689
1668
|
|
|
1690
1669
|
// lib/components/silkscreen-text.ts
|
|
1691
|
-
import { layer_ref as
|
|
1670
|
+
import { layer_ref as layer_ref7, length as length5 } from "circuit-json";
|
|
1692
1671
|
import { z as z81 } from "zod";
|
|
1693
1672
|
var silkscreenTextProps = pcbLayoutProps.extend({
|
|
1694
1673
|
text: z81.string(),
|
|
1695
1674
|
anchorAlignment: ninePointAnchor.default("center"),
|
|
1696
1675
|
font: z81.enum(["tscircuit2024"]).optional(),
|
|
1697
1676
|
fontSize: length5.optional(),
|
|
1698
|
-
layers: z81.array(
|
|
1677
|
+
layers: z81.array(layer_ref7).optional()
|
|
1699
1678
|
});
|
|
1700
1679
|
|
|
1701
1680
|
// lib/components/silkscreen-path.ts
|
|
@@ -1738,13 +1717,13 @@ var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
|
1738
1717
|
});
|
|
1739
1718
|
|
|
1740
1719
|
// lib/components/trace-hint.ts
|
|
1741
|
-
import { distance as distance28, layer_ref as
|
|
1720
|
+
import { distance as distance28, layer_ref as layer_ref8, route_hint_point as route_hint_point6 } from "circuit-json";
|
|
1742
1721
|
import { z as z85 } from "zod";
|
|
1743
1722
|
var routeHintPointProps = z85.object({
|
|
1744
1723
|
x: distance28,
|
|
1745
1724
|
y: distance28,
|
|
1746
1725
|
via: z85.boolean().optional(),
|
|
1747
|
-
toLayer:
|
|
1726
|
+
toLayer: layer_ref8.optional()
|
|
1748
1727
|
});
|
|
1749
1728
|
var traceHintProps = z85.object({
|
|
1750
1729
|
for: z85.string().optional().describe(
|
|
@@ -1823,7 +1802,6 @@ export {
|
|
|
1823
1802
|
capacitorPins,
|
|
1824
1803
|
capacitorProps,
|
|
1825
1804
|
chipProps,
|
|
1826
|
-
circleCopperPourProps,
|
|
1827
1805
|
circleCutoutProps,
|
|
1828
1806
|
circleSmtPadProps,
|
|
1829
1807
|
circleSolderPasteProps,
|
|
@@ -1893,7 +1871,6 @@ export {
|
|
|
1893
1871
|
platedHoleProps,
|
|
1894
1872
|
platformConfig,
|
|
1895
1873
|
point3,
|
|
1896
|
-
polygonCopperPourProps,
|
|
1897
1874
|
polygonCutoutProps,
|
|
1898
1875
|
polygonSmtPadProps,
|
|
1899
1876
|
portHints,
|
|
@@ -1902,7 +1879,6 @@ export {
|
|
|
1902
1879
|
potentiometerProps,
|
|
1903
1880
|
powerSourceProps,
|
|
1904
1881
|
pushButtonProps,
|
|
1905
|
-
rectCopperPourProps,
|
|
1906
1882
|
rectCutoutProps,
|
|
1907
1883
|
rectSmtPadProps,
|
|
1908
1884
|
rectSolderPasteProps,
|