Improve drawing export and foundation quantity views

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
CopilotandCopilot committed 2026-11-06 15:35:56 +09:00
1 parent a0ec74b09b
commit d22c5008f0
72 files changed
+24346 -12

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import {template} from './template-data.ts';
import {DETAIL} from './schema.ts';
/** R→∞: original circular-segment area tends to 0; arc length tends to its chord. */
const chord='SQRT(((BG12+2*BG17-BG19-0.2)/2)^2+BG14^2)';
const area='((BG19+0.2)+(BG12+2*BG17))*BG14/2+(BG12+(BG12+2*BG17))*BG15/2+(BG12*((0.01*BG16*BG12)+BG17)/(BG15+0.01*BG16*BG12))*(0.01*BG16*BG12)/2';
export const straightCopingFormulas:Record<string,string>={
[DETAIL+'!W50']:'=('+area+')+2*BG13*'+chord+'+BG13*SQRT(BG17^2+BG15^2)+BG13*SQRT(BG17^2+(BG15+0.01*BG16*BG12)^2)',
[DETAIL+'!W58']:'=('+area+')*BG13+PI()*BG19^2/4*(BG6-BG14-BG15-BG7+BG20)+BG31*BG32*BG33*BG30',
};
export function sourceFormula(cell:string){return template[DETAIL][cell]?.value;}