From 3d2d5cad852a8dc5bd8f4f619b85775a3d1a09f6 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Wed, 24 Apr 2024 10:11:18 -0700
Subject: WIP: hover over counter reveals firing arc working again
---
src/modules/counter.js | 46 +++++++++++++++++++++++-----------------------
1 file changed, 23 insertions(+), 23 deletions(-)
(limited to 'src/modules/counter.js')
diff --git a/src/modules/counter.js b/src/modules/counter.js
index 21a0238..3438566 100644
--- a/src/modules/counter.js
+++ b/src/modules/counter.js
@@ -61,29 +61,29 @@ export default class Counter {
return pt;
}
- pointerOver(e) {
- const { number: troopNumber, allegiance: troopAllegiance } = e.target.dataset,
- cp = this.svg.querySelector(`#clip-path-${troopAllegiance}-${troopNumber}`);
-
- if (cp) {
- cp.style.display = 'none';
- }
- }
-
- pointerOut(e) {
- let { number: troopNumber, allegiance: troopAllegiance } = e.target.dataset,
- cp = this.svg.querySelector(`#clip-path-${troopAllegiance}-${troopNumber}`);
-
- if (cp) {
- let isVisible =
- document
- .getElementById('toggle-firing-arc-vis')
- .querySelector(`input[data-allegiance="${troopAllegiance}"]`)
- .checked;
-
- cp.style.display = isVisible ? 'none' : '';
- }
- }
+ // pointerOver(e) {
+ // const { number: troopNumber, allegiance: troopAllegiance } = e.target.dataset,
+ // cp = this.svg.querySelector(`#clip-path-${troopAllegiance}-${troopNumber}`);
+
+ // if (cp) {
+ // cp.style.display = 'none';
+ // }
+ // }
+
+ // pointerOut(e) {
+ // let { number: troopNumber, allegiance: troopAllegiance } = e.target.dataset,
+ // cp = this.svg.querySelector(`#clip-path-${troopAllegiance}-${troopNumber}`);
+
+ // if (cp) {
+ // let isVisible =
+ // document
+ // .getElementById('toggle-firing-arc-vis')
+ // .querySelector(`input[data-allegiance="${troopAllegiance}"]`)
+ // .checked;
+
+ // cp.style.display = isVisible ? 'none' : '';
+ // }
+ // }
click(e) {
if (e.target.classList.contains(selectedClass)) {
--
cgit v1.2.3