@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,47 @@
1
+ export interface NewExamAnnotationBase {
2
+ displayNumber: string;
3
+ }
4
+ interface ExamAnnotationBase extends NewExamAnnotationBase {
5
+ annotationId: number;
6
+ markNumber: number;
7
+ resolved?: boolean;
8
+ hidden?: boolean;
9
+ imported?: boolean;
10
+ }
11
+ type ExamTextAnnotationAttributes = {
12
+ annotationType: 'text';
13
+ selectedText: string;
14
+ annotationParts: AnnotationPart[];
15
+ };
16
+ export type NewExamTextAnnotation = NewExamAnnotationBase & ExamTextAnnotationAttributes;
17
+ export type ExamTextAnnotation = ExamAnnotationBase & ExamTextAnnotationAttributes;
18
+ type ExamImageAnnotationAttributes = {
19
+ annotationType: 'image';
20
+ annotationAnchor: string;
21
+ rect: AnnotationRect;
22
+ description: string;
23
+ };
24
+ export type NewExamImageAnnotation = NewExamAnnotationBase & ExamImageAnnotationAttributes;
25
+ export type ExamImageAnnotation = ExamAnnotationBase & ExamImageAnnotationAttributes;
26
+ export type NewExamAnnotation = NewExamTextAnnotation | NewExamImageAnnotation;
27
+ export type ExamAnnotation = ExamTextAnnotation | ExamImageAnnotation;
28
+ export interface AnnotationPart {
29
+ annotationAnchor: string;
30
+ selectedText: string;
31
+ startIndex: number;
32
+ length: number;
33
+ markNumber?: number;
34
+ hidden?: boolean;
35
+ resolved?: boolean;
36
+ }
37
+ export type WithAnnotationId<T> = T & {
38
+ annotationId: number;
39
+ };
40
+ export type AnnotationRect = {
41
+ x1: number;
42
+ y1: number;
43
+ x2: number;
44
+ y2: number;
45
+ };
46
+ export {};
47
+ //# sourceMappingURL=ExamAnnotations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExamAnnotations.d.ts","sourceRoot":"","sources":["../../src/types/ExamAnnotations.ts"],"names":[],"mappings":"AAAA,MAAM,WAA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GAAG;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,CAAA;AAE9D,MAAM,MAAM,cAAc,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ExamAnnotations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExamAnnotations.js","sourceRoot":"","sources":["../../src/types/ExamAnnotations.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digabi/exam-engine-core",
3
- "version": "23.4.7-alpha.0",
3
+ "version": "23.4.7",
4
4
  "main": "dist/main-bundle.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Matriculation Examination Board, Finland",
@@ -59,5 +59,5 @@
59
59
  "webpack-bundle-analyzer": "^4.1.0",
60
60
  "webpack-cli": "^6.0.0"
61
61
  },
62
- "gitHead": "3fc57af67fbe7b993f18c39c1b9f439a4c9d99f3"
62
+ "gitHead": "0afd594ff79752a8b49c9d3a5982be689a3c5783"
63
63
  }