@altnovatrail/spec 0.21.0 → 0.21.1
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.
- package/canvas/index.d.ts +12 -2
- package/package.json +1 -1
package/canvas/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* It takes the tutor's marks of a submission too, by a property, with the submission's context:
|
|
18
18
|
* their kind and their place come from the contract between app and api, novatrail.api.v1, whose
|
|
19
19
|
* message `Mark` these types are checked against, and their names from app (`contracts/README.md`).
|
|
20
|
-
* The element's members beyond this contract — its commands undo() and clear(),
|
|
20
|
+
* The element's members beyond this contract — its commands undo(), redo() and clear(),
|
|
21
21
|
* which its own buttons call — and its place in the DOM's maps of tags and events are canvas's:
|
|
22
22
|
* its package registers the element. The declarations take the DOM's
|
|
23
23
|
* types: Blob, CustomEvent and HTMLElement.
|
|
@@ -75,8 +75,18 @@ export type DemoChangeEvent = CustomEvent<DemoState>;
|
|
|
75
75
|
* are the pen, the eraser and the hand.
|
|
76
76
|
*/
|
|
77
77
|
export interface PaperTask {
|
|
78
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* The task's picture, a JPEG or a PNG, without the learner's strokes: the crop app cut of the
|
|
80
|
+
* photo, or, for a task of a module solved on the sheet, the module's statement that app drew as
|
|
81
|
+
* text on white.
|
|
82
|
+
*/
|
|
79
83
|
readonly statement: Blob;
|
|
84
|
+
/**
|
|
85
|
+
* Where the picture comes from: "photo", as it is when absent, or "module". A task of a module
|
|
86
|
+
* shows the sign "Task of the module" above the paper and offers no "Recognise", whatever
|
|
87
|
+
* `reading` holds: its statement is the module's text already. Any other value is a TypeError.
|
|
88
|
+
*/
|
|
89
|
+
readonly source?: "photo" | "module";
|
|
80
90
|
}
|
|
81
91
|
|
|
82
92
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altnovatrail/spec",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"description": "The types of NovaTrail's module format for TypeScript, generated from its schemas: the parts of a module and their open views, the canonical view, the inventory, the module index and the test vectors. And the types of the element <novatrail-canvas>, the contract of the canvas and the app. And the types of the admission table, which says which AI provider may serve which age category. And the numbers and widths of the workbook's page and its test vectors, as JSON, by which a canvas lays the page out. And the types of the deployment configuration, the file /deployment.json that the app reads at its start. And the types of the legal texts' passport, which names each text, its versions and the sets of texts of the samples page. And the types of the table of the age of digital consent, which gives each country's age with the law that sets it. And the types of the files of an export, the file the owner of an account gets of a profile or of the account.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|