Refactor sight line module to remove almost all querying for elements

This commit is contained in:
2024-04-26 16:08:40 -07:00
parent a5e1ebcd47
commit f07d120b4b
5 changed files with 126 additions and 146 deletions

View File

@@ -35,7 +35,7 @@ use[href="#hex"].active {
stroke: black;
}
use[href="#hex"].sight-line-target {
.sight-line-target use[href="#hex"] {
opacity: 1;
stroke: orangered;
fill-opacity: 0.04;

View File

@@ -140,13 +140,6 @@ use[href="#point"].active {
opacity: 0.2;
}
use[href="#point"].sight-line-target {
opacity: 1;
stroke: orangered;
/* stroke-width: 1px; */
fill-opacity: 0.04;
}
polyline.move-trace {
stroke: gray;
stroke-dasharray: 2;