feat(B05): 유토곡선 전체 맞춤에서 측점선 숨김·좌우 여백 축소
- 전체 맞춤(토량 분배) 보기는 측점 세로선을 그리지 않음 — 67개가 촘촘히 서서 곡선을 덮기만 하고 자리도 못 읽음. 공용 차트에 `hideStations` 축 옵션 신설, 분배를 끄면 예전대로 나옴. - 같은 보기에서 좌우 여백 축소 — 종단과 맞물릴 필요가 없으므로 반 칸 들여쓰기 (originOffset)를 빼고 우측 여백 12px. 곡선이 폭을 다 씀. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -51,6 +51,11 @@ export interface MassHaulAxis {
|
||||
viewRange?: { fromM: number; toM: number };
|
||||
/** 세로창 버티기·부드러운 이동 상태. 넘기면 창이 한 칸에 확 튀지 않는다(2026-09-04). */
|
||||
window?: MassHaulWindowState;
|
||||
/**
|
||||
* 측점 세로선을 그리지 않는다. 곡선 전체를 한 화면에 눌러 담는 보기(토량 분배)에서는
|
||||
* 측점선이 촘촘해 곡선을 덮기만 하고 자리도 못 읽는다(2026-09-06 사용자 지시).
|
||||
*/
|
||||
hideStations?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -535,7 +540,7 @@ export function createMassHaulChart(
|
||||
|
||||
// 측점선 — 종단도와 같은 자리에 서고, 눌러서 측점을 고를 수 있다(3자 선택 동기화).
|
||||
// 라벨은 바로 위 종단면도가 이미 달고 있어 여기서는 생략한다(중복 표기 방지).
|
||||
for (const station of longitudinal.stations) {
|
||||
for (const station of axis.hideStations ? [] : longitudinal.stations) {
|
||||
const stationX = x(station.chainage_m);
|
||||
const selected = station.station_id === selectedStationId;
|
||||
const marker = svgElement("g", {
|
||||
|
||||
Reference in New Issue
Block a user