fixes wire highlighting in instructions
This commit is contained in:
parent
e27c4de108
commit
66ba26586f
@ -127,6 +127,11 @@ namespace pxsim.visuals {
|
|||||||
{
|
{
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
.sim-wireframe .sim-label
|
||||||
|
{
|
||||||
|
stroke: none;
|
||||||
|
fill: #777;
|
||||||
|
}
|
||||||
.sim-wireframe .sim-board {
|
.sim-wireframe .sim-board {
|
||||||
stroke-width: 2px;
|
stroke-width: 2px;
|
||||||
}
|
}
|
||||||
|
@ -93,18 +93,15 @@ namespace pxsim.visuals {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public highlightWire(wire: Wire) {
|
public highlightWire(wire: Wire) {
|
||||||
|
//TODO: move to wiring.ts
|
||||||
//underboard wires
|
//underboard wires
|
||||||
wire.wires.forEach(e => {
|
wire.wires.forEach(e => {
|
||||||
|
svg.addClass(e, "highlight");
|
||||||
(<any>e).style["visibility"] = "visible";
|
(<any>e).style["visibility"] = "visible";
|
||||||
});
|
});
|
||||||
|
|
||||||
//un greyed out
|
//un greyed out
|
||||||
[wire.end1, wire.end2].forEach(e => {
|
svg.addClass(wire.endG, "highlight");
|
||||||
svg.addClass(e, "highlight");
|
|
||||||
});
|
|
||||||
wire.wires.forEach(e => {
|
|
||||||
svg.addClass(e, "highlight");
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public getView(): SVGElement {
|
public getView(): SVGElement {
|
||||||
|
@ -24,7 +24,7 @@ namespace pxsim.visuals {
|
|||||||
stroke-dasharray: ${PIN_DIST / 10.0},${PIN_DIST / 1.5};
|
stroke-dasharray: ${PIN_DIST / 10.0},${PIN_DIST / 1.5};
|
||||||
/*stroke-opacity: 0.4;*/
|
/*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;
|
stroke: #777;
|
||||||
fill: #777;
|
fill: #777;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user