@digabi/exam-engine-core 19.0.4-alpha.2 → 19.0.4-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/components/grading/AnswerCharacterCounter.d.ts +6 -0
- package/dist/components/grading/AnswerCharacterCounter.d.ts.map +1 -0
- package/dist/components/grading/AnswerCharacterCounter.js +21 -0
- package/dist/components/grading/AnswerCharacterCounter.js.map +1 -0
- package/dist/components/grading/Grading.d.ts.map +1 -1
- package/dist/components/grading/Grading.js +12 -12
- package/dist/components/grading/Grading.js.map +1 -1
- package/dist/components/grading/GradingAnswer.d.ts +4 -3
- package/dist/components/grading/GradingAnswer.d.ts.map +1 -1
- package/dist/components/grading/GradingAnswer.js +111 -79
- package/dist/components/grading/GradingAnswer.js.map +1 -1
- package/dist/components/grading/editAnnotations.d.ts +4 -6
- package/dist/components/grading/editAnnotations.d.ts.map +1 -1
- package/dist/components/grading/editAnnotations.js +18 -13
- package/dist/components/grading/editAnnotations.js.map +1 -1
- package/dist/components/grading/largeImageDetector.js +3 -3
- package/dist/components/grading/largeImageDetector.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/main.css +1 -1
- package/dist/renderAnnotations.d.ts +2 -2
- package/dist/renderAnnotations.d.ts.map +1 -1
- package/dist/renderAnnotations.js +9 -7
- package/dist/renderAnnotations.js.map +1 -1
- package/package.json +2 -2
@@ -27,16 +27,16 @@ export function updateLargeImageWarnings(answer) {
|
|
27
27
|
function updateImageStatus(img) {
|
28
28
|
remainingImages--;
|
29
29
|
const wrapper = img.parentElement;
|
30
|
-
const nextSibling = wrapper.nextSibling;
|
30
|
+
const nextSibling = wrapper === null || wrapper === void 0 ? void 0 : wrapper.nextSibling;
|
31
31
|
const hasFullSizeLink = nextSibling instanceof HTMLElement && nextSibling.classList.contains('full-size-image');
|
32
32
|
if (img.naturalWidth > img.width) {
|
33
33
|
if (!hasFullSizeLink) {
|
34
|
-
wrapper.insertAdjacentHTML('afterend', `<div class="full-size-image"><a target="_blank" href="${img.src}"></a>`);
|
34
|
+
wrapper === null || wrapper === void 0 ? void 0 : wrapper.insertAdjacentHTML('afterend', `<div class="full-size-image"><a target="_blank" href="${img.src}"></a>`);
|
35
35
|
}
|
36
36
|
}
|
37
37
|
else {
|
38
38
|
if (hasFullSizeLink) {
|
39
|
-
nextSibling.remove();
|
39
|
+
nextSibling === null || nextSibling === void 0 ? void 0 : nextSibling.remove();
|
40
40
|
}
|
41
41
|
}
|
42
42
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"largeImageDetector.js","sourceRoot":"","sources":["../../../src/components/grading/largeImageDetector.ts"],"names":[],"mappings":"AAAA,IAAI,eAAuB,CAAA;AAE3B,MAAM,CAAC,KAAK,UAAU,mBAAmB;IACvC,IAAI,KAAK,GAAG,IAAI,CAAA;IAChB,OAAO,KAAK,GAAG,CAAC,EAAE;QAChB,KAAK,EAAE,CAAA;QACP,IAAI,eAAe,KAAK,CAAC,EAAE;YACzB,OAAM;SACP;aAAM;YACL,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAA;SACzD;KACF;IACD,MAAM,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAClC,CAAC;AACD,MAAM,UAAU,wBAAwB,CAAC,MAAe;IACtD,MAAM,MAAM,GAAG,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAA;IAC7C,eAAe,GAAG,MAAM,CAAC,MAAM,CAAA;IAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACrB,IAAI,GAAG,CAAC,QAAQ,EAAE;YAChB,UAAU,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAA;SAC5C;aAAM;YACL,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAA;SAC3D;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AACD,SAAS,iBAAiB,CAAC,GAAqB;IAC9C,eAAe,EAAE,CAAA;IACjB,MAAM,OAAO,GAAG,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"largeImageDetector.js","sourceRoot":"","sources":["../../../src/components/grading/largeImageDetector.ts"],"names":[],"mappings":"AAAA,IAAI,eAAuB,CAAA;AAE3B,MAAM,CAAC,KAAK,UAAU,mBAAmB;IACvC,IAAI,KAAK,GAAG,IAAI,CAAA;IAChB,OAAO,KAAK,GAAG,CAAC,EAAE;QAChB,KAAK,EAAE,CAAA;QACP,IAAI,eAAe,KAAK,CAAC,EAAE;YACzB,OAAM;SACP;aAAM;YACL,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,CAAA;SACzD;KACF;IACD,MAAM,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAClC,CAAC;AACD,MAAM,UAAU,wBAAwB,CAAC,MAAe;IACtD,MAAM,MAAM,GAAG,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAA;IAC7C,eAAe,GAAG,MAAM,CAAC,MAAM,CAAA;IAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACrB,IAAI,GAAG,CAAC,QAAQ,EAAE;YAChB,UAAU,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAA;SAC5C;aAAM;YACL,GAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAA;SAC3D;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AACD,SAAS,iBAAiB,CAAC,GAAqB;IAC9C,eAAe,EAAE,CAAA;IACjB,MAAM,OAAO,GAAG,GAAG,CAAC,aAAa,CAAA;IACjC,MA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