@tscircuit/props 0.0.639 → 0.0.640
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 +23 -2
- package/dist/index.d.ts +56 -9
- package/dist/index.js +146 -118
- package/dist/index.js.map +1 -1
- package/lib/components/schematic-graphic.ts +62 -0
- package/lib/components/schematic-sheet.ts +4 -4
- package/lib/index.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18829,8 +18829,8 @@ expectTypesMatch(
|
|
|
18829
18829
|
import { z as z132 } from "zod";
|
|
18830
18830
|
import { distance as distance43 } from "circuit-json";
|
|
18831
18831
|
var schematicSheetProps = z132.object({
|
|
18832
|
-
name: z132.string(),
|
|
18833
|
-
displayName: z132.string(),
|
|
18832
|
+
name: z132.string().optional(),
|
|
18833
|
+
displayName: z132.string().optional(),
|
|
18834
18834
|
sheetIndex: z132.number().optional(),
|
|
18835
18835
|
sheetSize: z132.enum(["A4", "ANSI_B"]).default("A4"),
|
|
18836
18836
|
sheetWidth: distance43.pipe(z132.number().positive()).optional(),
|
|
@@ -18839,42 +18839,69 @@ var schematicSheetProps = z132.object({
|
|
|
18839
18839
|
});
|
|
18840
18840
|
expectTypesMatch(true);
|
|
18841
18841
|
|
|
18842
|
+
// lib/components/schematic-graphic.ts
|
|
18843
|
+
import { z as z133 } from "zod";
|
|
18844
|
+
var nonemptyUrl = url.refine((value) => value.trim().length > 0, {
|
|
18845
|
+
message: "imageUrl cannot be empty"
|
|
18846
|
+
});
|
|
18847
|
+
var positiveDistance = (fieldName) => distance.refine((value) => Number.isFinite(value) && value > 0, {
|
|
18848
|
+
message: `${fieldName} must be a positive finite distance`
|
|
18849
|
+
});
|
|
18850
|
+
var schematicGraphicProps = z133.object({
|
|
18851
|
+
imageUrl: nonemptyUrl.optional(),
|
|
18852
|
+
svgContent: z133.string().refine((value) => value.trim().length > 0, {
|
|
18853
|
+
message: "svgContent cannot be empty"
|
|
18854
|
+
}).optional(),
|
|
18855
|
+
width: positiveDistance("width").optional(),
|
|
18856
|
+
height: positiveDistance("height").optional()
|
|
18857
|
+
}).superRefine(({ imageUrl, svgContent }, ctx) => {
|
|
18858
|
+
if (imageUrl === void 0 && svgContent === void 0) {
|
|
18859
|
+
ctx.addIssue({
|
|
18860
|
+
code: z133.ZodIssueCode.custom,
|
|
18861
|
+
message: "At least one of imageUrl or svgContent is required"
|
|
18862
|
+
});
|
|
18863
|
+
}
|
|
18864
|
+
});
|
|
18865
|
+
expectTypesMatch(
|
|
18866
|
+
true
|
|
18867
|
+
);
|
|
18868
|
+
|
|
18842
18869
|
// lib/components/copper-text.ts
|
|
18843
18870
|
import { layer_ref as layer_ref12, length as length8 } from "circuit-json";
|
|
18844
|
-
import { z as
|
|
18871
|
+
import { z as z134 } from "zod";
|
|
18845
18872
|
var copperTextProps = pcbLayoutProps.extend({
|
|
18846
|
-
text:
|
|
18873
|
+
text: z134.string(),
|
|
18847
18874
|
anchorAlignment: ninePointAnchor.default("center"),
|
|
18848
|
-
font:
|
|
18875
|
+
font: z134.enum(["tscircuit2024"]).optional(),
|
|
18849
18876
|
fontSize: length8.optional(),
|
|
18850
|
-
layers:
|
|
18851
|
-
knockout:
|
|
18852
|
-
mirrored:
|
|
18877
|
+
layers: z134.array(layer_ref12).optional(),
|
|
18878
|
+
knockout: z134.boolean().optional(),
|
|
18879
|
+
mirrored: z134.boolean().optional()
|
|
18853
18880
|
});
|
|
18854
18881
|
|
|
18855
18882
|
// lib/components/silkscreen-text.ts
|
|
18856
18883
|
import { layer_ref as layer_ref13, length as length9 } from "circuit-json";
|
|
18857
|
-
import { z as
|
|
18884
|
+
import { z as z135 } from "zod";
|
|
18858
18885
|
var silkscreenTextProps = pcbLayoutProps.extend({
|
|
18859
|
-
text:
|
|
18886
|
+
text: z135.string(),
|
|
18860
18887
|
anchorAlignment: ninePointAnchor.default("center"),
|
|
18861
|
-
font:
|
|
18888
|
+
font: z135.enum(["tscircuit2024"]).optional(),
|
|
18862
18889
|
fontSize: length9.optional(),
|
|
18863
18890
|
/**
|
|
18864
18891
|
* If true, text will knock out underlying silkscreen
|
|
18865
18892
|
*/
|
|
18866
|
-
isKnockout:
|
|
18893
|
+
isKnockout: z135.boolean().optional(),
|
|
18867
18894
|
knockoutPadding: length9.optional(),
|
|
18868
18895
|
knockoutPaddingLeft: length9.optional(),
|
|
18869
18896
|
knockoutPaddingRight: length9.optional(),
|
|
18870
18897
|
knockoutPaddingTop: length9.optional(),
|
|
18871
18898
|
knockoutPaddingBottom: length9.optional(),
|
|
18872
|
-
layers:
|
|
18899
|
+
layers: z135.array(layer_ref13).optional()
|
|
18873
18900
|
});
|
|
18874
18901
|
|
|
18875
18902
|
// lib/components/silkscreen-path.ts
|
|
18876
18903
|
import { length as length10, route_hint_point as route_hint_point5 } from "circuit-json";
|
|
18877
|
-
import { z as
|
|
18904
|
+
import { z as z136 } from "zod";
|
|
18878
18905
|
var silkscreenPathProps = pcbLayoutProps.omit({
|
|
18879
18906
|
pcbLeftEdgeX: true,
|
|
18880
18907
|
pcbRightEdgeX: true,
|
|
@@ -18886,7 +18913,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
|
|
|
18886
18913
|
pcbOffsetY: true,
|
|
18887
18914
|
pcbRotation: true
|
|
18888
18915
|
}).extend({
|
|
18889
|
-
route:
|
|
18916
|
+
route: z136.array(route_hint_point5),
|
|
18890
18917
|
strokeWidth: length10.optional()
|
|
18891
18918
|
});
|
|
18892
18919
|
|
|
@@ -18908,10 +18935,10 @@ var silkscreenLineProps = pcbLayoutProps.omit({
|
|
|
18908
18935
|
|
|
18909
18936
|
// lib/components/silkscreen-rect.ts
|
|
18910
18937
|
import { distance as distance45 } from "circuit-json";
|
|
18911
|
-
import { z as
|
|
18938
|
+
import { z as z137 } from "zod";
|
|
18912
18939
|
var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18913
|
-
filled:
|
|
18914
|
-
stroke:
|
|
18940
|
+
filled: z137.boolean().default(true).optional(),
|
|
18941
|
+
stroke: z137.enum(["dashed", "solid", "none"]).optional(),
|
|
18915
18942
|
strokeWidth: distance45.optional(),
|
|
18916
18943
|
width: distance45,
|
|
18917
18944
|
height: distance45,
|
|
@@ -18920,10 +18947,10 @@ var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
|
18920
18947
|
|
|
18921
18948
|
// lib/components/silkscreen-circle.ts
|
|
18922
18949
|
import { distance as distance46 } from "circuit-json";
|
|
18923
|
-
import { z as
|
|
18950
|
+
import { z as z138 } from "zod";
|
|
18924
18951
|
var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18925
|
-
isFilled:
|
|
18926
|
-
isOutline:
|
|
18952
|
+
isFilled: z138.boolean().optional(),
|
|
18953
|
+
isOutline: z138.boolean().optional(),
|
|
18927
18954
|
strokeWidth: distance46.optional(),
|
|
18928
18955
|
radius: distance46
|
|
18929
18956
|
});
|
|
@@ -18941,69 +18968,69 @@ expectTypesMatch(true);
|
|
|
18941
18968
|
|
|
18942
18969
|
// lib/components/trace-hint.ts
|
|
18943
18970
|
import { distance as distance47, layer_ref as layer_ref14, route_hint_point as route_hint_point6 } from "circuit-json";
|
|
18944
|
-
import { z as
|
|
18945
|
-
var routeHintPointProps =
|
|
18971
|
+
import { z as z140 } from "zod";
|
|
18972
|
+
var routeHintPointProps = z140.object({
|
|
18946
18973
|
x: distance47,
|
|
18947
18974
|
y: distance47,
|
|
18948
|
-
via:
|
|
18975
|
+
via: z140.boolean().optional(),
|
|
18949
18976
|
toLayer: layer_ref14.optional()
|
|
18950
18977
|
});
|
|
18951
|
-
var traceHintProps =
|
|
18952
|
-
for:
|
|
18978
|
+
var traceHintProps = z140.object({
|
|
18979
|
+
for: z140.string().optional().describe(
|
|
18953
18980
|
"Selector for the port you're targeting, not required if you're inside a trace"
|
|
18954
18981
|
),
|
|
18955
|
-
order:
|
|
18982
|
+
order: z140.number().optional(),
|
|
18956
18983
|
offset: route_hint_point6.or(routeHintPointProps).optional(),
|
|
18957
|
-
offsets:
|
|
18958
|
-
traceWidth:
|
|
18984
|
+
offsets: z140.array(route_hint_point6).or(z140.array(routeHintPointProps)).optional(),
|
|
18985
|
+
traceWidth: z140.number().optional()
|
|
18959
18986
|
});
|
|
18960
18987
|
|
|
18961
18988
|
// lib/components/port.ts
|
|
18962
18989
|
import { distance as distance48 } from "circuit-json";
|
|
18963
|
-
import { z as
|
|
18990
|
+
import { z as z141 } from "zod";
|
|
18964
18991
|
var portProps = commonLayoutProps.extend({
|
|
18965
|
-
name:
|
|
18966
|
-
pinNumber:
|
|
18967
|
-
schStemLength:
|
|
18968
|
-
schPinLabelFontSize:
|
|
18992
|
+
name: z141.string().optional(),
|
|
18993
|
+
pinNumber: z141.number().optional(),
|
|
18994
|
+
schStemLength: z141.number().optional(),
|
|
18995
|
+
schPinLabelFontSize: z141.enum(["default", "sm"]).or(
|
|
18969
18996
|
distance48.refine((value) => Number.isFinite(value) && value > 0, {
|
|
18970
18997
|
message: "Schematic pin-label font size must be positive and finite"
|
|
18971
18998
|
})
|
|
18972
18999
|
).optional(),
|
|
18973
|
-
aliases:
|
|
18974
|
-
layer:
|
|
18975
|
-
layers:
|
|
18976
|
-
schX:
|
|
18977
|
-
schY:
|
|
19000
|
+
aliases: z141.array(z141.string()).optional(),
|
|
19001
|
+
layer: z141.string().optional(),
|
|
19002
|
+
layers: z141.array(z141.string()).optional(),
|
|
19003
|
+
schX: z141.number().optional(),
|
|
19004
|
+
schY: z141.number().optional(),
|
|
18978
19005
|
direction: direction.optional(),
|
|
18979
|
-
connectsTo:
|
|
19006
|
+
connectsTo: z141.string().or(z141.array(z141.string())).optional(),
|
|
18980
19007
|
kicadPinMetadata: kicadPinMetadata.optional(),
|
|
18981
|
-
hasInversionCircle:
|
|
19008
|
+
hasInversionCircle: z141.boolean().optional()
|
|
18982
19009
|
});
|
|
18983
19010
|
|
|
18984
19011
|
// lib/components/pcb-note-text.ts
|
|
18985
19012
|
import { length as length11 } from "circuit-json";
|
|
18986
|
-
import { z as
|
|
19013
|
+
import { z as z142 } from "zod";
|
|
18987
19014
|
var pcbNoteTextProps = pcbLayoutProps.extend({
|
|
18988
|
-
text:
|
|
18989
|
-
anchorAlignment:
|
|
18990
|
-
font:
|
|
19015
|
+
text: z142.string(),
|
|
19016
|
+
anchorAlignment: z142.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
|
|
19017
|
+
font: z142.enum(["tscircuit2024"]).optional(),
|
|
18991
19018
|
fontSize: length11.optional(),
|
|
18992
|
-
color:
|
|
19019
|
+
color: z142.string().optional()
|
|
18993
19020
|
});
|
|
18994
19021
|
expectTypesMatch(true);
|
|
18995
19022
|
|
|
18996
19023
|
// lib/components/pcb-note-rect.ts
|
|
18997
19024
|
import { distance as distance49 } from "circuit-json";
|
|
18998
|
-
import { z as
|
|
19025
|
+
import { z as z143 } from "zod";
|
|
18999
19026
|
var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
19000
19027
|
width: distance49,
|
|
19001
19028
|
height: distance49,
|
|
19002
19029
|
strokeWidth: distance49.optional(),
|
|
19003
|
-
isFilled:
|
|
19004
|
-
hasStroke:
|
|
19005
|
-
isStrokeDashed:
|
|
19006
|
-
color:
|
|
19030
|
+
isFilled: z143.boolean().optional(),
|
|
19031
|
+
hasStroke: z143.boolean().optional(),
|
|
19032
|
+
isStrokeDashed: z143.boolean().optional(),
|
|
19033
|
+
color: z143.string().optional(),
|
|
19007
19034
|
cornerRadius: distance49.optional()
|
|
19008
19035
|
});
|
|
19009
19036
|
expectTypesMatch(true);
|
|
@@ -19013,7 +19040,7 @@ import {
|
|
|
19013
19040
|
length as length12,
|
|
19014
19041
|
route_hint_point as route_hint_point7
|
|
19015
19042
|
} from "circuit-json";
|
|
19016
|
-
import { z as
|
|
19043
|
+
import { z as z144 } from "zod";
|
|
19017
19044
|
var pcbNotePathProps = pcbLayoutProps.omit({
|
|
19018
19045
|
pcbLeftEdgeX: true,
|
|
19019
19046
|
pcbRightEdgeX: true,
|
|
@@ -19025,15 +19052,15 @@ var pcbNotePathProps = pcbLayoutProps.omit({
|
|
|
19025
19052
|
pcbOffsetY: true,
|
|
19026
19053
|
pcbRotation: true
|
|
19027
19054
|
}).extend({
|
|
19028
|
-
route:
|
|
19055
|
+
route: z144.array(route_hint_point7),
|
|
19029
19056
|
strokeWidth: length12.optional(),
|
|
19030
|
-
color:
|
|
19057
|
+
color: z144.string().optional()
|
|
19031
19058
|
});
|
|
19032
19059
|
expectTypesMatch(true);
|
|
19033
19060
|
|
|
19034
19061
|
// lib/components/pcb-note-line.ts
|
|
19035
19062
|
import { distance as distance50 } from "circuit-json";
|
|
19036
|
-
import { z as
|
|
19063
|
+
import { z as z145 } from "zod";
|
|
19037
19064
|
var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
19038
19065
|
pcbLeftEdgeX: true,
|
|
19039
19066
|
pcbRightEdgeX: true,
|
|
@@ -19050,15 +19077,15 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
|
19050
19077
|
x2: distance50,
|
|
19051
19078
|
y2: distance50,
|
|
19052
19079
|
strokeWidth: distance50.optional(),
|
|
19053
|
-
color:
|
|
19054
|
-
isDashed:
|
|
19080
|
+
color: z145.string().optional(),
|
|
19081
|
+
isDashed: z145.boolean().optional()
|
|
19055
19082
|
});
|
|
19056
19083
|
expectTypesMatch(true);
|
|
19057
19084
|
|
|
19058
19085
|
// lib/components/pcb-note-dimension.ts
|
|
19059
19086
|
import { distance as distance51, length as length13 } from "circuit-json";
|
|
19060
|
-
import { z as
|
|
19061
|
-
var dimensionTarget2 =
|
|
19087
|
+
import { z as z146 } from "zod";
|
|
19088
|
+
var dimensionTarget2 = z146.union([z146.string(), point]);
|
|
19062
19089
|
var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
19063
19090
|
pcbLeftEdgeX: true,
|
|
19064
19091
|
pcbRightEdgeX: true,
|
|
@@ -19072,107 +19099,107 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
19072
19099
|
}).extend({
|
|
19073
19100
|
from: dimensionTarget2,
|
|
19074
19101
|
to: dimensionTarget2,
|
|
19075
|
-
text:
|
|
19102
|
+
text: z146.string().optional(),
|
|
19076
19103
|
offset: distance51.optional(),
|
|
19077
|
-
font:
|
|
19104
|
+
font: z146.enum(["tscircuit2024"]).optional(),
|
|
19078
19105
|
fontSize: length13.optional(),
|
|
19079
|
-
color:
|
|
19106
|
+
color: z146.string().optional(),
|
|
19080
19107
|
arrowSize: distance51.optional(),
|
|
19081
|
-
units:
|
|
19082
|
-
outerEdgeToEdge:
|
|
19083
|
-
centerToCenter:
|
|
19084
|
-
innerEdgeToEdge:
|
|
19108
|
+
units: z146.enum(["in", "mm"]).optional(),
|
|
19109
|
+
outerEdgeToEdge: z146.literal(true).optional(),
|
|
19110
|
+
centerToCenter: z146.literal(true).optional(),
|
|
19111
|
+
innerEdgeToEdge: z146.literal(true).optional()
|
|
19085
19112
|
});
|
|
19086
19113
|
expectTypesMatch(
|
|
19087
19114
|
true
|
|
19088
19115
|
);
|
|
19089
19116
|
|
|
19090
19117
|
// lib/platformConfig.ts
|
|
19091
|
-
import { z as
|
|
19092
|
-
var unvalidatedCircuitJson =
|
|
19093
|
-
var footprintLibraryResult =
|
|
19094
|
-
footprintCircuitJson:
|
|
19118
|
+
import { z as z147 } from "zod";
|
|
19119
|
+
var unvalidatedCircuitJson = z147.array(z147.any()).describe("Circuit JSON");
|
|
19120
|
+
var footprintLibraryResult = z147.object({
|
|
19121
|
+
footprintCircuitJson: z147.array(z147.any()),
|
|
19095
19122
|
cadModel: cadModelProp.optional()
|
|
19096
19123
|
});
|
|
19097
|
-
var pathToCircuitJsonFn =
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
).returns(
|
|
19124
|
+
var pathToCircuitJsonFn = z147.function().args(z147.string()).returns(z147.promise(footprintLibraryResult)).or(
|
|
19125
|
+
z147.function().args(
|
|
19126
|
+
z147.string(),
|
|
19127
|
+
z147.object({ resolvedPcbStyle: pcbStyle.optional() }).optional()
|
|
19128
|
+
).returns(z147.promise(footprintLibraryResult))
|
|
19102
19129
|
).describe("A function that takes a path and returns Circuit JSON");
|
|
19103
|
-
var footprintFileParserEntry =
|
|
19104
|
-
loadFromUrl:
|
|
19130
|
+
var footprintFileParserEntry = z147.object({
|
|
19131
|
+
loadFromUrl: z147.function().args(z147.string()).returns(z147.promise(footprintLibraryResult)).describe(
|
|
19105
19132
|
"A function that takes a footprint file URL and returns Circuit JSON"
|
|
19106
19133
|
)
|
|
19107
19134
|
});
|
|
19108
|
-
var spiceEngineSimulationResult =
|
|
19109
|
-
engineVersionString:
|
|
19135
|
+
var spiceEngineSimulationResult = z147.object({
|
|
19136
|
+
engineVersionString: z147.string().optional(),
|
|
19110
19137
|
simulationResultCircuitJson: unvalidatedCircuitJson
|
|
19111
19138
|
});
|
|
19112
|
-
var spiceEngineZod =
|
|
19113
|
-
simulate:
|
|
19139
|
+
var spiceEngineZod = z147.object({
|
|
19140
|
+
simulate: z147.function().args(z147.string()).returns(z147.promise(spiceEngineSimulationResult)).describe(
|
|
19114
19141
|
"A function that takes a SPICE string and returns a simulation result"
|
|
19115
19142
|
)
|
|
19116
19143
|
});
|
|
19117
|
-
var defaultSpiceEngine =
|
|
19144
|
+
var defaultSpiceEngine = z147.custom(
|
|
19118
19145
|
(value) => typeof value === "string"
|
|
19119
19146
|
);
|
|
19120
|
-
var autorouterInstance =
|
|
19121
|
-
run:
|
|
19122
|
-
getOutputSimpleRouteJson:
|
|
19147
|
+
var autorouterInstance = z147.object({
|
|
19148
|
+
run: z147.function().args().returns(z147.promise(z147.unknown())).describe("Run the autorouter"),
|
|
19149
|
+
getOutputSimpleRouteJson: z147.function().args().returns(z147.promise(z147.any())).describe("Get the resulting SimpleRouteJson")
|
|
19123
19150
|
});
|
|
19124
|
-
var autorouterDefinition =
|
|
19125
|
-
createAutorouter:
|
|
19151
|
+
var autorouterDefinition = z147.object({
|
|
19152
|
+
createAutorouter: z147.function().args(z147.any(), z147.any().optional()).returns(z147.union([autorouterInstance, z147.promise(autorouterInstance)])).describe("Create an autorouter instance")
|
|
19126
19153
|
});
|
|
19127
|
-
var platformFetch =
|
|
19128
|
-
var localCacheEngine =
|
|
19154
|
+
var platformFetch = z147.custom((value) => typeof value === "function").describe("A fetch-like function to use for platform requests");
|
|
19155
|
+
var localCacheEngine = z147.custom(
|
|
19129
19156
|
(value) => typeof value === "object" && value !== null && "getItem" in value && typeof value.getItem === "function" && "setItem" in value && typeof value.setItem === "function"
|
|
19130
19157
|
);
|
|
19131
|
-
var platformConfig =
|
|
19158
|
+
var platformConfig = z147.object({
|
|
19132
19159
|
partsEngine: partsEngine.optional(),
|
|
19133
19160
|
autorouter: autorouterProp.optional(),
|
|
19134
|
-
autorouterMap:
|
|
19135
|
-
allowLegacyAutorouters:
|
|
19161
|
+
autorouterMap: z147.record(z147.string(), autorouterDefinition).optional(),
|
|
19162
|
+
allowLegacyAutorouters: z147.boolean().optional(),
|
|
19136
19163
|
registryApiUrl: url.optional(),
|
|
19137
19164
|
cloudAutorouterUrl: url.optional(),
|
|
19138
|
-
projectName:
|
|
19165
|
+
projectName: z147.string().optional(),
|
|
19139
19166
|
projectBaseUrl: url.optional(),
|
|
19140
|
-
version:
|
|
19167
|
+
version: z147.string().optional(),
|
|
19141
19168
|
url: url.optional(),
|
|
19142
|
-
printBoardInformationToSilkscreen:
|
|
19143
|
-
includeBoardFiles:
|
|
19169
|
+
printBoardInformationToSilkscreen: z147.boolean().optional(),
|
|
19170
|
+
includeBoardFiles: z147.array(z147.string()).describe(
|
|
19144
19171
|
'The board files to automatically build with "tsci build", defaults to ["**/*.circuit.tsx"]. Can be an array of files or globs'
|
|
19145
19172
|
).optional(),
|
|
19146
|
-
snapshotsDir:
|
|
19173
|
+
snapshotsDir: z147.string().describe(
|
|
19147
19174
|
'The directory where snapshots are stored for "tsci snapshot", defaults to "tests/__snapshots__"'
|
|
19148
19175
|
).optional(),
|
|
19149
19176
|
defaultSpiceEngine: defaultSpiceEngine.optional(),
|
|
19150
|
-
unitPreference:
|
|
19177
|
+
unitPreference: z147.enum(["mm", "in", "mil"]).optional(),
|
|
19151
19178
|
localCacheEngine: localCacheEngine.optional(),
|
|
19152
|
-
enablePartOrientationAnalysis:
|
|
19153
|
-
pcbPackSolverTimeoutMs:
|
|
19154
|
-
pcbDisabled:
|
|
19155
|
-
routingDisabled:
|
|
19156
|
-
schematicDisabled:
|
|
19157
|
-
partsEngineDisabled:
|
|
19158
|
-
drcChecksDisabled:
|
|
19159
|
-
netlistDrcChecksDisabled:
|
|
19160
|
-
routingDrcChecksDisabled:
|
|
19161
|
-
placementDrcChecksDisabled:
|
|
19162
|
-
pinSpecificationDrcChecksDisabled:
|
|
19163
|
-
spiceEngineMap:
|
|
19164
|
-
footprintLibraryMap:
|
|
19165
|
-
|
|
19166
|
-
|
|
19179
|
+
enablePartOrientationAnalysis: z147.boolean().optional(),
|
|
19180
|
+
pcbPackSolverTimeoutMs: z147.number().finite().positive().optional(),
|
|
19181
|
+
pcbDisabled: z147.boolean().optional(),
|
|
19182
|
+
routingDisabled: z147.boolean().optional(),
|
|
19183
|
+
schematicDisabled: z147.boolean().optional(),
|
|
19184
|
+
partsEngineDisabled: z147.boolean().optional(),
|
|
19185
|
+
drcChecksDisabled: z147.boolean().optional(),
|
|
19186
|
+
netlistDrcChecksDisabled: z147.boolean().optional(),
|
|
19187
|
+
routingDrcChecksDisabled: z147.boolean().optional(),
|
|
19188
|
+
placementDrcChecksDisabled: z147.boolean().optional(),
|
|
19189
|
+
pinSpecificationDrcChecksDisabled: z147.boolean().optional(),
|
|
19190
|
+
spiceEngineMap: z147.record(z147.string(), spiceEngineZod).optional(),
|
|
19191
|
+
footprintLibraryMap: z147.record(
|
|
19192
|
+
z147.string(),
|
|
19193
|
+
z147.union([
|
|
19167
19194
|
pathToCircuitJsonFn,
|
|
19168
|
-
|
|
19169
|
-
|
|
19170
|
-
|
|
19195
|
+
z147.record(
|
|
19196
|
+
z147.string(),
|
|
19197
|
+
z147.union([unvalidatedCircuitJson, pathToCircuitJsonFn])
|
|
19171
19198
|
)
|
|
19172
19199
|
])
|
|
19173
19200
|
).optional(),
|
|
19174
|
-
footprintFileParserMap:
|
|
19175
|
-
resolveProjectStaticFileImportUrl:
|
|
19201
|
+
footprintFileParserMap: z147.record(z147.string(), footprintFileParserEntry).optional(),
|
|
19202
|
+
resolveProjectStaticFileImportUrl: z147.function().args(z147.string()).returns(z147.promise(z147.string())).describe(
|
|
19176
19203
|
"A function that returns a string URL for static files for the project"
|
|
19177
19204
|
).optional(),
|
|
19178
19205
|
platformFetch: platformFetch.optional()
|
|
@@ -19410,6 +19437,7 @@ export {
|
|
|
19410
19437
|
schematicBoxProps,
|
|
19411
19438
|
schematicCellProps,
|
|
19412
19439
|
schematicCircleProps,
|
|
19440
|
+
schematicGraphicProps,
|
|
19413
19441
|
schematicLineProps,
|
|
19414
19442
|
schematicOrientation,
|
|
19415
19443
|
schematicPathProps,
|