feat: DWG 내장 복합 라인타입 동적 바인딩 및 텍스트 갭 정렬 보정
This commit is contained in:
+9
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user