jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Apache License 2.0
39.55k stars 7.4k forks source link

Electronic circuit line drawing mode - "grid-aligned freehand" #3944

Open FolkertRA opened 8 months ago

FolkertRA commented 8 months ago

Is your feature request related to a problem? Please describe. The way to draw connections (lines) between blocks is currently to start at one block and end at another. The shape of the line can be modified (drawing a path that makes multiple bends) but this is cumbersome (making a connector "snake" around multiple bends requires manipulating the blue dots in the middle of line segments) . Combinations of straight and angled are not possible out of the box as far as I can tell. Finally, the default connection style is always with an arrow, I often change this to remove the arrowhead. But maybe that's more of a default style issue than this feature request.

Describe the solution you'd like A mode to draw lines as is typically done in electronic circuit diagram (EDA) programs. For example LTSpice, Altium Designer, KiCad. It is much like freehand mode but with straight line segments.

How it generally works:

Now a 3rd line can be added, same drawing rules apply: imageimageimage The connection between lines is visualized with a thick dot (can be optional). Note that this 3rd line terminates on an existing line and not on a connection point of an object.

Describe alternatives you've considered Alternative to making a line "snake" is to first draw a simple line with one corner, then manipulate the section midpoints to add/remove corners. Alternative is to connect 3 connectors A, B, C is to draw 2 lines: from A to B and from A to C, where the section from A to the split overlaps.

Additional context This is difficult to describe in text and a few images, I advise to download KiCad or LTSpice and play around with it a bit. LTSpice: https://www.analog.com/en/design-center/design-tools-and-calculators/ltspice-simulator.html Kicad: https://www.kicad.org/download/

In general, I think this way of drawing would benefit much more users than just electrical engineers. It is a very intuitive way of drawing (much like one would do it on paper).

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.