Difference between revisions of "Wiring Editor Testing"

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


<pre id="wiringPalette1" style="display:none">
<pre id="wiringPalette1" style="display:none">
{ "class": "GraphLinksModel",
{ "nodeDataArray": [
  "copiesArrays": true,
  "copiesArrayObjects": true,
  "linkFromPortIdProperty": "fromPort",
  "linkToPortIdProperty": "toPort",
  "nodeDataArray": [
{"name":"Live","leftArray":[{"portId":"left0","portColor":"#e88600"}],"rightArray":[{"portId":"right0","portColor":"#e88600"}],"topArray":[],"bottomArray":[],"key":"T1","loc":"-200.06591796875 -277.26385498046875","fill":"beige","thickness":1,"color":"black","size":"64 36","group":-17},
{"name":"Live","leftArray":[{"portId":"left0","portColor":"#e88600"}],"rightArray":[{"portId":"right0","portColor":"#e88600"}],"topArray":[],"bottomArray":[],"key":"T1","loc":"-200.06591796875 -277.26385498046875","fill":"beige","thickness":1,"color":"black","size":"64 36","group":-17},
{"name":"Live","leftArray":[{"portId":"left0","portColor":"#e88600"}],"rightArray":[{"portId":"right0","portColor":"#e88600"}],"topArray":[],"bottomArray":[],"key":"T2","loc":"-201.06591796875 -235.76385498046875","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"Live","leftArray":[{"portId":"left0","portColor":"#e88600"}],"rightArray":[{"portId":"right0","portColor":"#e88600"}],"topArray":[],"bottomArray":[],"key":"T2","loc":"-201.06591796875 -235.76385498046875","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},

Revision as of 23:41, 26 June 2022

Work In progress

  • Labels on wires. Will be draggable for positioning and can be used primarily to number (reference) individual wires. In controls wiring these would be the id tags on wires.
    • Draggable to any point along wire
    • Include a wire colour indicator
    • Is it possible to optionally have two labels, with one at each end?
  • Menu for editing wire colour, width, arrows and type (solid/dashed/dotted). Can you have a green/yellow (earth) dashed line?
  • Port colours updated to a fuller list to match scale.
  • Ports currently have a side, an order, and a colour (color). Wiki page to include JSON that describes ports in more detail, adding attributes. These can include a port type (portType) as well as compatible port types (compatibleWith) used to check wires are wired to compatible ports (so you can't wire a 24V to a GND without raising a warning).
  • Add a sidebar palette with standard devices.
    • Slider categories for electrical, mechanical etc.
    • Should be able to load custom palettes from wiki page JSON




Testing 2


Images

Controller Layout
Controller Layout

Rad.svg