@tscircuit/props 0.0.532 → 0.0.534
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 +1 -0
- package/dist/index.d.ts +19 -3
- package/dist/index.js +123 -121
- package/dist/index.js.map +1 -1
- package/lib/common/footprintProp.ts +2 -0
- package/lib/common/pcbSx.ts +1 -0
- package/lib/components/net.ts +4 -0
- package/lib/generated/jlcpcb-autocomplete.ts +2493 -0
- package/lib/index.ts +1 -0
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -16911,6 +16911,7 @@ var capacitorPins = lrPolarPins;
|
|
|
16911
16911
|
expectTypesMatch(true);
|
|
16912
16912
|
|
|
16913
16913
|
// lib/components/net.ts
|
|
16914
|
+
import { distance as distance17 } from "circuit-json";
|
|
16914
16915
|
import { z as z54 } from "zod";
|
|
16915
16916
|
var netProps = z54.object({
|
|
16916
16917
|
name: z54.string(),
|
|
@@ -16918,7 +16919,8 @@ var netProps = z54.object({
|
|
|
16918
16919
|
routingPhaseIndex: z54.number().nullable().optional(),
|
|
16919
16920
|
highlightColor: z54.string().optional(),
|
|
16920
16921
|
isPowerNet: z54.boolean().optional(),
|
|
16921
|
-
isGroundNet: z54.boolean().optional()
|
|
16922
|
+
isGroundNet: z54.boolean().optional(),
|
|
16923
|
+
nominalTraceWidth: distance17.optional()
|
|
16922
16924
|
});
|
|
16923
16925
|
expectTypesMatch(true);
|
|
16924
16926
|
|
|
@@ -17152,7 +17154,7 @@ var holeProps = z61.union([
|
|
|
17152
17154
|
expectTypesMatch(true);
|
|
17153
17155
|
|
|
17154
17156
|
// lib/components/trace.ts
|
|
17155
|
-
import { distance as
|
|
17157
|
+
import { distance as distance18, layer_ref as layer_ref4, route_hint_point as route_hint_point2 } from "circuit-json";
|
|
17156
17158
|
import { z as z62 } from "zod";
|
|
17157
17159
|
var portRef = z62.union([
|
|
17158
17160
|
z62.string(),
|
|
@@ -17184,8 +17186,8 @@ var pcbPathPoint = point.extend({
|
|
|
17184
17186
|
var pcbPath = z62.array(z62.union([pcbPathPoint, z62.string()]));
|
|
17185
17187
|
var baseTraceProps = z62.object({
|
|
17186
17188
|
key: z62.string().optional(),
|
|
17187
|
-
thickness:
|
|
17188
|
-
width:
|
|
17189
|
+
thickness: distance18.optional(),
|
|
17190
|
+
width: distance18.optional().describe("Alias for trace thickness"),
|
|
17189
17191
|
schematicRouteHints: z62.array(point).optional(),
|
|
17190
17192
|
pcbRouteHints: z62.array(route_hint_point2).optional(),
|
|
17191
17193
|
pcbPathRelativeTo: z62.string().optional(),
|
|
@@ -17196,7 +17198,7 @@ var baseTraceProps = z62.object({
|
|
|
17196
17198
|
schDisplayLabel: z62.string().optional(),
|
|
17197
17199
|
schStroke: z62.string().optional(),
|
|
17198
17200
|
highlightColor: z62.string().optional(),
|
|
17199
|
-
maxLength:
|
|
17201
|
+
maxLength: distance18.optional(),
|
|
17200
17202
|
connectsTo: z62.string().or(z62.array(z62.string())).optional()
|
|
17201
17203
|
});
|
|
17202
17204
|
var traceProps = z62.union([
|
|
@@ -17286,7 +17288,7 @@ var mountedboardProps = subcircuitGroupProps.extend({
|
|
|
17286
17288
|
expectTypesMatch(true);
|
|
17287
17289
|
|
|
17288
17290
|
// lib/components/pin-header.ts
|
|
17289
|
-
import { distance as
|
|
17291
|
+
import { distance as distance19 } from "circuit-json";
|
|
17290
17292
|
|
|
17291
17293
|
// lib/common/pcbOrientation.ts
|
|
17292
17294
|
import { z as z67 } from "zod";
|
|
@@ -17299,7 +17301,7 @@ expectTypesMatch(true);
|
|
|
17299
17301
|
import { z as z68 } from "zod";
|
|
17300
17302
|
var pinHeaderProps = commonComponentProps.extend({
|
|
17301
17303
|
pinCount: z68.number(),
|
|
17302
|
-
pitch:
|
|
17304
|
+
pitch: distance19.optional(),
|
|
17303
17305
|
schFacingDirection: z68.enum(["up", "down", "left", "right"]).optional(),
|
|
17304
17306
|
gender: z68.enum(["male", "female", "unpopulated"]).optional().default("male"),
|
|
17305
17307
|
showSilkscreenPinLabels: z68.boolean().optional(),
|
|
@@ -17307,16 +17309,16 @@ var pinHeaderProps = commonComponentProps.extend({
|
|
|
17307
17309
|
doubleRow: z68.boolean().optional(),
|
|
17308
17310
|
rightAngle: z68.boolean().optional(),
|
|
17309
17311
|
pcbOrientation: pcbOrientation.optional(),
|
|
17310
|
-
holeDiameter:
|
|
17311
|
-
platedDiameter:
|
|
17312
|
+
holeDiameter: distance19.optional(),
|
|
17313
|
+
platedDiameter: distance19.optional(),
|
|
17312
17314
|
pinLabels: z68.record(z68.string(), schematicPinLabel).or(z68.array(schematicPinLabel)).optional(),
|
|
17313
17315
|
connections: z68.custom().pipe(z68.record(z68.string(), connectionTarget)).optional(),
|
|
17314
17316
|
facingDirection: z68.enum(["left", "right"]).optional(),
|
|
17315
17317
|
schPinArrangement: schematicPinArrangement.optional(),
|
|
17316
17318
|
schPinStyle: schematicPinStyle.optional(),
|
|
17317
|
-
schPinSpacing:
|
|
17318
|
-
schWidth:
|
|
17319
|
-
schHeight:
|
|
17319
|
+
schPinSpacing: distance19.optional(),
|
|
17320
|
+
schWidth: distance19.optional(),
|
|
17321
|
+
schHeight: distance19.optional()
|
|
17320
17322
|
});
|
|
17321
17323
|
expectTypesMatch(true);
|
|
17322
17324
|
|
|
@@ -17629,17 +17631,17 @@ var fabricationNoteTextProps = pcbLayoutProps.extend({
|
|
|
17629
17631
|
expectTypesMatch(true);
|
|
17630
17632
|
|
|
17631
17633
|
// lib/components/fabrication-note-rect.ts
|
|
17632
|
-
import { distance as
|
|
17634
|
+
import { distance as distance20 } from "circuit-json";
|
|
17633
17635
|
import { z as z82 } from "zod";
|
|
17634
17636
|
var fabricationNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
17635
|
-
width:
|
|
17636
|
-
height:
|
|
17637
|
-
strokeWidth:
|
|
17637
|
+
width: distance20,
|
|
17638
|
+
height: distance20,
|
|
17639
|
+
strokeWidth: distance20.optional(),
|
|
17638
17640
|
isFilled: z82.boolean().optional(),
|
|
17639
17641
|
hasStroke: z82.boolean().optional(),
|
|
17640
17642
|
isStrokeDashed: z82.boolean().optional(),
|
|
17641
17643
|
color: z82.string().optional(),
|
|
17642
|
-
cornerRadius:
|
|
17644
|
+
cornerRadius: distance20.optional()
|
|
17643
17645
|
});
|
|
17644
17646
|
|
|
17645
17647
|
// lib/components/fabrication-note-path.ts
|
|
@@ -17662,7 +17664,7 @@ var fabricationNotePathProps = pcbLayoutProps.omit({
|
|
|
17662
17664
|
});
|
|
17663
17665
|
|
|
17664
17666
|
// lib/components/fabrication-note-dimension.ts
|
|
17665
|
-
import { distance as
|
|
17667
|
+
import { distance as distance21, length as length6 } from "circuit-json";
|
|
17666
17668
|
import { z as z84 } from "zod";
|
|
17667
17669
|
var dimensionTarget = z84.union([z84.string(), point]);
|
|
17668
17670
|
var fabricationNoteDimensionProps = pcbLayoutProps.omit({
|
|
@@ -17679,11 +17681,11 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
17679
17681
|
from: dimensionTarget,
|
|
17680
17682
|
to: dimensionTarget,
|
|
17681
17683
|
text: z84.string().optional(),
|
|
17682
|
-
offset:
|
|
17684
|
+
offset: distance21.optional(),
|
|
17683
17685
|
font: z84.enum(["tscircuit2024"]).optional(),
|
|
17684
17686
|
fontSize: length6.optional(),
|
|
17685
17687
|
color: z84.string().optional(),
|
|
17686
|
-
arrowSize:
|
|
17688
|
+
arrowSize: distance21.optional(),
|
|
17687
17689
|
units: z84.enum(["in", "mm"]).optional(),
|
|
17688
17690
|
outerEdgeToEdge: z84.literal(true).optional(),
|
|
17689
17691
|
centerToCenter: z84.literal(true).optional(),
|
|
@@ -17692,23 +17694,23 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
17692
17694
|
expectTypesMatch(true);
|
|
17693
17695
|
|
|
17694
17696
|
// lib/components/pcb-trace.ts
|
|
17695
|
-
import { distance as
|
|
17697
|
+
import { distance as distance22, route_hint_point as route_hint_point4 } from "circuit-json";
|
|
17696
17698
|
import { z as z85 } from "zod";
|
|
17697
17699
|
var pcbTraceProps = z85.object({
|
|
17698
17700
|
layer: z85.string().optional(),
|
|
17699
|
-
thickness:
|
|
17701
|
+
thickness: distance22.optional(),
|
|
17700
17702
|
route: z85.array(route_hint_point4)
|
|
17701
17703
|
});
|
|
17702
17704
|
|
|
17703
17705
|
// lib/components/via.ts
|
|
17704
|
-
import { distance as
|
|
17706
|
+
import { distance as distance23, layer_ref as layer_ref6 } from "circuit-json";
|
|
17705
17707
|
import { z as z86 } from "zod";
|
|
17706
17708
|
var viaProps = commonLayoutProps.extend({
|
|
17707
17709
|
name: z86.string().optional(),
|
|
17708
17710
|
fromLayer: layer_ref6.optional(),
|
|
17709
17711
|
toLayer: layer_ref6.optional(),
|
|
17710
|
-
holeDiameter:
|
|
17711
|
-
outerDiameter:
|
|
17712
|
+
holeDiameter: distance23.optional(),
|
|
17713
|
+
outerDiameter: distance23.optional(),
|
|
17712
17714
|
layers: z86.array(layer_ref6).optional(),
|
|
17713
17715
|
connectsTo: z86.string().or(z86.array(z86.string())).optional(),
|
|
17714
17716
|
netIsAssignable: z86.boolean().optional()
|
|
@@ -17716,7 +17718,7 @@ var viaProps = commonLayoutProps.extend({
|
|
|
17716
17718
|
expectTypesMatch(true);
|
|
17717
17719
|
|
|
17718
17720
|
// lib/components/testpoint.ts
|
|
17719
|
-
import { distance as
|
|
17721
|
+
import { distance as distance24 } from "circuit-json";
|
|
17720
17722
|
import { z as z87 } from "zod";
|
|
17721
17723
|
var testpointPins = ["pin1"];
|
|
17722
17724
|
var testpointConnectionsProp = z87.object({
|
|
@@ -17726,10 +17728,10 @@ var testpointProps = commonComponentProps.extend({
|
|
|
17726
17728
|
connections: testpointConnectionsProp.optional(),
|
|
17727
17729
|
footprintVariant: z87.enum(["pad", "through_hole"]).optional(),
|
|
17728
17730
|
padShape: z87.enum(["rect", "circle"]).optional().default("circle"),
|
|
17729
|
-
padDiameter:
|
|
17730
|
-
holeDiameter:
|
|
17731
|
-
width:
|
|
17732
|
-
height:
|
|
17731
|
+
padDiameter: distance24.optional(),
|
|
17732
|
+
holeDiameter: distance24.optional(),
|
|
17733
|
+
width: distance24.optional(),
|
|
17734
|
+
height: distance24.optional()
|
|
17733
17735
|
}).refine(
|
|
17734
17736
|
(props) => props.footprintVariant !== "through_hole" || props.holeDiameter !== void 0,
|
|
17735
17737
|
{ message: "holeDiameter is required for through_hole testpoints" }
|
|
@@ -17744,29 +17746,29 @@ var breakoutPointProps = pcbLayoutProps.omit({ pcbRotation: true, layer: true })
|
|
|
17744
17746
|
expectTypesMatch(true);
|
|
17745
17747
|
|
|
17746
17748
|
// lib/components/pcb-keepout.ts
|
|
17747
|
-
import { distance as
|
|
17749
|
+
import { distance as distance25, layer_ref as layer_ref7 } from "circuit-json";
|
|
17748
17750
|
import { z as z89 } from "zod";
|
|
17749
17751
|
var pcbKeepoutProps = z89.union([
|
|
17750
17752
|
pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
17751
17753
|
shape: z89.literal("circle"),
|
|
17752
|
-
radius:
|
|
17754
|
+
radius: distance25,
|
|
17753
17755
|
layers: z89.array(layer_ref7).optional()
|
|
17754
17756
|
}),
|
|
17755
17757
|
pcbLayoutProps.extend({
|
|
17756
17758
|
shape: z89.literal("rect"),
|
|
17757
|
-
width:
|
|
17758
|
-
height:
|
|
17759
|
+
width: distance25,
|
|
17760
|
+
height: distance25,
|
|
17759
17761
|
layers: z89.array(layer_ref7).optional()
|
|
17760
17762
|
})
|
|
17761
17763
|
]);
|
|
17762
17764
|
|
|
17763
17765
|
// lib/components/courtyard-rect.ts
|
|
17764
|
-
import { distance as
|
|
17766
|
+
import { distance as distance26 } from "circuit-json";
|
|
17765
17767
|
import { z as z90 } from "zod";
|
|
17766
17768
|
var courtyardRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
17767
|
-
width:
|
|
17768
|
-
height:
|
|
17769
|
-
strokeWidth:
|
|
17769
|
+
width: distance26,
|
|
17770
|
+
height: distance26,
|
|
17771
|
+
strokeWidth: distance26.optional(),
|
|
17770
17772
|
isFilled: z90.boolean().optional(),
|
|
17771
17773
|
hasStroke: z90.boolean().optional(),
|
|
17772
17774
|
isStrokeDashed: z90.boolean().optional(),
|
|
@@ -17795,19 +17797,19 @@ var courtyardOutlineProps = pcbLayoutProps.omit({
|
|
|
17795
17797
|
});
|
|
17796
17798
|
|
|
17797
17799
|
// lib/components/courtyard-circle.ts
|
|
17798
|
-
import { distance as
|
|
17800
|
+
import { distance as distance27 } from "circuit-json";
|
|
17799
17801
|
import "zod";
|
|
17800
17802
|
var courtyardCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
17801
|
-
radius:
|
|
17803
|
+
radius: distance27
|
|
17802
17804
|
});
|
|
17803
17805
|
|
|
17804
17806
|
// lib/components/courtyard-pill.ts
|
|
17805
|
-
import { distance as
|
|
17807
|
+
import { distance as distance28 } from "circuit-json";
|
|
17806
17808
|
import "zod";
|
|
17807
17809
|
var courtyardPillProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
17808
|
-
width:
|
|
17809
|
-
height:
|
|
17810
|
-
radius:
|
|
17810
|
+
width: distance28,
|
|
17811
|
+
height: distance28,
|
|
17812
|
+
radius: distance28
|
|
17811
17813
|
});
|
|
17812
17814
|
|
|
17813
17815
|
// lib/components/copper-pour.ts
|
|
@@ -17929,15 +17931,15 @@ var voltageProbeProps = commonComponentProps.omit({ name: true }).extend({
|
|
|
17929
17931
|
expectTypesMatch(true);
|
|
17930
17932
|
|
|
17931
17933
|
// lib/components/schematic-arc.ts
|
|
17932
|
-
import { distance as
|
|
17934
|
+
import { distance as distance29, point as point5, rotation as rotation7 } from "circuit-json";
|
|
17933
17935
|
import { z as z100 } from "zod";
|
|
17934
17936
|
var schematicArcProps = z100.object({
|
|
17935
17937
|
center: point5,
|
|
17936
|
-
radius:
|
|
17938
|
+
radius: distance29,
|
|
17937
17939
|
startAngleDegrees: rotation7,
|
|
17938
17940
|
endAngleDegrees: rotation7,
|
|
17939
17941
|
direction: z100.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
|
|
17940
|
-
strokeWidth:
|
|
17942
|
+
strokeWidth: distance29.optional(),
|
|
17941
17943
|
color: z100.string().optional(),
|
|
17942
17944
|
isDashed: z100.boolean().optional().default(false)
|
|
17943
17945
|
});
|
|
@@ -17951,23 +17953,23 @@ var toolingrailProps = z101.object({
|
|
|
17951
17953
|
expectTypesMatch(true);
|
|
17952
17954
|
|
|
17953
17955
|
// lib/components/schematic-box.ts
|
|
17954
|
-
import { distance as
|
|
17956
|
+
import { distance as distance30 } from "circuit-json";
|
|
17955
17957
|
import { z as z102 } from "zod";
|
|
17956
17958
|
var schematicBoxProps = z102.object({
|
|
17957
|
-
schX:
|
|
17958
|
-
schY:
|
|
17959
|
-
width:
|
|
17960
|
-
height:
|
|
17959
|
+
schX: distance30.optional(),
|
|
17960
|
+
schY: distance30.optional(),
|
|
17961
|
+
width: distance30.optional(),
|
|
17962
|
+
height: distance30.optional(),
|
|
17961
17963
|
overlay: z102.array(z102.string()).optional(),
|
|
17962
|
-
padding:
|
|
17963
|
-
paddingLeft:
|
|
17964
|
-
paddingRight:
|
|
17965
|
-
paddingTop:
|
|
17966
|
-
paddingBottom:
|
|
17964
|
+
padding: distance30.optional(),
|
|
17965
|
+
paddingLeft: distance30.optional(),
|
|
17966
|
+
paddingRight: distance30.optional(),
|
|
17967
|
+
paddingTop: distance30.optional(),
|
|
17968
|
+
paddingBottom: distance30.optional(),
|
|
17967
17969
|
title: z102.string().optional(),
|
|
17968
17970
|
titleAlignment: ninePointAnchor.default("top_left"),
|
|
17969
17971
|
titleColor: z102.string().optional(),
|
|
17970
|
-
titleFontSize:
|
|
17972
|
+
titleFontSize: distance30.optional(),
|
|
17971
17973
|
titleInside: z102.boolean().default(false),
|
|
17972
17974
|
strokeStyle: z102.enum(["solid", "dashed"]).default("solid")
|
|
17973
17975
|
}).refine(
|
|
@@ -17984,12 +17986,12 @@ var schematicBoxProps = z102.object({
|
|
|
17984
17986
|
expectTypesMatch(true);
|
|
17985
17987
|
|
|
17986
17988
|
// lib/components/schematic-circle.ts
|
|
17987
|
-
import { distance as
|
|
17989
|
+
import { distance as distance31, point as point6 } from "circuit-json";
|
|
17988
17990
|
import { z as z103 } from "zod";
|
|
17989
17991
|
var schematicCircleProps = z103.object({
|
|
17990
17992
|
center: point6,
|
|
17991
|
-
radius:
|
|
17992
|
-
strokeWidth:
|
|
17993
|
+
radius: distance31,
|
|
17994
|
+
strokeWidth: distance31.optional(),
|
|
17993
17995
|
color: z103.string().optional(),
|
|
17994
17996
|
isFilled: z103.boolean().optional().default(false),
|
|
17995
17997
|
fillColor: z103.string().optional(),
|
|
@@ -18000,39 +18002,39 @@ expectTypesMatch(
|
|
|
18000
18002
|
);
|
|
18001
18003
|
|
|
18002
18004
|
// lib/components/schematic-rect.ts
|
|
18003
|
-
import { distance as
|
|
18005
|
+
import { distance as distance32, rotation as rotation8 } from "circuit-json";
|
|
18004
18006
|
import { z as z104 } from "zod";
|
|
18005
18007
|
var schematicRectProps = z104.object({
|
|
18006
|
-
schX:
|
|
18007
|
-
schY:
|
|
18008
|
-
width:
|
|
18009
|
-
height:
|
|
18008
|
+
schX: distance32.optional(),
|
|
18009
|
+
schY: distance32.optional(),
|
|
18010
|
+
width: distance32,
|
|
18011
|
+
height: distance32,
|
|
18010
18012
|
rotation: rotation8.default(0),
|
|
18011
|
-
strokeWidth:
|
|
18013
|
+
strokeWidth: distance32.optional(),
|
|
18012
18014
|
color: z104.string().optional(),
|
|
18013
18015
|
isFilled: z104.boolean().optional().default(false),
|
|
18014
18016
|
fillColor: z104.string().optional(),
|
|
18015
18017
|
isDashed: z104.boolean().optional().default(false),
|
|
18016
|
-
cornerRadius:
|
|
18018
|
+
cornerRadius: distance32.optional()
|
|
18017
18019
|
});
|
|
18018
18020
|
expectTypesMatch(true);
|
|
18019
18021
|
|
|
18020
18022
|
// lib/components/schematic-line.ts
|
|
18021
|
-
import { distance as
|
|
18023
|
+
import { distance as distance33 } from "circuit-json";
|
|
18022
18024
|
import { z as z105 } from "zod";
|
|
18023
18025
|
var schematicLineProps = z105.object({
|
|
18024
|
-
x1:
|
|
18025
|
-
y1:
|
|
18026
|
-
x2:
|
|
18027
|
-
y2:
|
|
18028
|
-
strokeWidth:
|
|
18026
|
+
x1: distance33,
|
|
18027
|
+
y1: distance33,
|
|
18028
|
+
x2: distance33,
|
|
18029
|
+
y2: distance33,
|
|
18030
|
+
strokeWidth: distance33.optional(),
|
|
18029
18031
|
color: z105.string().optional(),
|
|
18030
18032
|
isDashed: z105.boolean().optional().default(false)
|
|
18031
18033
|
});
|
|
18032
18034
|
expectTypesMatch(true);
|
|
18033
18035
|
|
|
18034
18036
|
// lib/components/schematic-text.ts
|
|
18035
|
-
import { distance as
|
|
18037
|
+
import { distance as distance34, rotation as rotation9 } from "circuit-json";
|
|
18036
18038
|
import { z as z107 } from "zod";
|
|
18037
18039
|
|
|
18038
18040
|
// lib/common/fivePointAnchor.ts
|
|
@@ -18047,8 +18049,8 @@ var fivePointAnchor = z106.enum([
|
|
|
18047
18049
|
|
|
18048
18050
|
// lib/components/schematic-text.ts
|
|
18049
18051
|
var schematicTextProps = z107.object({
|
|
18050
|
-
schX:
|
|
18051
|
-
schY:
|
|
18052
|
+
schX: distance34.optional(),
|
|
18053
|
+
schY: distance34.optional(),
|
|
18052
18054
|
text: z107.string(),
|
|
18053
18055
|
fontSize: z107.number().default(1),
|
|
18054
18056
|
anchor: z107.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
|
|
@@ -18058,12 +18060,12 @@ var schematicTextProps = z107.object({
|
|
|
18058
18060
|
expectTypesMatch(true);
|
|
18059
18061
|
|
|
18060
18062
|
// lib/components/schematic-path.ts
|
|
18061
|
-
import { distance as
|
|
18063
|
+
import { distance as distance35, point as point8 } from "circuit-json";
|
|
18062
18064
|
import { z as z108 } from "zod";
|
|
18063
18065
|
var schematicPathProps = z108.object({
|
|
18064
18066
|
points: z108.array(point8).optional(),
|
|
18065
18067
|
svgPath: z108.string().optional(),
|
|
18066
|
-
strokeWidth:
|
|
18068
|
+
strokeWidth: distance35.optional(),
|
|
18067
18069
|
strokeColor: z108.string().optional(),
|
|
18068
18070
|
isFilled: z108.boolean().optional().default(false),
|
|
18069
18071
|
fillColor: z108.string().optional()
|
|
@@ -18071,39 +18073,39 @@ var schematicPathProps = z108.object({
|
|
|
18071
18073
|
expectTypesMatch(true);
|
|
18072
18074
|
|
|
18073
18075
|
// lib/components/schematic-table.ts
|
|
18074
|
-
import { distance as
|
|
18076
|
+
import { distance as distance36 } from "circuit-json";
|
|
18075
18077
|
import { z as z109 } from "zod";
|
|
18076
18078
|
var schematicTableProps = z109.object({
|
|
18077
|
-
schX:
|
|
18078
|
-
schY:
|
|
18079
|
+
schX: distance36.optional(),
|
|
18080
|
+
schY: distance36.optional(),
|
|
18079
18081
|
children: z109.any().optional(),
|
|
18080
|
-
cellPadding:
|
|
18081
|
-
borderWidth:
|
|
18082
|
+
cellPadding: distance36.optional(),
|
|
18083
|
+
borderWidth: distance36.optional(),
|
|
18082
18084
|
anchor: ninePointAnchor.optional(),
|
|
18083
|
-
fontSize:
|
|
18085
|
+
fontSize: distance36.optional()
|
|
18084
18086
|
});
|
|
18085
18087
|
expectTypesMatch(true);
|
|
18086
18088
|
|
|
18087
18089
|
// lib/components/schematic-row.ts
|
|
18088
|
-
import { distance as
|
|
18090
|
+
import { distance as distance37 } from "circuit-json";
|
|
18089
18091
|
import { z as z110 } from "zod";
|
|
18090
18092
|
var schematicRowProps = z110.object({
|
|
18091
18093
|
children: z110.any().optional(),
|
|
18092
|
-
height:
|
|
18094
|
+
height: distance37.optional()
|
|
18093
18095
|
});
|
|
18094
18096
|
expectTypesMatch(true);
|
|
18095
18097
|
|
|
18096
18098
|
// lib/components/schematic-cell.ts
|
|
18097
|
-
import { distance as
|
|
18099
|
+
import { distance as distance38 } from "circuit-json";
|
|
18098
18100
|
import { z as z111 } from "zod";
|
|
18099
18101
|
var schematicCellProps = z111.object({
|
|
18100
18102
|
children: z111.string().optional(),
|
|
18101
18103
|
horizontalAlign: z111.enum(["left", "center", "right"]).optional(),
|
|
18102
18104
|
verticalAlign: z111.enum(["top", "middle", "bottom"]).optional(),
|
|
18103
|
-
fontSize:
|
|
18105
|
+
fontSize: distance38.optional(),
|
|
18104
18106
|
rowSpan: z111.number().optional(),
|
|
18105
18107
|
colSpan: z111.number().optional(),
|
|
18106
|
-
width:
|
|
18108
|
+
width: distance38.optional(),
|
|
18107
18109
|
text: z111.string().optional()
|
|
18108
18110
|
});
|
|
18109
18111
|
expectTypesMatch(true);
|
|
@@ -18170,7 +18172,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
|
|
|
18170
18172
|
});
|
|
18171
18173
|
|
|
18172
18174
|
// lib/components/silkscreen-line.ts
|
|
18173
|
-
import { distance as
|
|
18175
|
+
import { distance as distance39 } from "circuit-json";
|
|
18174
18176
|
var silkscreenLineProps = pcbLayoutProps.omit({
|
|
18175
18177
|
pcbX: true,
|
|
18176
18178
|
pcbY: true,
|
|
@@ -18178,41 +18180,41 @@ var silkscreenLineProps = pcbLayoutProps.omit({
|
|
|
18178
18180
|
pcbOffsetY: true,
|
|
18179
18181
|
pcbRotation: true
|
|
18180
18182
|
}).extend({
|
|
18181
|
-
strokeWidth:
|
|
18182
|
-
x1:
|
|
18183
|
-
y1:
|
|
18184
|
-
x2:
|
|
18185
|
-
y2:
|
|
18183
|
+
strokeWidth: distance39,
|
|
18184
|
+
x1: distance39,
|
|
18185
|
+
y1: distance39,
|
|
18186
|
+
x2: distance39,
|
|
18187
|
+
y2: distance39
|
|
18186
18188
|
});
|
|
18187
18189
|
|
|
18188
18190
|
// lib/components/silkscreen-rect.ts
|
|
18189
|
-
import { distance as
|
|
18191
|
+
import { distance as distance40 } from "circuit-json";
|
|
18190
18192
|
import { z as z116 } from "zod";
|
|
18191
18193
|
var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18192
18194
|
filled: z116.boolean().default(true).optional(),
|
|
18193
18195
|
stroke: z116.enum(["dashed", "solid", "none"]).optional(),
|
|
18194
|
-
strokeWidth:
|
|
18195
|
-
width:
|
|
18196
|
-
height:
|
|
18197
|
-
cornerRadius:
|
|
18196
|
+
strokeWidth: distance40.optional(),
|
|
18197
|
+
width: distance40,
|
|
18198
|
+
height: distance40,
|
|
18199
|
+
cornerRadius: distance40.optional()
|
|
18198
18200
|
});
|
|
18199
18201
|
|
|
18200
18202
|
// lib/components/silkscreen-circle.ts
|
|
18201
|
-
import { distance as
|
|
18203
|
+
import { distance as distance41 } from "circuit-json";
|
|
18202
18204
|
import { z as z117 } from "zod";
|
|
18203
18205
|
var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18204
18206
|
isFilled: z117.boolean().optional(),
|
|
18205
18207
|
isOutline: z117.boolean().optional(),
|
|
18206
|
-
strokeWidth:
|
|
18207
|
-
radius:
|
|
18208
|
+
strokeWidth: distance41.optional(),
|
|
18209
|
+
radius: distance41
|
|
18208
18210
|
});
|
|
18209
18211
|
|
|
18210
18212
|
// lib/components/trace-hint.ts
|
|
18211
|
-
import { distance as
|
|
18213
|
+
import { distance as distance42, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
|
|
18212
18214
|
import { z as z118 } from "zod";
|
|
18213
18215
|
var routeHintPointProps = z118.object({
|
|
18214
|
-
x:
|
|
18215
|
-
y:
|
|
18216
|
+
x: distance42,
|
|
18217
|
+
y: distance42,
|
|
18216
18218
|
via: z118.boolean().optional(),
|
|
18217
18219
|
toLayer: layer_ref12.optional()
|
|
18218
18220
|
});
|
|
@@ -18256,17 +18258,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
|
|
|
18256
18258
|
expectTypesMatch(true);
|
|
18257
18259
|
|
|
18258
18260
|
// lib/components/pcb-note-rect.ts
|
|
18259
|
-
import { distance as
|
|
18261
|
+
import { distance as distance43 } from "circuit-json";
|
|
18260
18262
|
import { z as z121 } from "zod";
|
|
18261
18263
|
var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18262
|
-
width:
|
|
18263
|
-
height:
|
|
18264
|
-
strokeWidth:
|
|
18264
|
+
width: distance43,
|
|
18265
|
+
height: distance43,
|
|
18266
|
+
strokeWidth: distance43.optional(),
|
|
18265
18267
|
isFilled: z121.boolean().optional(),
|
|
18266
18268
|
hasStroke: z121.boolean().optional(),
|
|
18267
18269
|
isStrokeDashed: z121.boolean().optional(),
|
|
18268
18270
|
color: z121.string().optional(),
|
|
18269
|
-
cornerRadius:
|
|
18271
|
+
cornerRadius: distance43.optional()
|
|
18270
18272
|
});
|
|
18271
18273
|
expectTypesMatch(true);
|
|
18272
18274
|
|
|
@@ -18294,7 +18296,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
|
|
|
18294
18296
|
expectTypesMatch(true);
|
|
18295
18297
|
|
|
18296
18298
|
// lib/components/pcb-note-line.ts
|
|
18297
|
-
import { distance as
|
|
18299
|
+
import { distance as distance44 } from "circuit-json";
|
|
18298
18300
|
import { z as z123 } from "zod";
|
|
18299
18301
|
var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
18300
18302
|
pcbLeftEdgeX: true,
|
|
@@ -18307,18 +18309,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
|
18307
18309
|
pcbOffsetY: true,
|
|
18308
18310
|
pcbRotation: true
|
|
18309
18311
|
}).extend({
|
|
18310
|
-
x1:
|
|
18311
|
-
y1:
|
|
18312
|
-
x2:
|
|
18313
|
-
y2:
|
|
18314
|
-
strokeWidth:
|
|
18312
|
+
x1: distance44,
|
|
18313
|
+
y1: distance44,
|
|
18314
|
+
x2: distance44,
|
|
18315
|
+
y2: distance44,
|
|
18316
|
+
strokeWidth: distance44.optional(),
|
|
18315
18317
|
color: z123.string().optional(),
|
|
18316
18318
|
isDashed: z123.boolean().optional()
|
|
18317
18319
|
});
|
|
18318
18320
|
expectTypesMatch(true);
|
|
18319
18321
|
|
|
18320
18322
|
// lib/components/pcb-note-dimension.ts
|
|
18321
|
-
import { distance as
|
|
18323
|
+
import { distance as distance45, length as length13 } from "circuit-json";
|
|
18322
18324
|
import { z as z124 } from "zod";
|
|
18323
18325
|
var dimensionTarget2 = z124.union([z124.string(), point]);
|
|
18324
18326
|
var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
@@ -18335,11 +18337,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
18335
18337
|
from: dimensionTarget2,
|
|
18336
18338
|
to: dimensionTarget2,
|
|
18337
18339
|
text: z124.string().optional(),
|
|
18338
|
-
offset:
|
|
18340
|
+
offset: distance45.optional(),
|
|
18339
18341
|
font: z124.enum(["tscircuit2024"]).optional(),
|
|
18340
18342
|
fontSize: length13.optional(),
|
|
18341
18343
|
color: z124.string().optional(),
|
|
18342
|
-
arrowSize:
|
|
18344
|
+
arrowSize: distance45.optional(),
|
|
18343
18345
|
units: z124.enum(["in", "mm"]).optional(),
|
|
18344
18346
|
outerEdgeToEdge: z124.literal(true).optional(),
|
|
18345
18347
|
centerToCenter: z124.literal(true).optional(),
|