2503회 채점기준표 작성

This commit is contained in:
2025-03-28 17:59:53 +09:00
parent b52d9b7dd9
commit e3ea5c546d
75 changed files with 2017 additions and 25 deletions

View File

@@ -48,6 +48,41 @@ function getGpdpScore(gpdpData, scoringJson, index) {
const scoringData = scoringJson[index];
// console.log(scoringData);
const layerList = xpath.select('/Document/Layers/Layer', gpdpXmlDoc);
layerList.forEach((layer, layerIndex) => {
const childNodes = Array.from(layer.childNodes);
childNodes.forEach(child => {
console.log("🚀 ~ child node:", child);
});
});
// gpdp 필요한 데이터 필터링
function getLayerData( gpdpXmlDoc ) {
/**
* 3)레이어 마스크 여부
* 도형
* 5) 모양 (모서리가 둥근 사각형:ROUNDED_RECTANGLE / 사각형:RECTANGLE )
* 6) 크기
* 7) 그라데이션 (색상)
* 텍스트
* 8) 어린이 과학관
* 9) 글꼴(돋움)
* 10) 글꼴 스타일(기울임꼴)
* 11) 크기(32pt)
* 12) 채우기(색상 : F04DA5)
* 13) 외곽선(두께 : 3.00px)
* 14) 외곽선(색상 : FFF000)
* 15) 클리핑 마스크 설정
* 16) 원형/타원형
* 17) 크기 : 150 × 150
* 18) 외곽선(두께 : 7.00px)
* 19) 외곽선(색상 : 008878)
* 20) 그림자(두께 : 5.00px, 거리 : 3.00px, 분산도 : 1px, 각도 : 320°)
* */
}
let totalScore = 0;
// 채점기준표 문항별 분류