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

@ -127,6 +127,11 @@ namespace pxsim.visuals {
{
visibility: hidden;
}
.sim-wireframe .sim-label
{
stroke: none;
fill: #777;
}
.sim-wireframe .sim-board {
stroke-width: 2px;
}

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 {

View File

@ -24,7 +24,7 @@ namespace pxsim.visuals {
stroke-dasharray: ${PIN_DIST / 10.0},${PIN_DIST / 1.5};
/*stroke-opacity: 0.4;*/
}
.grayed .sim-bb-wire-end:not(.highlight) {
.grayed .sim-bb-wire-ends-g:not(.highlight) .sim-bb-wire-end {
stroke: #777;
fill: #777;
}