fixes wire highlighting in instructions

This commit is contained in:
darzu
2016-08-31 13:59:20 -07:00
parent e27c4de108
commit 66ba26586f
3 changed files with 9 additions and 7 deletions

View File

@@ -93,18 +93,15 @@ namespace pxsim.visuals {
}
public highlightWire(wire: Wire) {
//TODO: move to wiring.ts
//underboard wires
wire.wires.forEach(e => {
svg.addClass(e, "highlight");
(<any>e).style["visibility"] = "visible";
});
//un greyed out
[wire.end1, wire.end2].forEach(e => {
svg.addClass(e, "highlight");
});
wire.wires.forEach(e => {
svg.addClass(e, "highlight");
});
svg.addClass(wire.endG, "highlight");
}
public getView(): SVGElement {