@tscircuit/core 0.0.1095 → 0.0.1097
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/dist/index.d.ts +370 -363
- package/dist/index.js +45 -17
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as circuit_json from 'circuit-json';
|
|
2
2
|
import { PcbTraceError, PcbPlacementError, PcbManualEditConflictWarning, PcbViaClearanceError, LayerRef, AnyCircuitElement, Size, AnySourceComponent, PcbTraceRoutePoint, PcbTrace as PcbTrace$1, PcbVia, SchematicPort, SchematicComponent, RouteHintPoint, CircuitJson } from 'circuit-json';
|
|
3
3
|
import * as _tscircuit_props from '@tscircuit/props';
|
|
4
|
-
import { PlatformConfig, subcircuitGroupProps, AutorouterConfig, PcbSx, traceProps, SupplierPartNumbers, CadModelProp, SchematicPortArrangement, groupProps, boardProps, subcircuitProps,
|
|
4
|
+
import { PlatformConfig, subcircuitGroupProps, AutorouterConfig, PcbSx, traceProps, SupplierPartNumbers, CadModelProp, SchematicPortArrangement, groupProps, boardProps, subcircuitProps, subpanelProps, capacitorProps, chipProps, pinoutProps, diodeProps, fuseProps, jumperProps, interconnectProps, solderjumperProps, ledProps, powerSourceProps, voltageSourceProps, currentSourceProps, resistorProps, constraintProps, fabricationNoteRectProps, fabricationNotePathProps, fabricationNoteTextProps, fabricationNoteDimensionProps, pcbNoteLineProps, pcbNoteRectProps, pcbNoteTextProps, pcbNotePathProps, pcbNoteDimensionProps, footprintProps, breakoutProps, breakoutPointProps, holeProps, pcbKeepoutProps, netLabelProps, cadmodelProps, cadassemblyProps, platedHoleProps, courtyardCircleProps, courtyardOutlineProps, courtyardRectProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, fiducialProps, traceHintProps, viaProps, copperPourProps, copperTextProps, cutoutProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, opampProps, OpAmpPinLabels, switchProps, SwitchProps, testpointProps, schematicTextProps, schematicLineProps, schematicRectProps, schematicArcProps, schematicCircleProps, schematicPathProps, schematicBoxProps, schematicTableProps, schematicRowProps, schematicCellProps, symbolProps, analogSimulationProps, voltageProbeProps, CapacitorProps, ChipProps, DiodeProps, ResistorProps, ManualEditEvent, ManualEditsFile, ChipConnections, manual_edits_file } from '@tscircuit/props';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import react__default, { ReactElement, DetailedHTMLProps, SVGProps } from 'react';
|
|
7
7
|
export { createElement } from 'react';
|
|
@@ -3360,46 +3360,45 @@ declare class Subcircuit extends Group<typeof subcircuitProps> implements Subcir
|
|
|
3360
3360
|
doInitialInflateSubcircuitCircuitJson(): void;
|
|
3361
3361
|
}
|
|
3362
3362
|
|
|
3363
|
-
declare class MountedBoard extends Subcircuit {
|
|
3363
|
+
declare class MountedBoard extends Subcircuit implements BoardI {
|
|
3364
3364
|
pcb_board_id: string | null;
|
|
3365
|
-
constructor(props: z.input<typeof mountedboardProps>);
|
|
3366
3365
|
get config(): {
|
|
3367
3366
|
componentName: string;
|
|
3368
|
-
zodProps:
|
|
3369
|
-
pcbX:
|
|
3370
|
-
pcbY:
|
|
3371
|
-
pcbLeftEdgeX:
|
|
3372
|
-
pcbRightEdgeX:
|
|
3373
|
-
pcbTopEdgeY:
|
|
3374
|
-
pcbBottomEdgeY:
|
|
3375
|
-
pcbOffsetX:
|
|
3376
|
-
pcbOffsetY:
|
|
3377
|
-
pcbRotation:
|
|
3378
|
-
pcbPositionAnchor:
|
|
3379
|
-
pcbPositionMode:
|
|
3380
|
-
shouldBeOnEdgeOfBoard:
|
|
3381
|
-
pcbMarginTop:
|
|
3382
|
-
pcbMarginRight:
|
|
3383
|
-
pcbMarginBottom:
|
|
3384
|
-
pcbMarginLeft:
|
|
3385
|
-
pcbMarginX:
|
|
3386
|
-
pcbMarginY:
|
|
3387
|
-
pcbStyle:
|
|
3388
|
-
silkscreenFontSize:
|
|
3389
|
-
viaPadDiameter:
|
|
3390
|
-
viaHoleDiameter:
|
|
3391
|
-
silkscreenTextPosition:
|
|
3392
|
-
offsetX:
|
|
3393
|
-
offsetY:
|
|
3394
|
-
}, "strip",
|
|
3367
|
+
zodProps: zod.ZodObject<{
|
|
3368
|
+
pcbX: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>]>>;
|
|
3369
|
+
pcbY: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>]>>;
|
|
3370
|
+
pcbLeftEdgeX: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>]>>;
|
|
3371
|
+
pcbRightEdgeX: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>]>>;
|
|
3372
|
+
pcbTopEdgeY: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>]>>;
|
|
3373
|
+
pcbBottomEdgeY: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>]>>;
|
|
3374
|
+
pcbOffsetX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3375
|
+
pcbOffsetY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3376
|
+
pcbRotation: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3377
|
+
pcbPositionAnchor: zod.ZodOptional<zod.ZodString>;
|
|
3378
|
+
pcbPositionMode: zod.ZodOptional<zod.ZodEnum<["relative_to_group_anchor", "auto", "relative_to_board_anchor", "relative_to_component_anchor"]>>;
|
|
3379
|
+
shouldBeOnEdgeOfBoard: zod.ZodOptional<zod.ZodBoolean>;
|
|
3380
|
+
pcbMarginTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3381
|
+
pcbMarginRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3382
|
+
pcbMarginBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3383
|
+
pcbMarginLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3384
|
+
pcbMarginX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3385
|
+
pcbMarginY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3386
|
+
pcbStyle: zod.ZodOptional<zod.ZodObject<{
|
|
3387
|
+
silkscreenFontSize: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3388
|
+
viaPadDiameter: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3389
|
+
viaHoleDiameter: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3390
|
+
silkscreenTextPosition: zod.ZodOptional<zod.ZodUnion<[zod.ZodEnum<["centered", "outside", "none"]>, zod.ZodObject<{
|
|
3391
|
+
offsetX: zod.ZodNumber;
|
|
3392
|
+
offsetY: zod.ZodNumber;
|
|
3393
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3395
3394
|
offsetX: number;
|
|
3396
3395
|
offsetY: number;
|
|
3397
3396
|
}, {
|
|
3398
3397
|
offsetX: number;
|
|
3399
3398
|
offsetY: number;
|
|
3400
3399
|
}>]>>;
|
|
3401
|
-
silkscreenTextVisibility:
|
|
3402
|
-
}, "strip",
|
|
3400
|
+
silkscreenTextVisibility: zod.ZodOptional<zod.ZodEnum<["hidden", "visible", "inherit"]>>;
|
|
3401
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3403
3402
|
silkscreenFontSize?: number | undefined;
|
|
3404
3403
|
viaPadDiameter?: number | undefined;
|
|
3405
3404
|
viaHoleDiameter?: number | undefined;
|
|
@@ -3418,118 +3417,118 @@ declare class MountedBoard extends Subcircuit {
|
|
|
3418
3417
|
} | undefined;
|
|
3419
3418
|
silkscreenTextVisibility?: "hidden" | "visible" | "inherit" | undefined;
|
|
3420
3419
|
}>>;
|
|
3421
|
-
pcbSx:
|
|
3422
|
-
schMarginTop:
|
|
3423
|
-
schMarginRight:
|
|
3424
|
-
schMarginBottom:
|
|
3425
|
-
schMarginLeft:
|
|
3426
|
-
schMarginX:
|
|
3427
|
-
schMarginY:
|
|
3428
|
-
schX:
|
|
3429
|
-
schY:
|
|
3430
|
-
schRotation:
|
|
3431
|
-
layer:
|
|
3432
|
-
name:
|
|
3433
|
-
}, "strip",
|
|
3420
|
+
pcbSx: zod.ZodOptional<zod.ZodType<_tscircuit_props.PcbSx, zod.ZodTypeDef, _tscircuit_props.PcbSx>>;
|
|
3421
|
+
schMarginTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3422
|
+
schMarginRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3423
|
+
schMarginBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3424
|
+
schMarginLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3425
|
+
schMarginX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3426
|
+
schMarginY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3427
|
+
schX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3428
|
+
schY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3429
|
+
schRotation: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3430
|
+
layer: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
|
|
3431
|
+
name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
3432
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3434
3433
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3435
3434
|
}, {
|
|
3436
3435
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3437
3436
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
3438
3437
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3439
3438
|
}>>;
|
|
3440
|
-
footprint:
|
|
3441
|
-
symbol:
|
|
3442
|
-
schStyle:
|
|
3443
|
-
defaultPassiveSize:
|
|
3444
|
-
defaultCapacitorOrientation:
|
|
3445
|
-
}, "strip",
|
|
3439
|
+
footprint: zod.ZodOptional<zod.ZodType<_tscircuit_props.FootprintProp, zod.ZodTypeDef, _tscircuit_props.FootprintProp>>;
|
|
3440
|
+
symbol: zod.ZodOptional<zod.ZodType<_tscircuit_props.SymbolProp, zod.ZodTypeDef, _tscircuit_props.SymbolProp>>;
|
|
3441
|
+
schStyle: zod.ZodOptional<zod.ZodObject<{
|
|
3442
|
+
defaultPassiveSize: zod.ZodOptional<zod.ZodUnion<[zod.ZodEnum<["xs", "sm", "md"]>, zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>]>>;
|
|
3443
|
+
defaultCapacitorOrientation: zod.ZodOptional<zod.ZodEnum<["vertical", "none"]>>;
|
|
3444
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3446
3445
|
defaultPassiveSize?: number | "xs" | "sm" | "md" | undefined;
|
|
3447
3446
|
defaultCapacitorOrientation?: "none" | "vertical" | undefined;
|
|
3448
3447
|
}, {
|
|
3449
3448
|
defaultPassiveSize?: string | number | undefined;
|
|
3450
3449
|
defaultCapacitorOrientation?: "none" | "vertical" | undefined;
|
|
3451
3450
|
}>>;
|
|
3452
|
-
relative:
|
|
3453
|
-
schRelative:
|
|
3454
|
-
pcbRelative:
|
|
3455
|
-
grid:
|
|
3456
|
-
flex:
|
|
3457
|
-
pcbGrid:
|
|
3458
|
-
pcbGridCols:
|
|
3459
|
-
pcbGridRows:
|
|
3460
|
-
pcbGridTemplateRows:
|
|
3461
|
-
pcbGridTemplateColumns:
|
|
3462
|
-
pcbGridTemplate:
|
|
3463
|
-
pcbGridGap:
|
|
3464
|
-
pcbGridRowGap:
|
|
3465
|
-
pcbGridColumnGap:
|
|
3466
|
-
pcbFlex:
|
|
3467
|
-
pcbFlexGap:
|
|
3468
|
-
pcbFlexDirection:
|
|
3469
|
-
pcbAlignItems:
|
|
3470
|
-
pcbJustifyContent:
|
|
3471
|
-
pcbFlexRow:
|
|
3472
|
-
pcbFlexColumn:
|
|
3473
|
-
pcbGap:
|
|
3474
|
-
pcbPack:
|
|
3475
|
-
pcbPackGap:
|
|
3476
|
-
schGrid:
|
|
3477
|
-
schGridCols:
|
|
3478
|
-
schGridRows:
|
|
3479
|
-
schGridTemplateRows:
|
|
3480
|
-
schGridTemplateColumns:
|
|
3481
|
-
schGridTemplate:
|
|
3482
|
-
schGridGap:
|
|
3483
|
-
schGridRowGap:
|
|
3484
|
-
schGridColumnGap:
|
|
3485
|
-
schFlex:
|
|
3486
|
-
schFlexGap:
|
|
3487
|
-
schFlexDirection:
|
|
3488
|
-
schAlignItems:
|
|
3489
|
-
schJustifyContent:
|
|
3490
|
-
schFlexRow:
|
|
3491
|
-
schFlexColumn:
|
|
3492
|
-
schGap:
|
|
3493
|
-
schPack:
|
|
3494
|
-
schMatchAdapt:
|
|
3495
|
-
pcbWidth:
|
|
3496
|
-
pcbHeight:
|
|
3497
|
-
schWidth:
|
|
3498
|
-
schHeight:
|
|
3499
|
-
pcbLayout:
|
|
3500
|
-
layoutMode:
|
|
3501
|
-
position:
|
|
3502
|
-
grid:
|
|
3503
|
-
gridCols:
|
|
3504
|
-
gridRows:
|
|
3505
|
-
gridTemplateRows:
|
|
3506
|
-
gridTemplateColumns:
|
|
3507
|
-
gridTemplate:
|
|
3508
|
-
gridGap:
|
|
3509
|
-
gridRowGap:
|
|
3510
|
-
gridColumnGap:
|
|
3511
|
-
flex:
|
|
3512
|
-
flexDirection:
|
|
3513
|
-
alignItems:
|
|
3514
|
-
justifyContent:
|
|
3515
|
-
flexRow:
|
|
3516
|
-
flexColumn:
|
|
3517
|
-
gap:
|
|
3518
|
-
pack:
|
|
3519
|
-
packOrderStrategy:
|
|
3520
|
-
packPlacementStrategy:
|
|
3521
|
-
padding:
|
|
3522
|
-
paddingLeft:
|
|
3523
|
-
paddingRight:
|
|
3524
|
-
paddingTop:
|
|
3525
|
-
paddingBottom:
|
|
3526
|
-
paddingX:
|
|
3527
|
-
paddingY:
|
|
3528
|
-
width:
|
|
3529
|
-
height:
|
|
3530
|
-
matchAdapt:
|
|
3531
|
-
matchAdaptTemplate:
|
|
3532
|
-
}, "strip",
|
|
3451
|
+
relative: zod.ZodOptional<zod.ZodBoolean>;
|
|
3452
|
+
schRelative: zod.ZodOptional<zod.ZodBoolean>;
|
|
3453
|
+
pcbRelative: zod.ZodOptional<zod.ZodBoolean>;
|
|
3454
|
+
grid: zod.ZodOptional<zod.ZodBoolean>;
|
|
3455
|
+
flex: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodString]>>;
|
|
3456
|
+
pcbGrid: zod.ZodOptional<zod.ZodBoolean>;
|
|
3457
|
+
pcbGridCols: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3458
|
+
pcbGridRows: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3459
|
+
pcbGridTemplateRows: zod.ZodOptional<zod.ZodString>;
|
|
3460
|
+
pcbGridTemplateColumns: zod.ZodOptional<zod.ZodString>;
|
|
3461
|
+
pcbGridTemplate: zod.ZodOptional<zod.ZodString>;
|
|
3462
|
+
pcbGridGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3463
|
+
pcbGridRowGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3464
|
+
pcbGridColumnGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3465
|
+
pcbFlex: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodString]>>;
|
|
3466
|
+
pcbFlexGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3467
|
+
pcbFlexDirection: zod.ZodOptional<zod.ZodEnum<["row", "column"]>>;
|
|
3468
|
+
pcbAlignItems: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
3469
|
+
pcbJustifyContent: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch", "space-between", "space-around", "space-evenly"]>>;
|
|
3470
|
+
pcbFlexRow: zod.ZodOptional<zod.ZodBoolean>;
|
|
3471
|
+
pcbFlexColumn: zod.ZodOptional<zod.ZodBoolean>;
|
|
3472
|
+
pcbGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3473
|
+
pcbPack: zod.ZodOptional<zod.ZodBoolean>;
|
|
3474
|
+
pcbPackGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3475
|
+
schGrid: zod.ZodOptional<zod.ZodBoolean>;
|
|
3476
|
+
schGridCols: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3477
|
+
schGridRows: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3478
|
+
schGridTemplateRows: zod.ZodOptional<zod.ZodString>;
|
|
3479
|
+
schGridTemplateColumns: zod.ZodOptional<zod.ZodString>;
|
|
3480
|
+
schGridTemplate: zod.ZodOptional<zod.ZodString>;
|
|
3481
|
+
schGridGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3482
|
+
schGridRowGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3483
|
+
schGridColumnGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3484
|
+
schFlex: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodString]>>;
|
|
3485
|
+
schFlexGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3486
|
+
schFlexDirection: zod.ZodOptional<zod.ZodEnum<["row", "column"]>>;
|
|
3487
|
+
schAlignItems: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
3488
|
+
schJustifyContent: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch", "space-between", "space-around", "space-evenly"]>>;
|
|
3489
|
+
schFlexRow: zod.ZodOptional<zod.ZodBoolean>;
|
|
3490
|
+
schFlexColumn: zod.ZodOptional<zod.ZodBoolean>;
|
|
3491
|
+
schGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3492
|
+
schPack: zod.ZodOptional<zod.ZodBoolean>;
|
|
3493
|
+
schMatchAdapt: zod.ZodOptional<zod.ZodBoolean>;
|
|
3494
|
+
pcbWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3495
|
+
pcbHeight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3496
|
+
schWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3497
|
+
schHeight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3498
|
+
pcbLayout: zod.ZodOptional<zod.ZodObject<{
|
|
3499
|
+
layoutMode: zod.ZodOptional<zod.ZodEnum<["grid", "flex", "match-adapt", "relative", "none"]>>;
|
|
3500
|
+
position: zod.ZodOptional<zod.ZodEnum<["absolute", "relative"]>>;
|
|
3501
|
+
grid: zod.ZodOptional<zod.ZodBoolean>;
|
|
3502
|
+
gridCols: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3503
|
+
gridRows: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3504
|
+
gridTemplateRows: zod.ZodOptional<zod.ZodString>;
|
|
3505
|
+
gridTemplateColumns: zod.ZodOptional<zod.ZodString>;
|
|
3506
|
+
gridTemplate: zod.ZodOptional<zod.ZodString>;
|
|
3507
|
+
gridGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3508
|
+
gridRowGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3509
|
+
gridColumnGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3510
|
+
flex: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodString]>>;
|
|
3511
|
+
flexDirection: zod.ZodOptional<zod.ZodEnum<["row", "column"]>>;
|
|
3512
|
+
alignItems: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
3513
|
+
justifyContent: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch", "space-between", "space-around", "space-evenly"]>>;
|
|
3514
|
+
flexRow: zod.ZodOptional<zod.ZodBoolean>;
|
|
3515
|
+
flexColumn: zod.ZodOptional<zod.ZodBoolean>;
|
|
3516
|
+
gap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3517
|
+
pack: zod.ZodOptional<zod.ZodBoolean>;
|
|
3518
|
+
packOrderStrategy: zod.ZodOptional<zod.ZodEnum<["largest_to_smallest", "first_to_last", "highest_to_lowest_pin_count"]>>;
|
|
3519
|
+
packPlacementStrategy: zod.ZodOptional<zod.ZodEnum<["shortest_connection_along_outline"]>>;
|
|
3520
|
+
padding: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3521
|
+
paddingLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3522
|
+
paddingRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3523
|
+
paddingTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3524
|
+
paddingBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3525
|
+
paddingX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3526
|
+
paddingY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3527
|
+
width: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3528
|
+
height: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3529
|
+
matchAdapt: zod.ZodOptional<zod.ZodBoolean>;
|
|
3530
|
+
matchAdaptTemplate: zod.ZodOptional<zod.ZodAny>;
|
|
3531
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3533
3532
|
grid?: boolean | undefined;
|
|
3534
3533
|
flex?: string | boolean | undefined;
|
|
3535
3534
|
layoutMode?: "none" | "relative" | "grid" | "flex" | "match-adapt" | undefined;
|
|
@@ -3596,40 +3595,40 @@ declare class MountedBoard extends Subcircuit {
|
|
|
3596
3595
|
matchAdapt?: boolean | undefined;
|
|
3597
3596
|
matchAdaptTemplate?: any;
|
|
3598
3597
|
}>>;
|
|
3599
|
-
schLayout:
|
|
3600
|
-
layoutMode:
|
|
3601
|
-
position:
|
|
3602
|
-
grid:
|
|
3603
|
-
gridCols:
|
|
3604
|
-
gridRows:
|
|
3605
|
-
gridTemplateRows:
|
|
3606
|
-
gridTemplateColumns:
|
|
3607
|
-
gridTemplate:
|
|
3608
|
-
gridGap:
|
|
3609
|
-
gridRowGap:
|
|
3610
|
-
gridColumnGap:
|
|
3611
|
-
flex:
|
|
3612
|
-
flexDirection:
|
|
3613
|
-
alignItems:
|
|
3614
|
-
justifyContent:
|
|
3615
|
-
flexRow:
|
|
3616
|
-
flexColumn:
|
|
3617
|
-
gap:
|
|
3618
|
-
pack:
|
|
3619
|
-
packOrderStrategy:
|
|
3620
|
-
packPlacementStrategy:
|
|
3621
|
-
padding:
|
|
3622
|
-
paddingLeft:
|
|
3623
|
-
paddingRight:
|
|
3624
|
-
paddingTop:
|
|
3625
|
-
paddingBottom:
|
|
3626
|
-
paddingX:
|
|
3627
|
-
paddingY:
|
|
3628
|
-
width:
|
|
3629
|
-
height:
|
|
3630
|
-
matchAdapt:
|
|
3631
|
-
matchAdaptTemplate:
|
|
3632
|
-
}, "strip",
|
|
3598
|
+
schLayout: zod.ZodOptional<zod.ZodObject<{
|
|
3599
|
+
layoutMode: zod.ZodOptional<zod.ZodEnum<["grid", "flex", "match-adapt", "relative", "none"]>>;
|
|
3600
|
+
position: zod.ZodOptional<zod.ZodEnum<["absolute", "relative"]>>;
|
|
3601
|
+
grid: zod.ZodOptional<zod.ZodBoolean>;
|
|
3602
|
+
gridCols: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3603
|
+
gridRows: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3604
|
+
gridTemplateRows: zod.ZodOptional<zod.ZodString>;
|
|
3605
|
+
gridTemplateColumns: zod.ZodOptional<zod.ZodString>;
|
|
3606
|
+
gridTemplate: zod.ZodOptional<zod.ZodString>;
|
|
3607
|
+
gridGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3608
|
+
gridRowGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3609
|
+
gridColumnGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3610
|
+
flex: zod.ZodOptional<zod.ZodUnion<[zod.ZodBoolean, zod.ZodString]>>;
|
|
3611
|
+
flexDirection: zod.ZodOptional<zod.ZodEnum<["row", "column"]>>;
|
|
3612
|
+
alignItems: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
3613
|
+
justifyContent: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch", "space-between", "space-around", "space-evenly"]>>;
|
|
3614
|
+
flexRow: zod.ZodOptional<zod.ZodBoolean>;
|
|
3615
|
+
flexColumn: zod.ZodOptional<zod.ZodBoolean>;
|
|
3616
|
+
gap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3617
|
+
pack: zod.ZodOptional<zod.ZodBoolean>;
|
|
3618
|
+
packOrderStrategy: zod.ZodOptional<zod.ZodEnum<["largest_to_smallest", "first_to_last", "highest_to_lowest_pin_count"]>>;
|
|
3619
|
+
packPlacementStrategy: zod.ZodOptional<zod.ZodEnum<["shortest_connection_along_outline"]>>;
|
|
3620
|
+
padding: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3621
|
+
paddingLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3622
|
+
paddingRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3623
|
+
paddingTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3624
|
+
paddingBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3625
|
+
paddingX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3626
|
+
paddingY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3627
|
+
width: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3628
|
+
height: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3629
|
+
matchAdapt: zod.ZodOptional<zod.ZodBoolean>;
|
|
3630
|
+
matchAdaptTemplate: zod.ZodOptional<zod.ZodAny>;
|
|
3631
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3633
3632
|
grid?: boolean | undefined;
|
|
3634
3633
|
flex?: string | boolean | undefined;
|
|
3635
3634
|
layoutMode?: "none" | "relative" | "grid" | "flex" | "match-adapt" | undefined;
|
|
@@ -3696,11 +3695,11 @@ declare class MountedBoard extends Subcircuit {
|
|
|
3696
3695
|
matchAdapt?: boolean | undefined;
|
|
3697
3696
|
matchAdaptTemplate?: any;
|
|
3698
3697
|
}>>;
|
|
3699
|
-
cellBorder:
|
|
3700
|
-
strokeWidth:
|
|
3701
|
-
dashed:
|
|
3702
|
-
solid:
|
|
3703
|
-
}, "strip",
|
|
3698
|
+
cellBorder: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
3699
|
+
strokeWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3700
|
+
dashed: zod.ZodOptional<zod.ZodBoolean>;
|
|
3701
|
+
solid: zod.ZodOptional<zod.ZodBoolean>;
|
|
3702
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3704
3703
|
strokeWidth?: number | undefined;
|
|
3705
3704
|
dashed?: boolean | undefined;
|
|
3706
3705
|
solid?: boolean | undefined;
|
|
@@ -3709,11 +3708,11 @@ declare class MountedBoard extends Subcircuit {
|
|
|
3709
3708
|
dashed?: boolean | undefined;
|
|
3710
3709
|
solid?: boolean | undefined;
|
|
3711
3710
|
}>>>;
|
|
3712
|
-
border:
|
|
3713
|
-
strokeWidth:
|
|
3714
|
-
dashed:
|
|
3715
|
-
solid:
|
|
3716
|
-
}, "strip",
|
|
3711
|
+
border: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
3712
|
+
strokeWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3713
|
+
dashed: zod.ZodOptional<zod.ZodBoolean>;
|
|
3714
|
+
solid: zod.ZodOptional<zod.ZodBoolean>;
|
|
3715
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3717
3716
|
strokeWidth?: number | undefined;
|
|
3718
3717
|
dashed?: boolean | undefined;
|
|
3719
3718
|
solid?: boolean | undefined;
|
|
@@ -3722,125 +3721,125 @@ declare class MountedBoard extends Subcircuit {
|
|
|
3722
3721
|
dashed?: boolean | undefined;
|
|
3723
3722
|
solid?: boolean | undefined;
|
|
3724
3723
|
}>>>;
|
|
3725
|
-
schPadding:
|
|
3726
|
-
schPaddingLeft:
|
|
3727
|
-
schPaddingRight:
|
|
3728
|
-
schPaddingTop:
|
|
3729
|
-
schPaddingBottom:
|
|
3730
|
-
pcbPadding:
|
|
3731
|
-
pcbPaddingLeft:
|
|
3732
|
-
pcbPaddingRight:
|
|
3733
|
-
pcbPaddingTop:
|
|
3734
|
-
pcbPaddingBottom:
|
|
3735
|
-
pcbAnchorAlignment:
|
|
3736
|
-
layoutMode:
|
|
3737
|
-
position:
|
|
3738
|
-
gridCols:
|
|
3739
|
-
gridRows:
|
|
3740
|
-
gridTemplateRows:
|
|
3741
|
-
gridTemplateColumns:
|
|
3742
|
-
gridTemplate:
|
|
3743
|
-
gridGap:
|
|
3744
|
-
gridRowGap:
|
|
3745
|
-
gridColumnGap:
|
|
3746
|
-
flexDirection:
|
|
3747
|
-
alignItems:
|
|
3748
|
-
justifyContent:
|
|
3749
|
-
flexRow:
|
|
3750
|
-
flexColumn:
|
|
3751
|
-
gap:
|
|
3752
|
-
pack:
|
|
3753
|
-
packOrderStrategy:
|
|
3754
|
-
packPlacementStrategy:
|
|
3755
|
-
padding:
|
|
3756
|
-
paddingLeft:
|
|
3757
|
-
paddingRight:
|
|
3758
|
-
paddingTop:
|
|
3759
|
-
paddingBottom:
|
|
3760
|
-
paddingX:
|
|
3761
|
-
paddingY:
|
|
3762
|
-
matchAdapt:
|
|
3763
|
-
matchAdaptTemplate:
|
|
3764
|
-
name:
|
|
3765
|
-
children:
|
|
3766
|
-
schTitle:
|
|
3767
|
-
key:
|
|
3768
|
-
showAsSchematicBox:
|
|
3769
|
-
connections:
|
|
3770
|
-
schPinArrangement:
|
|
3771
|
-
leftSize:
|
|
3772
|
-
topSize:
|
|
3773
|
-
rightSize:
|
|
3774
|
-
bottomSize:
|
|
3775
|
-
leftPinCount:
|
|
3776
|
-
rightPinCount:
|
|
3777
|
-
topPinCount:
|
|
3778
|
-
bottomPinCount:
|
|
3779
|
-
leftSide:
|
|
3780
|
-
pins:
|
|
3781
|
-
direction:
|
|
3782
|
-
}, "strip",
|
|
3724
|
+
schPadding: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3725
|
+
schPaddingLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3726
|
+
schPaddingRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3727
|
+
schPaddingTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3728
|
+
schPaddingBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3729
|
+
pcbPadding: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3730
|
+
pcbPaddingLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3731
|
+
pcbPaddingRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3732
|
+
pcbPaddingTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3733
|
+
pcbPaddingBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3734
|
+
pcbAnchorAlignment: zod.ZodOptional<zod.ZodType<_tscircuit_props.AutocompleteString<"top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right">, zod.ZodTypeDef, _tscircuit_props.AutocompleteString<"top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right">>>;
|
|
3735
|
+
layoutMode: zod.ZodOptional<zod.ZodEnum<["grid", "flex", "match-adapt", "relative", "none"]>>;
|
|
3736
|
+
position: zod.ZodOptional<zod.ZodEnum<["absolute", "relative"]>>;
|
|
3737
|
+
gridCols: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3738
|
+
gridRows: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3739
|
+
gridTemplateRows: zod.ZodOptional<zod.ZodString>;
|
|
3740
|
+
gridTemplateColumns: zod.ZodOptional<zod.ZodString>;
|
|
3741
|
+
gridTemplate: zod.ZodOptional<zod.ZodString>;
|
|
3742
|
+
gridGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3743
|
+
gridRowGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3744
|
+
gridColumnGap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3745
|
+
flexDirection: zod.ZodOptional<zod.ZodEnum<["row", "column"]>>;
|
|
3746
|
+
alignItems: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch"]>>;
|
|
3747
|
+
justifyContent: zod.ZodOptional<zod.ZodEnum<["start", "center", "end", "stretch", "space-between", "space-around", "space-evenly"]>>;
|
|
3748
|
+
flexRow: zod.ZodOptional<zod.ZodBoolean>;
|
|
3749
|
+
flexColumn: zod.ZodOptional<zod.ZodBoolean>;
|
|
3750
|
+
gap: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
3751
|
+
pack: zod.ZodOptional<zod.ZodBoolean>;
|
|
3752
|
+
packOrderStrategy: zod.ZodOptional<zod.ZodEnum<["largest_to_smallest", "first_to_last", "highest_to_lowest_pin_count"]>>;
|
|
3753
|
+
packPlacementStrategy: zod.ZodOptional<zod.ZodEnum<["shortest_connection_along_outline"]>>;
|
|
3754
|
+
padding: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3755
|
+
paddingLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3756
|
+
paddingRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3757
|
+
paddingTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3758
|
+
paddingBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3759
|
+
paddingX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3760
|
+
paddingY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3761
|
+
matchAdapt: zod.ZodOptional<zod.ZodBoolean>;
|
|
3762
|
+
matchAdaptTemplate: zod.ZodOptional<zod.ZodAny>;
|
|
3763
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
3764
|
+
children: zod.ZodOptional<zod.ZodAny>;
|
|
3765
|
+
schTitle: zod.ZodOptional<zod.ZodString>;
|
|
3766
|
+
key: zod.ZodOptional<zod.ZodAny>;
|
|
3767
|
+
showAsSchematicBox: zod.ZodOptional<zod.ZodBoolean>;
|
|
3768
|
+
connections: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodOptional<zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>>;
|
|
3769
|
+
schPinArrangement: zod.ZodOptional<zod.ZodObject<{
|
|
3770
|
+
leftSize: zod.ZodOptional<zod.ZodNumber>;
|
|
3771
|
+
topSize: zod.ZodOptional<zod.ZodNumber>;
|
|
3772
|
+
rightSize: zod.ZodOptional<zod.ZodNumber>;
|
|
3773
|
+
bottomSize: zod.ZodOptional<zod.ZodNumber>;
|
|
3774
|
+
leftPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
3775
|
+
rightPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
3776
|
+
topPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
3777
|
+
bottomPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
3778
|
+
leftSide: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodObject<{
|
|
3779
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
3780
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
3781
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3783
3782
|
pins: (string | number)[];
|
|
3784
3783
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3785
3784
|
}, {
|
|
3786
3785
|
pins: (string | number)[];
|
|
3787
3786
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3788
|
-
}>,
|
|
3787
|
+
}>, zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">]>, {
|
|
3789
3788
|
pins: (string | number)[];
|
|
3790
3789
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3791
3790
|
}, (string | number)[] | {
|
|
3792
3791
|
pins: (string | number)[];
|
|
3793
3792
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3794
3793
|
}>>;
|
|
3795
|
-
rightSide:
|
|
3796
|
-
pins:
|
|
3797
|
-
direction:
|
|
3798
|
-
}, "strip",
|
|
3794
|
+
rightSide: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodObject<{
|
|
3795
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
3796
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
3797
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3799
3798
|
pins: (string | number)[];
|
|
3800
3799
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3801
3800
|
}, {
|
|
3802
3801
|
pins: (string | number)[];
|
|
3803
3802
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3804
|
-
}>,
|
|
3803
|
+
}>, zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">]>, {
|
|
3805
3804
|
pins: (string | number)[];
|
|
3806
3805
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3807
3806
|
}, (string | number)[] | {
|
|
3808
3807
|
pins: (string | number)[];
|
|
3809
3808
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3810
3809
|
}>>;
|
|
3811
|
-
topSide:
|
|
3812
|
-
pins:
|
|
3813
|
-
direction:
|
|
3814
|
-
}, "strip",
|
|
3810
|
+
topSide: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodObject<{
|
|
3811
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
3812
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
3813
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3815
3814
|
pins: (string | number)[];
|
|
3816
3815
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3817
3816
|
}, {
|
|
3818
3817
|
pins: (string | number)[];
|
|
3819
3818
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3820
|
-
}>,
|
|
3819
|
+
}>, zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">]>, {
|
|
3821
3820
|
pins: (string | number)[];
|
|
3822
3821
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3823
3822
|
}, (string | number)[] | {
|
|
3824
3823
|
pins: (string | number)[];
|
|
3825
3824
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3826
3825
|
}>>;
|
|
3827
|
-
bottomSide:
|
|
3828
|
-
pins:
|
|
3829
|
-
direction:
|
|
3830
|
-
}, "strip",
|
|
3826
|
+
bottomSide: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodObject<{
|
|
3827
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
3828
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
3829
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3831
3830
|
pins: (string | number)[];
|
|
3832
3831
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3833
3832
|
}, {
|
|
3834
3833
|
pins: (string | number)[];
|
|
3835
3834
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3836
|
-
}>,
|
|
3835
|
+
}>, zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">]>, {
|
|
3837
3836
|
pins: (string | number)[];
|
|
3838
3837
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3839
3838
|
}, (string | number)[] | {
|
|
3840
3839
|
pins: (string | number)[];
|
|
3841
3840
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
3842
3841
|
}>>;
|
|
3843
|
-
}, "strip",
|
|
3842
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3844
3843
|
leftSize?: number | undefined;
|
|
3845
3844
|
topSize?: number | undefined;
|
|
3846
3845
|
rightSize?: number | undefined;
|
|
@@ -3891,17 +3890,17 @@ declare class MountedBoard extends Subcircuit {
|
|
|
3891
3890
|
topPinCount?: number | undefined;
|
|
3892
3891
|
bottomPinCount?: number | undefined;
|
|
3893
3892
|
}>>;
|
|
3894
|
-
schPinSpacing:
|
|
3895
|
-
schPinStyle:
|
|
3896
|
-
marginLeft:
|
|
3897
|
-
marginRight:
|
|
3898
|
-
marginTop:
|
|
3899
|
-
marginBottom:
|
|
3900
|
-
leftMargin:
|
|
3901
|
-
rightMargin:
|
|
3902
|
-
topMargin:
|
|
3903
|
-
bottomMargin:
|
|
3904
|
-
}, "strip",
|
|
3893
|
+
schPinSpacing: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3894
|
+
schPinStyle: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
|
3895
|
+
marginLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3896
|
+
marginRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3897
|
+
marginTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3898
|
+
marginBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3899
|
+
leftMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3900
|
+
rightMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3901
|
+
topMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3902
|
+
bottomMargin: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3903
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3905
3904
|
marginLeft?: number | undefined;
|
|
3906
3905
|
marginRight?: number | undefined;
|
|
3907
3906
|
marginTop?: number | undefined;
|
|
@@ -3921,21 +3920,21 @@ declare class MountedBoard extends Subcircuit {
|
|
|
3921
3920
|
bottomMargin?: string | number | undefined;
|
|
3922
3921
|
}>>>;
|
|
3923
3922
|
} & {
|
|
3924
|
-
manualEdits:
|
|
3925
|
-
pcb_placements:
|
|
3926
|
-
selector:
|
|
3927
|
-
relative_to:
|
|
3928
|
-
center:
|
|
3929
|
-
x:
|
|
3930
|
-
y:
|
|
3931
|
-
}, "strip",
|
|
3923
|
+
manualEdits: zod.ZodOptional<zod.ZodObject<{
|
|
3924
|
+
pcb_placements: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
3925
|
+
selector: zod.ZodString;
|
|
3926
|
+
relative_to: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
|
|
3927
|
+
center: zod.ZodObject<{
|
|
3928
|
+
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
3929
|
+
y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
3930
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3932
3931
|
x: number;
|
|
3933
3932
|
y: number;
|
|
3934
3933
|
}, {
|
|
3935
3934
|
x: string | number;
|
|
3936
3935
|
y: string | number;
|
|
3937
3936
|
}>;
|
|
3938
|
-
}, "strip",
|
|
3937
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3939
3938
|
center: {
|
|
3940
3939
|
x: number;
|
|
3941
3940
|
y: number;
|
|
@@ -3950,23 +3949,23 @@ declare class MountedBoard extends Subcircuit {
|
|
|
3950
3949
|
selector: string;
|
|
3951
3950
|
relative_to?: string | undefined;
|
|
3952
3951
|
}>, "many">>;
|
|
3953
|
-
manual_trace_hints:
|
|
3954
|
-
pcb_port_selector:
|
|
3955
|
-
offsets:
|
|
3956
|
-
x:
|
|
3957
|
-
y:
|
|
3958
|
-
via:
|
|
3959
|
-
to_layer:
|
|
3960
|
-
name:
|
|
3961
|
-
}, "strip",
|
|
3952
|
+
manual_trace_hints: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
3953
|
+
pcb_port_selector: zod.ZodString;
|
|
3954
|
+
offsets: zod.ZodArray<zod.ZodObject<{
|
|
3955
|
+
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
3956
|
+
y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
3957
|
+
via: zod.ZodOptional<zod.ZodBoolean>;
|
|
3958
|
+
to_layer: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
|
|
3959
|
+
name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
3960
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3962
3961
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3963
3962
|
}, {
|
|
3964
3963
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3965
3964
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
3966
3965
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3967
3966
|
}>>;
|
|
3968
|
-
trace_width:
|
|
3969
|
-
}, "strip",
|
|
3967
|
+
trace_width: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
3968
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3970
3969
|
x: number;
|
|
3971
3970
|
y: number;
|
|
3972
3971
|
via?: boolean | undefined;
|
|
@@ -3981,7 +3980,7 @@ declare class MountedBoard extends Subcircuit {
|
|
|
3981
3980
|
} | undefined;
|
|
3982
3981
|
trace_width?: string | number | undefined;
|
|
3983
3982
|
}>, "many">;
|
|
3984
|
-
}, "strip",
|
|
3983
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3985
3984
|
pcb_port_selector: string;
|
|
3986
3985
|
offsets: {
|
|
3987
3986
|
x: number;
|
|
@@ -4002,20 +4001,20 @@ declare class MountedBoard extends Subcircuit {
|
|
|
4002
4001
|
trace_width?: string | number | undefined;
|
|
4003
4002
|
}[];
|
|
4004
4003
|
}>, "many">>;
|
|
4005
|
-
schematic_placements:
|
|
4006
|
-
selector:
|
|
4007
|
-
relative_to:
|
|
4008
|
-
center:
|
|
4009
|
-
x:
|
|
4010
|
-
y:
|
|
4011
|
-
}, "strip",
|
|
4004
|
+
schematic_placements: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
4005
|
+
selector: zod.ZodString;
|
|
4006
|
+
relative_to: zod.ZodDefault<zod.ZodOptional<zod.ZodString>>;
|
|
4007
|
+
center: zod.ZodObject<{
|
|
4008
|
+
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4009
|
+
y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4010
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4012
4011
|
x: number;
|
|
4013
4012
|
y: number;
|
|
4014
4013
|
}, {
|
|
4015
4014
|
x: string | number;
|
|
4016
4015
|
y: string | number;
|
|
4017
4016
|
}>;
|
|
4018
|
-
}, "strip",
|
|
4017
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4019
4018
|
center: {
|
|
4020
4019
|
x: number;
|
|
4021
4020
|
y: number;
|
|
@@ -4030,7 +4029,7 @@ declare class MountedBoard extends Subcircuit {
|
|
|
4030
4029
|
selector: string;
|
|
4031
4030
|
relative_to?: string | undefined;
|
|
4032
4031
|
}>, "many">>;
|
|
4033
|
-
}, "strip",
|
|
4032
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4034
4033
|
pcb_placements?: {
|
|
4035
4034
|
center: {
|
|
4036
4035
|
x: number;
|
|
@@ -4087,117 +4086,117 @@ declare class MountedBoard extends Subcircuit {
|
|
|
4087
4086
|
relative_to?: string | undefined;
|
|
4088
4087
|
}[] | undefined;
|
|
4089
4088
|
}>>;
|
|
4090
|
-
schAutoLayoutEnabled:
|
|
4091
|
-
schTraceAutoLabelEnabled:
|
|
4092
|
-
schMaxTraceDistance:
|
|
4093
|
-
routingDisabled:
|
|
4094
|
-
bomDisabled:
|
|
4095
|
-
defaultTraceWidth:
|
|
4096
|
-
minTraceWidth:
|
|
4097
|
-
nominalTraceWidth:
|
|
4098
|
-
partsEngine:
|
|
4099
|
-
_subcircuitCachingEnabled:
|
|
4100
|
-
pcbRouteCache:
|
|
4101
|
-
autorouter:
|
|
4102
|
-
autorouterEffortLevel:
|
|
4103
|
-
autorouterVersion:
|
|
4104
|
-
square:
|
|
4105
|
-
emptyArea:
|
|
4106
|
-
filledArea:
|
|
4107
|
-
width:
|
|
4108
|
-
height:
|
|
4109
|
-
outline:
|
|
4110
|
-
x:
|
|
4111
|
-
y:
|
|
4112
|
-
}, "strip",
|
|
4089
|
+
schAutoLayoutEnabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
4090
|
+
schTraceAutoLabelEnabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
4091
|
+
schMaxTraceDistance: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4092
|
+
routingDisabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
4093
|
+
bomDisabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
4094
|
+
defaultTraceWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4095
|
+
minTraceWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4096
|
+
nominalTraceWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4097
|
+
partsEngine: zod.ZodOptional<zod.ZodType<_tscircuit_props.PartsEngine, zod.ZodTypeDef, _tscircuit_props.PartsEngine>>;
|
|
4098
|
+
_subcircuitCachingEnabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
4099
|
+
pcbRouteCache: zod.ZodOptional<zod.ZodType<_tscircuit_props.PcbRouteCache, zod.ZodTypeDef, _tscircuit_props.PcbRouteCache>>;
|
|
4100
|
+
autorouter: zod.ZodOptional<zod.ZodType<_tscircuit_props.AutorouterProp, zod.ZodTypeDef, _tscircuit_props.AutorouterProp>>;
|
|
4101
|
+
autorouterEffortLevel: zod.ZodOptional<zod.ZodEnum<["1x", "2x", "5x", "10x", "100x"]>>;
|
|
4102
|
+
autorouterVersion: zod.ZodOptional<zod.ZodEnum<["v1", "v2", "latest"]>>;
|
|
4103
|
+
square: zod.ZodOptional<zod.ZodBoolean>;
|
|
4104
|
+
emptyArea: zod.ZodOptional<zod.ZodString>;
|
|
4105
|
+
filledArea: zod.ZodOptional<zod.ZodString>;
|
|
4106
|
+
width: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4107
|
+
height: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4108
|
+
outline: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
4109
|
+
x: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4110
|
+
y: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
4111
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4113
4112
|
x: number;
|
|
4114
4113
|
y: number;
|
|
4115
4114
|
}, {
|
|
4116
4115
|
x: string | number;
|
|
4117
4116
|
y: string | number;
|
|
4118
4117
|
}>, "many">>;
|
|
4119
|
-
outlineOffsetX:
|
|
4120
|
-
outlineOffsetY:
|
|
4121
|
-
circuitJson:
|
|
4118
|
+
outlineOffsetX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4119
|
+
outlineOffsetY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4120
|
+
circuitJson: zod.ZodOptional<zod.ZodArray<zod.ZodAny, "many">>;
|
|
4122
4121
|
} & {
|
|
4123
|
-
manufacturerPartNumber:
|
|
4124
|
-
pinLabels:
|
|
4125
|
-
showPinAliases:
|
|
4126
|
-
pcbPinLabels:
|
|
4127
|
-
schPortArrangement:
|
|
4128
|
-
leftSize:
|
|
4129
|
-
topSize:
|
|
4130
|
-
rightSize:
|
|
4131
|
-
bottomSize:
|
|
4132
|
-
leftPinCount:
|
|
4133
|
-
rightPinCount:
|
|
4134
|
-
topPinCount:
|
|
4135
|
-
bottomPinCount:
|
|
4136
|
-
leftSide:
|
|
4137
|
-
pins:
|
|
4138
|
-
direction:
|
|
4139
|
-
}, "strip",
|
|
4122
|
+
manufacturerPartNumber: zod.ZodOptional<zod.ZodString>;
|
|
4123
|
+
pinLabels: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodReadonly<zod.ZodArray<zod.ZodString, "many">>]>, zod.ZodArray<zod.ZodString, "many">]>>>;
|
|
4124
|
+
showPinAliases: zod.ZodOptional<zod.ZodBoolean>;
|
|
4125
|
+
pcbPinLabels: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
4126
|
+
schPortArrangement: zod.ZodOptional<zod.ZodObject<{
|
|
4127
|
+
leftSize: zod.ZodOptional<zod.ZodNumber>;
|
|
4128
|
+
topSize: zod.ZodOptional<zod.ZodNumber>;
|
|
4129
|
+
rightSize: zod.ZodOptional<zod.ZodNumber>;
|
|
4130
|
+
bottomSize: zod.ZodOptional<zod.ZodNumber>;
|
|
4131
|
+
leftPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
4132
|
+
rightPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
4133
|
+
topPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
4134
|
+
bottomPinCount: zod.ZodOptional<zod.ZodNumber>;
|
|
4135
|
+
leftSide: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodObject<{
|
|
4136
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
4137
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
4138
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4140
4139
|
pins: (string | number)[];
|
|
4141
4140
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4142
4141
|
}, {
|
|
4143
4142
|
pins: (string | number)[];
|
|
4144
4143
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4145
|
-
}>,
|
|
4144
|
+
}>, zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">]>, {
|
|
4146
4145
|
pins: (string | number)[];
|
|
4147
4146
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4148
4147
|
}, (string | number)[] | {
|
|
4149
4148
|
pins: (string | number)[];
|
|
4150
4149
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4151
4150
|
}>>;
|
|
4152
|
-
rightSide:
|
|
4153
|
-
pins:
|
|
4154
|
-
direction:
|
|
4155
|
-
}, "strip",
|
|
4151
|
+
rightSide: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodObject<{
|
|
4152
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
4153
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
4154
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4156
4155
|
pins: (string | number)[];
|
|
4157
4156
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4158
4157
|
}, {
|
|
4159
4158
|
pins: (string | number)[];
|
|
4160
4159
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4161
|
-
}>,
|
|
4160
|
+
}>, zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">]>, {
|
|
4162
4161
|
pins: (string | number)[];
|
|
4163
4162
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4164
4163
|
}, (string | number)[] | {
|
|
4165
4164
|
pins: (string | number)[];
|
|
4166
4165
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4167
4166
|
}>>;
|
|
4168
|
-
topSide:
|
|
4169
|
-
pins:
|
|
4170
|
-
direction:
|
|
4171
|
-
}, "strip",
|
|
4167
|
+
topSide: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodObject<{
|
|
4168
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
4169
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
4170
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4172
4171
|
pins: (string | number)[];
|
|
4173
4172
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4174
4173
|
}, {
|
|
4175
4174
|
pins: (string | number)[];
|
|
4176
4175
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4177
|
-
}>,
|
|
4176
|
+
}>, zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">]>, {
|
|
4178
4177
|
pins: (string | number)[];
|
|
4179
4178
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4180
4179
|
}, (string | number)[] | {
|
|
4181
4180
|
pins: (string | number)[];
|
|
4182
4181
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4183
4182
|
}>>;
|
|
4184
|
-
bottomSide:
|
|
4185
|
-
pins:
|
|
4186
|
-
direction:
|
|
4187
|
-
}, "strip",
|
|
4183
|
+
bottomSide: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodObject<{
|
|
4184
|
+
pins: zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">;
|
|
4185
|
+
direction: zod.ZodUnion<[zod.ZodLiteral<"top-to-bottom">, zod.ZodLiteral<"left-to-right">, zod.ZodLiteral<"bottom-to-top">, zod.ZodLiteral<"right-to-left">]>;
|
|
4186
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4188
4187
|
pins: (string | number)[];
|
|
4189
4188
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4190
4189
|
}, {
|
|
4191
4190
|
pins: (string | number)[];
|
|
4192
4191
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4193
|
-
}>,
|
|
4192
|
+
}>, zod.ZodArray<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>, "many">]>, {
|
|
4194
4193
|
pins: (string | number)[];
|
|
4195
4194
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4196
4195
|
}, (string | number)[] | {
|
|
4197
4196
|
pins: (string | number)[];
|
|
4198
4197
|
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
4199
4198
|
}>>;
|
|
4200
|
-
}, "strip",
|
|
4199
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4201
4200
|
leftSize?: number | undefined;
|
|
4202
4201
|
topSize?: number | undefined;
|
|
4203
4202
|
rightSize?: number | undefined;
|
|
@@ -4248,22 +4247,22 @@ declare class MountedBoard extends Subcircuit {
|
|
|
4248
4247
|
topPinCount?: number | undefined;
|
|
4249
4248
|
bottomPinCount?: number | undefined;
|
|
4250
4249
|
}>>;
|
|
4251
|
-
pinCompatibleVariants:
|
|
4252
|
-
manufacturerPartNumber:
|
|
4253
|
-
supplierPartNumber:
|
|
4254
|
-
}, "strip",
|
|
4250
|
+
pinCompatibleVariants: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
4251
|
+
manufacturerPartNumber: zod.ZodOptional<zod.ZodString>;
|
|
4252
|
+
supplierPartNumber: zod.ZodOptional<zod.ZodRecord<zod.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, zod.ZodArray<zod.ZodString, "many">>>;
|
|
4253
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4255
4254
|
manufacturerPartNumber?: string | undefined;
|
|
4256
4255
|
supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4257
4256
|
}, {
|
|
4258
4257
|
manufacturerPartNumber?: string | undefined;
|
|
4259
4258
|
supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4260
4259
|
}>, "many">>;
|
|
4261
|
-
noSchematicRepresentation:
|
|
4262
|
-
internallyConnectedPins:
|
|
4263
|
-
externallyConnectedPins:
|
|
4264
|
-
boardToBoardDistance:
|
|
4265
|
-
mountOrientation:
|
|
4266
|
-
}, "strip",
|
|
4260
|
+
noSchematicRepresentation: zod.ZodOptional<zod.ZodBoolean>;
|
|
4261
|
+
internallyConnectedPins: zod.ZodOptional<zod.ZodArray<zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, "many">, "many">>;
|
|
4262
|
+
externallyConnectedPins: zod.ZodOptional<zod.ZodArray<zod.ZodArray<zod.ZodString, "many">, "many">>;
|
|
4263
|
+
boardToBoardDistance: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
4264
|
+
mountOrientation: zod.ZodOptional<zod.ZodEnum<["faceDown", "faceUp"]>>;
|
|
4265
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4267
4266
|
symbol?: _tscircuit_props.SymbolProp | undefined;
|
|
4268
4267
|
key?: any;
|
|
4269
4268
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
@@ -4961,9 +4960,17 @@ declare class MountedBoard extends Subcircuit {
|
|
|
4961
4960
|
mountOrientation?: "faceDown" | "faceUp" | undefined;
|
|
4962
4961
|
}>;
|
|
4963
4962
|
};
|
|
4963
|
+
get boardThickness(): number;
|
|
4964
|
+
get allLayers(): readonly ["top", "bottom"];
|
|
4965
|
+
_connectedSchematicPortPairs: Set<string>;
|
|
4966
|
+
/**
|
|
4967
|
+
* Returns the carrier board's calc variables so that calc(board.*)
|
|
4968
|
+
* expressions in pcbX/pcbY resolve against the parent board.
|
|
4969
|
+
*/
|
|
4970
|
+
_getBoardCalcVariables(): Record<string, number>;
|
|
4971
|
+
private _findCarrierBoard;
|
|
4964
4972
|
doInitialPcbComponentRender(): void;
|
|
4965
4973
|
doInitialPcbBoardAutoSize(): void;
|
|
4966
|
-
private _findCarrierBoardId;
|
|
4967
4974
|
}
|
|
4968
4975
|
|
|
4969
4976
|
/**
|
package/dist/index.js
CHANGED
|
@@ -18210,7 +18210,7 @@ import { identity as identity5 } from "transformation-matrix";
|
|
|
18210
18210
|
var package_default = {
|
|
18211
18211
|
name: "@tscircuit/core",
|
|
18212
18212
|
type: "module",
|
|
18213
|
-
version: "0.0.
|
|
18213
|
+
version: "0.0.1096",
|
|
18214
18214
|
types: "dist/index.d.ts",
|
|
18215
18215
|
main: "dist/index.js",
|
|
18216
18216
|
module: "dist/index.js",
|
|
@@ -19284,15 +19284,37 @@ var Subcircuit = class extends Group6 {
|
|
|
19284
19284
|
// lib/components/normal-components/MountedBoard.ts
|
|
19285
19285
|
var MountedBoard = class extends Subcircuit {
|
|
19286
19286
|
pcb_board_id = null;
|
|
19287
|
-
constructor(props) {
|
|
19288
|
-
super(props);
|
|
19289
|
-
}
|
|
19290
19287
|
get config() {
|
|
19291
19288
|
return {
|
|
19292
19289
|
componentName: "MountedBoard",
|
|
19293
19290
|
zodProps: mountedboardProps
|
|
19294
19291
|
};
|
|
19295
19292
|
}
|
|
19293
|
+
get boardThickness() {
|
|
19294
|
+
return 1.4;
|
|
19295
|
+
}
|
|
19296
|
+
get allLayers() {
|
|
19297
|
+
return ["top", "bottom"];
|
|
19298
|
+
}
|
|
19299
|
+
_connectedSchematicPortPairs = /* @__PURE__ */ new Set();
|
|
19300
|
+
/**
|
|
19301
|
+
* Returns the carrier board's calc variables so that calc(board.*)
|
|
19302
|
+
* expressions in pcbX/pcbY resolve against the parent board.
|
|
19303
|
+
*/
|
|
19304
|
+
_getBoardCalcVariables() {
|
|
19305
|
+
const carrierBoard = this._findCarrierBoard();
|
|
19306
|
+
return carrierBoard?._getBoardCalcVariables() ?? {};
|
|
19307
|
+
}
|
|
19308
|
+
_findCarrierBoard() {
|
|
19309
|
+
let current = this.parent;
|
|
19310
|
+
while (current) {
|
|
19311
|
+
if (current instanceof Board) {
|
|
19312
|
+
return current;
|
|
19313
|
+
}
|
|
19314
|
+
current = current.parent;
|
|
19315
|
+
}
|
|
19316
|
+
return null;
|
|
19317
|
+
}
|
|
19296
19318
|
doInitialPcbComponentRender() {
|
|
19297
19319
|
if (this.root?.pcbDisabled) return;
|
|
19298
19320
|
const { db } = this.root;
|
|
@@ -19308,23 +19330,13 @@ var MountedBoard = class extends Subcircuit {
|
|
|
19308
19330
|
}
|
|
19309
19331
|
doInitialPcbBoardAutoSize() {
|
|
19310
19332
|
if (!this.pcb_board_id || !this.root) return;
|
|
19311
|
-
const
|
|
19312
|
-
if (
|
|
19333
|
+
const carrierBoard = this._findCarrierBoard();
|
|
19334
|
+
if (carrierBoard?.pcb_board_id) {
|
|
19313
19335
|
this.root.db.pcb_board.update(this.pcb_board_id, {
|
|
19314
|
-
carrier_pcb_board_id:
|
|
19336
|
+
carrier_pcb_board_id: carrierBoard.pcb_board_id
|
|
19315
19337
|
});
|
|
19316
19338
|
}
|
|
19317
19339
|
}
|
|
19318
|
-
_findCarrierBoardId() {
|
|
19319
|
-
let current = this.parent;
|
|
19320
|
-
while (current) {
|
|
19321
|
-
if (current instanceof Board) {
|
|
19322
|
-
return current.pcb_board_id;
|
|
19323
|
-
}
|
|
19324
|
-
current = current.parent;
|
|
19325
|
-
}
|
|
19326
|
-
return null;
|
|
19327
|
-
}
|
|
19328
19340
|
};
|
|
19329
19341
|
|
|
19330
19342
|
// lib/components/normal-components/Panel.ts
|
|
@@ -20630,6 +20642,14 @@ var VoltageSource = class extends NormalComponent3 {
|
|
|
20630
20642
|
}
|
|
20631
20643
|
}
|
|
20632
20644
|
doInitialPcbComponentRender() {
|
|
20645
|
+
const hasExplicitPcbPosition = this._hasUserDefinedPcbPosition();
|
|
20646
|
+
if (!this._parsedProps.footprint) {
|
|
20647
|
+
if (!hasExplicitPcbPosition) return;
|
|
20648
|
+
throw new Error(
|
|
20649
|
+
"VoltageSource requires a footprint when pcbX/pcbY or pcb edge position props are used"
|
|
20650
|
+
);
|
|
20651
|
+
}
|
|
20652
|
+
super.doInitialPcbComponentRender();
|
|
20633
20653
|
}
|
|
20634
20654
|
initPorts() {
|
|
20635
20655
|
super.initPorts({
|
|
@@ -20713,6 +20733,14 @@ var CurrentSource = class extends NormalComponent3 {
|
|
|
20713
20733
|
}
|
|
20714
20734
|
}
|
|
20715
20735
|
doInitialPcbComponentRender() {
|
|
20736
|
+
const hasExplicitPcbPosition = this._hasUserDefinedPcbPosition();
|
|
20737
|
+
if (!this._parsedProps.footprint) {
|
|
20738
|
+
if (!hasExplicitPcbPosition) return;
|
|
20739
|
+
throw new Error(
|
|
20740
|
+
"CurrentSource requires a footprint when pcbX/pcbY or pcb edge position props are used"
|
|
20741
|
+
);
|
|
20742
|
+
}
|
|
20743
|
+
super.doInitialPcbComponentRender();
|
|
20716
20744
|
}
|
|
20717
20745
|
initPorts() {
|
|
20718
20746
|
super.initPorts({
|