Some cleanup

This commit is contained in:
2024-04-27 13:10:43 -07:00
parent b88945ced6
commit 75a0c37ea5
7 changed files with 78 additions and 186 deletions

View File

@@ -1,5 +1,4 @@
const svgns = "http://www.w3.org/2000/svg",
selectedClass = 'selected';
const selectedClass = 'selected';
function dataSelector({ dataset: { allegiance, number }}) {
return `[data-number="${number}"][data-allegiance="${allegiance}"]`;

View File

@@ -4,8 +4,7 @@
// cancels out, leaving us with a unitless ratio of sqrt(3) / (3 / 2), or
// 2 * sqrt(3) / 3.
const svgns = "http://www.w3.org/2000/svg",
horzToVertDistRatio = 2 * Math.sqrt(3) / 3,
const horzToVertDistRatio = 2 * Math.sqrt(3) / 3,
arcSize = {
'small': Math.atan(horzToVertDistRatio / 6),

View File

@@ -1,5 +1,4 @@
const svgns = "http://www.w3.org/2000/svg",
targetClassName = 'sight-line-target',
const targetClassName = 'sight-line-target',
activeClassName = 'active';
function evenr_to_axial(x, y) {