@tscircuit/props 0.0.586 → 0.0.588
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 +13 -0
- package/dist/index.d.ts +306 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/lib/components/schematic-box.ts +15 -1
- package/lib/projectConfig.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -278,6 +278,7 @@ export interface BatteryProps<
|
|
|
278
278
|
voltage?: number | string;
|
|
279
279
|
standard?: "AA" | "AAA" | "9V" | "CR2032" | "18650" | "C";
|
|
280
280
|
schOrientation?: SchematicOrientation;
|
|
281
|
+
connections?: Connections<BatteryPinLabels>;
|
|
281
282
|
}
|
|
282
283
|
```
|
|
283
284
|
|
|
@@ -441,6 +442,12 @@ export interface ChipPropsSU<
|
|
|
441
442
|
schWidth?: Distance;
|
|
442
443
|
schHeight?: Distance;
|
|
443
444
|
noSchematicRepresentation?: boolean;
|
|
445
|
+
/**
|
|
446
|
+
* Whether to show the components from `internalCircuit` in the schematic.
|
|
447
|
+
* When false, the chip's schematic box is shown instead.
|
|
448
|
+
* @default false
|
|
449
|
+
*/
|
|
450
|
+
schShowInternalCircuit?: boolean;
|
|
444
451
|
internallyConnectedPins?: (string | number)[][];
|
|
445
452
|
externallyConnectedPins?: string[][];
|
|
446
453
|
/**
|
|
@@ -1534,6 +1541,10 @@ export interface SchematicArcProps {
|
|
|
1534
1541
|
|
|
1535
1542
|
```ts
|
|
1536
1543
|
export interface SchematicBoxProps {
|
|
1544
|
+
name?: string;
|
|
1545
|
+
chipRef?: string;
|
|
1546
|
+
pinLabels?: PinLabelsProp;
|
|
1547
|
+
schPinArrangement?: SchematicPinArrangement;
|
|
1537
1548
|
schX?: Distance;
|
|
1538
1549
|
schY?: Distance;
|
|
1539
1550
|
width?: Distance;
|
|
@@ -2153,6 +2164,8 @@ export interface ProjectConfig extends Pick<
|
|
|
2153
2164
|
| "includeBoardFiles"
|
|
2154
2165
|
| "snapshotsDir"
|
|
2155
2166
|
| "defaultSpiceEngine"
|
|
2167
|
+
| "pcbDisabled"
|
|
2168
|
+
| "schematicDisabled"
|
|
2156
2169
|
> {}
|
|
2157
2170
|
```
|
|
2158
2171
|
|
package/dist/index.d.ts
CHANGED
|
@@ -188215,6 +188215,133 @@ declare const toolingrailProps: z.ZodObject<{
|
|
|
188215
188215
|
}>;
|
|
188216
188216
|
|
|
188217
188217
|
declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
188218
|
+
name: z.ZodOptional<z.ZodString>;
|
|
188219
|
+
chipRef: z.ZodOptional<z.ZodString>;
|
|
188220
|
+
pinLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>;
|
|
188221
|
+
schPinArrangement: z.ZodOptional<z.ZodObject<{
|
|
188222
|
+
leftSize: z.ZodOptional<z.ZodNumber>;
|
|
188223
|
+
topSize: z.ZodOptional<z.ZodNumber>;
|
|
188224
|
+
rightSize: z.ZodOptional<z.ZodNumber>;
|
|
188225
|
+
bottomSize: z.ZodOptional<z.ZodNumber>;
|
|
188226
|
+
leftPinCount: z.ZodOptional<z.ZodNumber>;
|
|
188227
|
+
rightPinCount: z.ZodOptional<z.ZodNumber>;
|
|
188228
|
+
topPinCount: z.ZodOptional<z.ZodNumber>;
|
|
188229
|
+
bottomPinCount: z.ZodOptional<z.ZodNumber>;
|
|
188230
|
+
leftSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
188231
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
188232
|
+
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
188233
|
+
}, "strip", z.ZodTypeAny, {
|
|
188234
|
+
pins: (string | number)[];
|
|
188235
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188236
|
+
}, {
|
|
188237
|
+
pins: (string | number)[];
|
|
188238
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188239
|
+
}>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
|
|
188240
|
+
pins: (string | number)[];
|
|
188241
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188242
|
+
}, (string | number)[] | {
|
|
188243
|
+
pins: (string | number)[];
|
|
188244
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188245
|
+
}>>;
|
|
188246
|
+
rightSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
188247
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
188248
|
+
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
188249
|
+
}, "strip", z.ZodTypeAny, {
|
|
188250
|
+
pins: (string | number)[];
|
|
188251
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188252
|
+
}, {
|
|
188253
|
+
pins: (string | number)[];
|
|
188254
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188255
|
+
}>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
|
|
188256
|
+
pins: (string | number)[];
|
|
188257
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188258
|
+
}, (string | number)[] | {
|
|
188259
|
+
pins: (string | number)[];
|
|
188260
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188261
|
+
}>>;
|
|
188262
|
+
topSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
188263
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
188264
|
+
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
188265
|
+
}, "strip", z.ZodTypeAny, {
|
|
188266
|
+
pins: (string | number)[];
|
|
188267
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188268
|
+
}, {
|
|
188269
|
+
pins: (string | number)[];
|
|
188270
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188271
|
+
}>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
|
|
188272
|
+
pins: (string | number)[];
|
|
188273
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188274
|
+
}, (string | number)[] | {
|
|
188275
|
+
pins: (string | number)[];
|
|
188276
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188277
|
+
}>>;
|
|
188278
|
+
bottomSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
188279
|
+
pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
|
|
188280
|
+
direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
|
|
188281
|
+
}, "strip", z.ZodTypeAny, {
|
|
188282
|
+
pins: (string | number)[];
|
|
188283
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188284
|
+
}, {
|
|
188285
|
+
pins: (string | number)[];
|
|
188286
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188287
|
+
}>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
|
|
188288
|
+
pins: (string | number)[];
|
|
188289
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188290
|
+
}, (string | number)[] | {
|
|
188291
|
+
pins: (string | number)[];
|
|
188292
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188293
|
+
}>>;
|
|
188294
|
+
}, "strip", z.ZodTypeAny, {
|
|
188295
|
+
leftSize?: number | undefined;
|
|
188296
|
+
topSize?: number | undefined;
|
|
188297
|
+
rightSize?: number | undefined;
|
|
188298
|
+
bottomSize?: number | undefined;
|
|
188299
|
+
leftSide?: {
|
|
188300
|
+
pins: (string | number)[];
|
|
188301
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188302
|
+
} | undefined;
|
|
188303
|
+
topSide?: {
|
|
188304
|
+
pins: (string | number)[];
|
|
188305
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188306
|
+
} | undefined;
|
|
188307
|
+
rightSide?: {
|
|
188308
|
+
pins: (string | number)[];
|
|
188309
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188310
|
+
} | undefined;
|
|
188311
|
+
bottomSide?: {
|
|
188312
|
+
pins: (string | number)[];
|
|
188313
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188314
|
+
} | undefined;
|
|
188315
|
+
leftPinCount?: number | undefined;
|
|
188316
|
+
rightPinCount?: number | undefined;
|
|
188317
|
+
topPinCount?: number | undefined;
|
|
188318
|
+
bottomPinCount?: number | undefined;
|
|
188319
|
+
}, {
|
|
188320
|
+
leftSize?: number | undefined;
|
|
188321
|
+
topSize?: number | undefined;
|
|
188322
|
+
rightSize?: number | undefined;
|
|
188323
|
+
bottomSize?: number | undefined;
|
|
188324
|
+
leftSide?: (string | number)[] | {
|
|
188325
|
+
pins: (string | number)[];
|
|
188326
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188327
|
+
} | undefined;
|
|
188328
|
+
topSide?: (string | number)[] | {
|
|
188329
|
+
pins: (string | number)[];
|
|
188330
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188331
|
+
} | undefined;
|
|
188332
|
+
rightSide?: (string | number)[] | {
|
|
188333
|
+
pins: (string | number)[];
|
|
188334
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188335
|
+
} | undefined;
|
|
188336
|
+
bottomSide?: (string | number)[] | {
|
|
188337
|
+
pins: (string | number)[];
|
|
188338
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188339
|
+
} | undefined;
|
|
188340
|
+
leftPinCount?: number | undefined;
|
|
188341
|
+
rightPinCount?: number | undefined;
|
|
188342
|
+
topPinCount?: number | undefined;
|
|
188343
|
+
bottomPinCount?: number | undefined;
|
|
188344
|
+
}>>;
|
|
188218
188345
|
schX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
188219
188346
|
schY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
188220
188347
|
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -188237,6 +188364,7 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
188237
188364
|
strokeStyle: "dashed" | "solid";
|
|
188238
188365
|
width?: number | undefined;
|
|
188239
188366
|
height?: number | undefined;
|
|
188367
|
+
name?: string | undefined;
|
|
188240
188368
|
schX?: number | undefined;
|
|
188241
188369
|
schY?: number | undefined;
|
|
188242
188370
|
padding?: number | undefined;
|
|
@@ -188244,13 +188372,42 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
188244
188372
|
paddingRight?: number | undefined;
|
|
188245
188373
|
paddingTop?: number | undefined;
|
|
188246
188374
|
paddingBottom?: number | undefined;
|
|
188375
|
+
schPinArrangement?: {
|
|
188376
|
+
leftSize?: number | undefined;
|
|
188377
|
+
topSize?: number | undefined;
|
|
188378
|
+
rightSize?: number | undefined;
|
|
188379
|
+
bottomSize?: number | undefined;
|
|
188380
|
+
leftSide?: {
|
|
188381
|
+
pins: (string | number)[];
|
|
188382
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188383
|
+
} | undefined;
|
|
188384
|
+
topSide?: {
|
|
188385
|
+
pins: (string | number)[];
|
|
188386
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188387
|
+
} | undefined;
|
|
188388
|
+
rightSide?: {
|
|
188389
|
+
pins: (string | number)[];
|
|
188390
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188391
|
+
} | undefined;
|
|
188392
|
+
bottomSide?: {
|
|
188393
|
+
pins: (string | number)[];
|
|
188394
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188395
|
+
} | undefined;
|
|
188396
|
+
leftPinCount?: number | undefined;
|
|
188397
|
+
rightPinCount?: number | undefined;
|
|
188398
|
+
topPinCount?: number | undefined;
|
|
188399
|
+
bottomPinCount?: number | undefined;
|
|
188400
|
+
} | undefined;
|
|
188247
188401
|
title?: string | undefined;
|
|
188402
|
+
pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
188403
|
+
chipRef?: string | undefined;
|
|
188248
188404
|
overlay?: string[] | undefined;
|
|
188249
188405
|
titleColor?: string | undefined;
|
|
188250
188406
|
titleFontSize?: number | undefined;
|
|
188251
188407
|
}, {
|
|
188252
188408
|
width?: string | number | undefined;
|
|
188253
188409
|
height?: string | number | undefined;
|
|
188410
|
+
name?: string | undefined;
|
|
188254
188411
|
schX?: string | number | undefined;
|
|
188255
188412
|
schY?: string | number | undefined;
|
|
188256
188413
|
padding?: string | number | undefined;
|
|
@@ -188258,7 +188415,35 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
188258
188415
|
paddingRight?: string | number | undefined;
|
|
188259
188416
|
paddingTop?: string | number | undefined;
|
|
188260
188417
|
paddingBottom?: string | number | undefined;
|
|
188418
|
+
schPinArrangement?: {
|
|
188419
|
+
leftSize?: number | undefined;
|
|
188420
|
+
topSize?: number | undefined;
|
|
188421
|
+
rightSize?: number | undefined;
|
|
188422
|
+
bottomSize?: number | undefined;
|
|
188423
|
+
leftSide?: (string | number)[] | {
|
|
188424
|
+
pins: (string | number)[];
|
|
188425
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188426
|
+
} | undefined;
|
|
188427
|
+
topSide?: (string | number)[] | {
|
|
188428
|
+
pins: (string | number)[];
|
|
188429
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188430
|
+
} | undefined;
|
|
188431
|
+
rightSide?: (string | number)[] | {
|
|
188432
|
+
pins: (string | number)[];
|
|
188433
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188434
|
+
} | undefined;
|
|
188435
|
+
bottomSide?: (string | number)[] | {
|
|
188436
|
+
pins: (string | number)[];
|
|
188437
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188438
|
+
} | undefined;
|
|
188439
|
+
leftPinCount?: number | undefined;
|
|
188440
|
+
rightPinCount?: number | undefined;
|
|
188441
|
+
topPinCount?: number | undefined;
|
|
188442
|
+
bottomPinCount?: number | undefined;
|
|
188443
|
+
} | undefined;
|
|
188261
188444
|
title?: string | undefined;
|
|
188445
|
+
pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
188446
|
+
chipRef?: string | undefined;
|
|
188262
188447
|
overlay?: string[] | undefined;
|
|
188263
188448
|
titleAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
188264
188449
|
titleColor?: string | undefined;
|
|
@@ -188271,6 +188456,7 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
188271
188456
|
strokeStyle: "dashed" | "solid";
|
|
188272
188457
|
width?: number | undefined;
|
|
188273
188458
|
height?: number | undefined;
|
|
188459
|
+
name?: string | undefined;
|
|
188274
188460
|
schX?: number | undefined;
|
|
188275
188461
|
schY?: number | undefined;
|
|
188276
188462
|
padding?: number | undefined;
|
|
@@ -188278,13 +188464,42 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
188278
188464
|
paddingRight?: number | undefined;
|
|
188279
188465
|
paddingTop?: number | undefined;
|
|
188280
188466
|
paddingBottom?: number | undefined;
|
|
188467
|
+
schPinArrangement?: {
|
|
188468
|
+
leftSize?: number | undefined;
|
|
188469
|
+
topSize?: number | undefined;
|
|
188470
|
+
rightSize?: number | undefined;
|
|
188471
|
+
bottomSize?: number | undefined;
|
|
188472
|
+
leftSide?: {
|
|
188473
|
+
pins: (string | number)[];
|
|
188474
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188475
|
+
} | undefined;
|
|
188476
|
+
topSide?: {
|
|
188477
|
+
pins: (string | number)[];
|
|
188478
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188479
|
+
} | undefined;
|
|
188480
|
+
rightSide?: {
|
|
188481
|
+
pins: (string | number)[];
|
|
188482
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188483
|
+
} | undefined;
|
|
188484
|
+
bottomSide?: {
|
|
188485
|
+
pins: (string | number)[];
|
|
188486
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188487
|
+
} | undefined;
|
|
188488
|
+
leftPinCount?: number | undefined;
|
|
188489
|
+
rightPinCount?: number | undefined;
|
|
188490
|
+
topPinCount?: number | undefined;
|
|
188491
|
+
bottomPinCount?: number | undefined;
|
|
188492
|
+
} | undefined;
|
|
188281
188493
|
title?: string | undefined;
|
|
188494
|
+
pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
188495
|
+
chipRef?: string | undefined;
|
|
188282
188496
|
overlay?: string[] | undefined;
|
|
188283
188497
|
titleColor?: string | undefined;
|
|
188284
188498
|
titleFontSize?: number | undefined;
|
|
188285
188499
|
}, {
|
|
188286
188500
|
width?: string | number | undefined;
|
|
188287
188501
|
height?: string | number | undefined;
|
|
188502
|
+
name?: string | undefined;
|
|
188288
188503
|
schX?: string | number | undefined;
|
|
188289
188504
|
schY?: string | number | undefined;
|
|
188290
188505
|
padding?: string | number | undefined;
|
|
@@ -188292,7 +188507,35 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
188292
188507
|
paddingRight?: string | number | undefined;
|
|
188293
188508
|
paddingTop?: string | number | undefined;
|
|
188294
188509
|
paddingBottom?: string | number | undefined;
|
|
188510
|
+
schPinArrangement?: {
|
|
188511
|
+
leftSize?: number | undefined;
|
|
188512
|
+
topSize?: number | undefined;
|
|
188513
|
+
rightSize?: number | undefined;
|
|
188514
|
+
bottomSize?: number | undefined;
|
|
188515
|
+
leftSide?: (string | number)[] | {
|
|
188516
|
+
pins: (string | number)[];
|
|
188517
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188518
|
+
} | undefined;
|
|
188519
|
+
topSide?: (string | number)[] | {
|
|
188520
|
+
pins: (string | number)[];
|
|
188521
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188522
|
+
} | undefined;
|
|
188523
|
+
rightSide?: (string | number)[] | {
|
|
188524
|
+
pins: (string | number)[];
|
|
188525
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188526
|
+
} | undefined;
|
|
188527
|
+
bottomSide?: (string | number)[] | {
|
|
188528
|
+
pins: (string | number)[];
|
|
188529
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188530
|
+
} | undefined;
|
|
188531
|
+
leftPinCount?: number | undefined;
|
|
188532
|
+
rightPinCount?: number | undefined;
|
|
188533
|
+
topPinCount?: number | undefined;
|
|
188534
|
+
bottomPinCount?: number | undefined;
|
|
188535
|
+
} | undefined;
|
|
188295
188536
|
title?: string | undefined;
|
|
188537
|
+
pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
188538
|
+
chipRef?: string | undefined;
|
|
188296
188539
|
overlay?: string[] | undefined;
|
|
188297
188540
|
titleAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
188298
188541
|
titleColor?: string | undefined;
|
|
@@ -188305,6 +188548,7 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
188305
188548
|
strokeStyle: "dashed" | "solid";
|
|
188306
188549
|
width?: number | undefined;
|
|
188307
188550
|
height?: number | undefined;
|
|
188551
|
+
name?: string | undefined;
|
|
188308
188552
|
schX?: number | undefined;
|
|
188309
188553
|
schY?: number | undefined;
|
|
188310
188554
|
padding?: number | undefined;
|
|
@@ -188312,13 +188556,42 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
188312
188556
|
paddingRight?: number | undefined;
|
|
188313
188557
|
paddingTop?: number | undefined;
|
|
188314
188558
|
paddingBottom?: number | undefined;
|
|
188559
|
+
schPinArrangement?: {
|
|
188560
|
+
leftSize?: number | undefined;
|
|
188561
|
+
topSize?: number | undefined;
|
|
188562
|
+
rightSize?: number | undefined;
|
|
188563
|
+
bottomSize?: number | undefined;
|
|
188564
|
+
leftSide?: {
|
|
188565
|
+
pins: (string | number)[];
|
|
188566
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188567
|
+
} | undefined;
|
|
188568
|
+
topSide?: {
|
|
188569
|
+
pins: (string | number)[];
|
|
188570
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188571
|
+
} | undefined;
|
|
188572
|
+
rightSide?: {
|
|
188573
|
+
pins: (string | number)[];
|
|
188574
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188575
|
+
} | undefined;
|
|
188576
|
+
bottomSide?: {
|
|
188577
|
+
pins: (string | number)[];
|
|
188578
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188579
|
+
} | undefined;
|
|
188580
|
+
leftPinCount?: number | undefined;
|
|
188581
|
+
rightPinCount?: number | undefined;
|
|
188582
|
+
topPinCount?: number | undefined;
|
|
188583
|
+
bottomPinCount?: number | undefined;
|
|
188584
|
+
} | undefined;
|
|
188315
188585
|
title?: string | undefined;
|
|
188586
|
+
pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
188587
|
+
chipRef?: string | undefined;
|
|
188316
188588
|
overlay?: string[] | undefined;
|
|
188317
188589
|
titleColor?: string | undefined;
|
|
188318
188590
|
titleFontSize?: number | undefined;
|
|
188319
188591
|
}, {
|
|
188320
188592
|
width?: string | number | undefined;
|
|
188321
188593
|
height?: string | number | undefined;
|
|
188594
|
+
name?: string | undefined;
|
|
188322
188595
|
schX?: string | number | undefined;
|
|
188323
188596
|
schY?: string | number | undefined;
|
|
188324
188597
|
padding?: string | number | undefined;
|
|
@@ -188326,7 +188599,35 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
188326
188599
|
paddingRight?: string | number | undefined;
|
|
188327
188600
|
paddingTop?: string | number | undefined;
|
|
188328
188601
|
paddingBottom?: string | number | undefined;
|
|
188602
|
+
schPinArrangement?: {
|
|
188603
|
+
leftSize?: number | undefined;
|
|
188604
|
+
topSize?: number | undefined;
|
|
188605
|
+
rightSize?: number | undefined;
|
|
188606
|
+
bottomSize?: number | undefined;
|
|
188607
|
+
leftSide?: (string | number)[] | {
|
|
188608
|
+
pins: (string | number)[];
|
|
188609
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188610
|
+
} | undefined;
|
|
188611
|
+
topSide?: (string | number)[] | {
|
|
188612
|
+
pins: (string | number)[];
|
|
188613
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188614
|
+
} | undefined;
|
|
188615
|
+
rightSide?: (string | number)[] | {
|
|
188616
|
+
pins: (string | number)[];
|
|
188617
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188618
|
+
} | undefined;
|
|
188619
|
+
bottomSide?: (string | number)[] | {
|
|
188620
|
+
pins: (string | number)[];
|
|
188621
|
+
direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
|
|
188622
|
+
} | undefined;
|
|
188623
|
+
leftPinCount?: number | undefined;
|
|
188624
|
+
rightPinCount?: number | undefined;
|
|
188625
|
+
topPinCount?: number | undefined;
|
|
188626
|
+
bottomPinCount?: number | undefined;
|
|
188627
|
+
} | undefined;
|
|
188329
188628
|
title?: string | undefined;
|
|
188629
|
+
pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
|
|
188630
|
+
chipRef?: string | undefined;
|
|
188330
188631
|
overlay?: string[] | undefined;
|
|
188331
188632
|
titleAlignment?: "top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right" | undefined;
|
|
188332
188633
|
titleColor?: string | undefined;
|
|
@@ -188335,6 +188636,10 @@ declare const schematicBoxProps: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
188335
188636
|
strokeStyle?: "dashed" | "solid" | undefined;
|
|
188336
188637
|
}>;
|
|
188337
188638
|
interface SchematicBoxProps {
|
|
188639
|
+
name?: string;
|
|
188640
|
+
chipRef?: string;
|
|
188641
|
+
pinLabels?: PinLabelsProp;
|
|
188642
|
+
schPinArrangement?: SchematicPinArrangement;
|
|
188338
188643
|
schX?: Distance;
|
|
188339
188644
|
schY?: Distance;
|
|
188340
188645
|
width?: Distance;
|
|
@@ -191203,7 +191508,7 @@ interface PlatformConfig {
|
|
|
191203
191508
|
}
|
|
191204
191509
|
declare const platformConfig: z.ZodType<PlatformConfig>;
|
|
191205
191510
|
|
|
191206
|
-
interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBaseUrl" | "version" | "url" | "printBoardInformationToSilkscreen" | "includeBoardFiles" | "snapshotsDir" | "defaultSpiceEngine"> {
|
|
191511
|
+
interface ProjectConfig extends Pick<PlatformConfig, "projectName" | "projectBaseUrl" | "version" | "url" | "printBoardInformationToSilkscreen" | "includeBoardFiles" | "snapshotsDir" | "defaultSpiceEngine" | "pcbDisabled" | "schematicDisabled"> {
|
|
191207
191512
|
}
|
|
191208
191513
|
declare const projectConfig: z.ZodType<ProjectConfig>;
|
|
191209
191514
|
|
package/dist/index.js
CHANGED
|
@@ -18156,6 +18156,10 @@ expectTypesMatch(true);
|
|
|
18156
18156
|
import { distance as distance31 } from "circuit-json";
|
|
18157
18157
|
import { z as z112 } from "zod";
|
|
18158
18158
|
var schematicBoxProps = z112.object({
|
|
18159
|
+
name: z112.string().optional(),
|
|
18160
|
+
chipRef: z112.string().optional(),
|
|
18161
|
+
pinLabels: pinLabelsProp.optional(),
|
|
18162
|
+
schPinArrangement: schematicPinArrangement.optional(),
|
|
18159
18163
|
schX: distance31.optional(),
|
|
18160
18164
|
schY: distance31.optional(),
|
|
18161
18165
|
width: distance31.optional(),
|
|
@@ -18674,7 +18678,9 @@ var projectConfig = platformConfigObject.pick({
|
|
|
18674
18678
|
printBoardInformationToSilkscreen: true,
|
|
18675
18679
|
includeBoardFiles: true,
|
|
18676
18680
|
snapshotsDir: true,
|
|
18677
|
-
defaultSpiceEngine: true
|
|
18681
|
+
defaultSpiceEngine: true,
|
|
18682
|
+
pcbDisabled: true,
|
|
18683
|
+
schematicDisabled: true
|
|
18678
18684
|
});
|
|
18679
18685
|
expectTypesMatch(true);
|
|
18680
18686
|
export {
|