@tscircuit/props 0.0.505 → 0.0.507
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 +5 -0
- package/dist/index.d.ts +145 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/lib/components/chip.ts +11 -0
- package/lib/components/group.ts +13 -1
- package/package.json +1 -1
package/lib/components/chip.ts
CHANGED
|
@@ -60,6 +60,11 @@ export interface ChipPropsSU<
|
|
|
60
60
|
noSchematicRepresentation?: boolean
|
|
61
61
|
internallyConnectedPins?: (string | number)[][]
|
|
62
62
|
externallyConnectedPins?: string[][]
|
|
63
|
+
/**
|
|
64
|
+
* Pins intentionally left unconnected. This is a shorthand for marking
|
|
65
|
+
* those pins as do-not-connect without repeating pinAttributes entries.
|
|
66
|
+
*/
|
|
67
|
+
noConnect?: readonly PinLabel[] | PinLabel[]
|
|
63
68
|
connections?: Connections<PinLabel>
|
|
64
69
|
}
|
|
65
70
|
|
|
@@ -115,6 +120,11 @@ const connectionTarget = z
|
|
|
115
120
|
.or(z.array(z.string()).readonly())
|
|
116
121
|
.or(z.array(z.string()))
|
|
117
122
|
|
|
123
|
+
const noConnectProp = z
|
|
124
|
+
.array(schematicPinLabel)
|
|
125
|
+
.readonly()
|
|
126
|
+
.or(z.array(schematicPinLabel))
|
|
127
|
+
|
|
118
128
|
const connectionsProp = z
|
|
119
129
|
.custom<Connections>()
|
|
120
130
|
.pipe(z.record(z.string(), connectionTarget))
|
|
@@ -150,6 +160,7 @@ export const chipProps = commonComponentProps.extend({
|
|
|
150
160
|
schWidth: distance.optional(),
|
|
151
161
|
schHeight: distance.optional(),
|
|
152
162
|
noSchematicRepresentation: z.boolean().optional(),
|
|
163
|
+
noConnect: noConnectProp.optional(),
|
|
153
164
|
connections: connectionsProp.optional(),
|
|
154
165
|
})
|
|
155
166
|
|
package/lib/components/group.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
type SupplierPartNumbers,
|
|
13
13
|
} from "lib/common/layout"
|
|
14
14
|
import type { PcbStyle } from "lib/common/pcbStyle"
|
|
15
|
-
import { ninePointAnchor } from "lib/common/ninePointAnchor"
|
|
15
|
+
import type { ninePointAnchor } from "lib/common/ninePointAnchor"
|
|
16
16
|
import { type Point, point } from "lib/common/point"
|
|
17
17
|
import { expectTypesMatch } from "lib/typecheck"
|
|
18
18
|
import { z } from "zod"
|
|
@@ -431,7 +431,14 @@ export interface SubcircuitGroupProps extends BaseGroupProps {
|
|
|
431
431
|
routingDisabled?: boolean
|
|
432
432
|
bomDisabled?: boolean
|
|
433
433
|
defaultTraceWidth?: Distance
|
|
434
|
+
|
|
434
435
|
minTraceWidth?: Distance
|
|
436
|
+
minViaToViaSpacing?: Distance
|
|
437
|
+
minTraceToPadSpacing?: Distance
|
|
438
|
+
minPadToPadSpacing?: Distance
|
|
439
|
+
minViaHoleDiameter?: Distance
|
|
440
|
+
minViaPadDiameter?: Distance
|
|
441
|
+
|
|
435
442
|
nominalTraceWidth?: Distance
|
|
436
443
|
pcbRouteCache?: PcbRouteCache
|
|
437
444
|
|
|
@@ -594,6 +601,11 @@ export const subcircuitGroupProps = baseGroupProps.extend({
|
|
|
594
601
|
bomDisabled: z.boolean().optional(),
|
|
595
602
|
defaultTraceWidth: length.optional(),
|
|
596
603
|
minTraceWidth: length.optional(),
|
|
604
|
+
minViaToViaSpacing: length.optional(),
|
|
605
|
+
minTraceToPadSpacing: length.optional(),
|
|
606
|
+
minPadToPadSpacing: length.optional(),
|
|
607
|
+
minViaHoleDiameter: length.optional(),
|
|
608
|
+
minViaPadDiameter: length.optional(),
|
|
597
609
|
nominalTraceWidth: length.optional(),
|
|
598
610
|
partsEngine: partsEngine.optional(),
|
|
599
611
|
_subcircuitCachingEnabled: z.boolean().optional(),
|