The bottom line is that there is some kind of working window with the device (picture), which measures the various parameters of an electrical cable. To the right of this window there are elements (various brands of cables) from which the circuit is assembled. These elements need to be dragged by the cursor into the working window and the circuit itself is assembled with the help of connecting lines (wires) and the correctness of its assembly is monitored. The question is how to implement this drag and drop, the connection of the elements of the scheme and tracking the correctness of the assembly? I read about Drag'n'Drop, but I don’t know how to implement the connecting lines correctly. There are thoughts to add a button at the ends of each element and, when pressed, to make a connection, but I would just like to press the mouse to move the cursor to the required device connector and the wire should follow the cursor. With the implementation of validation stood up in a dead end. I think, when connecting, to assign, for example, a circuit element some identifier that corresponds to the connector of the device itself and then check through the condition, how correct will it be?
Closed due to the fact that the question is too common for the participants of the Air , aleksandr barakin , 0xdb , freim , Dmitry Kozlov on March 29 at 21:14 .
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
|
id, each input also has a compatibility check. If it were possible to track current / voltage / resistance on such a scheme, it would be generally gorgeous)) - DaemonHK