@digabi/exam-engine-core 23.4.7-alpha.0 → 23.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { AnnotationRect, NewExamAnnotation, NewExamImageAnnotation } from '../../types/ExamAnnotations';
3
+ export declare const AnnotationImageMark: React.NamedExoticComponent<{
4
+ rect: NewExamImageAnnotation["rect"];
5
+ onClickAnnotation: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotationId: number) => void;
6
+ setNewAnnotationRef: (e: HTMLElement | null) => void;
7
+ annotationId?: number | undefined;
8
+ markNumber?: number | undefined;
9
+ }>;
10
+ export declare function useImageAnnotation(anchor: string, description: string, setNewAnnotation: (a: NewExamAnnotation | null) => void): {
11
+ elementRef: React.RefObject<HTMLElement>;
12
+ annotationRect: AnnotationRect | undefined;
13
+ onMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
14
+ };
15
+ //# sourceMappingURL=AnnotationImageMark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnotationImageMark.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotationImageMark.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmD,MAAM,OAAO,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAGvG,eAAO,MAAM,mBAAmB;UAOxB,sBAAsB,CAAC,MAAM,CAAC;uBACjB,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI;yBAC1E,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI;mBACrC,MAAM,GAAG,SAAS;iBACpB,MAAM,GAAG,SAAS;EAuC/B,CAAA;AAEF,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI;;;qBA4DnB,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC;EAkB9E"}
@@ -0,0 +1,98 @@
1
+ import { clamp } from 'lodash-es';
2
+ import React, { useCallback, useEffect, useRef, useState } from 'react';
3
+ // eslint-disable-next-line prefer-arrow-callback
4
+ export const AnnotationImageMark = React.memo(function AnnotationImageMark({ rect: { x1, y1, x2, y2 }, onClickAnnotation, setNewAnnotationRef, annotationId, markNumber }) {
5
+ const markRef = useRef(null);
6
+ const supRef = useRef(null);
7
+ useEffect(() => {
8
+ if (markRef.current) {
9
+ markRef.current.style['inset'] =
10
+ `${100 * Math.min(y1, y2)}% ${100 * (1 - Math.max(x1, x2))}% ${100 * (1 - Math.max(y1, y2))}% ${100 * Math.min(x1, x2)}%`;
11
+ }
12
+ if (supRef.current) {
13
+ supRef.current.style['left'] = `${100 * Math.max(x1, x2)}%`;
14
+ supRef.current.style['top'] = `${100 * Math.min(y1, y2)}%`;
15
+ }
16
+ }, [x1, y1, x2, y2]);
17
+ useEffect(() => {
18
+ if (markRef.current && annotationId === undefined) {
19
+ setNewAnnotationRef(markRef.current);
20
+ }
21
+ }, []);
22
+ const onMouseDown = useCallback((e) => {
23
+ if (annotationId) {
24
+ e.stopPropagation();
25
+ onClickAnnotation(e, annotationId);
26
+ }
27
+ }, [annotationId]);
28
+ return (React.createElement(React.Fragment, null,
29
+ React.createElement("mark", { ref: markRef, className: "e-annotation e-annotation--shape", onMouseDown: onMouseDown }),
30
+ markNumber && React.createElement("sup", { ref: supRef, className: "e-annotation", "data-content": markNumber })));
31
+ });
32
+ export function useImageAnnotation(anchor, description, setNewAnnotation) {
33
+ const elementRef = useRef(null);
34
+ const [annotationRect, setAnnotationRect] = useState();
35
+ const annotationRectRef = useRef();
36
+ useEffect(() => {
37
+ annotationRectRef.current = annotationRect;
38
+ }, [annotationRect]);
39
+ const onMouseMove = useCallback((e) => {
40
+ const el = elementRef.current;
41
+ if (el === null) {
42
+ return;
43
+ }
44
+ e.preventDefault();
45
+ e.stopPropagation();
46
+ const [x2, y2] = getMousePosition(el, e);
47
+ setAnnotationRect(rect => {
48
+ if (rect) {
49
+ const { x1, y1 } = rect;
50
+ return { x1, y1, x2, y2 };
51
+ }
52
+ return rect;
53
+ });
54
+ }, []);
55
+ const onMouseUp = useCallback((e) => {
56
+ var _a, _b;
57
+ const el = elementRef.current;
58
+ if (el === null) {
59
+ return;
60
+ }
61
+ window.removeEventListener('mouseup', onMouseUp);
62
+ window.removeEventListener('mousemove', onMouseMove);
63
+ const displayNumber = (_b = (_a = elementRef.current) === null || _a === void 0 ? void 0 : _a.closest('div[data-annotation-anchor]')) === null || _b === void 0 ? void 0 : _b.getAttribute('data-annotation-anchor');
64
+ if (!displayNumber || !annotationRectRef.current) {
65
+ setAnnotationRect(undefined);
66
+ return;
67
+ }
68
+ const { x1, y1 } = annotationRectRef.current;
69
+ const [x2, y2] = getMousePosition(el, e);
70
+ setNewAnnotation({
71
+ annotationType: 'image',
72
+ displayNumber,
73
+ annotationAnchor: anchor,
74
+ rect: { x1, y1, x2, y2 },
75
+ description
76
+ });
77
+ setAnnotationRect(undefined);
78
+ }, []);
79
+ const onMouseDown = useCallback((e) => {
80
+ const el = elementRef.current;
81
+ if (el === null || e.button !== 0) {
82
+ return;
83
+ }
84
+ e.preventDefault();
85
+ e.stopPropagation();
86
+ window.addEventListener('mouseup', onMouseUp);
87
+ window.addEventListener('mousemove', onMouseMove);
88
+ const [x1, y1] = getMousePosition(el, e);
89
+ setAnnotationRect({ x1, y1, x2: x1, y2: y1 });
90
+ setNewAnnotation(null);
91
+ }, []);
92
+ return { elementRef, annotationRect, onMouseDown };
93
+ }
94
+ function getMousePosition(el, e) {
95
+ const bbox = el.getBoundingClientRect();
96
+ return [clamp((e.clientX - bbox.left) / bbox.width, 0, 1), clamp((e.clientY - bbox.top) / bbox.height, 0, 1)];
97
+ }
98
+ //# sourceMappingURL=AnnotationImageMark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnotationImageMark.js","sourceRoot":"","sources":["../../../src/components/shared/AnnotationImageMark.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAGvE,iDAAiD;AACjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,mBAAmB,CAAC,EACzE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EACxB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,UAAU,EAOX;IACC,MAAM,OAAO,GAAG,MAAM,CAAc,IAAI,CAAC,CAAA;IACzC,MAAM,MAAM,GAAG,MAAM,CAAc,IAAI,CAAC,CAAA;IAExC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;gBAC5B,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;QAC7H,CAAC;QAED,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,IA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,CAAC;AAED,SAAS,gBAAgB,CAAC,EAAe,EAAE,CAAuC;IAChF,MAAM,IAAI,GAAG,EAAE,CAAC,qBAAqB,EAAE,CAAA;IACvC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAC/G,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ import { AnnotationPart } from '../../types/ExamAnnotations';
3
+ declare function AnnotationMark({ annotation, onClickAnnotation, setNewAnnotationRef, __html, children }: PropsWithChildren<{
4
+ annotation: AnnotationPart;
5
+ onClickAnnotation: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotationId: number) => void;
6
+ setNewAnnotationRef: (ref: HTMLElement | null) => void;
7
+ __html?: string;
8
+ }>): React.JSX.Element;
9
+ declare const _default: React.MemoExoticComponent<typeof AnnotationMark>;
10
+ export default _default;
11
+ //# sourceMappingURL=AnnotationTextMark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnotationTextMark.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotationTextMark.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqB,MAAM,OAAO,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAG5D,iBAAS,cAAc,CAAC,EACtB,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACT,EAAE,iBAAiB,CAAC;IACnB,UAAU,EAAE,cAAc,CAAA;IAC1B,iBAAiB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/F,mBAAmB,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;IACtD,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC,qBAgCD;;AAED,wBAAyC"}
@@ -0,0 +1,21 @@
1
+ import React, { useEffect, useRef } from 'react';
2
+ import { isExistingAnnotation } from './markText';
3
+ function AnnotationMark({ annotation, onClickAnnotation, setNewAnnotationRef, __html, children }) {
4
+ const markRef = useRef(null);
5
+ useEffect(() => {
6
+ if (markRef.current && !isExistingAnnotation(annotation)) {
7
+ setNewAnnotationRef(markRef.current);
8
+ }
9
+ }, []);
10
+ const dangerouslySetInnerHTML = __html ? { dangerouslySetInnerHTML: { __html } } : {};
11
+ return (React.createElement(React.Fragment, null,
12
+ React.createElement("mark", { ref: markRef, className: `e-annotation ${annotation.resolved ? 'resolved' : ''}`, "data-annotation-id": isExistingAnnotation(annotation) ? annotation.annotationId : '', "data-hidden": "false", "data-annotation-path": annotation.annotationAnchor, onClick: e => {
13
+ if (isExistingAnnotation(annotation)) {
14
+ e.stopPropagation();
15
+ onClickAnnotation(e, annotation.annotationId);
16
+ }
17
+ }, ...dangerouslySetInnerHTML }, __html ? null : children),
18
+ (annotation === null || annotation === void 0 ? void 0 : annotation.markNumber) && React.createElement("sup", { className: "e-annotation", "data-content": annotation === null || annotation === void 0 ? void 0 : annotation.markNumber })));
19
+ }
20
+ export default React.memo(AnnotationMark);
21
+ //# sourceMappingURL=AnnotationTextMark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnotationTextMark.js","sourceRoot":"","sources":["../../../src/components/shared/AnnotationTextMark.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAqB,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,S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AK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare function HiddenAnnotationMark(props: {
3
+ annotationId: number | null;
4
+ }): React.JSX.Element;
5
+ declare const _default: React.MemoExoticComponent<typeof HiddenAnnotationMark>;
6
+ export default _default;
7
+ //# sourceMappingURL=HiddenAnnotationMark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HiddenAnnotationMark.d.ts","sourceRoot":"","sources":["../../../src/components/shared/HiddenAnnotationMark.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,iBAAS,oBAAoB,CAAC,KAAK,EAAE;IAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,qBAEnE;;AAED,wBAA+C"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ function HiddenAnnotationMark(props) {
3
+ var _a;
4
+ return React.createElement("mark", { className: "e-annotation", "data-annotation-id": (_a = props.annotationId) !== null && _a !== void 0 ? _a : '', "data-hidden": "true" });
5
+ }
6
+ export default React.memo(HiddenAnnotationMark);
7
+ //# sourceMappingURL=HiddenAnnotationMark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HiddenAnnotationMark.js","sourceRoot":"","sources":["../../../src/components/shared/HiddenAnnotationMark.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,SAAS,oBAAoB,CAAC,KAAsC;;IAClE,OAAO,8BAAM,SAAS,EAAC,cAAc,wBAAqB,MAAA,KAAK,CAAC,YAAY,mCAAI,EAAE,iBAAc,MAAM,GAAG,CAAA;AAC3G,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAA"}