@tscircuit/props 0.0.531 → 0.0.533
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 +4 -2
- package/dist/index.d.ts +32 -14
- package/dist/index.js +126 -123
- package/dist/index.js.map +1 -1
- package/lib/components/net.ts +4 -0
- package/lib/components/via.ts +6 -4
- package/package.json +1 -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,30 +17694,31 @@ 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
|
-
fromLayer: layer_ref6,
|
|
17709
|
-
toLayer: layer_ref6,
|
|
17710
|
-
holeDiameter:
|
|
17711
|
-
outerDiameter:
|
|
17710
|
+
fromLayer: layer_ref6.optional(),
|
|
17711
|
+
toLayer: layer_ref6.optional(),
|
|
17712
|
+
holeDiameter: distance23.optional(),
|
|
17713
|
+
outerDiameter: distance23.optional(),
|
|
17714
|
+
layers: z86.array(layer_ref6).optional(),
|
|
17712
17715
|
connectsTo: z86.string().or(z86.array(z86.string())).optional(),
|
|
17713
17716
|
netIsAssignable: z86.boolean().optional()
|
|
17714
17717
|
});
|
|
17715
17718
|
expectTypesMatch(true);
|
|
17716
17719
|
|
|
17717
17720
|
// lib/components/testpoint.ts
|
|
17718
|
-
import { distance as
|
|
17721
|
+
import { distance as distance24 } from "circuit-json";
|
|
17719
17722
|
import { z as z87 } from "zod";
|
|
17720
17723
|
var testpointPins = ["pin1"];
|
|
17721
17724
|
var testpointConnectionsProp = z87.object({
|
|
@@ -17725,10 +17728,10 @@ var testpointProps = commonComponentProps.extend({
|
|
|
17725
17728
|
connections: testpointConnectionsProp.optional(),
|
|
17726
17729
|
footprintVariant: z87.enum(["pad", "through_hole"]).optional(),
|
|
17727
17730
|
padShape: z87.enum(["rect", "circle"]).optional().default("circle"),
|
|
17728
|
-
padDiameter:
|
|
17729
|
-
holeDiameter:
|
|
17730
|
-
width:
|
|
17731
|
-
height:
|
|
17731
|
+
padDiameter: distance24.optional(),
|
|
17732
|
+
holeDiameter: distance24.optional(),
|
|
17733
|
+
width: distance24.optional(),
|
|
17734
|
+
height: distance24.optional()
|
|
17732
17735
|
}).refine(
|
|
17733
17736
|
(props) => props.footprintVariant !== "through_hole" || props.holeDiameter !== void 0,
|
|
17734
17737
|
{ message: "holeDiameter is required for through_hole testpoints" }
|
|
@@ -17743,29 +17746,29 @@ var breakoutPointProps = pcbLayoutProps.omit({ pcbRotation: true, layer: true })
|
|
|
17743
17746
|
expectTypesMatch(true);
|
|
17744
17747
|
|
|
17745
17748
|
// lib/components/pcb-keepout.ts
|
|
17746
|
-
import { distance as
|
|
17749
|
+
import { distance as distance25, layer_ref as layer_ref7 } from "circuit-json";
|
|
17747
17750
|
import { z as z89 } from "zod";
|
|
17748
17751
|
var pcbKeepoutProps = z89.union([
|
|
17749
17752
|
pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
17750
17753
|
shape: z89.literal("circle"),
|
|
17751
|
-
radius:
|
|
17754
|
+
radius: distance25,
|
|
17752
17755
|
layers: z89.array(layer_ref7).optional()
|
|
17753
17756
|
}),
|
|
17754
17757
|
pcbLayoutProps.extend({
|
|
17755
17758
|
shape: z89.literal("rect"),
|
|
17756
|
-
width:
|
|
17757
|
-
height:
|
|
17759
|
+
width: distance25,
|
|
17760
|
+
height: distance25,
|
|
17758
17761
|
layers: z89.array(layer_ref7).optional()
|
|
17759
17762
|
})
|
|
17760
17763
|
]);
|
|
17761
17764
|
|
|
17762
17765
|
// lib/components/courtyard-rect.ts
|
|
17763
|
-
import { distance as
|
|
17766
|
+
import { distance as distance26 } from "circuit-json";
|
|
17764
17767
|
import { z as z90 } from "zod";
|
|
17765
17768
|
var courtyardRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
17766
|
-
width:
|
|
17767
|
-
height:
|
|
17768
|
-
strokeWidth:
|
|
17769
|
+
width: distance26,
|
|
17770
|
+
height: distance26,
|
|
17771
|
+
strokeWidth: distance26.optional(),
|
|
17769
17772
|
isFilled: z90.boolean().optional(),
|
|
17770
17773
|
hasStroke: z90.boolean().optional(),
|
|
17771
17774
|
isStrokeDashed: z90.boolean().optional(),
|
|
@@ -17794,19 +17797,19 @@ var courtyardOutlineProps = pcbLayoutProps.omit({
|
|
|
17794
17797
|
});
|
|
17795
17798
|
|
|
17796
17799
|
// lib/components/courtyard-circle.ts
|
|
17797
|
-
import { distance as
|
|
17800
|
+
import { distance as distance27 } from "circuit-json";
|
|
17798
17801
|
import "zod";
|
|
17799
17802
|
var courtyardCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
17800
|
-
radius:
|
|
17803
|
+
radius: distance27
|
|
17801
17804
|
});
|
|
17802
17805
|
|
|
17803
17806
|
// lib/components/courtyard-pill.ts
|
|
17804
|
-
import { distance as
|
|
17807
|
+
import { distance as distance28 } from "circuit-json";
|
|
17805
17808
|
import "zod";
|
|
17806
17809
|
var courtyardPillProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
17807
|
-
width:
|
|
17808
|
-
height:
|
|
17809
|
-
radius:
|
|
17810
|
+
width: distance28,
|
|
17811
|
+
height: distance28,
|
|
17812
|
+
radius: distance28
|
|
17810
17813
|
});
|
|
17811
17814
|
|
|
17812
17815
|
// lib/components/copper-pour.ts
|
|
@@ -17928,15 +17931,15 @@ var voltageProbeProps = commonComponentProps.omit({ name: true }).extend({
|
|
|
17928
17931
|
expectTypesMatch(true);
|
|
17929
17932
|
|
|
17930
17933
|
// lib/components/schematic-arc.ts
|
|
17931
|
-
import { distance as
|
|
17934
|
+
import { distance as distance29, point as point5, rotation as rotation7 } from "circuit-json";
|
|
17932
17935
|
import { z as z100 } from "zod";
|
|
17933
17936
|
var schematicArcProps = z100.object({
|
|
17934
17937
|
center: point5,
|
|
17935
|
-
radius:
|
|
17938
|
+
radius: distance29,
|
|
17936
17939
|
startAngleDegrees: rotation7,
|
|
17937
17940
|
endAngleDegrees: rotation7,
|
|
17938
17941
|
direction: z100.enum(["clockwise", "counterclockwise"]).default("counterclockwise"),
|
|
17939
|
-
strokeWidth:
|
|
17942
|
+
strokeWidth: distance29.optional(),
|
|
17940
17943
|
color: z100.string().optional(),
|
|
17941
17944
|
isDashed: z100.boolean().optional().default(false)
|
|
17942
17945
|
});
|
|
@@ -17950,23 +17953,23 @@ var toolingrailProps = z101.object({
|
|
|
17950
17953
|
expectTypesMatch(true);
|
|
17951
17954
|
|
|
17952
17955
|
// lib/components/schematic-box.ts
|
|
17953
|
-
import { distance as
|
|
17956
|
+
import { distance as distance30 } from "circuit-json";
|
|
17954
17957
|
import { z as z102 } from "zod";
|
|
17955
17958
|
var schematicBoxProps = z102.object({
|
|
17956
|
-
schX:
|
|
17957
|
-
schY:
|
|
17958
|
-
width:
|
|
17959
|
-
height:
|
|
17959
|
+
schX: distance30.optional(),
|
|
17960
|
+
schY: distance30.optional(),
|
|
17961
|
+
width: distance30.optional(),
|
|
17962
|
+
height: distance30.optional(),
|
|
17960
17963
|
overlay: z102.array(z102.string()).optional(),
|
|
17961
|
-
padding:
|
|
17962
|
-
paddingLeft:
|
|
17963
|
-
paddingRight:
|
|
17964
|
-
paddingTop:
|
|
17965
|
-
paddingBottom:
|
|
17964
|
+
padding: distance30.optional(),
|
|
17965
|
+
paddingLeft: distance30.optional(),
|
|
17966
|
+
paddingRight: distance30.optional(),
|
|
17967
|
+
paddingTop: distance30.optional(),
|
|
17968
|
+
paddingBottom: distance30.optional(),
|
|
17966
17969
|
title: z102.string().optional(),
|
|
17967
17970
|
titleAlignment: ninePointAnchor.default("top_left"),
|
|
17968
17971
|
titleColor: z102.string().optional(),
|
|
17969
|
-
titleFontSize:
|
|
17972
|
+
titleFontSize: distance30.optional(),
|
|
17970
17973
|
titleInside: z102.boolean().default(false),
|
|
17971
17974
|
strokeStyle: z102.enum(["solid", "dashed"]).default("solid")
|
|
17972
17975
|
}).refine(
|
|
@@ -17983,12 +17986,12 @@ var schematicBoxProps = z102.object({
|
|
|
17983
17986
|
expectTypesMatch(true);
|
|
17984
17987
|
|
|
17985
17988
|
// lib/components/schematic-circle.ts
|
|
17986
|
-
import { distance as
|
|
17989
|
+
import { distance as distance31, point as point6 } from "circuit-json";
|
|
17987
17990
|
import { z as z103 } from "zod";
|
|
17988
17991
|
var schematicCircleProps = z103.object({
|
|
17989
17992
|
center: point6,
|
|
17990
|
-
radius:
|
|
17991
|
-
strokeWidth:
|
|
17993
|
+
radius: distance31,
|
|
17994
|
+
strokeWidth: distance31.optional(),
|
|
17992
17995
|
color: z103.string().optional(),
|
|
17993
17996
|
isFilled: z103.boolean().optional().default(false),
|
|
17994
17997
|
fillColor: z103.string().optional(),
|
|
@@ -17999,39 +18002,39 @@ expectTypesMatch(
|
|
|
17999
18002
|
);
|
|
18000
18003
|
|
|
18001
18004
|
// lib/components/schematic-rect.ts
|
|
18002
|
-
import { distance as
|
|
18005
|
+
import { distance as distance32, rotation as rotation8 } from "circuit-json";
|
|
18003
18006
|
import { z as z104 } from "zod";
|
|
18004
18007
|
var schematicRectProps = z104.object({
|
|
18005
|
-
schX:
|
|
18006
|
-
schY:
|
|
18007
|
-
width:
|
|
18008
|
-
height:
|
|
18008
|
+
schX: distance32.optional(),
|
|
18009
|
+
schY: distance32.optional(),
|
|
18010
|
+
width: distance32,
|
|
18011
|
+
height: distance32,
|
|
18009
18012
|
rotation: rotation8.default(0),
|
|
18010
|
-
strokeWidth:
|
|
18013
|
+
strokeWidth: distance32.optional(),
|
|
18011
18014
|
color: z104.string().optional(),
|
|
18012
18015
|
isFilled: z104.boolean().optional().default(false),
|
|
18013
18016
|
fillColor: z104.string().optional(),
|
|
18014
18017
|
isDashed: z104.boolean().optional().default(false),
|
|
18015
|
-
cornerRadius:
|
|
18018
|
+
cornerRadius: distance32.optional()
|
|
18016
18019
|
});
|
|
18017
18020
|
expectTypesMatch(true);
|
|
18018
18021
|
|
|
18019
18022
|
// lib/components/schematic-line.ts
|
|
18020
|
-
import { distance as
|
|
18023
|
+
import { distance as distance33 } from "circuit-json";
|
|
18021
18024
|
import { z as z105 } from "zod";
|
|
18022
18025
|
var schematicLineProps = z105.object({
|
|
18023
|
-
x1:
|
|
18024
|
-
y1:
|
|
18025
|
-
x2:
|
|
18026
|
-
y2:
|
|
18027
|
-
strokeWidth:
|
|
18026
|
+
x1: distance33,
|
|
18027
|
+
y1: distance33,
|
|
18028
|
+
x2: distance33,
|
|
18029
|
+
y2: distance33,
|
|
18030
|
+
strokeWidth: distance33.optional(),
|
|
18028
18031
|
color: z105.string().optional(),
|
|
18029
18032
|
isDashed: z105.boolean().optional().default(false)
|
|
18030
18033
|
});
|
|
18031
18034
|
expectTypesMatch(true);
|
|
18032
18035
|
|
|
18033
18036
|
// lib/components/schematic-text.ts
|
|
18034
|
-
import { distance as
|
|
18037
|
+
import { distance as distance34, rotation as rotation9 } from "circuit-json";
|
|
18035
18038
|
import { z as z107 } from "zod";
|
|
18036
18039
|
|
|
18037
18040
|
// lib/common/fivePointAnchor.ts
|
|
@@ -18046,8 +18049,8 @@ var fivePointAnchor = z106.enum([
|
|
|
18046
18049
|
|
|
18047
18050
|
// lib/components/schematic-text.ts
|
|
18048
18051
|
var schematicTextProps = z107.object({
|
|
18049
|
-
schX:
|
|
18050
|
-
schY:
|
|
18052
|
+
schX: distance34.optional(),
|
|
18053
|
+
schY: distance34.optional(),
|
|
18051
18054
|
text: z107.string(),
|
|
18052
18055
|
fontSize: z107.number().default(1),
|
|
18053
18056
|
anchor: z107.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
|
|
@@ -18057,12 +18060,12 @@ var schematicTextProps = z107.object({
|
|
|
18057
18060
|
expectTypesMatch(true);
|
|
18058
18061
|
|
|
18059
18062
|
// lib/components/schematic-path.ts
|
|
18060
|
-
import { distance as
|
|
18063
|
+
import { distance as distance35, point as point8 } from "circuit-json";
|
|
18061
18064
|
import { z as z108 } from "zod";
|
|
18062
18065
|
var schematicPathProps = z108.object({
|
|
18063
18066
|
points: z108.array(point8).optional(),
|
|
18064
18067
|
svgPath: z108.string().optional(),
|
|
18065
|
-
strokeWidth:
|
|
18068
|
+
strokeWidth: distance35.optional(),
|
|
18066
18069
|
strokeColor: z108.string().optional(),
|
|
18067
18070
|
isFilled: z108.boolean().optional().default(false),
|
|
18068
18071
|
fillColor: z108.string().optional()
|
|
@@ -18070,39 +18073,39 @@ var schematicPathProps = z108.object({
|
|
|
18070
18073
|
expectTypesMatch(true);
|
|
18071
18074
|
|
|
18072
18075
|
// lib/components/schematic-table.ts
|
|
18073
|
-
import { distance as
|
|
18076
|
+
import { distance as distance36 } from "circuit-json";
|
|
18074
18077
|
import { z as z109 } from "zod";
|
|
18075
18078
|
var schematicTableProps = z109.object({
|
|
18076
|
-
schX:
|
|
18077
|
-
schY:
|
|
18079
|
+
schX: distance36.optional(),
|
|
18080
|
+
schY: distance36.optional(),
|
|
18078
18081
|
children: z109.any().optional(),
|
|
18079
|
-
cellPadding:
|
|
18080
|
-
borderWidth:
|
|
18082
|
+
cellPadding: distance36.optional(),
|
|
18083
|
+
borderWidth: distance36.optional(),
|
|
18081
18084
|
anchor: ninePointAnchor.optional(),
|
|
18082
|
-
fontSize:
|
|
18085
|
+
fontSize: distance36.optional()
|
|
18083
18086
|
});
|
|
18084
18087
|
expectTypesMatch(true);
|
|
18085
18088
|
|
|
18086
18089
|
// lib/components/schematic-row.ts
|
|
18087
|
-
import { distance as
|
|
18090
|
+
import { distance as distance37 } from "circuit-json";
|
|
18088
18091
|
import { z as z110 } from "zod";
|
|
18089
18092
|
var schematicRowProps = z110.object({
|
|
18090
18093
|
children: z110.any().optional(),
|
|
18091
|
-
height:
|
|
18094
|
+
height: distance37.optional()
|
|
18092
18095
|
});
|
|
18093
18096
|
expectTypesMatch(true);
|
|
18094
18097
|
|
|
18095
18098
|
// lib/components/schematic-cell.ts
|
|
18096
|
-
import { distance as
|
|
18099
|
+
import { distance as distance38 } from "circuit-json";
|
|
18097
18100
|
import { z as z111 } from "zod";
|
|
18098
18101
|
var schematicCellProps = z111.object({
|
|
18099
18102
|
children: z111.string().optional(),
|
|
18100
18103
|
horizontalAlign: z111.enum(["left", "center", "right"]).optional(),
|
|
18101
18104
|
verticalAlign: z111.enum(["top", "middle", "bottom"]).optional(),
|
|
18102
|
-
fontSize:
|
|
18105
|
+
fontSize: distance38.optional(),
|
|
18103
18106
|
rowSpan: z111.number().optional(),
|
|
18104
18107
|
colSpan: z111.number().optional(),
|
|
18105
|
-
width:
|
|
18108
|
+
width: distance38.optional(),
|
|
18106
18109
|
text: z111.string().optional()
|
|
18107
18110
|
});
|
|
18108
18111
|
expectTypesMatch(true);
|
|
@@ -18169,7 +18172,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
|
|
|
18169
18172
|
});
|
|
18170
18173
|
|
|
18171
18174
|
// lib/components/silkscreen-line.ts
|
|
18172
|
-
import { distance as
|
|
18175
|
+
import { distance as distance39 } from "circuit-json";
|
|
18173
18176
|
var silkscreenLineProps = pcbLayoutProps.omit({
|
|
18174
18177
|
pcbX: true,
|
|
18175
18178
|
pcbY: true,
|
|
@@ -18177,41 +18180,41 @@ var silkscreenLineProps = pcbLayoutProps.omit({
|
|
|
18177
18180
|
pcbOffsetY: true,
|
|
18178
18181
|
pcbRotation: true
|
|
18179
18182
|
}).extend({
|
|
18180
|
-
strokeWidth:
|
|
18181
|
-
x1:
|
|
18182
|
-
y1:
|
|
18183
|
-
x2:
|
|
18184
|
-
y2:
|
|
18183
|
+
strokeWidth: distance39,
|
|
18184
|
+
x1: distance39,
|
|
18185
|
+
y1: distance39,
|
|
18186
|
+
x2: distance39,
|
|
18187
|
+
y2: distance39
|
|
18185
18188
|
});
|
|
18186
18189
|
|
|
18187
18190
|
// lib/components/silkscreen-rect.ts
|
|
18188
|
-
import { distance as
|
|
18191
|
+
import { distance as distance40 } from "circuit-json";
|
|
18189
18192
|
import { z as z116 } from "zod";
|
|
18190
18193
|
var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18191
18194
|
filled: z116.boolean().default(true).optional(),
|
|
18192
18195
|
stroke: z116.enum(["dashed", "solid", "none"]).optional(),
|
|
18193
|
-
strokeWidth:
|
|
18194
|
-
width:
|
|
18195
|
-
height:
|
|
18196
|
-
cornerRadius:
|
|
18196
|
+
strokeWidth: distance40.optional(),
|
|
18197
|
+
width: distance40,
|
|
18198
|
+
height: distance40,
|
|
18199
|
+
cornerRadius: distance40.optional()
|
|
18197
18200
|
});
|
|
18198
18201
|
|
|
18199
18202
|
// lib/components/silkscreen-circle.ts
|
|
18200
|
-
import { distance as
|
|
18203
|
+
import { distance as distance41 } from "circuit-json";
|
|
18201
18204
|
import { z as z117 } from "zod";
|
|
18202
18205
|
var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18203
18206
|
isFilled: z117.boolean().optional(),
|
|
18204
18207
|
isOutline: z117.boolean().optional(),
|
|
18205
|
-
strokeWidth:
|
|
18206
|
-
radius:
|
|
18208
|
+
strokeWidth: distance41.optional(),
|
|
18209
|
+
radius: distance41
|
|
18207
18210
|
});
|
|
18208
18211
|
|
|
18209
18212
|
// lib/components/trace-hint.ts
|
|
18210
|
-
import { distance as
|
|
18213
|
+
import { distance as distance42, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
|
|
18211
18214
|
import { z as z118 } from "zod";
|
|
18212
18215
|
var routeHintPointProps = z118.object({
|
|
18213
|
-
x:
|
|
18214
|
-
y:
|
|
18216
|
+
x: distance42,
|
|
18217
|
+
y: distance42,
|
|
18215
18218
|
via: z118.boolean().optional(),
|
|
18216
18219
|
toLayer: layer_ref12.optional()
|
|
18217
18220
|
});
|
|
@@ -18255,17 +18258,17 @@ var pcbNoteTextProps = pcbLayoutProps.extend({
|
|
|
18255
18258
|
expectTypesMatch(true);
|
|
18256
18259
|
|
|
18257
18260
|
// lib/components/pcb-note-rect.ts
|
|
18258
|
-
import { distance as
|
|
18261
|
+
import { distance as distance43 } from "circuit-json";
|
|
18259
18262
|
import { z as z121 } from "zod";
|
|
18260
18263
|
var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18261
|
-
width:
|
|
18262
|
-
height:
|
|
18263
|
-
strokeWidth:
|
|
18264
|
+
width: distance43,
|
|
18265
|
+
height: distance43,
|
|
18266
|
+
strokeWidth: distance43.optional(),
|
|
18264
18267
|
isFilled: z121.boolean().optional(),
|
|
18265
18268
|
hasStroke: z121.boolean().optional(),
|
|
18266
18269
|
isStrokeDashed: z121.boolean().optional(),
|
|
18267
18270
|
color: z121.string().optional(),
|
|
18268
|
-
cornerRadius:
|
|
18271
|
+
cornerRadius: distance43.optional()
|
|
18269
18272
|
});
|
|
18270
18273
|
expectTypesMatch(true);
|
|
18271
18274
|
|
|
@@ -18293,7 +18296,7 @@ var pcbNotePathProps = pcbLayoutProps.omit({
|
|
|
18293
18296
|
expectTypesMatch(true);
|
|
18294
18297
|
|
|
18295
18298
|
// lib/components/pcb-note-line.ts
|
|
18296
|
-
import { distance as
|
|
18299
|
+
import { distance as distance44 } from "circuit-json";
|
|
18297
18300
|
import { z as z123 } from "zod";
|
|
18298
18301
|
var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
18299
18302
|
pcbLeftEdgeX: true,
|
|
@@ -18306,18 +18309,18 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
|
18306
18309
|
pcbOffsetY: true,
|
|
18307
18310
|
pcbRotation: true
|
|
18308
18311
|
}).extend({
|
|
18309
|
-
x1:
|
|
18310
|
-
y1:
|
|
18311
|
-
x2:
|
|
18312
|
-
y2:
|
|
18313
|
-
strokeWidth:
|
|
18312
|
+
x1: distance44,
|
|
18313
|
+
y1: distance44,
|
|
18314
|
+
x2: distance44,
|
|
18315
|
+
y2: distance44,
|
|
18316
|
+
strokeWidth: distance44.optional(),
|
|
18314
18317
|
color: z123.string().optional(),
|
|
18315
18318
|
isDashed: z123.boolean().optional()
|
|
18316
18319
|
});
|
|
18317
18320
|
expectTypesMatch(true);
|
|
18318
18321
|
|
|
18319
18322
|
// lib/components/pcb-note-dimension.ts
|
|
18320
|
-
import { distance as
|
|
18323
|
+
import { distance as distance45, length as length13 } from "circuit-json";
|
|
18321
18324
|
import { z as z124 } from "zod";
|
|
18322
18325
|
var dimensionTarget2 = z124.union([z124.string(), point]);
|
|
18323
18326
|
var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
@@ -18334,11 +18337,11 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
18334
18337
|
from: dimensionTarget2,
|
|
18335
18338
|
to: dimensionTarget2,
|
|
18336
18339
|
text: z124.string().optional(),
|
|
18337
|
-
offset:
|
|
18340
|
+
offset: distance45.optional(),
|
|
18338
18341
|
font: z124.enum(["tscircuit2024"]).optional(),
|
|
18339
18342
|
fontSize: length13.optional(),
|
|
18340
18343
|
color: z124.string().optional(),
|
|
18341
|
-
arrowSize:
|
|
18344
|
+
arrowSize: distance45.optional(),
|
|
18342
18345
|
units: z124.enum(["in", "mm"]).optional(),
|
|
18343
18346
|
outerEdgeToEdge: z124.literal(true).optional(),
|
|
18344
18347
|
centerToCenter: z124.literal(true).optional(),
|