@altnovatrail/canvas 0.3.25 → 0.3.27

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/README.md CHANGED
@@ -17,11 +17,7 @@
17
17
 
18
18
  The NovaTrail canvases. A canvas is the workplace of a task, where the learner writes, draws and types; this UI package holds the canvas kinds — for now two, the handwriting sheet and the workbook — with their layers and tools, captures the learner's strokes with time and pressure, draws the picture of the work that goes to be checked and shows the tutor's marks tied to the learner's strokes, and the app builds it in at an exact version. A separate build of it is the samples page, where adult volunteers make samples for eval on the same canvas that learners use: a sample is saved as a file on the volunteer's device and reaches a module's eval set by pull request, and nothing goes to the platform's server. The same page opens a sample file to be looked at — its strokes, what a history erased too, its crops and its markup — so that a person, not an AI, looks in it for a name or a contact before it goes on.
19
19
 
20
- A component of [NovaTrail](https://github.com/altnovatrail/spec/tree/v0.18.6), a universal open platform for adaptive learning, interactive lessons and AI tutoring. It belongs to stage 2, First slice with learners, with tutor, api, app, skill-map and infra; with tutor it is the stage's first code: first the handwriting sheet, while the samples page waits until a measurement needs volunteers' or children's samples.
21
-
22
- ## Status
23
-
24
- Code started. The detailing is done — epic E1, archived in [docs/plan/E1.md](docs/plan/E1.md). Epic E2, replanned for the MVP on 2026-10-22, built the handwriting sheet as the element `<novatrail-canvas>`, for tutor's check board to take in place of its own sheet; the board has decided to keep its own. Its last task was the author's try of the sheet by hand on the demo page, which found nothing to fix. E2 is done and archived in [docs/plan/E2.md](docs/plan/E2.md). The text canvas, epic E3, was dropped on 2026-10-25: canvas builds no text canvas. Epic E4, taken the same day, built the sheet for the product: the eraser and the writing history, the layers and the grid, the groups of strokes and the crop for checking, the tutor's marks tied to the strokes, the package's full interface and the input on tablets. It was done on 2026-10-26 and is archived in [docs/plan/E4.md](docs/plan/E4.md). Epic E6, taken the same day, detailed and built the workbook, the first slice's second canvas kind, for school maths in grade 3, and was done on 2026-10-27; it is archived in [docs/plan/E6.md](docs/plan/E6.md). Epic E7, taken the same day, took what spec v0.2.42 brought: the task's new open fields, the exit condition that every answer slot holds something — `filled` on a sheet too — and the lesson's worked example, shown on a sheet the learner does not write on. On the way canvas moved to spec v0.4.1, whose npm package gives the types of the module format. E7 was done on 2026-11-01 and is archived in [docs/plan/E7.md](docs/plan/E7.md). Epic E8, taken the same day, is the first release of the package, which spec's cross-repository plan asks for before the app's code; the tests' coverage and the release's build come first. Then canvas moved to spec v0.6.2, of spec's 0.6 line, and its CI now checks the signature of each package of `@altnovatrail` in its lock file, as spec's rules ask; then the element took the module format 0.2 and the types of its contract with the app from spec's npm package, and the package came out in its first release, v0.1.0; from the next one on, the release puts it in npm itself. E8 was done on 2026-11-02 and is archived in [docs/plan/E8.md](docs/plan/E8.md). The same day canvas moved to spec v0.6.5, which made the `media` property part of the element's contract with the app and gave the buttons of every NovaTrail interface package one set of icons, and epic E5, the samples page, was taken: first trying a build opened from a file on the devices and building the page. On 2026-11-08 canvas moved to spec v0.9.8, whose eval protocol now holds the sample file, its markup and the rules the sheet shares with tutor's eval runner — the groups of strokes, the crop, the snapping of a model's box and a workbook's boxes: the tests hold the sheet's code to spec's test vectors of those rules, and the types of the tutor's marks are spec's too. The same day it moved on to v0.9.9, which answers canvas's last two open questions and changes nothing in its code. On 2026-11-09 it moved to spec v0.12.0, whose module format 0.4 lays a workbook's page out by numbers and test vectors of spec's own, which were canvas's, and lets a lesson's worked example stand on a workbook, its demo filling the boxes. Then epic E5 built the samples page and the synthetic samples that tutor's CI reads, and was done on 2026-11-10; it is archived in [docs/plan/E5.md](docs/plan/E5.md). Every release of canvas since v0.3.4 carries the page's build and the synthetic samples. The same day canvas moved to spec v0.14.0, whose legal part holds the text sets the page is to take, and epic E10 was taken: the standard of UI packages, the accessibility and the translations of the element. On 2026-11-11 the page took the tasks of modules for a module's eval set, and canvas moved to spec v0.15.0, whose sets of the measurement and of the eval set are in force: the page opens both to adults whose form the organiser accepted. On 2026-11-12 canvas moved to spec v0.15.1, whose rule keeps one task to one session, with its hook in `.claude/settings.json`, and whose devcontainer takes Go 1.27.4. The same day it moved on to spec v0.16.3, whose line 0.16 saves the sessions' tokens: CLAUDE.md is thin, with a rule of its own for each part that a session loads with the part's files, the technical debt has a file of its own, the records of external facts are [docs/sources.md](docs/sources.md), and the documents of `docs/` are in English. On 2026-11-14 it moved to spec v0.17.4: the page reads spec's legal texts of version 3 on the day it is built, and the element's tests run in Chromium, WebKit and Firefox. The same day the page took the tasks of the release v0.2.7 of modules, with the board module, so that the author writes the samples of its eval set on it. On 2026-11-16 canvas moved to spec v0.18.4: the work plan's rules and its tables, now files of their own in `run/`, are in English for the sessions, and the page takes the sets of texts that apply from that day, whose upload link works for 12 hours at most. The same day it moved on to spec v0.18.6, whose devcontainer keeps running when its window is closed, for the runs of spec's orchestrator. So far there is the package, `@altnovatrail/canvas`, with its tools and the sheet's input: the element takes a pen, a finger or a mouse, one pointer at a time, and draws the strokes, and its methods `undo()` and `clear()` undo the last action and clear the sheet. Its eraser, E4's first task, takes strokes off whole along the path of a press: the element's `tool` switches to it, and a pen's eraser erases whatever the tool, if the task allows the eraser. The sheet keeps the writing history — every stroke, erasing, clearing and undo, at the sheet's time — for the app to keep. The sheet is a stack of layers, in the order of spec's canvas layers: its task, the element's `task` property, rules it in squares, lines or dots, and the task's statement stands above the sheet, its pictures from the consumer's `media`. The task and the module's manifest come in the types of spec's npm package, `@altnovatrail/spec`; the element reads the module format 0.4, which spec v0.10.0 brought — a manifest of another version, 0.3 too, is a TypeError — and the task is checked as its schema checks it, a field it does not know a TypeError; what the statement gives and asks, the fields `givens` and `unknown`, the element takes and leaves for the app to show; a workbook's task the element shows too: its lines laid out on a page the size of the sheet — numbers, text fitted to the layout's own widths, and boxes, up to ten rows — which a screen reader reads as a list. On a workbook each stroke falls in one box or in none, by a rule in integers on the middle of its points' box; what falls in no box is draft, which stays on the page and goes to no check, and the property `filled` tells which boxes hold writing, and on a sheet whether its one answer anywhere on it, or the whole sheet, does. The module's manifest, the `manifest` property, gives the height of a digit on the crop, 24 px unless it gives another, as without a manifest, and the language of the statement. The sheet fits the element's width, at most 1000 CSS pixels, and the row's Zoom in and Zoom out make it larger, up to twice that, on every sheet of the page till it is loaded again, so that a workbook's printed lines can be read at 200 %; a zoomed sheet scrolls across as well as down, with the row's Left and Right, two fingers and the arrow keys, while the statement stays as wide as the fit. The consumer themes it by custom properties. The DOM-free part parts the strokes into groups by place and time — two strokes no more than 2 seconds apart whose boxes come within a cell of each other are neighbours, and a chain of neighbours is a group — labels the groups A, B, C… by place and gives each one's rectangle on the sheet, for the crop, the tutor's marks and the samples to come; the rule's test vectors are a proposal for the eval protocol. It also draws the crop for checking, with its own raster and PNG encoder: the ink of the visible strokes, scaled so that the writing comes out at the digit height the module's manifest asks for, within the size every Claude model takes as it is, with the groups' frames in its fractions. Its test vectors go to the eval protocol too. The element takes the tutor's marks of a submission back by its property `marks`, with the context it is to give with the crop: a mark holds on to the learner's strokes — a group's, or those a model's box on the crop takes, two thirds of their points within a quarter of a digit of it — and a frame stands round those of them the sheet shows, over the work, read by its name and fading while the learner writes into it. The history goes out by the property `history` and the event `historychange`, which tells of every action with the events it adds, and comes back by the same property: the same history changes nothing, and another, one the sheet could have written, replaces the sheet, undo and all. The pictures' files come from the consumer's `media`, a function that gives a file's Blob by its reference, the contract's own. `exportWork()` gives the work for checking: the PNG of the crop and the context of its submission, which the app keeps and gives back with the tutor's marks, its digest telling the sheet's own context from another sheet's. On a workbook it gives the crop of each filled box, with its item and slot, and the context of the table of boxes; a tutor's mark there stands on an answer cell by its place and frames the box with its ink. Above the statement and the sheet, outside their scrolling, stands the element's own row of buttons — the pen and the eraser the task allows, undo and clear — a toolbar worked by pointer and by keyboard, labelled in English or Russian by the element's own `lang`, each label after an icon of Material Symbols, Google's set, which the build embeds, so the element asks no network for one and the package's NOTICE names it; a `toolchange` event tells of the learner's choice of tool. On a tablet a pen's touch puts the whole page in pen mode, where a finger writes nothing until the row's Draw with finger lets it write again; a touch wider or taller than 100 CSS pixels is a palm and writes nothing, and two fingers scroll the sheet. The row's Up and Down scroll it the same way with a single pointer, on any device, by four fifths of what is in sight. An element whose content overflows it — of a height of its own, or with a zoomed sheet wider than it — scrolls as a region named by the canvas kind, which Tab goes into from the row and out of, and the keys scroll, in Safari too. What of spec's standard of UI packages, WCAG 2.2 AA with 2.5.5 and 2.3.3, the element does not meet yet — a workbook's printed lines keep their own text spacing (1.4.12), and on an element without a `lang`, the region's English name is spoken in the language it inherits from the page (3.1.2) — section 3.10 of [docs/architecture.md](docs/architecture.md) names, with what stands instead and when it goes, for the app's Accessibility page. A lesson's worked example comes by the property `workedExample`, in place of a task: its statement stands above the sheet and its grid on it, but the learner does not write there — a finger or a pen scrolls the sheet as the browser scrolls the statement, and the row, named Worked example buttons, has Next, Demo, Up, Down and the zoom's buttons. Next opens the parts of the author's demo one at a time, into a numbered list above the sheet that a polite region tells a screen reader of, and Demo hides the whole demo and shows it again; the property `demoState` and the event `demochange` tell the app how far the learner has gone, and the app may give it back to a new element after the example — in React's JSX `workedExample` comes before `demoState`, and `ondemochange` listens. The pictures of the demo come from the consumer's `media` with the statement's, one file for each reference, all of them as the example comes, so that a part opened shows its picture at once; a picture on an area of the sheet stands on the sheet itself, stretched over its area, and the sheet scrolls to it as its part opens. The element now waits for the app, and the samples page is built on it; a test plays the app's part, and `just demo` serves a page to try the element on by hand. A release comes out by itself after CI passes on `main`, when a path it is built from has changed: the package's archive, with its NOTICE, LICENSE and their sums, built, signed and checked by .github's shared release, and the same archive goes to npm: the first version by hand, the later ones by the release's own npm step, through trusted publishing, with no long-lived token. A pull request from a branch of this repository tries the release and publishes nothing.
20
+ A component of [NovaTrail](https://github.com/altnovatrail/spec), a universal open platform for adaptive learning, interactive lessons and AI tutoring. It belongs to stage 2, First slice with learners, with tutor, api, app, skill-map and infra; with tutor it is the stage's first code: first the handwriting sheet, while the samples page waits until a measurement needs volunteers' or children's samples.
25
21
 
26
22
  ## Install
27
23
 
@@ -74,15 +70,9 @@ The file opens with a comment that says what it is and holds the license notices
74
70
 
75
71
  ## Documents
76
72
 
77
- The documents under `docs/` are in English; the work plan, its technical debt and the archives of the epics, `docs/plan/`, are in Russian.
78
-
79
73
  - [docs/architecture.md](docs/architecture.md) — the component: what it does and does not do, its data and links, and what is still to decide.
80
74
  - [docs/decisions.md](docs/decisions.md) — the decision log: what was decided, why, and what was rejected.
81
75
  - [docs/sources.md](docs/sources.md) — the records of external facts, each with its source, its date and its quote; [docs/measurements.md](docs/measurements.md) — the results of measurements.
82
76
  - [RUN.md](RUN.md) — the work plan, in epics; its other tables are in `run/`: the technical debt is [run/DEBT.md](run/DEBT.md), the questions to the author [run/QUESTIONS.md](run/QUESTIONS.md).
83
77
 
84
- The working rules, for people and coding agents alike, are in [CLAUDE.md](CLAUDE.md) and [AGENTS.md](AGENTS.md). The platform's shared vocabulary, formats, contracts and decisions are in [spec](https://github.com/altnovatrail/spec/tree/v0.18.6), checked out here as a git submodule at `v0.18.6`: clone this repository with `git clone --recurse-submodules`.
85
-
86
- ## License
87
-
88
- [Apache-2.0](LICENSE).
78
+ The working rules, for people and coding agents alike, are in [CLAUDE.md](CLAUDE.md) and [AGENTS.md](AGENTS.md). The platform's shared vocabulary, formats, contracts and decisions are in [spec](https://github.com/altnovatrail/spec), checked out here as a git submodule: clone this repository with `git clone --recurse-submodules`.
@@ -51,7 +51,7 @@ export declare const RAIL = 2;
51
51
  * it lives in memory alone: nothing is stored or sent, and a new page starts without it.
52
52
  *
53
53
  * It knows, too, whether any sheet of the page is written on: a row of buttons changes between the
54
- * strokes of the whole page alone, for a row that wraps moves the sheets below it as well.
54
+ * strokes of the whole page alone, for a bar that grows moves its buttons under the hand that writes.
55
55
  */
56
56
  export declare class PenMode {
57
57
  #private;
@@ -90,8 +90,9 @@ export interface HandsSheet {
90
90
  /**
91
91
  * What a pointer down on the sheet does:
92
92
  * - "writes": it may write or erase, and does while the sheet says it is the writer;
93
- * - "waits": a finger in pen mode, waiting for a second to scroll with;
94
- * - "scrolls": one of the two fingers of a gesture;
93
+ * - "waits": a finger in pen mode, waiting for a second to scroll with, or to go past the slop
94
+ * and drag the sheet alone (R84);
95
+ * - "scrolls": the finger that drags the sheet, or one of the two fingers of a gesture;
95
96
  * - "palm": too big for a finger, it does nothing until it lifts;
96
97
  * - "idle": it does nothing until it lifts.
97
98
  */
@@ -107,10 +108,13 @@ export type Role = "writes" | "waits" | "scrolls" | "palm" | "idle";
107
108
  * - Without pen mode the first finger writes. A second that comes down within `PAIR_MS`, before the
108
109
  * first has gone `SLOP_PX`, takes the first one's stroke away, and the two scroll. A second that
109
110
  * comes later does nothing.
110
- * - In pen mode a finger writes nothing, and two that come down within `PAIR_MS` scroll.
111
+ * - In pen mode a finger writes nothing, and two that come down within `PAIR_MS` scroll. One that
112
+ * goes further than `SLOP_PX` alone, before a second comes, drags the sheet: the second does
113
+ * nothing then (R84; the second 2026-11-14 amendment to R90 spec).
111
114
  * - A third finger does nothing. When one of the two lifts, the other does nothing until it lifts.
112
- * - Two fingers scroll by the travel of their middle on the screen, past its first `SLOP_PX`: along
113
- * one axis alone if they went `RAIL` times further along it than along the other, or else both.
115
+ * - Two fingers scroll by the travel of their middle on the screen, and one by its own, past its
116
+ * first `SLOP_PX`: along one axis alone if it went `RAIL` times further along it than along the
117
+ * other, or else both.
114
118
  * - Any other pointer, a mouse or one of no type, writes when nothing does, whatever the mode.
115
119
  */
116
120
  export declare class Hands {
@@ -120,7 +124,7 @@ export declare class Hands {
120
124
  get roles(): ReadonlyMap<number, Role>;
121
125
  /** Whether a pointer is down on the sheet: the hands saw it come down, and not yet lift. */
122
126
  knows(pointerId: number): boolean;
123
- /** Whether two fingers make a gesture now: they wait for their slop, or scroll. */
127
+ /** Whether fingers make a gesture now: two wait for their slop, or they scroll. */
124
128
  get scrolling(): boolean;
125
129
  /** `pointerdown`: whether this pointer may write or erase. */
126
130
  down(contact: Contact): boolean;
package/lib/core/hands.js CHANGED
@@ -28,7 +28,7 @@ export const RAIL = 2;
28
28
  * it lives in memory alone: nothing is stored or sent, and a new page starts without it.
29
29
  *
30
30
  * It knows, too, whether any sheet of the page is written on: a row of buttons changes between the
31
- * strokes of the whole page alone, for a row that wraps moves the sheets below it as well.
31
+ * strokes of the whole page alone, for a bar that grows moves its buttons under the hand that writes.
32
32
  */
33
33
  export class PenMode {
34
34
  #on = false;
@@ -89,10 +89,13 @@ export class PenMode {
89
89
  * - Without pen mode the first finger writes. A second that comes down within `PAIR_MS`, before the
90
90
  * first has gone `SLOP_PX`, takes the first one's stroke away, and the two scroll. A second that
91
91
  * comes later does nothing.
92
- * - In pen mode a finger writes nothing, and two that come down within `PAIR_MS` scroll.
92
+ * - In pen mode a finger writes nothing, and two that come down within `PAIR_MS` scroll. One that
93
+ * goes further than `SLOP_PX` alone, before a second comes, drags the sheet: the second does
94
+ * nothing then (R84; the second 2026-11-14 amendment to R90 spec).
93
95
  * - A third finger does nothing. When one of the two lifts, the other does nothing until it lifts.
94
- * - Two fingers scroll by the travel of their middle on the screen, past its first `SLOP_PX`: along
95
- * one axis alone if they went `RAIL` times further along it than along the other, or else both.
96
+ * - Two fingers scroll by the travel of their middle on the screen, and one by its own, past its
97
+ * first `SLOP_PX`: along one axis alone if it went `RAIL` times further along it than along the
98
+ * other, or else both.
96
99
  * - Any other pointer, a mouse or one of no type, writes when nothing does, whatever the mode.
97
100
  */
98
101
  export class Hands {
@@ -112,7 +115,7 @@ export class Hands {
112
115
  knows(pointerId) {
113
116
  return this.#hands.has(pointerId);
114
117
  }
115
- /** Whether two fingers make a gesture now: they wait for their slop, or scroll. */
118
+ /** Whether fingers make a gesture now: two wait for their slop, or they scroll. */
116
119
  get scrolling() {
117
120
  return this.#gesture !== undefined;
118
121
  }
@@ -143,6 +146,25 @@ export class Hands {
143
146
  hand.x = contact.x;
144
147
  hand.y = contact.y;
145
148
  hand.travel = Math.max(hand.travel, Math.hypot(contact.x - hand.x0, contact.y - hand.y0));
149
+ // A finger of pen mode that has gone past the slop with no second drags the sheet alone (R84),
150
+ // but not while a sheet of the page is written on: nothing moves under the pen. Another finger
151
+ // that waits then does nothing until it lifts, and takes no drag over from where it came down.
152
+ if (hand.role === "waits" &&
153
+ this.#gesture === undefined &&
154
+ hand.travel > SLOP_PX &&
155
+ !this.#mode.writing) {
156
+ for (const other of this.#hands.values())
157
+ if (other.role === "waits")
158
+ other.role = "idle";
159
+ hand.role = "scrolls";
160
+ this.#gesture = {
161
+ fingers: [contact.pointerId],
162
+ from: { x: hand.x0, y: hand.y0 },
163
+ last: undefined,
164
+ across: true,
165
+ down: true,
166
+ };
167
+ }
146
168
  if (hand.role === "scrolls")
147
169
  this.#step();
148
170
  return hand.role === "writes" && this.#sheet.writer() === contact.pointerId;
@@ -258,15 +280,15 @@ export class Hands {
258
280
  }
259
281
  }
260
282
  /**
261
- * The two fingers' middle has moved: past the slop, the sheet goes with it, along the axes the
262
- * gesture chose as it passed it.
283
+ * The two fingers' middle has moved, or the one finger: past the slop, the sheet goes with it,
284
+ * along the axes the gesture chose as it passed it.
263
285
  */
264
286
  #step() {
265
287
  const gesture = this.#gesture;
266
288
  if (gesture === undefined)
267
289
  return;
268
290
  const one = this.#hands.get(gesture.fingers[0]);
269
- const two = this.#hands.get(gesture.fingers[1]);
291
+ const two = gesture.fingers.length === 2 ? this.#hands.get(gesture.fingers[1]) : one;
270
292
  if (one === undefined || two === undefined)
271
293
  return;
272
294
  const middle = middleOf(one, two);
@@ -36,14 +36,6 @@ export declare const ICONS: {
36
36
  readonly viewBox: "0 0 24 24";
37
37
  readonly paths: readonly ["M5 19q-.825 0-1.412-.587T3 17V8q-.425 0-.712-.288T2 7t.288-.712T3 6h3v-.5q0-.425.288-.712T7 4.5h2q.425 0 .713.288T10 5.5V6h3q.425 0 .713.288T14 7t-.288.713T13 8v9q0 .825-.587 1.413T11 19zm11-1q-.425 0-.712-.288T15 17t.288-.712T16 16h2q.425 0 .713.288T19 17t-.288.713T18 18zm0-4q-.425 0-.712-.288T15 13t.288-.712T16 12h4q.425 0 .713.288T21 13t-.288.713T20 14zm0-4q-.425 0-.712-.288T15 9t.288-.712T16 8h5q.425 0 .713.288T22 9t-.288.713T21 10zM5 8v9h6V8z"];
38
38
  };
39
- readonly "arrow-upward-outline-rounded": {
40
- readonly viewBox: "0 0 24 24";
41
- readonly paths: readonly ["m11 7.825l-4.9 4.9q-.3.3-.7.288t-.7-.313q-.275-.3-.288-.7t.288-.7l6.6-6.6q.15-.15.325-.212T12 4.425t.375.063t.325.212l6.6 6.6q.275.275.275.688t-.275.712q-.3.3-.712.3t-.713-.3L13 7.825V19q0 .425-.288.713T12 20t-.712-.288T11 19z"];
42
- };
43
- readonly "arrow-downward-outline-rounded": {
44
- readonly viewBox: "0 0 24 24";
45
- readonly paths: readonly ["M11 16.175V5q0-.425.288-.712T12 4t.713.288T13 5v11.175l4.9-4.9q.3-.3.7-.288t.7.313q.275.3.287.7t-.287.7l-6.6 6.6q-.15.15-.325.213t-.375.062t-.375-.062t-.325-.213l-6.6-6.6q-.275-.275-.275-.687T4.7 11.3q.3-.3.713-.3t.712.3z"];
46
- };
47
39
  readonly "zoom-in-outline-rounded": {
48
40
  readonly viewBox: "0 0 24 24";
49
41
  readonly paths: readonly ["M8.5 10.5h-1q-.425 0-.712-.288T6.5 9.5t.288-.712T7.5 8.5h1v-1q0-.425.288-.712T9.5 6.5t.713.288t.287.712v1h1q.425 0 .713.288t.287.712t-.288.713t-.712.287h-1v1q0 .425-.288.713T9.5 12.5t-.712-.288T8.5 11.5zm1 5.5q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.6 5.6q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-5.6-5.6q-.75.6-1.725.95T9.5 16m0-2q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14"];
@@ -52,14 +44,6 @@ export declare const ICONS: {
52
44
  readonly viewBox: "0 0 24 24";
53
45
  readonly paths: readonly ["M8 10.5q-.425 0-.712-.288T7 9.5t.288-.712T8 8.5h3q.425 0 .713.288T12 9.5t-.288.713T11 10.5zM9.5 16q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.6 5.6q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-5.6-5.6q-.75.6-1.725.95T9.5 16m0-2q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14"];
54
46
  };
55
- readonly "arrow-left-alt-outline-rounded": {
56
- readonly viewBox: "0 0 24 24";
57
- readonly paths: readonly ["m7.85 13l2.85 2.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L4.7 12.7q-.3-.3-.3-.7t.3-.7l4.575-4.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7L7.85 11H19q.425 0 .713.288T20 12t-.288.713T19 13z"];
58
- };
59
- readonly "arrow-right-alt-outline-rounded": {
60
- readonly viewBox: "0 0 24 24";
61
- readonly paths: readonly ["M16.15 13H5q-.425 0-.712-.288T4 12t.288-.712T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.312t.712.287L19.3 11.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7z"];
62
- };
63
47
  readonly "touch-app-outline-rounded": {
64
48
  readonly viewBox: "0 0 24 24";
65
49
  readonly paths: readonly ["M10.475 22q-.7 0-1.312-.3t-1.038-.85L3.1 14.475q-.2-.225-.175-.537t.225-.513q.5-.525 1.2-.625t1.3.275L7.5 14.2V6q0-.425.288-.712T8.5 5t.725.288t.3.712v10q0 .575-.513.863T8 16.85l-.9-.55l2.6 3.325q.15.175.35.275t.425.1H16q.825 0 1.413-.587T18 18v-4q0-.425-.288-.712T17 13h-4.475q-.425 0-.712-.288T11.525 12t.288-.712t.712-.288H17q1.25 0 2.125.875T20 14v4q0 1.65-1.175 2.825T16 22zm1.5-13q-.425 0-.712-.288T10.975 8q0-.05.125-.5q.2-.35.3-.712T11.5 6q0-1.25-.875-2.125T8.5 3t-2.125.875T5.5 6q0 .425.1.788t.3.712q.075.125.1.25t.025.25q0 .425-.275.713T5.05 9q-.275 0-.512-.15t-.363-.375q-.325-.55-.5-1.175T3.5 6q0-2.075 1.463-3.537T8.5 1t3.538 1.463T13.5 6q0 .675-.175 1.3t-.5 1.175q-.125.225-.35.375t-.5.15"];
@@ -108,16 +92,6 @@ export declare const ROW: {
108
92
  readonly filled: "delete-sweep-outline-rounded";
109
93
  readonly mirrored: false;
110
94
  };
111
- readonly up: {
112
- readonly outline: "arrow-upward-outline-rounded";
113
- readonly filled: "arrow-upward-outline-rounded";
114
- readonly mirrored: false;
115
- };
116
- readonly down: {
117
- readonly outline: "arrow-downward-outline-rounded";
118
- readonly filled: "arrow-downward-outline-rounded";
119
- readonly mirrored: false;
120
- };
121
95
  readonly zoomIn: {
122
96
  readonly outline: "zoom-in-outline-rounded";
123
97
  readonly filled: "zoom-in-outline-rounded";
@@ -128,16 +102,6 @@ export declare const ROW: {
128
102
  readonly filled: "zoom-out-outline-rounded";
129
103
  readonly mirrored: false;
130
104
  };
131
- readonly left: {
132
- readonly outline: "arrow-left-alt-outline-rounded";
133
- readonly filled: "arrow-left-alt-outline-rounded";
134
- readonly mirrored: false;
135
- };
136
- readonly right: {
137
- readonly outline: "arrow-right-alt-outline-rounded";
138
- readonly filled: "arrow-right-alt-outline-rounded";
139
- readonly mirrored: false;
140
- };
141
105
  readonly finger: {
142
106
  readonly outline: "touch-app-outline-rounded";
143
107
  readonly filled: "touch-app-outline-rounded";
@@ -58,18 +58,6 @@ export const ICONS = {
58
58
  "M5 19q-.825 0-1.412-.587T3 17V8q-.425 0-.712-.288T2 7t.288-.712T3 6h3v-.5q0-.425.288-.712T7 4.5h2q.425 0 .713.288T10 5.5V6h3q.425 0 .713.288T14 7t-.288.713T13 8v9q0 .825-.587 1.413T11 19zm11-1q-.425 0-.712-.288T15 17t.288-.712T16 16h2q.425 0 .713.288T19 17t-.288.713T18 18zm0-4q-.425 0-.712-.288T15 13t.288-.712T16 12h4q.425 0 .713.288T21 13t-.288.713T20 14zm0-4q-.425 0-.712-.288T15 9t.288-.712T16 8h5q.425 0 .713.288T22 9t-.288.713T21 10zM5 8v9h6V8z",
59
59
  ],
60
60
  },
61
- "arrow-upward-outline-rounded": {
62
- viewBox: "0 0 24 24",
63
- paths: [
64
- "m11 7.825l-4.9 4.9q-.3.3-.7.288t-.7-.313q-.275-.3-.288-.7t.288-.7l6.6-6.6q.15-.15.325-.212T12 4.425t.375.063t.325.212l6.6 6.6q.275.275.275.688t-.275.712q-.3.3-.712.3t-.713-.3L13 7.825V19q0 .425-.288.713T12 20t-.712-.288T11 19z",
65
- ],
66
- },
67
- "arrow-downward-outline-rounded": {
68
- viewBox: "0 0 24 24",
69
- paths: [
70
- "M11 16.175V5q0-.425.288-.712T12 4t.713.288T13 5v11.175l4.9-4.9q.3-.3.7-.288t.7.313q.275.3.287.7t-.287.7l-6.6 6.6q-.15.15-.325.213t-.375.062t-.375-.062t-.325-.213l-6.6-6.6q-.275-.275-.275-.687T4.7 11.3q.3-.3.713-.3t.712.3z",
71
- ],
72
- },
73
61
  "zoom-in-outline-rounded": {
74
62
  viewBox: "0 0 24 24",
75
63
  paths: [
@@ -82,18 +70,6 @@ export const ICONS = {
82
70
  "M8 10.5q-.425 0-.712-.288T7 9.5t.288-.712T8 8.5h3q.425 0 .713.288T12 9.5t-.288.713T11 10.5zM9.5 16q-2.725 0-4.612-1.888T3 9.5t1.888-4.612T9.5 3t4.613 1.888T16 9.5q0 1.1-.35 2.075T14.7 13.3l5.6 5.6q.275.275.275.7t-.275.7t-.7.275t-.7-.275l-5.6-5.6q-.75.6-1.725.95T9.5 16m0-2q1.875 0 3.188-1.312T14 9.5t-1.312-3.187T9.5 5T6.313 6.313T5 9.5t1.313 3.188T9.5 14",
83
71
  ],
84
72
  },
85
- "arrow-left-alt-outline-rounded": {
86
- viewBox: "0 0 24 24",
87
- paths: [
88
- "m7.85 13l2.85 2.85q.3.3.288.7t-.288.7q-.3.3-.712.313t-.713-.288L4.7 12.7q-.3-.3-.3-.7t.3-.7l4.575-4.575q.3-.3.713-.287t.712.312q.275.3.288.7t-.288.7L7.85 11H19q.425 0 .713.288T20 12t-.288.713T19 13z",
89
- ],
90
- },
91
- "arrow-right-alt-outline-rounded": {
92
- viewBox: "0 0 24 24",
93
- paths: [
94
- "M16.15 13H5q-.425 0-.712-.288T4 12t.288-.712T5 11h11.15L13.3 8.15q-.3-.3-.288-.7t.288-.7q.3-.3.713-.312t.712.287L19.3 11.3q.15.15.213.325t.062.375t-.062.375t-.213.325l-4.575 4.575q-.3.3-.712.288t-.713-.313q-.275-.3-.288-.7t.288-.7z",
95
- ],
96
- },
97
73
  "touch-app-outline-rounded": {
98
74
  viewBox: "0 0 24 24",
99
75
  paths: [
@@ -130,16 +106,6 @@ export const ROW = {
130
106
  filled: "delete-sweep-outline-rounded",
131
107
  mirrored: false,
132
108
  },
133
- up: {
134
- outline: "arrow-upward-outline-rounded",
135
- filled: "arrow-upward-outline-rounded",
136
- mirrored: false,
137
- },
138
- down: {
139
- outline: "arrow-downward-outline-rounded",
140
- filled: "arrow-downward-outline-rounded",
141
- mirrored: false,
142
- },
143
109
  zoomIn: {
144
110
  outline: "zoom-in-outline-rounded",
145
111
  filled: "zoom-in-outline-rounded",
@@ -150,16 +116,6 @@ export const ROW = {
150
116
  filled: "zoom-out-outline-rounded",
151
117
  mirrored: false,
152
118
  },
153
- left: {
154
- outline: "arrow-left-alt-outline-rounded",
155
- filled: "arrow-left-alt-outline-rounded",
156
- mirrored: false,
157
- },
158
- right: {
159
- outline: "arrow-right-alt-outline-rounded",
160
- filled: "arrow-right-alt-outline-rounded",
161
- mirrored: false,
162
- },
163
119
  finger: {
164
120
  outline: "touch-app-outline-rounded",
165
121
  filled: "touch-app-outline-rounded",
@@ -178,11 +178,13 @@ export declare class NovatrailCanvas extends HTMLElement implements CanvasElemen
178
178
  connectedCallback(): void;
179
179
  /**
180
180
  * The element's `lang` came, changed or went: its buttons and a workbook's boxes are labelled in
181
- * it, or in English for a language their labels are not in, and for none (R28, R36). An attribute
182
- * the element had before it was defined comes here just after the constructor, which reads no
183
- * attribute.
181
+ * it, or in English for a language their labels are not in, and for none (R28, R36). Or
182
+ * `tools-hidden` did: while the element has it, the bar is out of sight and of the accessibility
183
+ * tree, as `app` hides it on a phone under its tutor's sheet (R84; В83 in run/QUESTIONS.md). An
184
+ * attribute the element had before it was defined comes here just after the constructor, which
185
+ * reads no attribute.
184
186
  */
185
- attributeChangedCallback(): void;
187
+ attributeChangedCallback(name: string): void;
186
188
  /**
187
189
  * Takes back the last action on the sheet — the last stroke written, the last erasing, or the
188
190
  * clearing — and says whether there was one (R19, R22), with a `historychange` if there was