You can use the subcircuit_connectivity_key to do this. May need to add additional metadata in [circuit-to-svg](https://github.com/tscircuit/circuit-to-svg) /bounty $80