Create record sheet dynamically when map is loaded
This commit is contained in:
@@ -13,8 +13,8 @@ const horzToVertDistRatio = 2 * Math.sqrt(3) / 3,
|
||||
},
|
||||
|
||||
firingArcVisibility = {
|
||||
davion: false,
|
||||
liao: false
|
||||
defender: false,
|
||||
attacker: false
|
||||
},
|
||||
|
||||
clippedFiringArcRadius = 25;
|
||||
|
||||
@@ -29,6 +29,10 @@ function getCounterAndClones(svg, counter) {
|
||||
return svg.querySelectorAll(`.counter${dataSelector(counter)}`);
|
||||
}
|
||||
|
||||
export function getAllCounters(container) {
|
||||
return container.querySelectorAll('g.counter[data-allegiance][data-number]');
|
||||
}
|
||||
|
||||
export function getCounter(svg, selected) {
|
||||
return svg.querySelector(`.counter${dataSelector(selected)}:not(.clone)`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user