Files
Aislo/B05_Profile/B05_Profile_UI_Style_Structures.css
T
eomsangdonandClaude Opus 5 2028af6152 feat(B05): 구조물 컨테이너 병합 3단계 — 섹션 통합·측점 두 칸 입력·구 UI 폐기
사용자 화면 피드백 3건(2026-08-17) 반영 + PLAN 3단계(이관·폐기).

- 「구조물 배치」 단일 섹션: 구 비정규 측점 섹션을 흡수·삭제하고 「구조물
  추가」를 개칭. 위치 입력은 측점번호+잔여거리 두 칸(구 비정규 UI 방식),
  순서 = 시작 측점 → 기준 측점 → 종료 측점(점형은 기준만, 비우면 시작).
- A그룹 제어 통합: A군 종류 목록에 계곡 통과 시설(배관/BOX암거/물넘이/세월교)
  표시 — 추가는 관 지점 정본 경유(onPipeAdd, 시설 종류 = type_id), 목록에
  "배수유역 연동"으로 병합 표시·선택 동기화·삭제. 노출형 횡단수로·개거는
  수동 구조물.
- 그래프 측점 표현: 서클마크 툴팁·벌룬 위치를 누가거리에서 측점번호+잔여
  거리 표기로 변경(mountStructureMarks에 측점간격 주입).
- 구 비정규 측점 이관: POST /route/structures/migrate 신설 — 기존 Migration
  매핑(배관 제외·기성막이→기슭막이·대피로→대피소) 사용, 정본 기존 (타입,
  기준점) 점유 검사로 멱등. Page 진입 시 구 확정분을 자동 이관하고 건수를
  토스트로 알린다. TDD 라우터 테스트 4건.
- 구 UI 폐기: onIrregularChange/Select 콜백 제거, 배관 투영은 Page의
  pipesToStations()가 직접 생성(시설 종류별 라벨). 그래프 측점선 드래그·
  삭제는 배관 전용으로 단일화, 구 우클릭 항목은 레지스트리 타입으로 매핑.
  drainage addPipe(chainage, facility?) 확장 — 통합 목록에서 시설 종류를
  지정해 추가하면 재계산 요청에 실려 정본까지 간다.

tmp/tests 92건·ruff·typecheck·build 통과.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-17 09:28:07 +09:00

123 lines
3.1 KiB
CSS

/* =============================================================================
* B05 구조물 서클마크·벌룬 오버레이 스타일.
*
* 종단 그래프(.b05-profile__chart) 위에 얹는 레이어다. 그래프 자체의 조작(측점선 끌기,
* 우클릭 메뉴)을 막지 않도록 레이어는 이벤트를 통과시키고, 마크·벌룬만 이벤트를 받는다.
* ========================================================================== */
.b05-structure__layer {
position: absolute;
inset: 0;
pointer-events: none;
overflow: visible;
z-index: 3;
}
/* 서클마크 — 배치형태와 무관하게 하나. 구간형은 기점에 찍힌다. */
.b05-structure__mark {
position: absolute;
transform: translateX(-50%);
width: 18px;
height: 18px;
padding: 0;
border-radius: 50%;
border: 2px solid currentColor;
background: var(--color-surface, #fff);
font-size: 10px;
font-weight: 700;
line-height: 1;
cursor: grab;
pointer-events: auto;
display: flex;
align-items: center;
justify-content: center;
}
.b05-structure__mark:hover {
filter: brightness(0.92);
}
.b05-structure__mark.is-selected {
border-width: 3px;
box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent);
}
.b05-structure__mark:active {
cursor: grabbing;
}
/* 구간 띠 — 고른 동안에만 시~종점을 펼쳐 보여 준다. */
.b05-structure__band {
position: absolute;
height: 4px;
border-radius: 2px;
opacity: 0.55;
pointer-events: none;
}
/* 값 벌룬 — 유토곡선 벌룬과 같은 결(테두리 도형 + 여러 줄 텍스트). */
.b05-structure__balloon {
position: absolute;
transform: translateX(-50%);
display: flex;
flex-direction: column;
gap: 1px;
padding: 4px 8px;
border: 1.5px solid currentColor;
border-radius: 6px;
background: var(--color-surface, #fff);
box-shadow: 0 2px 6px rgb(0 0 0 / 18%);
font-size: 11px;
line-height: 1.35;
white-space: nowrap;
pointer-events: none;
z-index: 4;
}
.b05-structure__balloon strong {
font-size: 11.5px;
}
.b05-structure__balloon-memo {
opacity: 0.7;
font-style: italic;
}
/* ── 계곡 통과 시설 편집 폼 (배수유역 패널 하단, 2026-08-17 컨테이너 병합) ──
* 관 마커를 고르면 나타난다. 시설 종류(배관/BOX암거/물넘이/세월교)·구간·세월교
* 관 옵션을 받고, 값이 바뀌면 즉시 재계산·정본 경로를 탄다. */
.b05-drainage__facility {
display: flex;
flex-direction: column;
gap: 6px;
padding: 8px 10px;
border-top: 1px solid var(--border-color, #3a3f4a);
}
.b05-drainage__facility .b05-route__irregular-row {
display: flex;
gap: 6px;
}
.b05-drainage__facility .b05-route__field {
flex: 1;
min-width: 0;
}
/* 측점 입력이 형식에 안 맞을 때(예: "3+18.0"도 숫자도 아님) 칸을 붉힌다. */
.b05-route__field input.is-invalid {
border-color: #e05b5b;
background: rgba(224, 91, 91, 0.08);
}
/* 측점번호 + 잔여거리 두 칸 입력(2026-08-17 통합 — 구 비정규 측점 UI와 같은 방식). */
.b05-structure__station-pair {
display: flex;
gap: 4px;
}
.b05-structure__station-pair input {
flex: 1;
min-width: 0;
}