Add drawing workspace feature

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
CopilotandCopilot committed 2026-11-04 13:34:51 +09:00
1 parent ad73ddec2b
commit a5cc458252
78 files changed
+35740 -6

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import type { Rect } from './types';
/** Optional future log input. No strata, elevations or boring positions are inferred. */
export type GeologicalLog={id:string;source:string;groundEl:number|null;waterEl:number|null;layers:{name:string;topEl:number|null;bottomEl:number|null}[]};
export type GeologicalPanel={title:string;area:Rect;logs:readonly GeologicalLog[]};
export function geologicalPanel(area:Rect,logs:readonly GeologicalLog[]):GeologicalPanel|null {
if(!logs.length)return null;
for(const log of logs){
if(!log.source.trim())throw new Error('지질주상도 원본 출처가 필요합니다.');
for(const layer of log.layers)if(layer.topEl!==null&&layer.bottomEl!==null&&layer.topEl<layer.bottomEl)throw new Error('지층 상·하단 표고를 확인하세요.');
}
return {title:'지질주상도',area,logs};
}