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/CloudR8Placement.tsx

import {Children,cloneElement,isValidElement} from 'react'
/** Complete R8 0402 relocation, with its existing ground feed; no offset terminals. */
export function moveR8(node:any):any {
  if(Array.isArray(node))return node.map(moveR8)
  if(!isValidElement(node))return node
  if(typeof node.type==='function')return moveR8(node.type(node.props))
  const p:any={...node.props}
  if(p.name==='R_BOOT8')Object.assign(p,{pcbX:7.9,pcbY:-15.3,pcbRotation:90,layer:'bottom'})
  if(node.type==='via'&&p.connectsTo==='.Boot_and_clock > .R_BOOT8 > .pin2')
    Object.assign(p,{pcbX:7.9,pcbY:-15.81,fromLayer:'bottom',toLayer:'inner6'})
  return cloneElement(node,p,...Children.toArray(node.props.children).map(moveR8))
}