Skip to content

Commit 02178ca

Browse files
FIX: Wires ids not accurate
- Chnage some wires id that came from the `drawBasicConnection` function - Change clock background gradient to comply with the mock-up
1 parent 5c9366a commit 02178ca

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/code/css/schematics.css

+7-1
Original file line numberDiff line numberDiff line change
@@ -386,5 +386,11 @@
386386
top: 82vh;
387387
left: 0;
388388
z-index: 1;
389-
background: linear-gradient(to top, rgb(from var(--tertiary) r g b / 1), rgb(from var(--primary) r g b / .1));
389+
background: linear-gradient(to top,
390+
rgb(from var(--primary) r g b / 1),
391+
rgb(from var(--primary) r g b / 1),
392+
rgb(from var(--primary) r g b / 1),
393+
rgb(from var(--primary) r g b / 1),
394+
rgb(from var(--primary) r g b / 0.7),
395+
rgb(from var(--primary) r g b / 0));
390396
}

src/code/js/connections.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ function drawBasicConnection(obj1, obj2) {
147147

148148

149149
// Draw the connection
150-
drawLine(.6, distW1 + sizeOut, outputCenter, output.left, obj1, `lut-${obj1.split('-')[1]}-Wire1`);
151-
drawLine(distH, .3, (output.top < input.top ? outputCenter : inputCenter), output.right + distW1, obj1, `lut-${obj1.split('-')[1]}-Wire2`);
152-
drawLine(.6, distW2 + sizeIn, inputCenter, input.right - distW2 - sizeIn, obj1, `lut-${obj1.split('-')[1]}-Wire3`);
150+
drawLine(.6, distW1 + sizeOut, outputCenter, output.left, obj1, `${obj1.split('-')[0]}-${obj1.split('-')[1]}-Wire1`);
151+
drawLine(distH, .3, (output.top < input.top ? outputCenter : inputCenter), output.right + distW1, obj1, `${obj1.split('-')[0]}-${obj1.split('-')[1]}-Wire2`);
152+
drawLine(.6, distW2 + sizeIn, inputCenter, input.right - distW2 - sizeIn, obj1, `${obj1.split('-')[0]}-${obj1.split('-')[1]}-Wire3`);
153153
}
154154

155155

0 commit comments

Comments
 (0)