feat: DWG 내장 복합 라인타입 동적 바인딩 및 텍스트 갭 정렬 보정

This commit is contained in:
minsung
2026-07-31 09:24:48 +09:00
parent 3d3e052f3e
commit 14d1f06927
3 changed files with 131 additions and 18 deletions
+9 -3
View File
@@ -30,12 +30,18 @@ async function runE2EDataTest() {
}
}
console.log('\n4. Verifying Complex Linetype Math in Viewer2D:');
const { getLinPattern } = require('./src/viewer2d/linParser.ts');
console.log('\n4. Verifying Complex Linetype Math in Viewer2D with DWG Embedded Data:');
const { getLinPattern, mergeDwgLinetypePattern } = await import('file:///d:/MYCLAUDE_PROJECT/dwg-dxf-viewer-sample/src/viewer2d/linParser.ts');
const targetTypes = ['H-DICHL06', 'H-DICHL06R', 'H-DICHL02R', 'H-DICHL01R', 'H-DICHL05'];
const dwgLtMap = new Map();
for (const lt of lineTypes) {
if (lt.name && lt.pattern) dwgLtMap.set(lt.name.toUpperCase(), lt);
}
for (const name of targetTypes) {
const pattern = getLinPattern(name);
const dwgLt = dwgLtMap.get(name);
const pattern = mergeDwgLinetypePattern(name, dwgLt?.pattern || [], dwgLt?.description);
if (!pattern) {
console.error(` [FAIL] Pattern ${name} not found in registry!`);
continue;