@Seve I've been trying to make this work for two days, I'm having an issue of how to transform inflated traces, can you take a look it's wasting time https://github.com/tscircuit/core/pull/1754
@Abse haven't forgotten about this Trace issue yet- i took a quick peek at the code and i think you might just need to implement for traces (from circuit-json-util) has support for moving traces or otherwise make sure that _repositionOnPcb is being called against traces. But it seems like you're pretty close
I left some comments because it seems like there's an unrelated bug related to source traces, but i think your approach is right, just look at the render cycle, use the command with
i think i would try to follow the logic from Panel.ts realizing it needs to call Board._repositionOnPcb, which calls chil methods, then making sure those child methods actually move the trace. The debugger can make it easy to get a console to do realtime inspection.