circuitjs1 icon indicating copy to clipboard operation
circuitjs1 copied to clipboard

rotate and flip selected group of components

Open tcurdt opened this issue 1 year ago • 3 comments

Please allow for an easy way to rotate and flip a selection of components. (see kicad for an example) Recreating a full (sub)circuit just because the orientation should change is rather cumbersome.

tcurdt avatar Jul 28 '22 13:07 tcurdt

if you right click a chip or subcircuit and select Edit, there are checkboxes to let you flip the orientation.

pfalstad avatar Jul 28 '22 17:07 pfalstad

Not really. An especially not for a whole selection of components. When I right-click I lose the selection and can only edit one.

On a transistor there is "Swap E/C" which really isn't the same thing. At best it means flipping vertically.

It would be great if there was a "rotate CW", (maybe a "rotate CCW",) a "flip x" and a "flip y".

And applying this on a selection of components would be much appreciated. I love cicuitjs - but this feels very lacking.

tcurdt avatar Jul 28 '22 22:07 tcurdt

Point reflection of the axis-aligned minimum bounding box of a node selection across the symmetric axis is a very useful and common transformation in schematic capture software, as well as rotation and scaling. It saves lots of time redrawing things.

These would normally be pretty easy but the lack of a uniform way to rotate and reflect symbols is kind of a problem. Kicad symbols have fixed geometry and don't scale or stretch so arbitrary transformations on nodes is easy there. In circuitjs it's pretty much only the 2-node symbols that are drawn in a way that's conducive to this.

The spice-integrated tools have a whole bunch of other problems though... like the difficulty in remapping inputs. A "simple" swapping of the + and -, or even rotation of an opamp symbol (keeping the power-pins right-side-up!) while trying to maintain a library of (ideally unmodified) vendor-supplied subcircuits and symbols is highly annoying in absolutely every tool ever. They each have their own awkward workarounds for it.

ormaaj avatar Aug 13 '22 14:08 ormaaj