Some small enhancements additional words.
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
This commit is contained in:
+13475
-3634
File diff suppressed because it is too large
Load Diff
@@ -403,7 +403,7 @@
|
||||
const cctx = confettiCanvas.getContext('2d');
|
||||
|
||||
// ===================== Constants =====================
|
||||
const CELL = 70, GAP = 20, GRID = 4, PITCH = CELL + GAP, SH = 5;
|
||||
const CELL = 70, GAP = 30, GRID = 4, PITCH = CELL + GAP, SH = 5;
|
||||
const ENTRANCE_DUR = 360, ENTRANCE_STAGGER = 42, PULSE_DUR = 520;
|
||||
const PALETTE = [
|
||||
'#ff3d81','#ffd400','#00e0c6','#7c5cff','#54a0ff',
|
||||
@@ -560,7 +560,7 @@
|
||||
// ===================== Rendering =====================
|
||||
function drawConnections() {
|
||||
const p = PAL();
|
||||
ctx.strokeStyle = p.line; ctx.lineWidth = GAP - 4; ctx.lineCap = 'round';
|
||||
ctx.strokeStyle = p.line; ctx.lineWidth = 8; ctx.lineCap = 'round';
|
||||
ctx.beginPath();
|
||||
for (const key of getActiveConnections()) {
|
||||
const [ka, kb] = key.split('-');
|
||||
@@ -576,7 +576,7 @@
|
||||
function drawSelectionLine(color) {
|
||||
if (selected.length < 2) return;
|
||||
const t1 = CELL / (2 * PITCH), t2 = 1 - t1;
|
||||
ctx.strokeStyle = color; ctx.lineWidth = GAP - 2; ctx.lineCap = 'round'; ctx.lineJoin = 'round';
|
||||
ctx.strokeStyle = color; ctx.lineWidth = 10; ctx.lineCap = 'round'; ctx.lineJoin = 'round';
|
||||
ctx.beginPath();
|
||||
for (let i = 0; i < selected.length - 1; i++) {
|
||||
const c1 = cellCenter(selected[i][0], selected[i][1]);
|
||||
@@ -706,7 +706,7 @@
|
||||
'<span class="word-text">' + word + '</span>' +
|
||||
(isExtra ? '<span class="word-tag">бонус</span>' : '') +
|
||||
'</div>' +
|
||||
(def ? '<span class="word-def">— ' + def + '</span>' : '');
|
||||
(def ? '<span class="word-def">' + def.replace(/\n/g, '<br>') + '</span>' : '');
|
||||
grid.appendChild(item);
|
||||
}
|
||||
foundDiv.appendChild(grid);
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 26 KiB |
Reference in New Issue
Block a user