@tscircuit/props 0.0.648 → 0.0.650
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 +3 -1
- package/dist/index.d.ts +1817 -2
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/lib/common/fanoutTracePath.ts +6 -11
- package/lib/common/pinAttributeMap.ts +30 -0
- package/lib/components/breakout.ts +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -427,6 +427,16 @@ var pinCapability = z18.enum([
|
|
|
427
427
|
"uart_rx"
|
|
428
428
|
]);
|
|
429
429
|
var pinAttributeMap = z18.object({
|
|
430
|
+
isInput: z18.boolean().optional(),
|
|
431
|
+
isOutput: z18.boolean().optional(),
|
|
432
|
+
isBidirectional: z18.boolean().optional(),
|
|
433
|
+
isPassive: z18.boolean().optional(),
|
|
434
|
+
canUseTriState: z18.boolean().optional(),
|
|
435
|
+
isUsingTriState: z18.boolean().optional(),
|
|
436
|
+
canUseOpenCollector: z18.boolean().optional(),
|
|
437
|
+
isUsingOpenCollector: z18.boolean().optional(),
|
|
438
|
+
canUseOpenEmitter: z18.boolean().optional(),
|
|
439
|
+
isUsingOpenEmitter: z18.boolean().optional(),
|
|
430
440
|
capabilities: z18.array(pinCapability).optional(),
|
|
431
441
|
activeCapabilities: z18.array(pinCapability).optional(),
|
|
432
442
|
activeCapability: pinCapability.optional(),
|
|
@@ -16782,13 +16792,8 @@ var routePoint = z47.discriminatedUnion("route_type", [
|
|
|
16782
16792
|
var fanoutTracePath = z47.object({
|
|
16783
16793
|
connection: z47.string().min(1),
|
|
16784
16794
|
route: z47.array(routePoint).min(2).superRefine((route, ctx) => {
|
|
16785
|
-
|
|
16786
|
-
|
|
16787
|
-
code: "custom",
|
|
16788
|
-
message: "A fanout trace path must start and end with wire points"
|
|
16789
|
-
});
|
|
16790
|
-
}
|
|
16791
|
-
let layer = route[0]?.route_type === "wire" ? route[0].layer : void 0;
|
|
16795
|
+
const first = route[0];
|
|
16796
|
+
let layer = first?.route_type === "via" ? first.from_layer : first?.layer;
|
|
16792
16797
|
for (const point8 of route) {
|
|
16793
16798
|
if ((point8.route_type === "wire" ? point8.layer : point8.from_layer) !== layer) {
|
|
16794
16799
|
ctx.addIssue({
|