Files
Aislo/B05_Profile/B05_Profile_UI_Style_RouteEdit.css
T
eomsangdonandClaude Opus 5 f84b3d9451 feat(B05): 노선 편집 — R 라벨을 고른 자리 옆으로, 되돌리기·다시하기·초기화, 줌·팬 통일
사용자 지적 ③④⑤⑥ 과 추가 지시(되돌리기)를 한 묶음으로 처리.

- **③ R 라벨** — 모달 맨 아랫줄이던 곡선 편집칸을 걷고, 고른 꺾임점 **옆에 뜨는 라벨**로
  바꿈(`_Label.ts` 신설). 캔버스 밖으로 나가면 반대쪽으로 접어 넣음. 확대·이동·창 크기가
  바뀌어도 고른 노드를 따라감.
- **④ 노드가 손잡이보다 먼저 잡히게** — 반대였던 탓에 헤어핀처럼 곡선이 몰린 데서는
  노드를 아예 못 집었음. 손잡이는 **고른 곡선에만** 그림. 머리말 안내에 조작 여섯을 적음.
- **⑤ 줌·팬을 배수유역도와 동일하게**(`_Input.ts` 신설) — 휠은 **당기면 확대**(반대였음),
  계수 1.15/0.87, 상한은 화면 폭 16m 기준, 하한 0.5, **팬은 가운데 버튼 전용**.
  ⚠ 커서 고정 계산이 좌상단 기준이라 확대할수록 지점이 밀리던 것도 중심 기준으로 고침.
- **⑥ 등고선을 노선 ±300m 띠로** — 창 크기와 무관한 고정 띠라 창을 늘려도 안 깨짐.
  화면 밖 걸러내기는 종전대로 `drawPreparedLayer` 가 함.
- **되돌리기·다시하기·초기화**(`_History.ts` 신설) — [확인]이 무거워 되돌릴 길이 없으므로
  창 안에서 물릴 수 있게 함. **끌기 한 번이 한 걸음**이고 클릭만으로는 걸음이 안 생김.
  [초기화]는 **이 창을 연 상태**로 (≠ [예상노선으로]). Ctrl+Z / Ctrl+Y · Ctrl+Shift+Z.
- 700줄 제한 — 집기(hit test)를 `_Input.ts` 로 옮겨 본체 695줄.

실화면 검증(5174) — 라벨이 노드 오른쪽 [+18,−38]px 에 뜸 / 휠 당기니 중심에서 373.1 →
428.1px 로 확대 / 왼쪽 끌기로는 지도 안 움직임 / 가운데 버튼 끌기는 [60,40] 그대로 따라옴 /
단추 켜짐이 여섯 단계 모두 맞음. 전체 554 passed · 18 skipped, tsc 통과. 정본 안 건드림.

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

208 lines
4.8 KiB
CSS

/* 계획노선 편집 모달 — 큰 모달 하나. 계산이 오래 걸리는 조작이라 화면을 통째로 덮는다
(2026-09-06 사용자 확정). 색은 전부 테마 토큰을 쓴다. */
.b05-routeedit {
position: fixed;
inset: 0;
z-index: var(--z-modal, 1000);
display: flex;
align-items: center;
justify-content: center;
background: rgb(0 0 0 / 55%);
}
.b05-routeedit__box {
position: relative;
display: flex;
flex-direction: column;
width: min(1200px, 94vw);
height: min(820px, 92vh);
overflow: hidden;
border: 1px solid var(--color-border);
border-radius: var(--radius-16, 12px);
background: var(--color-surface-raised);
box-shadow: 0 12px 40px rgb(0 0 0 / 45%);
}
.b05-routeedit__head {
display: flex;
flex: none;
align-items: center;
gap: var(--spacing-12);
padding: var(--spacing-12) var(--spacing-16);
border-bottom: 1px solid var(--color-border);
}
.b05-routeedit__hint {
flex: 1 1 auto;
color: var(--color-text-secondary);
font-size: var(--text-caption);
}
.b05-routeedit__close {
flex: none;
border: none;
background: none;
color: var(--color-text-secondary);
font-size: 16px;
cursor: pointer;
}
.b05-routeedit__canvas-wrap {
position: relative;
flex: 1 1 auto;
min-height: 0;
background: var(--color-surface);
}
.b05-routeedit__canvas {
display: block;
width: 100%;
height: 100%;
touch-action: none;
}
.b05-routeedit__foot {
display: flex;
flex: none;
align-items: center;
gap: var(--spacing-8);
padding: var(--spacing-12) var(--spacing-16);
border-top: 1px solid var(--color-border);
}
.b05-routeedit__status {
flex: 1 1 auto;
color: var(--color-text-secondary);
font-size: var(--text-caption);
}
.b05-routeedit__legend {
display: inline-flex;
align-items: center;
gap: var(--spacing-8);
color: var(--color-text-secondary);
font-size: var(--text-caption);
}
.b05-routeedit__legend i {
display: inline-block;
width: 22px;
height: 0;
margin-right: 2px;
vertical-align: middle;
}
.b05-routeedit__legend i.is-expected {
border-top: 2px dashed var(--color-text-secondary, #9ca3af);
}
.b05-routeedit__legend i.is-planned {
border-top: 2px solid var(--map-route, #f97316);
}
.b05-routeedit__btn {
flex: none;
padding: var(--spacing-8) var(--spacing-16);
border: 1px solid var(--color-border);
border-radius: var(--radius-8, 6px);
background: var(--color-surface);
color: var(--color-text-body);
cursor: pointer;
}
.b05-routeedit__btn.is-primary {
border-color: transparent;
background: var(--color-primary, #7c3aed);
color: #fff;
}
/* 재계산 중에는 화면 전체를 덮는다 — 결과를 기다릴 수밖에 없는 조작(CLAUDE.md 5장). */
.b05-routeedit__busy {
position: absolute;
inset: 0;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
padding: var(--spacing-16);
background: rgb(0 0 0 / 55%);
color: #fff;
text-align: center;
}
/* R 라벨 — 고른 꺾임점 **옆에 떠 있는** 작은 상자(2026-09-07 사용자 지시 ③).
예전에는 모달 맨 아랫줄이라 지금 고른 것이 지도 어디인지 눈으로 안 이어졌다.
자리는 `_Label.ts` 가 매 프레임 잡아 준다 — 여기서는 모양만 정한다. */
.b05-routeedit__label {
position: absolute;
z-index: 2;
display: flex;
flex-direction: column;
gap: 4px;
min-width: 11rem;
padding: var(--spacing-8, 8px);
border: 1px solid var(--color-border, #e5e7eb);
border-radius: var(--radius-6, 6px);
background: var(--color-surface-2, #f9fafb);
box-shadow: 0 4px 14px rgb(0 0 0 / 25%);
font-size: var(--font-size-13, 13px);
}
.b05-routeedit__label-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--spacing-8, 8px);
}
.b05-routeedit__label-toggle,
.b05-routeedit__label-auto {
padding: 1px 6px;
border: 1px solid var(--color-border, #e5e7eb);
border-radius: var(--radius-4, 4px);
background: var(--color-surface, #fff);
color: inherit;
font: inherit;
font-size: var(--font-size-12, 12px);
cursor: pointer;
}
.b05-routeedit__label-toggle:disabled,
.b05-routeedit__label-auto:disabled {
color: var(--color-text-muted, #9ca3af);
cursor: default;
}
.b05-routeedit__curve-label {
font-weight: 600;
white-space: nowrap;
}
.b05-routeedit__curve-field {
display: inline-flex;
align-items: center;
gap: 4px;
white-space: nowrap;
}
.b05-routeedit__curve-radius {
width: 4.5rem;
padding: 2px 6px;
border: 1px solid var(--color-border, #e5e7eb);
border-radius: var(--radius-4, 4px);
font: inherit;
text-align: right;
}
.b05-routeedit__curve-radius:disabled {
background: var(--color-surface-3, #f3f4f6);
color: var(--color-text-muted, #9ca3af);
}
.b05-routeedit__curve-info {
max-width: 16rem;
color: var(--color-text-muted, #6b7280);
line-height: 1.35;
}