Difference between revisions of "Wiring Editor Testing"
Jump to navigation
Jump to search
Line 54: | Line 54: | ||
"linkToPortIdProperty": "toPort", | "linkToPortIdProperty": "toPort", | ||
"nodeDataArray": [ | "nodeDataArray": [ | ||
{"key":"node","name":"BEMS Hat","color":"palegreen","image":"/images/c/c1/C2a.svg","leftArray":[{"portId":"left0","portColor":"#000000"},{"portId":"left1","portColor":"#00ff00"},{"portId":"left2","portColor":"#000000"},{"portId":"left3","portColor":"#00ff00"},{"portId":"left4","portColor":"#000000"},{"portId":"left5","portColor":"#00ff00"},{"portId":"left6","portColor":"#000000"},{"portId":"left7","portColor":"#00ff00"},{"portId":"left8","portColor":"#000000"},{"portId":"left9","portColor":"#ffff00"},{"portId":"left10","portColor":"#000000"},{"portId":"left11","portColor":"#ffff00"},{"portId":"left12","portColor":"#000000"},{"portId":"left13","portColor":"#ffff00"},{"portId":"left14","portColor":"#000000"},{"portId":"left15","portColor":"#ffff00"},{"portId":"left16","portColor":"#000000"},{"portId":"left17","portColor":"#00ff00"},{"portId":"left18","portColor":"#000000"},{"portId":"left19","portColor":"#00ff00"},{"portId":"left20","portColor":"#000000"},{"portId":"left21","portColor":"#00ff00"},{"portId":"left22","portColor":"#000000"},{"portId":"left23","portColor":"#00ff00"}],"topArray":[{"portColor":"#ffc900","portId":"top01"},{"portColor":"#ffc900","portId":"top02"},{"portColor":"#ffc900","portId":"top03"},{"portId":"top1","portColor":"#000000"},{"portId":"top2","portColor":"#e88600"},{"portId":"top3","portColor":"#000002"},{"portColor":"#ffffff","portId":"top4"},{"portColor":"#ffffff","portId":"top5"}],"bottomArray":[{"portColor":"#000000","portId":"bottom0"},{"portId":"bottom1","portColor":"#00ffff"},{"portId":"bottom2","portColor":"#000000"},{"portId":"bottom3","portColor":"#00ffff"},{"portId":"bottom4","portColor":"#000000"},{"portId":"bottom5","portColor":"#00ffff"},{"portId":"bottom6","portColor":"#000000"},{"portId":"bottom7","portColor":"#00ffff"},{"portId":"bottom8","portColor":"#000000"},{"portId":"bottom9","portColor":"#40aceb"},{"portId":"bottom10","portColor":"#000000"},{"portId":"bottom11","portColor":"#40aceb"},{"portId":"bottom12","portColor":"#000001"},{"portId":"bottom13","portColor":"#40aceb"},{"portId":"bottom14","portColor":"#000001"},{"portId":"bottom15","portColor":"#40aceb"},{"portId":"bottom16","portColor":"#bf6ae3"},{"portId":"bottom17","portColor":"#bf6ae3"},{"portId":"bottom18","portColor":"#bf6ae3"},{"portId":"bottom19","portColor":"#bf6ae3"},{"portId":"bottom20","portColor":"#bf6ae3"},{"portId":"bottom21","portColor":"#bf6ae3"}],"rightArray":[{"portColor":"#000000","portId":"right0"},{"portColor":"#888891","portId":"right1"},{"portId":"right2","portColor":"#888890"},{"portId":"right3","portColor":"#000000"},{"portId":"right4","portColor":"#888889"},{"portId":"right5","portColor":"#888888"},{"portId":"right6","portColor":"#ddddbb"},{"portId":"right7","portColor":"#ddddbb"},{"portId":"right8","portColor":"#8827e7"},{"portId":"right9","portColor":"#000000"},{"portId":"right10","portColor":"#8827e7"},{"portId":"right11","portColor":"#000001"},{"portId":"right12","portColor":"#8827e7"},{"portId":"right13","portColor":"#000001"},{"portId":"right14","portColor":"#8827e7"},{"portId":"right15","portColor":"#000000"},{"portId":"right16","portColor":"#0000ff"},{"portId":"right17","portColor":"#ff0000"},{"portId":"right18","portColor":"#0000ff"},{"portId":"right19","portColor":"#ff0000"},{"portId":"right20","portColor":"#0000ff"},{"portId":"right21","portColor":"#ff0000"},{"portId":"right22","portColor":"#0000ff"},{"portId":"right23","portColor":"#ff0000"}],"loc":" | {"key":"node","name":"BEMS Hat","color":"palegreen","image":"/images/c/c1/C2a.svg","leftArray":[{"portId":"left0","portColor":"#000000"},{"portId":"left1","portColor":"#00ff00"},{"portId":"left2","portColor":"#000000"},{"portId":"left3","portColor":"#00ff00"},{"portId":"left4","portColor":"#000000"},{"portId":"left5","portColor":"#00ff00"},{"portId":"left6","portColor":"#000000"},{"portId":"left7","portColor":"#00ff00"},{"portId":"left8","portColor":"#000000"},{"portId":"left9","portColor":"#ffff00"},{"portId":"left10","portColor":"#000000"},{"portId":"left11","portColor":"#ffff00"},{"portId":"left12","portColor":"#000000"},{"portId":"left13","portColor":"#ffff00"},{"portId":"left14","portColor":"#000000"},{"portId":"left15","portColor":"#ffff00"},{"portId":"left16","portColor":"#000000"},{"portId":"left17","portColor":"#00ff00"},{"portId":"left18","portColor":"#000000"},{"portId":"left19","portColor":"#00ff00"},{"portId":"left20","portColor":"#000000"},{"portId":"left21","portColor":"#00ff00"},{"portId":"left22","portColor":"#000000"},{"portId":"left23","portColor":"#00ff00"}],"topArray":[{"portColor":"#ffc900","portId":"top01"},{"portColor":"#ffc900","portId":"top02"},{"portColor":"#ffc900","portId":"top03"},{"portId":"top1","portColor":"#000000"},{"portId":"top2","portColor":"#e88600"},{"portId":"top3","portColor":"#000002"},{"portColor":"#ffffff","portId":"top4"},{"portColor":"#ffffff","portId":"top5"}],"bottomArray":[{"portColor":"#000000","portId":"bottom0"},{"portId":"bottom1","portColor":"#00ffff"},{"portId":"bottom2","portColor":"#000000"},{"portId":"bottom3","portColor":"#00ffff"},{"portId":"bottom4","portColor":"#000000"},{"portId":"bottom5","portColor":"#00ffff"},{"portId":"bottom6","portColor":"#000000"},{"portId":"bottom7","portColor":"#00ffff"},{"portId":"bottom8","portColor":"#000000"},{"portId":"bottom9","portColor":"#40aceb"},{"portId":"bottom10","portColor":"#000000"},{"portId":"bottom11","portColor":"#40aceb"},{"portId":"bottom12","portColor":"#000001"},{"portId":"bottom13","portColor":"#40aceb"},{"portId":"bottom14","portColor":"#000001"},{"portId":"bottom15","portColor":"#40aceb"},{"portId":"bottom16","portColor":"#bf6ae3"},{"portId":"bottom17","portColor":"#bf6ae3"},{"portId":"bottom18","portColor":"#bf6ae3"},{"portId":"bottom19","portColor":"#bf6ae3"},{"portId":"bottom20","portColor":"#bf6ae3"},{"portId":"bottom21","portColor":"#bf6ae3"}],"rightArray":[{"portColor":"#000000","portId":"right0"},{"portColor":"#888891","portId":"right1"},{"portId":"right2","portColor":"#888890"},{"portId":"right3","portColor":"#000000"},{"portId":"right4","portColor":"#888889"},{"portId":"right5","portColor":"#888888"},{"portId":"right6","portColor":"#ddddbb"},{"portId":"right7","portColor":"#ddddbb"},{"portId":"right8","portColor":"#8827e7"},{"portId":"right9","portColor":"#000000"},{"portId":"right10","portColor":"#8827e7"},{"portId":"right11","portColor":"#000001"},{"portId":"right12","portColor":"#8827e7"},{"portId":"right13","portColor":"#000001"},{"portId":"right14","portColor":"#8827e7"},{"portId":"right15","portColor":"#000000"},{"portId":"right16","portColor":"#0000ff"},{"portId":"right17","portColor":"#ff0000"},{"portId":"right18","portColor":"#0000ff"},{"portId":"right19","portColor":"#ff0000"},{"portId":"right20","portColor":"#0000ff"},{"portId":"right21","portColor":"#ff0000"},{"portId":"right22","portColor":"#0000ff"},{"portId":"right23","portColor":"#ff0000"}],"loc":"118.15625 -7.375"}, | ||
{"name":"12v Power","color":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#e88600"},{"portId":"left2","portColor":"#000002"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"12VDC","size":"90 50","loc":" | {"name":"12v Power","color":"#dbf6cb","leftArray":[{"portId":"left0","portColor":"#e88600"},{"portId":"left2","portColor":"#000002"}],"rightArray":[],"topArray":[],"bottomArray":[],"key":"12VDC","size":"90 50","loc":"386.15625 -182.375"}, | ||
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"ntc4","size":"58 40","loc":"-635.09375 154.375","group":-9}, | |||
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"ntc2","size":"58 40","loc":"-633.59375 256.375","group":-9}, | |||
{"name":"NTC10K","fill":"#dbf6cb","leftArray":[],"rightArray":[{"portId":"right0","portColor":"#000000"},{"portId":"right1","portColor":"#00ff00","signalTypes":["#00ff00","#ffff00"]}],"topArray":[],"bottomArray":[],"key":"ntc3","size":"58 40","loc":"-635.09375 204.37499999999997","group":-9}, | |||
{"name":"","leftArray":[],"rightArray":[],"topArray":[{"portId":"top0","portColor":"#f6beb6"}],"bottomArray":[{"portId":"bottom0","portColor":"#f6beb6"},{"portId":"bottom1","portColor":"#f6beb6"},{"portId":"bottom2","portColor":"#f6beb6"},{"portId":"bottom3","portColor":"#f6beb6"},{"portId":"bottom4","portColor":"#f6beb6"},{"portId":"bottom5","portColor":"#f6beb6"}],"key":6,"loc":"-513.84375 103.823486328125","size":"65 5","thickness":2,"color":"#dbf6cb","notes":"","fill":"#dbf6cb","textColor":"#dbf6cb","group":-9}, | |||
{"name":"","leftArray":[{"portId":"left0","portColor":"#f6beb6"}],"rightArray":[{"portId":"right0","portColor":"#f6beb6"},{"portId":"right1","portColor":"#f6beb6"},{"portId":"right2","portColor":"#f6beb6"},{"portId":"right3","portColor":"#f6beb6"},{"portId":"right4","portColor":"#f6beb6"},{"portId":"right5","portColor":"#f6beb6"}],"topArray":[],"bottomArray":[],"key":-8,"loc":"-248.34375 -158.176513671875","size":"5 61","thickness":2,"color":"#dbf6cb","notes":"","fill":"#dbf6cb","textColor":"#dbf6cb"}, | |||
{"isGroup":true,"text":"NTC Group","key":-9,"loc":"-572.59375 184.7242431640625","dash":[2,4],"thickness":1} | |||
], | ], | ||
"linkDataArray": [ | "linkDataArray": [ | ||
{"from":"12VDC","to":"node","fromPort":"left0","toPort":"top2","points":[ | {"from":"12VDC","to":"node","fromPort":"left0","toPort":"top2","points":[332.40625,-187.375,314.40625,-187.375,123.15625,-187.375,123.15625,-178.375,123.15625,-169.375,123.15625,-135.375]}, | ||
{"from":" | {"from":"12VDC","to":"node","fromPort":"left2","toPort":"top3","points":[332.40625,-177.375,322.40625,-177.375,133.15625,-177.375,133.15625,-169.375,133.15625,-161.375,133.15625,-135.375]}, | ||
{"from":" | {"from":"ntc4","to":6,"fromPort":"right0","toPort":"bottom0","points":[-597.34375,149.375,-583.34375,149.375,-538.84375,149.375,-538.84375,139.3492431640625,-538.84375,129.323486328125,-538.84375,115.323486328125]}, | ||
{"from":"ntc4","to":6,"fromPort":"right1","toPort":"bottom1","points":[-597.34375,159.375,-575.34375,159.375,-528.84375,159.375,-528.84375,148.3492431640625,-528.84375,137.323486328125,-528.84375,115.323486328125]}, | |||
{"from":"ntc3","to":6,"fromPort":"right0","toPort":"bottom2","points":[-597.34375,199.375,-583.34375,199.375,-518.84375,199.375,-518.84375,172.3492431640625,-518.84375,145.323486328125,-518.84375,115.323486328125]}, | |||
{"from":"ntc3","to":6,"fromPort":"right1","toPort":"bottom3","points":[-597.34375,209.375,-575.34375,209.375,-508.84375,209.375,-508.84375,181.3492431640625,-508.84375,153.323486328125,-508.84375,115.323486328125]}, | |||
{"from":"ntc2","to":6,"fromPort":"right0","toPort":"bottom4","points":[-595.84375,251.375,-581.84375,251.375,-498.84375,251.375,-498.84375,206.3492431640625,-498.84375,161.323486328125,-498.84375,115.323486328125]}, | |||
{"from":"ntc2","to":6,"fromPort":"right1","toPort":"bottom5","points":[-595.84375,261.375,-573.84375,261.375,-488.84375,261.375,-488.84375,215.3492431640625,-488.84375,169.323486328125,-488.84375,115.323486328125]}, | |||
{"from":-8,"to":6,"fromPort":"left0","toPort":"top0","points":[-259.84375,-158.176513671875,-269.84375,-158.176513671875,-513.84375,-158.176513671875,-513.84375,-37.926513671875,-513.84375,82.323486328125,-513.84375,92.323486328125]}, | |||
{"from":-8,"to":"node","fromPort":"right0","toPort":"left0","points":[-236.84375,-183.176513671875,-186.84375,-183.176513671875,-84.34375,-183.176513671875,-84.34375,-122.375,-13.84375,-122.375,0.15625,-122.375]}, | |||
{"from":-8,"to":"node","fromPort":"right2","toPort":"left2","points":[-236.84375,-163.176513671875,-202.84375,-163.176513671875,-100.34375,-163.176513671875,-100.34375,-102.375,-29.84375,-102.375,0.15625,-102.375]}, | |||
{"from":-8,"to":"node","fromPort":"right4","toPort":"left4","points":[-236.84375,-143.176513671875,-218.84375,-143.176513671875,-116.34375,-143.176513671875,-116.34375,-82.375,-45.84375,-82.375,0.15625,-82.375]}, | |||
{"from":-8,"to":"node","fromPort":"right1","toPort":"left1","points":[-236.84375,-173.176513671875,-194.84375,-173.176513671875,-92.34375,-173.176513671875,-92.34375,-112.375,-21.84375,-112.375,0.15625,-112.375]}, | |||
{"from":-8,"to":"node","fromPort":"right3","toPort":"left3","points":[-236.84375,-153.176513671875,-210.84375,-153.176513671875,-108.34375,-153.176513671875,-108.34375,-92.375,-37.84375,-92.375,0.15625,-92.375]}, | |||
{"from":-8,"to":"node","fromPort":"right5","toPort":"left5","points":[-236.84375,-133.176513671875,-226.84375,-133.176513671875,-124.34375,-133.176513671875,-124.34375,-72.375,-53.84375,-72.375,0.15625,-72.375]} | |||
]} | ]} | ||
</pre> | </pre> |
Revision as of 21:34, 24 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