Update and standardise QA implementations

- ES6ify (now using class syntax to define QAItem objects)
- Fix bug with KeepRight marker rendering not updating properly
- Use `qa-` prefix for the UI element classes to differentiate from iD
validation error related UI element classes
- Move away from "error" where possible in source
- Move away from snake_case naming where possible

Note that some function/method names have been untouched to make life
easier for v3 development. Have added note comments where appropriate.
This commit is contained in:
SilentSpike
2020-02-05 14:23:34 +00:00
parent 9faf8c0fe5
commit 51efd5b714
33 changed files with 2823 additions and 3079 deletions
+7 -7
View File
@@ -45,7 +45,7 @@
/* `.target` objects are interactive */
/* They can be picked up, clicked, hovered, or things can connect to them */
.qa_error.target,
.qaItem.target,
.note.target,
.node.target,
.turn .target {
@@ -83,7 +83,7 @@
/* points, notes & QA */
/* points, notes, markers */
g.qa_error .stroke,
g.qaItem .stroke,
g.note .stroke {
stroke: #222;
stroke-width: 1;
@@ -91,7 +91,7 @@ g.note .stroke {
opacity: 0.6;
}
g.qa_error.active .stroke,
g.qaItem.active .stroke,
g.note.active .stroke {
stroke: #222;
stroke-width: 1;
@@ -106,7 +106,7 @@ g.point .stroke {
}
g.qa_error .shadow,
g.qaItem .shadow,
g.point .shadow,
g.note .shadow {
fill: none;
@@ -115,14 +115,14 @@ g.note .shadow {
stroke-opacity: 0;
}
g.qa_error.hover:not(.selected) .shadow,
g.qaItem.hover:not(.selected) .shadow,
g.note.hover:not(.selected) .shadow,
g.point.related:not(.selected) .shadow,
g.point.hover:not(.selected) .shadow {
stroke-opacity: 0.5;
}
g.qa_error.selected .shadow,
g.qaItem.selected .shadow,
g.note.selected .shadow,
g.point.selected .shadow {
stroke-opacity: 0.7;
@@ -430,4 +430,4 @@ g.vertex.highlighted .shadow {
.highlight-edited path.line.shadow.geometry-edited,
.highlight-edited path.area.shadow.geometry-edited {
stroke: rgb(255, 126, 46);
}
}