@altnovatrail/spec 0.21.1 → 0.21.2
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 +23 -5
- package/package.json +1 -1
package/canvas/index.d.ts
CHANGED
|
@@ -317,9 +317,9 @@ export type HistoryEvent =
|
|
|
317
317
|
* and of no pressure, 0, and the strokes it took off, in the sheet's order. `on` is
|
|
318
318
|
* `"tracing"` when its strokes are on the tracing paper, as for a stroke written. The host puts
|
|
319
319
|
* it on the sheet by setting `history`, and an undo takes it back whole. A sample file of the
|
|
320
|
-
* eval protocol never holds one: the tutor's strokes are no learner's writing. A move
|
|
321
|
-
* holds as an erasing of the strokes moved, if a move, and a writing
|
|
322
|
-
* event's time: they replay to the same sheet.
|
|
320
|
+
* eval protocol never holds one: the tutor's strokes are no learner's writing. A move, a scale and
|
|
321
|
+
* a copy it holds as an erasing of the strokes moved or scaled, if a move or a scale, and a writing
|
|
322
|
+
* of each new stroke, at the event's time: they replay to the same sheet.
|
|
323
323
|
*/
|
|
324
324
|
| {
|
|
325
325
|
readonly kind: "tutor";
|
|
@@ -355,11 +355,29 @@ export type HistoryEvent =
|
|
|
355
355
|
readonly strokes: readonly Stroke[];
|
|
356
356
|
readonly on?: "tracing";
|
|
357
357
|
}
|
|
358
|
+
/**
|
|
359
|
+
* Strokes Select scaled by a corner of their box, one action, as a move is: the strokes it took
|
|
360
|
+
* off, in the sheet's order, and each anew, after every other — the one of the same place in `ids`
|
|
361
|
+
* with every point `at` + (point − `at`) × `factor`, `at` the corner across, which stays, in the
|
|
362
|
+
* units of their layer, and its style's width times `factor` to a tenth, kept within 0.1 to 50; its
|
|
363
|
+
* pointer's kind, the rest of its style, times and pressures as they were, and a stroke of no style
|
|
364
|
+
* keeps none. `factor` is from 0.25 to 4, and never 1. Its IDs are new, above every ID before them,
|
|
365
|
+
* ascending, and `on` is as a move's. An undo takes it back whole.
|
|
366
|
+
*/
|
|
367
|
+
| {
|
|
368
|
+
readonly kind: "scale";
|
|
369
|
+
readonly t: number;
|
|
370
|
+
readonly ids: readonly number[];
|
|
371
|
+
readonly strokes: readonly Stroke[];
|
|
372
|
+
readonly factor: number;
|
|
373
|
+
readonly at: readonly [number, number];
|
|
374
|
+
readonly on?: "tracing";
|
|
375
|
+
}
|
|
358
376
|
/**
|
|
359
377
|
* The last action still in force taken back: the stroke it took off, if it was a writing, or the
|
|
360
378
|
* strokes it brought back, if it was an erasing or a clearing — and of a cut, the pieces it took
|
|
361
|
-
* off too; of a move, the
|
|
362
|
-
* copies.
|
|
379
|
+
* off too; of a move or a scale, the new strokes it took off and those it brought back, and of a
|
|
380
|
+
* copy, the copies.
|
|
363
381
|
*/
|
|
364
382
|
| {
|
|
365
383
|
readonly kind: "undo";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altnovatrail/spec",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
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": {
|