@tscircuit/props 0.0.334 → 0.0.336
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 +151 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/lib/common/layout.ts +2 -0
- package/lib/components/net.ts +2 -0
- package/lib/components/trace.ts +1 -0
- package/package.json +1 -1
package/lib/common/layout.ts
CHANGED
|
@@ -152,6 +152,7 @@ export interface PinAttributeMap {
|
|
|
152
152
|
requiresVoltage?: string | number
|
|
153
153
|
doNotConnect?: boolean
|
|
154
154
|
includeInBoardPinout?: boolean
|
|
155
|
+
highlightColor?: string
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
export const pinAttributeMap = z.object({
|
|
@@ -163,6 +164,7 @@ export const pinAttributeMap = z.object({
|
|
|
163
164
|
requiresVoltage: z.union([z.string(), z.number()]).optional(),
|
|
164
165
|
doNotConnect: z.boolean().optional(),
|
|
165
166
|
includeInBoardPinout: z.boolean().optional(),
|
|
167
|
+
highlightColor: z.string().optional(),
|
|
166
168
|
})
|
|
167
169
|
|
|
168
170
|
expectTypesMatch<PinAttributeMap, z.input<typeof pinAttributeMap>>(true)
|
package/lib/components/net.ts
CHANGED
|
@@ -4,11 +4,13 @@ import { expectTypesMatch } from "lib/typecheck"
|
|
|
4
4
|
export interface NetProps {
|
|
5
5
|
name: string
|
|
6
6
|
connectsTo?: string | string[]
|
|
7
|
+
highlightColor?: string
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export const netProps = z.object({
|
|
10
11
|
name: z.string(),
|
|
11
12
|
connectsTo: z.string().or(z.array(z.string())).optional(),
|
|
13
|
+
highlightColor: z.string().optional(),
|
|
12
14
|
})
|
|
13
15
|
|
|
14
16
|
type InferredNetProps = z.input<typeof netProps>
|
package/lib/components/trace.ts
CHANGED