Difference between revisions of "Wiring Editor"

From Open Source Controls Wiki
Jump to navigation Jump to search
Line 3: Line 3:


<pre id="wiring1" style="display:none">
<pre id="wiring1" style="display:none">
  { "class": "GraphLinksModel",
{ "class": "GraphLinksModel",
      "copiesArrays": true,
  "copiesArrays": true,
      "copiesArrayObjects": true,
  "copiesArrayObjects": true,
      "linkFromPortIdProperty": "fromPort",
  "linkFromPortIdProperty": "fromPort",
      "linkToPortIdProperty": "toPort",
  "linkToPortIdProperty": "toPort",
      "nodeDataArray": [
  "nodeDataArray": [
    {"key":"C1",
{"key":"C1","
</pre>
</pre>



Revision as of 17:39, 13 June 2022

Concons1.png

How to Use in Articles

The following two elements have been given an id (view in the source) that can then be passed to a diagram using an iframe tag.

The second element has also been hidden from view.

This way it is possible to create a design on this page and then include it into articles using pure JSON.

Improvements

  • Number terminals
  • Fix widths with top/bottom terminals
  • Hover text over terminals
  • Change colour of blocks
  • Position terminals (drag along sides)
  • Menu to change line thickness, type, colour, arrows.
  • Optional wire labels = controller number + terminal number (e.g. 101)