2506회 정기 채점결과
This commit is contained in:
@@ -173,7 +173,6 @@ function getGpdpScore(gpdpData, scoringJson, index) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (type === "none") {
|
||||
console.log("❌ 채점하지 않음");
|
||||
scoringResult[key] = "확인필요";
|
||||
@@ -191,31 +190,9 @@ function getGpdpScore(gpdpData, scoringJson, index) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// []
|
||||
// else if (type === "layer.exists") {
|
||||
// const layerNameList = xpath.select(ele, gpdpXmlDoc);
|
||||
// const layerNames = layerNameList.map(layer => layer.value);
|
||||
// let isMatched = false
|
||||
|
||||
// let result = findSimilarString(gpdpXmlDoc, rightAnswer, 0.8);
|
||||
// if (result !== null) {
|
||||
// userAnswer = result;
|
||||
// isMatched = true;
|
||||
// }
|
||||
|
||||
// if (isMatched) {
|
||||
// totalScore += compareAndScore(userAnswer, rightAnswer, point, key, scoringResult, {
|
||||
// type: 'force-correct'
|
||||
// });
|
||||
// }
|
||||
// else {
|
||||
// totalScore += compareAndScore(userAnswer, rightAnswer, point, key, scoringResult);
|
||||
// }
|
||||
// }
|
||||
|
||||
// [1-4] 사진1 > 조정
|
||||
else if (type === "layer.Effects") {
|
||||
const effects = xpath.select(ele, gpdpXmlDoc);
|
||||
const effects = ele ? xpath.select(ele, gpdpXmlDoc) : [];
|
||||
|
||||
let isMatched = false;
|
||||
for (const item of effects) {
|
||||
@@ -474,7 +451,15 @@ function getGpdpScore(gpdpData, scoringJson, index) {
|
||||
// [5-20]
|
||||
else if (type === 'shadow') {
|
||||
const shapes = xpath.select(ele, gpdpXmlDoc);
|
||||
|
||||
if (!(shapes?.length)) {
|
||||
userAnswer = {
|
||||
shadow: null,
|
||||
width: null,
|
||||
distance: null,
|
||||
blur: null,
|
||||
angle: null,
|
||||
}
|
||||
}
|
||||
for (const shape of shapes) {
|
||||
// 그림자 설정 여부
|
||||
const shadowExists = xpath.select1('contains(draw_type/@value, "Shadow")', shape);
|
||||
@@ -505,7 +490,6 @@ function getGpdpScore(gpdpData, scoringJson, index) {
|
||||
blur: null,
|
||||
angle: null,
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
// console.log("🚀 ~ userAnswer:", userAnswer);
|
||||
|
||||
Reference in New Issue
Block a user