+
+
+ ${rows.map(({ file, index, presentation }) => {
+ const id = normalizedStlId(file);
+ const mode = stlMode(file);
+ const color = stlColor(file, index);
+ return `
+
+ `;
+ }).join("")}
+
+
+ `;
+ }).join("");
$("stlList").querySelectorAll("[data-family-toggle]").forEach((button) => {
button.addEventListener("click", () => {
- const family = button.dataset.familyToggle;
- if (state.collapsedStlFamilies.has(family)) state.collapsedStlFamilies.delete(family);
- else state.collapsedStlFamilies.add(family);
+ const groupKey = button.dataset.familyToggle;
+ if (state.collapsedStlFamilies.has(groupKey)) state.collapsedStlFamilies.delete(groupKey);
+ else state.collapsedStlFamilies.add(groupKey);
renderStl();
});
});
diff --git a/DICOM_and_UPP配准/static/styles.css b/DICOM_and_UPP配准/static/styles.css
index 7863fbe..2a00773 100644
--- a/DICOM_and_UPP配准/static/styles.css
+++ b/DICOM_and_UPP配准/static/styles.css
@@ -1880,6 +1880,36 @@ input[type="range"] {
transform: rotate(-45deg);
}
+.stl-hierarchy-group {
+ margin-bottom: 8px;
+}
+
+.stl-hierarchy-group .stl-family-head {
+ min-height: 36px;
+ margin-bottom: 6px;
+ border-color: rgba(148, 163, 184, 0.22);
+ border-radius: 7px;
+ background: linear-gradient(180deg, rgba(31, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
+ color: #eef7ff;
+}
+
+.stl-hierarchy-group:not(.collapsed) .stl-family-head {
+ border-color: rgba(45, 212, 191, 0.58);
+ box-shadow: inset 3px 0 0 rgba(45, 212, 191, 0.85);
+}
+
+.stl-hierarchy-group .stl-family-list {
+ margin: -2px 0 10px 12px;
+ padding-left: 10px;
+ border-left: 1px solid rgba(45, 212, 191, 0.22);
+}
+
+.stl-hierarchy-group .stl-row {
+ min-height: 58px;
+ margin-bottom: 7px;
+ border-radius: 10px;
+}
+
.stl-visibility-swatch {
width: 24px;
height: 24px;