Difference between revisions of "Wiring Editor Testing"

From Open Source Controls Wiki
Jump to navigation Jump to search
Line 15: Line 15:
<iframe key="wiki" align="right" width="100%" height="1150" level="" path="/gojs/samples/wiring12.html?id=wiring1&palette=wiringPalette1&height=800px" />
<iframe key="wiki" align="right" width="100%" height="1150" level="" path="/gojs/samples/wiring12.html?id=wiring1&palette=wiringPalette1&height=800px" />


<pre id="wiringPalette1x" style="display:none">
{ "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":"T2","loc":"-201.06591796875 -235.76385498046875","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"Neutral","leftArray":[{"portId":"left0","portColor":"#40aceb"}],"rightArray":[{"portId":"right0","portColor":"#40aceb"}],"topArray":[],"bottomArray":[],"key":"T3","loc":"-200.06591796875 -196.76385498046875","fill":"beige","thickness":1,"color":"black","size":"64 35","group":-17},
{"name":"Neutral","leftArray":[{"portId":"left0","portColor":"#40aceb"}],"rightArray":[{"portId":"right0","portColor":"#40aceb"}],"topArray":[],"bottomArray":[],"key":"T4","loc":"-200.06591796875 -157.26385498046875","fill":"beige","thickness":1,"color":"black","size":"64 34","group":-17},
{"name":"Neutral","leftArray":[{"portId":"left0","portColor":"#40aceb"}],"rightArray":[{"portId":"right0","portColor":"#40aceb"}],"topArray":[],"bottomArray":[],"key":"T5","loc":"-200.06591796875 -118.76385498046875","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"},{"portId":"left1","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T6","loc":"-200.23487665901507 -81.76385498046875","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T7","loc":"-200.8056038625574 -43.75010283887849","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T8","loc":"-200.8056038625574 -4.691161281335084","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T11","loc":"-201.28662096064835 110.27192516240677","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T10","loc":"-201.28662096064835 71.21298360486335","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T9","loc":"-200.71589375710602 33.199231463273094","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T112","loc":"-201.46444746772994 149.9136649230291","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"isGroup":true,"text":"","key":-17,"loc":"-193.26518271823997 -64.42509502871982","dash":[2,4]}
],
  "linkDataArray": [
{"from":"T1","to":"T2","fromPort":"right0","toPort":"right0","points":[-159.06591796875,-277.26385498046875,-149.06591796875,-277.26385498046875,-146.06591796875,-277.26385498046875,-146.06591796875,-256.51385498046875,-146.06591796875,-235.76385498046875,-160.06591796875,-235.76385498046875]},
{"from":"T3","to":"T4","fromPort":"right0","toPort":"right0","points":[-159.06591796875,-196.76385498046875,-149.06591796875,-196.76385498046875,-145.06591796875,-196.76385498046875,-145.06591796875,-177.01385498046875,-145.06591796875,-157.26385498046875,-159.06591796875,-157.26385498046875]},
{"from":"T4","to":"T5","fromPort":"right0","toPort":"right0","points":[-159.06591796875,-157.26385498046875,-149.06591796875,-157.26385498046875,-145.06591796875,-157.26385498046875,-145.06591796875,-138.01385498046875,-145.06591796875,-118.76385498046875,-159.06591796875,-118.76385498046875]},
{"from":-17,"to":"T7","fromPort":"","toPort":"right0"},
{"from":-17,"to":"T10","fromPort":"","toPort":"right0"}
]}
</pre>


<pre id="wiringPalette1" style="display:none">
<pre id="wiringPalette1" style="display:none">
Line 62: Line 38:
{"name":"Pump (PWM)","fill":"#cfe4f7","leftArray":[],"rightArray":[],"topArray":[{"portId":"top2","portColor":"#000000","figure":"Input"},{"portId":"top1","portColor":"#40aceb","signalTypes":["#40aceb"],"figure":"Input"},{"portId":"top0","portColor":"#40aceb","figure":"Output"}],"bottomArray":[],"key":"pump","size":"57.3212890625 52","loc":"668.0625 -156.5"},
{"name":"Pump (PWM)","fill":"#cfe4f7","leftArray":[],"rightArray":[],"topArray":[{"portId":"top2","portColor":"#000000","figure":"Input"},{"portId":"top1","portColor":"#40aceb","signalTypes":["#40aceb"],"figure":"Input"},{"portId":"top0","portColor":"#40aceb","figure":"Output"}],"bottomArray":[],"key":"pump","size":"57.3212890625 52","loc":"668.0625 -156.5"},
{"name":"Pump (0-10V)","fill":"#dbf6cb","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffff00","signalTypes":["#ffff00","#fffffe"],"figure":"Output"},{"portId":"top1","portColor":"#ffff00","figure":"Input"},{"portId":"top2","portColor":"#000000","figure":"Input"}],"bottomArray":[],"key":"pump2","size":"57.3212890625 52","loc":"669.15625 -268.375"},
{"name":"Pump (0-10V)","fill":"#dbf6cb","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#ffff00","signalTypes":["#ffff00","#fffffe"],"figure":"Output"},{"portId":"top1","portColor":"#ffff00","figure":"Input"},{"portId":"top2","portColor":"#000000","figure":"Input"}],"bottomArray":[],"key":"pump2","size":"57.3212890625 52","loc":"669.15625 -268.375"},
{"name":"Sticky Note","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[],"bottomArray":[],"key":"note","size":"150 150"},
{"name":"Sticky Note","fill":"#ffffff00","background":"/images/thumb/3/3f/Sticky.png/597px-Sticky.png","leftArray":[],"rightArray":[],"topArray":[],"bottomArray":[],"key":"note","size":"150 150"}
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#fffffe"]}],"topArray":[],"bottomArray":[],"key":"ntc","size":"58 40","loc":"-455.84375 -199.375","group":-4},
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#fffffe"]}],"topArray":[],"bottomArray":[],"key":"ntc2","size":"58 40","loc":"-456.84375 -139.375","group":-4},
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#fffffe"]}],"topArray":[],"bottomArray":[],"key":"ntc3","size":"58 40","loc":"-453.84375 -85.375","group":-4},
{"isGroup":true,"text":"ntc3","key":-4,"loc":"-439.84375 -142.375"},
{"name":"Live","leftArray":[{"portId":"left0","portColor":"#e88600"}],"rightArray":[{"portId":"right0","portColor":"#e88600"}],"topArray":[],"bottomArray":[],"key":"T1","loc":"-187.84375 -228.375","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":"-188.84375 -186.875","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"Neutral","leftArray":[{"portId":"left0","portColor":"#40aceb"}],"rightArray":[{"portId":"right0","portColor":"#40aceb"}],"topArray":[],"bottomArray":[],"key":"T3","loc":"-187.84375 -147.875","fill":"beige","thickness":1,"color":"black","size":"64 35","group":-17},
{"name":"Neutral","leftArray":[{"portId":"left0","portColor":"#40aceb"}],"rightArray":[{"portId":"right0","portColor":"#40aceb"}],"topArray":[],"bottomArray":[],"key":"T4","loc":"-187.84375 -108.375","fill":"beige","thickness":1,"color":"black","size":"64 34","group":-17},
{"name":"Neutral","leftArray":[{"portId":"left0","portColor":"#40aceb"}],"rightArray":[{"portId":"right0","portColor":"#40aceb"}],"topArray":[],"bottomArray":[],"key":"T5","loc":"-187.84375 -69.875","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"},{"portId":"left1","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T6","loc":"-188.01270869026507 -32.875","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T7","loc":"-188.5834358938074 5.13875214159026","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T8","loc":"-188.5834358938074 44.197693699133666","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T11","loc":"-189.06445299189835 159.16078014287552","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T10","loc":"-189.06445299189835 120.1018385853321","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T9","loc":"-188.49372578835602 82.08808644374184","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"name":"","leftArray":[{"portId":"left0","portColor":"#000000"}],"rightArray":[{"portId":"right0","portColor":"#000000"}],"topArray":[],"bottomArray":[],"key":"T112","loc":"-189.24227949897994 198.80251990349785","fill":"beige","thickness":1,"color":"black","size":"64 33","group":-17},
{"isGroup":true,"text":"","key":-17,"loc":"-181.04301474948997 -15.536240048251074","dash":[2,4]}
 
]
]
</pre>
</pre>

Revision as of 23:46, 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