@tscircuit/props 0.0.554 → 0.0.556
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 +25 -2
- package/dist/index.d.ts +161 -88
- package/dist/index.js +133 -126
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +11 -1
- package/lib/components/ammeter.ts +8 -16
- package/lib/components/schematic-sheet.ts +18 -0
- package/lib/components/voltageprobe.ts +8 -16
- package/lib/index.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -439,6 +439,9 @@ var commonComponentProps = commonLayoutProps.merge(supplierProps).extend({
|
|
|
439
439
|
schSectionName: z16.string().optional().describe(
|
|
440
440
|
'This component will be drawn as part of this section e.g. "Power"'
|
|
441
441
|
),
|
|
442
|
+
schSheetName: z16.string().optional().describe(
|
|
443
|
+
'This component will be drawn as part of this sheet e.g. "Main"'
|
|
444
|
+
),
|
|
442
445
|
datasheetUrl: url.optional(),
|
|
443
446
|
cadModel: cadModelProp.optional(),
|
|
444
447
|
kicadFootprintMetadata: kicadFootprintMetadata.optional(),
|
|
@@ -17980,12 +17983,10 @@ var voltageProbeProps = commonComponentProps.omit({ name: true }).extend({
|
|
|
17980
17983
|
connectsTo: z102.string(),
|
|
17981
17984
|
referenceTo: z102.string().optional(),
|
|
17982
17985
|
color: z102.string().optional(),
|
|
17983
|
-
|
|
17984
|
-
|
|
17985
|
-
|
|
17986
|
-
|
|
17987
|
-
unitsPerDiv: z102.number().optional()
|
|
17988
|
-
}).optional()
|
|
17986
|
+
graphDisplayName: z102.string().optional(),
|
|
17987
|
+
graphCenter: z102.number().optional(),
|
|
17988
|
+
graphOffsetDivs: z102.number().optional(),
|
|
17989
|
+
graphUnitsPerDiv: z102.number().optional()
|
|
17989
17990
|
});
|
|
17990
17991
|
expectTypesMatch(true);
|
|
17991
17992
|
|
|
@@ -17995,19 +17996,16 @@ var ammeterPinLabels = ["pin1", "pin2", "pos", "neg"];
|
|
|
17995
17996
|
var hasAmmeterConnectionPair = (connections) => {
|
|
17996
17997
|
return connections.pos !== void 0 && connections.neg !== void 0 || connections.pin1 !== void 0 && connections.pin2 !== void 0;
|
|
17997
17998
|
};
|
|
17998
|
-
var ammeterDisplayOptions = z103.object({
|
|
17999
|
-
label: z103.string().optional(),
|
|
18000
|
-
center: z103.number().optional(),
|
|
18001
|
-
offsetDivs: z103.number().optional(),
|
|
18002
|
-
unitsPerDiv: z103.number().optional()
|
|
18003
|
-
});
|
|
18004
17999
|
var ammeterProps = commonComponentProps.extend({
|
|
18005
18000
|
connections: createConnectionsProp(ammeterPinLabels).refine(
|
|
18006
18001
|
hasAmmeterConnectionPair,
|
|
18007
18002
|
"Ammeter connections must include either pos/neg or pin1/pin2"
|
|
18008
18003
|
),
|
|
18009
18004
|
color: z103.string().optional(),
|
|
18010
|
-
|
|
18005
|
+
graphDisplayName: z103.string().optional(),
|
|
18006
|
+
graphCenter: z103.number().optional(),
|
|
18007
|
+
graphOffsetDivs: z103.number().optional(),
|
|
18008
|
+
graphUnitsPerDiv: z103.number().optional()
|
|
18011
18009
|
});
|
|
18012
18010
|
var ammeterPins = ammeterPinLabels;
|
|
18013
18011
|
expectTypesMatch(true);
|
|
@@ -18207,42 +18205,51 @@ expectTypesMatch(
|
|
|
18207
18205
|
true
|
|
18208
18206
|
);
|
|
18209
18207
|
|
|
18208
|
+
// lib/components/schematic-sheet.ts
|
|
18209
|
+
import { z as z117 } from "zod";
|
|
18210
|
+
var schematicSheetProps = z117.object({
|
|
18211
|
+
name: z117.string(),
|
|
18212
|
+
displayName: z117.string(),
|
|
18213
|
+
children: z117.any().optional()
|
|
18214
|
+
});
|
|
18215
|
+
expectTypesMatch(true);
|
|
18216
|
+
|
|
18210
18217
|
// lib/components/copper-text.ts
|
|
18211
18218
|
import { layer_ref as layer_ref10, length as length8 } from "circuit-json";
|
|
18212
|
-
import { z as
|
|
18219
|
+
import { z as z118 } from "zod";
|
|
18213
18220
|
var copperTextProps = pcbLayoutProps.extend({
|
|
18214
|
-
text:
|
|
18221
|
+
text: z118.string(),
|
|
18215
18222
|
anchorAlignment: ninePointAnchor.default("center"),
|
|
18216
|
-
font:
|
|
18223
|
+
font: z118.enum(["tscircuit2024"]).optional(),
|
|
18217
18224
|
fontSize: length8.optional(),
|
|
18218
|
-
layers:
|
|
18219
|
-
knockout:
|
|
18220
|
-
mirrored:
|
|
18225
|
+
layers: z118.array(layer_ref10).optional(),
|
|
18226
|
+
knockout: z118.boolean().optional(),
|
|
18227
|
+
mirrored: z118.boolean().optional()
|
|
18221
18228
|
});
|
|
18222
18229
|
|
|
18223
18230
|
// lib/components/silkscreen-text.ts
|
|
18224
18231
|
import { layer_ref as layer_ref11, length as length9 } from "circuit-json";
|
|
18225
|
-
import { z as
|
|
18232
|
+
import { z as z119 } from "zod";
|
|
18226
18233
|
var silkscreenTextProps = pcbLayoutProps.extend({
|
|
18227
|
-
text:
|
|
18234
|
+
text: z119.string(),
|
|
18228
18235
|
anchorAlignment: ninePointAnchor.default("center"),
|
|
18229
|
-
font:
|
|
18236
|
+
font: z119.enum(["tscircuit2024"]).optional(),
|
|
18230
18237
|
fontSize: length9.optional(),
|
|
18231
18238
|
/**
|
|
18232
18239
|
* If true, text will knock out underlying silkscreen
|
|
18233
18240
|
*/
|
|
18234
|
-
isKnockout:
|
|
18241
|
+
isKnockout: z119.boolean().optional(),
|
|
18235
18242
|
knockoutPadding: length9.optional(),
|
|
18236
18243
|
knockoutPaddingLeft: length9.optional(),
|
|
18237
18244
|
knockoutPaddingRight: length9.optional(),
|
|
18238
18245
|
knockoutPaddingTop: length9.optional(),
|
|
18239
18246
|
knockoutPaddingBottom: length9.optional(),
|
|
18240
|
-
layers:
|
|
18247
|
+
layers: z119.array(layer_ref11).optional()
|
|
18241
18248
|
});
|
|
18242
18249
|
|
|
18243
18250
|
// lib/components/silkscreen-path.ts
|
|
18244
18251
|
import { length as length10, route_hint_point as route_hint_point5 } from "circuit-json";
|
|
18245
|
-
import { z as
|
|
18252
|
+
import { z as z120 } from "zod";
|
|
18246
18253
|
var silkscreenPathProps = pcbLayoutProps.omit({
|
|
18247
18254
|
pcbLeftEdgeX: true,
|
|
18248
18255
|
pcbRightEdgeX: true,
|
|
@@ -18254,7 +18261,7 @@ var silkscreenPathProps = pcbLayoutProps.omit({
|
|
|
18254
18261
|
pcbOffsetY: true,
|
|
18255
18262
|
pcbRotation: true
|
|
18256
18263
|
}).extend({
|
|
18257
|
-
route:
|
|
18264
|
+
route: z120.array(route_hint_point5),
|
|
18258
18265
|
strokeWidth: length10.optional()
|
|
18259
18266
|
});
|
|
18260
18267
|
|
|
@@ -18276,10 +18283,10 @@ var silkscreenLineProps = pcbLayoutProps.omit({
|
|
|
18276
18283
|
|
|
18277
18284
|
// lib/components/silkscreen-rect.ts
|
|
18278
18285
|
import { distance as distance41 } from "circuit-json";
|
|
18279
|
-
import { z as
|
|
18286
|
+
import { z as z121 } from "zod";
|
|
18280
18287
|
var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18281
|
-
filled:
|
|
18282
|
-
stroke:
|
|
18288
|
+
filled: z121.boolean().default(true).optional(),
|
|
18289
|
+
stroke: z121.enum(["dashed", "solid", "none"]).optional(),
|
|
18283
18290
|
strokeWidth: distance41.optional(),
|
|
18284
18291
|
width: distance41,
|
|
18285
18292
|
height: distance41,
|
|
@@ -18288,10 +18295,10 @@ var silkscreenRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
|
18288
18295
|
|
|
18289
18296
|
// lib/components/silkscreen-circle.ts
|
|
18290
18297
|
import { distance as distance42 } from "circuit-json";
|
|
18291
|
-
import { z as
|
|
18298
|
+
import { z as z122 } from "zod";
|
|
18292
18299
|
var silkscreenCircleProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18293
|
-
isFilled:
|
|
18294
|
-
isOutline:
|
|
18300
|
+
isFilled: z122.boolean().optional(),
|
|
18301
|
+
isOutline: z122.boolean().optional(),
|
|
18295
18302
|
strokeWidth: distance42.optional(),
|
|
18296
18303
|
radius: distance42
|
|
18297
18304
|
});
|
|
@@ -18309,63 +18316,63 @@ expectTypesMatch(true);
|
|
|
18309
18316
|
|
|
18310
18317
|
// lib/components/trace-hint.ts
|
|
18311
18318
|
import { distance as distance43, layer_ref as layer_ref12, route_hint_point as route_hint_point6 } from "circuit-json";
|
|
18312
|
-
import { z as
|
|
18313
|
-
var routeHintPointProps =
|
|
18319
|
+
import { z as z124 } from "zod";
|
|
18320
|
+
var routeHintPointProps = z124.object({
|
|
18314
18321
|
x: distance43,
|
|
18315
18322
|
y: distance43,
|
|
18316
|
-
via:
|
|
18323
|
+
via: z124.boolean().optional(),
|
|
18317
18324
|
toLayer: layer_ref12.optional()
|
|
18318
18325
|
});
|
|
18319
|
-
var traceHintProps =
|
|
18320
|
-
for:
|
|
18326
|
+
var traceHintProps = z124.object({
|
|
18327
|
+
for: z124.string().optional().describe(
|
|
18321
18328
|
"Selector for the port you're targeting, not required if you're inside a trace"
|
|
18322
18329
|
),
|
|
18323
|
-
order:
|
|
18330
|
+
order: z124.number().optional(),
|
|
18324
18331
|
offset: route_hint_point6.or(routeHintPointProps).optional(),
|
|
18325
|
-
offsets:
|
|
18326
|
-
traceWidth:
|
|
18332
|
+
offsets: z124.array(route_hint_point6).or(z124.array(routeHintPointProps)).optional(),
|
|
18333
|
+
traceWidth: z124.number().optional()
|
|
18327
18334
|
});
|
|
18328
18335
|
|
|
18329
18336
|
// lib/components/port.ts
|
|
18330
|
-
import { z as
|
|
18337
|
+
import { z as z125 } from "zod";
|
|
18331
18338
|
var portProps = commonLayoutProps.extend({
|
|
18332
|
-
name:
|
|
18333
|
-
pinNumber:
|
|
18334
|
-
schStemLength:
|
|
18335
|
-
aliases:
|
|
18336
|
-
layer:
|
|
18337
|
-
layers:
|
|
18338
|
-
schX:
|
|
18339
|
-
schY:
|
|
18339
|
+
name: z125.string().optional(),
|
|
18340
|
+
pinNumber: z125.number().optional(),
|
|
18341
|
+
schStemLength: z125.number().optional(),
|
|
18342
|
+
aliases: z125.array(z125.string()).optional(),
|
|
18343
|
+
layer: z125.string().optional(),
|
|
18344
|
+
layers: z125.array(z125.string()).optional(),
|
|
18345
|
+
schX: z125.number().optional(),
|
|
18346
|
+
schY: z125.number().optional(),
|
|
18340
18347
|
direction: direction.optional(),
|
|
18341
|
-
connectsTo:
|
|
18348
|
+
connectsTo: z125.string().or(z125.array(z125.string())).optional(),
|
|
18342
18349
|
kicadPinMetadata: kicadPinMetadata.optional(),
|
|
18343
|
-
hasInversionCircle:
|
|
18350
|
+
hasInversionCircle: z125.boolean().optional()
|
|
18344
18351
|
});
|
|
18345
18352
|
|
|
18346
18353
|
// lib/components/pcb-note-text.ts
|
|
18347
18354
|
import { length as length11 } from "circuit-json";
|
|
18348
|
-
import { z as
|
|
18355
|
+
import { z as z126 } from "zod";
|
|
18349
18356
|
var pcbNoteTextProps = pcbLayoutProps.extend({
|
|
18350
|
-
text:
|
|
18351
|
-
anchorAlignment:
|
|
18352
|
-
font:
|
|
18357
|
+
text: z126.string(),
|
|
18358
|
+
anchorAlignment: z126.enum(["center", "top_left", "top_right", "bottom_left", "bottom_right"]).default("center"),
|
|
18359
|
+
font: z126.enum(["tscircuit2024"]).optional(),
|
|
18353
18360
|
fontSize: length11.optional(),
|
|
18354
|
-
color:
|
|
18361
|
+
color: z126.string().optional()
|
|
18355
18362
|
});
|
|
18356
18363
|
expectTypesMatch(true);
|
|
18357
18364
|
|
|
18358
18365
|
// lib/components/pcb-note-rect.ts
|
|
18359
18366
|
import { distance as distance44 } from "circuit-json";
|
|
18360
|
-
import { z as
|
|
18367
|
+
import { z as z127 } from "zod";
|
|
18361
18368
|
var pcbNoteRectProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
18362
18369
|
width: distance44,
|
|
18363
18370
|
height: distance44,
|
|
18364
18371
|
strokeWidth: distance44.optional(),
|
|
18365
|
-
isFilled:
|
|
18366
|
-
hasStroke:
|
|
18367
|
-
isStrokeDashed:
|
|
18368
|
-
color:
|
|
18372
|
+
isFilled: z127.boolean().optional(),
|
|
18373
|
+
hasStroke: z127.boolean().optional(),
|
|
18374
|
+
isStrokeDashed: z127.boolean().optional(),
|
|
18375
|
+
color: z127.string().optional(),
|
|
18369
18376
|
cornerRadius: distance44.optional()
|
|
18370
18377
|
});
|
|
18371
18378
|
expectTypesMatch(true);
|
|
@@ -18375,7 +18382,7 @@ import {
|
|
|
18375
18382
|
length as length12,
|
|
18376
18383
|
route_hint_point as route_hint_point7
|
|
18377
18384
|
} from "circuit-json";
|
|
18378
|
-
import { z as
|
|
18385
|
+
import { z as z128 } from "zod";
|
|
18379
18386
|
var pcbNotePathProps = pcbLayoutProps.omit({
|
|
18380
18387
|
pcbLeftEdgeX: true,
|
|
18381
18388
|
pcbRightEdgeX: true,
|
|
@@ -18387,15 +18394,15 @@ var pcbNotePathProps = pcbLayoutProps.omit({
|
|
|
18387
18394
|
pcbOffsetY: true,
|
|
18388
18395
|
pcbRotation: true
|
|
18389
18396
|
}).extend({
|
|
18390
|
-
route:
|
|
18397
|
+
route: z128.array(route_hint_point7),
|
|
18391
18398
|
strokeWidth: length12.optional(),
|
|
18392
|
-
color:
|
|
18399
|
+
color: z128.string().optional()
|
|
18393
18400
|
});
|
|
18394
18401
|
expectTypesMatch(true);
|
|
18395
18402
|
|
|
18396
18403
|
// lib/components/pcb-note-line.ts
|
|
18397
18404
|
import { distance as distance45 } from "circuit-json";
|
|
18398
|
-
import { z as
|
|
18405
|
+
import { z as z129 } from "zod";
|
|
18399
18406
|
var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
18400
18407
|
pcbLeftEdgeX: true,
|
|
18401
18408
|
pcbRightEdgeX: true,
|
|
@@ -18412,15 +18419,15 @@ var pcbNoteLineProps = pcbLayoutProps.omit({
|
|
|
18412
18419
|
x2: distance45,
|
|
18413
18420
|
y2: distance45,
|
|
18414
18421
|
strokeWidth: distance45.optional(),
|
|
18415
|
-
color:
|
|
18416
|
-
isDashed:
|
|
18422
|
+
color: z129.string().optional(),
|
|
18423
|
+
isDashed: z129.boolean().optional()
|
|
18417
18424
|
});
|
|
18418
18425
|
expectTypesMatch(true);
|
|
18419
18426
|
|
|
18420
18427
|
// lib/components/pcb-note-dimension.ts
|
|
18421
18428
|
import { distance as distance46, length as length13 } from "circuit-json";
|
|
18422
|
-
import { z as
|
|
18423
|
-
var dimensionTarget2 =
|
|
18429
|
+
import { z as z130 } from "zod";
|
|
18430
|
+
var dimensionTarget2 = z130.union([z130.string(), point]);
|
|
18424
18431
|
var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
18425
18432
|
pcbLeftEdgeX: true,
|
|
18426
18433
|
pcbRightEdgeX: true,
|
|
@@ -18434,101 +18441,101 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
18434
18441
|
}).extend({
|
|
18435
18442
|
from: dimensionTarget2,
|
|
18436
18443
|
to: dimensionTarget2,
|
|
18437
|
-
text:
|
|
18444
|
+
text: z130.string().optional(),
|
|
18438
18445
|
offset: distance46.optional(),
|
|
18439
|
-
font:
|
|
18446
|
+
font: z130.enum(["tscircuit2024"]).optional(),
|
|
18440
18447
|
fontSize: length13.optional(),
|
|
18441
|
-
color:
|
|
18448
|
+
color: z130.string().optional(),
|
|
18442
18449
|
arrowSize: distance46.optional(),
|
|
18443
|
-
units:
|
|
18444
|
-
outerEdgeToEdge:
|
|
18445
|
-
centerToCenter:
|
|
18446
|
-
innerEdgeToEdge:
|
|
18450
|
+
units: z130.enum(["in", "mm"]).optional(),
|
|
18451
|
+
outerEdgeToEdge: z130.literal(true).optional(),
|
|
18452
|
+
centerToCenter: z130.literal(true).optional(),
|
|
18453
|
+
innerEdgeToEdge: z130.literal(true).optional()
|
|
18447
18454
|
});
|
|
18448
18455
|
expectTypesMatch(
|
|
18449
18456
|
true
|
|
18450
18457
|
);
|
|
18451
18458
|
|
|
18452
18459
|
// lib/platformConfig.ts
|
|
18453
|
-
import { z as
|
|
18454
|
-
var unvalidatedCircuitJson =
|
|
18455
|
-
var footprintLibraryResult =
|
|
18456
|
-
footprintCircuitJson:
|
|
18460
|
+
import { z as z131 } from "zod";
|
|
18461
|
+
var unvalidatedCircuitJson = z131.array(z131.any()).describe("Circuit JSON");
|
|
18462
|
+
var footprintLibraryResult = z131.object({
|
|
18463
|
+
footprintCircuitJson: z131.array(z131.any()),
|
|
18457
18464
|
cadModel: cadModelProp.optional()
|
|
18458
18465
|
});
|
|
18459
|
-
var pathToCircuitJsonFn =
|
|
18460
|
-
|
|
18461
|
-
|
|
18462
|
-
|
|
18463
|
-
).returns(
|
|
18466
|
+
var pathToCircuitJsonFn = z131.function().args(z131.string()).returns(z131.promise(footprintLibraryResult)).or(
|
|
18467
|
+
z131.function().args(
|
|
18468
|
+
z131.string(),
|
|
18469
|
+
z131.object({ resolvedPcbStyle: pcbStyle.optional() }).optional()
|
|
18470
|
+
).returns(z131.promise(footprintLibraryResult))
|
|
18464
18471
|
).describe("A function that takes a path and returns Circuit JSON");
|
|
18465
|
-
var footprintFileParserEntry =
|
|
18466
|
-
loadFromUrl:
|
|
18472
|
+
var footprintFileParserEntry = z131.object({
|
|
18473
|
+
loadFromUrl: z131.function().args(z131.string()).returns(z131.promise(footprintLibraryResult)).describe(
|
|
18467
18474
|
"A function that takes a footprint file URL and returns Circuit JSON"
|
|
18468
18475
|
)
|
|
18469
18476
|
});
|
|
18470
|
-
var spiceEngineSimulationResult =
|
|
18471
|
-
engineVersionString:
|
|
18477
|
+
var spiceEngineSimulationResult = z131.object({
|
|
18478
|
+
engineVersionString: z131.string().optional(),
|
|
18472
18479
|
simulationResultCircuitJson: unvalidatedCircuitJson
|
|
18473
18480
|
});
|
|
18474
|
-
var spiceEngineZod =
|
|
18475
|
-
simulate:
|
|
18481
|
+
var spiceEngineZod = z131.object({
|
|
18482
|
+
simulate: z131.function().args(z131.string()).returns(z131.promise(spiceEngineSimulationResult)).describe(
|
|
18476
18483
|
"A function that takes a SPICE string and returns a simulation result"
|
|
18477
18484
|
)
|
|
18478
18485
|
});
|
|
18479
|
-
var defaultSpiceEngine =
|
|
18486
|
+
var defaultSpiceEngine = z131.custom(
|
|
18480
18487
|
(value) => typeof value === "string"
|
|
18481
18488
|
);
|
|
18482
|
-
var autorouterInstance =
|
|
18483
|
-
run:
|
|
18484
|
-
getOutputSimpleRouteJson:
|
|
18489
|
+
var autorouterInstance = z131.object({
|
|
18490
|
+
run: z131.function().args().returns(z131.promise(z131.unknown())).describe("Run the autorouter"),
|
|
18491
|
+
getOutputSimpleRouteJson: z131.function().args().returns(z131.promise(z131.any())).describe("Get the resulting SimpleRouteJson")
|
|
18485
18492
|
});
|
|
18486
|
-
var autorouterDefinition =
|
|
18487
|
-
createAutorouter:
|
|
18493
|
+
var autorouterDefinition = z131.object({
|
|
18494
|
+
createAutorouter: z131.function().args(z131.any(), z131.any().optional()).returns(z131.union([autorouterInstance, z131.promise(autorouterInstance)])).describe("Create an autorouter instance")
|
|
18488
18495
|
});
|
|
18489
|
-
var platformFetch =
|
|
18490
|
-
var platformConfig =
|
|
18496
|
+
var platformFetch = z131.custom((value) => typeof value === "function").describe("A fetch-like function to use for platform requests");
|
|
18497
|
+
var platformConfig = z131.object({
|
|
18491
18498
|
partsEngine: partsEngine.optional(),
|
|
18492
18499
|
autorouter: autorouterProp.optional(),
|
|
18493
|
-
autorouterMap:
|
|
18500
|
+
autorouterMap: z131.record(z131.string(), autorouterDefinition).optional(),
|
|
18494
18501
|
registryApiUrl: url.optional(),
|
|
18495
18502
|
cloudAutorouterUrl: url.optional(),
|
|
18496
|
-
projectName:
|
|
18503
|
+
projectName: z131.string().optional(),
|
|
18497
18504
|
projectBaseUrl: url.optional(),
|
|
18498
|
-
version:
|
|
18505
|
+
version: z131.string().optional(),
|
|
18499
18506
|
url: url.optional(),
|
|
18500
|
-
printBoardInformationToSilkscreen:
|
|
18501
|
-
includeBoardFiles:
|
|
18507
|
+
printBoardInformationToSilkscreen: z131.boolean().optional(),
|
|
18508
|
+
includeBoardFiles: z131.array(z131.string()).describe(
|
|
18502
18509
|
'The board files to automatically build with "tsci build", defaults to ["**/*.circuit.tsx"]. Can be an array of files or globs'
|
|
18503
18510
|
).optional(),
|
|
18504
|
-
snapshotsDir:
|
|
18511
|
+
snapshotsDir: z131.string().describe(
|
|
18505
18512
|
'The directory where snapshots are stored for "tsci snapshot", defaults to "tests/__snapshots__"'
|
|
18506
18513
|
).optional(),
|
|
18507
18514
|
defaultSpiceEngine: defaultSpiceEngine.optional(),
|
|
18508
|
-
unitPreference:
|
|
18509
|
-
localCacheEngine:
|
|
18510
|
-
pcbDisabled:
|
|
18511
|
-
routingDisabled:
|
|
18512
|
-
schematicDisabled:
|
|
18513
|
-
partsEngineDisabled:
|
|
18514
|
-
drcChecksDisabled:
|
|
18515
|
-
netlistDrcChecksDisabled:
|
|
18516
|
-
routingDrcChecksDisabled:
|
|
18517
|
-
placementDrcChecksDisabled:
|
|
18518
|
-
pinSpecificationDrcChecksDisabled:
|
|
18519
|
-
spiceEngineMap:
|
|
18520
|
-
footprintLibraryMap:
|
|
18521
|
-
|
|
18522
|
-
|
|
18515
|
+
unitPreference: z131.enum(["mm", "in", "mil"]).optional(),
|
|
18516
|
+
localCacheEngine: z131.any().optional(),
|
|
18517
|
+
pcbDisabled: z131.boolean().optional(),
|
|
18518
|
+
routingDisabled: z131.boolean().optional(),
|
|
18519
|
+
schematicDisabled: z131.boolean().optional(),
|
|
18520
|
+
partsEngineDisabled: z131.boolean().optional(),
|
|
18521
|
+
drcChecksDisabled: z131.boolean().optional(),
|
|
18522
|
+
netlistDrcChecksDisabled: z131.boolean().optional(),
|
|
18523
|
+
routingDrcChecksDisabled: z131.boolean().optional(),
|
|
18524
|
+
placementDrcChecksDisabled: z131.boolean().optional(),
|
|
18525
|
+
pinSpecificationDrcChecksDisabled: z131.boolean().optional(),
|
|
18526
|
+
spiceEngineMap: z131.record(z131.string(), spiceEngineZod).optional(),
|
|
18527
|
+
footprintLibraryMap: z131.record(
|
|
18528
|
+
z131.string(),
|
|
18529
|
+
z131.union([
|
|
18523
18530
|
pathToCircuitJsonFn,
|
|
18524
|
-
|
|
18525
|
-
|
|
18526
|
-
|
|
18531
|
+
z131.record(
|
|
18532
|
+
z131.string(),
|
|
18533
|
+
z131.union([unvalidatedCircuitJson, pathToCircuitJsonFn])
|
|
18527
18534
|
)
|
|
18528
18535
|
])
|
|
18529
18536
|
).optional(),
|
|
18530
|
-
footprintFileParserMap:
|
|
18531
|
-
resolveProjectStaticFileImportUrl:
|
|
18537
|
+
footprintFileParserMap: z131.record(z131.string(), footprintFileParserEntry).optional(),
|
|
18538
|
+
resolveProjectStaticFileImportUrl: z131.function().args(z131.string()).returns(z131.promise(z131.string())).describe(
|
|
18532
18539
|
"A function that returns a string URL for static files for the project"
|
|
18533
18540
|
).optional(),
|
|
18534
18541
|
platformFetch: platformFetch.optional()
|
|
@@ -18550,7 +18557,6 @@ var projectConfig = platformConfigObject.pick({
|
|
|
18550
18557
|
});
|
|
18551
18558
|
expectTypesMatch(true);
|
|
18552
18559
|
export {
|
|
18553
|
-
ammeterDisplayOptions,
|
|
18554
18560
|
ammeterPinLabels,
|
|
18555
18561
|
ammeterPins,
|
|
18556
18562
|
ammeterProps,
|
|
@@ -18741,6 +18747,7 @@ export {
|
|
|
18741
18747
|
schematicRectProps,
|
|
18742
18748
|
schematicRowProps,
|
|
18743
18749
|
schematicSectionProps,
|
|
18750
|
+
schematicSheetProps,
|
|
18744
18751
|
schematicSymbolSize,
|
|
18745
18752
|
schematicTableProps,
|
|
18746
18753
|
schematicTextProps,
|