0hmX/am3352-ddr-track-a-local-dfm-wip-20261007
Experimental RJ45-corrected board with isolated PG indication. 1005/1005 source joins pass; 15 expanded-guard physical errors, sourcing and qualification gates remain. Not fabrication-ready.
- Version
- 0.0.14
- License
- unset
- Stars
- 0
layout/CloudPgoodTopRoute.tsx
import React from "react";
import candidate from "../data/cloud-pgood-top-route.json";
// Apply to the current root tree. Original component selectors and world anchor stay exact.
export function applyFixedPgood48Top(node:any):any {
if(Array.isArray(node))return node.map(applyFixedPgood48Top);
if(!node||typeof node!=="object"||!node.props)return node;
if(typeof node.type==="function")return applyFixedPgood48Top(node.type(node.props));
const p={...node.props};
if(node.type==="trace"&&p.name==="CLOUD_LOCAL_48_PMIC_PGOOD"){
p.pcbPaths=[[p.from,...candidate.route.points.map(([x,y]:number[])=>({x,y})),p.to]];
}
if(p.children)p.children=applyFixedPgood48Top(p.children);
return {...node,props:p};
}