@cogniplay/logic-games-sheet 0.4.0 → 0.6.0
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 +5 -5
- package/limits.d.ts +3 -2
- package/limits.d.ts.map +1 -1
- package/limits.js +3 -2
- package/limits.js.map +1 -1
- package/package.json +2 -2
- package/sheet.d.ts +3 -2
- package/sheet.d.ts.map +1 -1
- package/sheet.js +103 -36
- package/sheet.js.map +1 -1
- package/src/limits.ts +3 -2
- package/src/sheet.ts +149 -41
- package/src/wording.ts +6 -5
- package/wording.d.ts +4 -2
- package/wording.d.ts.map +1 -1
- package/wording.js +5 -4
- package/wording.js.map +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @cogniplay/logic-games-sheet
|
|
2
2
|
|
|
3
|
-
Makes the child's printed sheet for a logic-game instance: a one
|
|
3
|
+
Makes the child's printed sheet for a logic-game instance: a PDF of one page (two for a Rearrange the Pieces board, whose second is the goal picture) with the board at the exact size of the kit's pieces, the variant's title, the instance's instruction and the instance's code. For a Line Counts, a Build a Bridge, a Fill the Shape or a Build the Mirror Image board it also shows the pieces to place, and for a Fair Shares board the pieces to share. The same function serves the content repository's play-test prints in Node and, later, the `/edu` print button in the browser.
|
|
4
4
|
|
|
5
5
|
It builds on `@cogniplay/logic-games`, which draws the board, and on pdfmake 0.3, which lays the page out and embeds the font. The designs are in `docs/superpowers/specs/2026-11-05-logic-games-sheet-design.md`, `docs/superpowers/specs/2026-11-10-line-counts-drawing-design.md`, `docs/superpowers/specs/2026-11-11-fair-shares-drawing-design.md`, `docs/superpowers/specs/2026-11-17-build-a-bridge-drawing-design.md`, `docs/superpowers/specs/2026-11-24-fill-the-shape-drawing-design.md` and `docs/superpowers/specs/2026-11-26-build-the-mirror-image-drawing-design.md`.
|
|
6
6
|
|
|
@@ -52,19 +52,19 @@ import { renderSheets } from "@cogniplay/logic-games-sheet";
|
|
|
52
52
|
const bytes = await renderSheets([first, second, third], { title: "Tuesday, year 3" });
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
`renderSheets` takes a list of the same options and puts each sheet on a page of its own, in the order given, exactly as it prints alone: its own paper, turned its own way, with its own title, code and QR code. Each
|
|
55
|
+
`renderSheets` takes a list of the same options and puts each sheet on a page of its own (two for a Rearrange the Pieces board), in the order given, exactly as it prints alone: its own paper, turned its own way, with its own title, code and QR code. Each printed page is a pdfmake section, and `renderSheet` makes its one sheet the same way, so a sheet is the same alone or among others. `title` is the document's, which a viewer names a saved file by; there is none without it. A sheet that can't print fails the whole with a `SheetError`: its `code` is that sheet's code, its message is the code before the reason, and its `cause` is the sheet's own error, so a caller can name the board. An empty list is an error rather than an empty PDF. `renderSheet`'s errors are the sheet's own, without a code, since the caller knows which sheet it asked for. A hundred sheets of mixed games and orientations take about a second and a quarter in a browser on a recent laptop and make a PDF of under 1 MB.
|
|
56
56
|
|
|
57
57
|
### What the sheet holds
|
|
58
58
|
|
|
59
|
-
One page, A4 or Letter, with 10 mm margins. From the top: the variant's title, when one is given; the instruction; the board, drawn by the renderer at the cell size and centred in the room left; and at the bottom the code with a label and, when a link is given, a QR code to the instance's page. The page is portrait when the board fits upright and landscape otherwise.
|
|
59
|
+
One page (a Rearrange the Pieces board two, below), A4 or Letter, with 10 mm margins. From the top: the variant's title, when one is given; the instruction; the board, drawn by the renderer at the cell size and centred in the room left; and at the bottom the code with a label and, when a link is given, a QR code to the instance's page. The page is portrait when the board fits upright and landscape otherwise.
|
|
60
60
|
|
|
61
|
-
The pieces on the board print as ghosts, thin outlines with light stripes, since the child covers them with the real pieces. A Line Counts board's clues print beside it, and its pieces to place print under it at half scale, as tiles in the kit's colours or in grey: they say which pieces to take, and the child matches them by shape. A Fair Shares board's grids print at true size, as many side by side as fit, with its pieces to share above them at half scale in the same way. Nothing on its sheet marks a place for a piece to leave out, and nothing prints the shares' sizes or the difference to reach. A Build a Bridge board prints at true size with its circles and squares, any piece already in place solid grey, and its pieces to place under it at half scale as Line Counts' are; with two paths each carries its path's symbol. A Fill the Shape board prints as a Build a Bridge board does, without marks or symbols: the outline at true size with its holes hatched. A Build the Mirror Image board prints as a Fill the Shape board does, with the pattern's grid beside it: the grey pattern, the axis or the point O, the empty board and any piece already in place solid grey, at true size, and the pieces to place under both grids.
|
|
61
|
+
The pieces on the board print as ghosts, thin outlines with light stripes, since the child covers them with the real pieces. A Line Counts board's clues print beside it, and its pieces to place print under it at half scale, as tiles in the kit's colours or in grey: they say which pieces to take, and the child matches them by shape. A Fair Shares board's grids print at true size, as many side by side as fit, with its pieces to share above them at half scale in the same way. Nothing on its sheet marks a place for a piece to leave out, and nothing prints the shares' sizes or the difference to reach. A Build a Bridge board prints at true size with its circles and squares, any piece already in place solid grey, and its pieces to place under it at half scale as Line Counts' are; with two paths each carries its path's symbol. A Fill the Shape board prints as a Build a Bridge board does, without marks or symbols: the outline at true size with its holes hatched. A Build the Mirror Image board prints as a Fill the Shape board does, with the pattern's grid beside it: the grey pattern, the axis or the point O, the empty board and any piece already in place solid grey, at true size, and the pieces to place under both grids. A No Way Back board prints its start: the board with its holes hatched, the pieces at their starts as ghosts with their letters, A and B, and each target dashed with its piece's letter; no X. A Rearrange the Pieces board prints two pages: its start as a No Way Back board's, the pieces lettered A to E; then its goal picture, the same board at the same size, at the same height and the same way up, with only the targeted pieces, each on its target with its letter, so the goal stays in view when the real pieces cover the start. The goal page is headed "Goal" ("Cél") where the first page has the title, has no instruction, and has the first page's footer.
|
|
62
62
|
|
|
63
63
|
The PDF states its sizes in physical units and asks viewers not to scale it (`PrintScaling: None`). For viewers that ignore that, Edu tells the teacher to print at actual size.
|
|
64
64
|
|
|
65
65
|
### The limits
|
|
66
66
|
|
|
67
|
-
A sheet holds a footprint of at most 190×219 mm upright or 259×150 mm sideways, the same numbers the content repository's validator and the backend's import assume. For Amoeba the footprint is the board. For Line Counts it is:
|
|
67
|
+
A sheet holds a footprint of at most 190×219 mm upright or 259×150 mm sideways, the same numbers the content repository's validator and the backend's import assume. For Amoeba, No Way Back and Rearrange the Pieces the footprint is the board: every piece starts on it and the targets lie on it. A Rearrange the Pieces goal page has the same box, and its heading sits in the header, outside the area the footprint measures. For Line Counts it is:
|
|
68
68
|
|
|
69
69
|
- width = (columns + 1 if any row has a clue) × cell size
|
|
70
70
|
- height = (rows + 1 if any column has a clue + 2 if any piece is to place) × cell size
|
package/limits.d.ts
CHANGED
|
@@ -49,8 +49,9 @@ export declare const trayBandCells = 2;
|
|
|
49
49
|
*/
|
|
50
50
|
export declare function gridsAcross(instance: FairSharesInstance, cellSizeMm?: number): number;
|
|
51
51
|
/**
|
|
52
|
-
* What a board takes on a sheet, in millimetres. For Amoeba
|
|
53
|
-
*
|
|
52
|
+
* What a board takes on a sheet, in millimetres. For Amoeba, No Way Back and
|
|
53
|
+
* Rearrange the Pieces that is the board: their pieces start on it, and the
|
|
54
|
+
* targets lie on it; a Rearrange the Pieces goal page has the same box. For Line Counts: its cells, a cell more across when any row has a
|
|
54
55
|
* clue, a cell more down when any column has one, and two cells more down
|
|
55
56
|
* when any piece is to place. For Fair Shares: its grids in rows of
|
|
56
57
|
* `gridsAcross`, a cell between two grids across and down, and two cells
|
package/limits.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["src/limits.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,QAAQ,EACb,KAAK,cAAc,EAUpB,MAAM,wBAAwB,CAAC;AAEhC;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;;;;;;CAGhB,CAAC;AAEX,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAID;;;GAGG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,QAAQ,EAClB,UAAU,GAAE,MAA0B,GACrC,MAAM,CAOR;AAED;;;;GAIG;AACH,wBAAgB,WA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AAS,CAMtC"}
|
package/limits.js
CHANGED
|
@@ -81,8 +81,9 @@ export function gridsAcross(instance, cellSizeMm = defaultCellSizeMm) {
|
|
|
81
81
|
return Math.ceil(Math.sqrt(instance.shares));
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
|
-
* What a board takes on a sheet, in millimetres. For Amoeba
|
|
85
|
-
*
|
|
84
|
+
* What a board takes on a sheet, in millimetres. For Amoeba, No Way Back and
|
|
85
|
+
* Rearrange the Pieces that is the board: their pieces start on it, and the
|
|
86
|
+
* targets lie on it; a Rearrange the Pieces goal page has the same box. For Line Counts: its cells, a cell more across when any row has a
|
|
86
87
|
* clue, a cell more down when any column has one, and two cells more down
|
|
87
88
|
* when any piece is to place. For Fair Shares: its grids in rows of
|
|
88
89
|
* `gridsAcross`, a cell between two grids across and down, and two cells
|
package/limits.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limits.js","sourceRoot":"","sources":["src/limits.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EACT,YAAY,EACZ,OAAO,EACP,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,QAAQ,GACT,MAAM,wBAAwB,CAAC;AAEhC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE;IACpC,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE;CAC7B,CAAC;AAOX,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B;;;GAGG;AACH,MAAM,UAAU,WAAW,CACzB,QAAkB,EAClB,aAAqB,iBAAiB;IAEtC,MAAM,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1C,MAAM,EAAE,G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1
|
{
|
|
2
2
|
"name": "@cogniplay/logic-games-sheet",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"pdfmake": "^0.3.13"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@cogniplay/logic-games": "^0.
|
|
18
|
+
"@cogniplay/logic-games": "^0.6.0"
|
|
19
19
|
},
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
package/sheet.d.ts
CHANGED
|
@@ -9,11 +9,12 @@ export declare class SheetError extends Error {
|
|
|
9
9
|
readonly code: string;
|
|
10
10
|
constructor(code: string, cause: Error);
|
|
11
11
|
}
|
|
12
|
-
/** One instance's sheet as a one
|
|
12
|
+
/** One instance's sheet as a PDF: one page, or two for a Rearrange the Pieces board, its start and its goal. */
|
|
13
13
|
export declare function renderSheet(options: SheetOptions): Promise<Uint8Array>;
|
|
14
14
|
/**
|
|
15
15
|
* Several instances' sheets in one PDF, in the order given: each on a page
|
|
16
|
-
* of its own,
|
|
16
|
+
* of its own, two for a Rearrange the Pieces board, exactly as it prints
|
|
17
|
+
* alone, turned its own way. A sheet that
|
|
17
18
|
* can't print fails the whole with a `SheetError` naming it; an empty list
|
|
18
19
|
* is an error rather than an empty PDF.
|
|
19
20
|
*/
|
package/sheet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["src/sheet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["src/sheet.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAkahE;;;;GAIG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACnC,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAEV,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK;CAKvC;AAgGD,gHAAgH;AAChH,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CAE5E;AAED;;;;;;GAMG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,SAAS,YAAY,EAAE,EAC/B,EAAE,KAAK,EAAE,GAAE,eAAoB,GAC9B,OAAO,CAAC,UAAU,CAAC,CAKrB"}
|
package/sheet.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isFairShares, isFill, isLineCounts, isLinks, isMirror, renderBoard, } from "@cogniplay/logic-games";
|
|
1
|
+
import { isFairShares, isFill, isLineCounts, isLinks, isMirror, isRearrange, renderBoard, renderGoal, } from "@cogniplay/logic-games";
|
|
2
2
|
import { boardLimitsMm, boardSizeMm, footprintMm, gridsAcross, sheetOrientation, } from "./limits.js";
|
|
3
3
|
import { configuredPdfmake, fontName } from "./pdfmake.js";
|
|
4
4
|
import { wording } from "./wording.js";
|
|
@@ -58,7 +58,7 @@ function prepare(options) {
|
|
|
58
58
|
if (colour !== "colour" && colour !== "greyscale") {
|
|
59
59
|
throw new Error(`Unknown colour "${String(colour)}": colour or greyscale`);
|
|
60
60
|
}
|
|
61
|
-
const { label } = known(wording, language, "language");
|
|
61
|
+
const { label, goal: goalHeading } = known(wording, language, "language");
|
|
62
62
|
const size = boardSizeMm(instance, cellSizeMm);
|
|
63
63
|
// What the board takes with its clues and its pieces to place; for Amoeba,
|
|
64
64
|
// the board itself.
|
|
@@ -94,8 +94,11 @@ function prepare(options) {
|
|
|
94
94
|
// two paths; a piece already in place prints solid, since it stays. A
|
|
95
95
|
// Fill the Shape board prints as Build a Bridge's, without marks or paths,
|
|
96
96
|
// and a Build the Mirror Image board as Fill the Shape's, with its
|
|
97
|
-
// pattern's grid, its pattern and its axis beside it.
|
|
98
|
-
|
|
97
|
+
// pattern's grid, its pattern and its axis beside it. A No Way Back board
|
|
98
|
+
// prints its start: the pieces as ghosts with their letters, the targets
|
|
99
|
+
// dashed, no X. A Rearrange the Pieces board prints its start as No Way
|
|
100
|
+
// Back's, and on a second page its goal picture, the start's size.
|
|
101
|
+
const renderOptions = {
|
|
99
102
|
cellSizeMm,
|
|
100
103
|
marks,
|
|
101
104
|
pieceStyle: "ghost",
|
|
@@ -105,8 +108,12 @@ function prepare(options) {
|
|
|
105
108
|
...(isFairShares(instance)
|
|
106
109
|
? { gridsPerRow: gridsAcross(instance, cellSizeMm) }
|
|
107
110
|
: {}),
|
|
108
|
-
}
|
|
111
|
+
};
|
|
112
|
+
const svg = renderBoard(instance, renderOptions);
|
|
109
113
|
const drawing = drawingSizeMm(svg);
|
|
114
|
+
const goal = isRearrange(instance)
|
|
115
|
+
? { heading: goalHeading, svg: renderGoal(instance, renderOptions) }
|
|
116
|
+
: undefined;
|
|
110
117
|
// The limits count cells, but a piece or a mark off the board, or pieces to
|
|
111
118
|
// place that need a second row, make the drawing larger than the count; it
|
|
112
119
|
// must still fit the way up the footprint chose.
|
|
@@ -135,6 +142,7 @@ function prepare(options) {
|
|
|
135
142
|
label,
|
|
136
143
|
svg,
|
|
137
144
|
drawing,
|
|
145
|
+
goal,
|
|
138
146
|
pageSize,
|
|
139
147
|
orientation,
|
|
140
148
|
pageWidth,
|
|
@@ -151,17 +159,43 @@ function prepare(options) {
|
|
|
151
159
|
* instance's page in the corner. The board is pushed down by the offset.
|
|
152
160
|
*/
|
|
153
161
|
function section(sheet, offsetMm) {
|
|
154
|
-
const {
|
|
162
|
+
const { instruction, title, svg, drawing } = sheet;
|
|
163
|
+
return page(sheet, [
|
|
164
|
+
{ text: instruction },
|
|
165
|
+
{
|
|
166
|
+
svg,
|
|
167
|
+
width: mm(drawing.width),
|
|
168
|
+
height: mm(drawing.height),
|
|
169
|
+
alignment: "center",
|
|
170
|
+
margin: [0, mm(instructionGapMm + offsetMm), 0, 0],
|
|
171
|
+
},
|
|
172
|
+
], title);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* A Rearrange the Pieces sheet's second page: the goal picture, the start's
|
|
176
|
+
* size, under the heading "Goal" in the header's place, where the first
|
|
177
|
+
* page has the title, so it lies outside the area the footprint measures.
|
|
178
|
+
* No instruction; the offset sets the board at the start's height. The
|
|
179
|
+
* footer is the first page's.
|
|
180
|
+
*/
|
|
181
|
+
function goalSection(sheet, goal, offsetMm) {
|
|
182
|
+
const { drawing } = sheet;
|
|
183
|
+
return page(sheet, [
|
|
184
|
+
{
|
|
185
|
+
svg: goal.svg,
|
|
186
|
+
width: mm(drawing.width),
|
|
187
|
+
height: mm(drawing.height),
|
|
188
|
+
alignment: "center",
|
|
189
|
+
margin: [0, mm(offsetMm), 0, 0],
|
|
190
|
+
},
|
|
191
|
+
], goal.heading);
|
|
192
|
+
}
|
|
193
|
+
/** A page of a sheet: what it flows, its header's text if any, and the sheet's footer. */
|
|
194
|
+
function page(sheet, flow, heading) {
|
|
195
|
+
const { code, link, label, pageWidth } = sheet;
|
|
155
196
|
return {
|
|
156
197
|
section: [
|
|
157
|
-
|
|
158
|
-
{
|
|
159
|
-
svg,
|
|
160
|
-
width: mm(drawing.width),
|
|
161
|
-
height: mm(drawing.height),
|
|
162
|
-
alignment: "center",
|
|
163
|
-
margin: [0, mm(instructionGapMm + offsetMm), 0, 0],
|
|
164
|
-
},
|
|
198
|
+
...flow,
|
|
165
199
|
...(link === undefined
|
|
166
200
|
? []
|
|
167
201
|
: [
|
|
@@ -180,13 +214,13 @@ function section(sheet, offsetMm) {
|
|
|
180
214
|
pageOrientation: sheet.orientation,
|
|
181
215
|
// The header's box is the top margin and the band; the rule is placed
|
|
182
216
|
// within it from the page's edge, the title flows from its margin.
|
|
183
|
-
...(
|
|
217
|
+
...(heading === undefined
|
|
184
218
|
? {}
|
|
185
219
|
: {
|
|
186
220
|
header: {
|
|
187
221
|
stack: [
|
|
188
222
|
{
|
|
189
|
-
text:
|
|
223
|
+
text: heading,
|
|
190
224
|
fontSize: 13,
|
|
191
225
|
alignment: "center",
|
|
192
226
|
margin: [mm(marginMm), mm(titleTopMm), mm(marginMm), 0],
|
|
@@ -222,10 +256,16 @@ function section(sheet, offsetMm) {
|
|
|
222
256
|
},
|
|
223
257
|
};
|
|
224
258
|
}
|
|
259
|
+
function pagesOf(sheets) {
|
|
260
|
+
return sheets.flatMap((sheet, index) => [
|
|
261
|
+
{ sheet: index, goal: false },
|
|
262
|
+
...(sheet.goal === undefined ? [] : [{ sheet: index, goal: true }]),
|
|
263
|
+
]);
|
|
264
|
+
}
|
|
225
265
|
/**
|
|
226
|
-
* The document for the sheets, each board pushed down by its
|
|
227
|
-
* where each board landed reported to `measured` as the layout
|
|
228
|
-
*
|
|
266
|
+
* The document for the sheets' pages, each board pushed down by its page's
|
|
267
|
+
* offset, with where each board landed reported to `measured` as the layout
|
|
268
|
+
* goes, in the pages' order.
|
|
229
269
|
*/
|
|
230
270
|
function definition(sheets, offsetsMm, title, measured) {
|
|
231
271
|
const [first] = sheets;
|
|
@@ -245,7 +285,13 @@ function definition(sheets, offsetsMm, title, measured) {
|
|
|
245
285
|
mm(marginMm + footerMm),
|
|
246
286
|
],
|
|
247
287
|
defaultStyle: { font: fontName, fontSize: 11 },
|
|
248
|
-
content: sheets.map((sheet
|
|
288
|
+
content: pagesOf(sheets).map(({ sheet: index, goal }, page) => {
|
|
289
|
+
const sheet = sheets[index];
|
|
290
|
+
const offset = offsetsMm[page] ?? 0;
|
|
291
|
+
return goal && sheet.goal !== undefined
|
|
292
|
+
? goalSection(sheet, sheet.goal, offset)
|
|
293
|
+
: section(sheet, offset);
|
|
294
|
+
}),
|
|
249
295
|
// pdfmake reports every node here with its properties, once each and in
|
|
250
296
|
// the document's order, so the boards are the nodes with an svg.
|
|
251
297
|
pageBreakBefore: (node) => {
|
|
@@ -274,7 +320,7 @@ export class SheetError extends Error {
|
|
|
274
320
|
}
|
|
275
321
|
}
|
|
276
322
|
/**
|
|
277
|
-
* The sheets in one PDF, a page each. A sheet that can't print fails the
|
|
323
|
+
* The sheets in one PDF, a page each, a Rearrange the Pieces board two. A sheet that can't print fails the
|
|
278
324
|
* whole; with `named`, its error becomes a `SheetError` naming it, since
|
|
279
325
|
* among many the caller can't tell which it was.
|
|
280
326
|
*/
|
|
@@ -292,23 +338,43 @@ async function render(sheets, title, named) {
|
|
|
292
338
|
const prepared = sheets.map((sheet) => checked(sheet.code, () => prepare(sheet)));
|
|
293
339
|
// pdfmake lays out top-down, so the sheets are laid out twice: once to
|
|
294
340
|
// measure where each board lands under its instruction, and once with each
|
|
295
|
-
// board pushed down by half the room left on its page.
|
|
341
|
+
// board pushed down by half the room left on its page. A goal page's board
|
|
342
|
+
// is pushed down to its start's height.
|
|
343
|
+
const pages = pagesOf(prepared);
|
|
296
344
|
const measured = [];
|
|
297
345
|
await configuredPdfmake()
|
|
298
|
-
.createPdf(definition(prepared,
|
|
346
|
+
.createPdf(definition(prepared, pages.map(() => 0), title, measured))
|
|
299
347
|
.getStream();
|
|
300
|
-
const offsetsMm =
|
|
301
|
-
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
//
|
|
306
|
-
|
|
307
|
-
if (
|
|
308
|
-
|
|
348
|
+
const offsetsMm = [];
|
|
349
|
+
pages.forEach(({ sheet: index, goal }, page) => {
|
|
350
|
+
const sheet = prepared[index];
|
|
351
|
+
const board = measured[page];
|
|
352
|
+
// Page n holds the nth board, unless an instruction pushed a board onto
|
|
353
|
+
// the next page.
|
|
354
|
+
const landed = board !== undefined && board.boardPage === page + 1;
|
|
355
|
+
if (goal) {
|
|
356
|
+
offsetsMm.push(checked(sheet.code, () => {
|
|
357
|
+
const start = measured[page - 1];
|
|
358
|
+
const offset = landed && start !== undefined
|
|
359
|
+
? start.boardTopMm + offsetsMm[page - 1] - board.boardTopMm
|
|
360
|
+
: -1;
|
|
361
|
+
if (offset < 0) {
|
|
362
|
+
throw new Error(`${sheet.code}: the goal page's board doesn't land at the start's height`);
|
|
363
|
+
}
|
|
364
|
+
return offset;
|
|
365
|
+
}));
|
|
366
|
+
return;
|
|
309
367
|
}
|
|
310
|
-
|
|
311
|
-
|
|
368
|
+
offsetsMm.push(checked(sheet.code, () => {
|
|
369
|
+
const room = board === undefined
|
|
370
|
+
? -1
|
|
371
|
+
: sheet.areaBottom - board.boardTopMm - sheet.drawing.height;
|
|
372
|
+
if (!landed || room < 0) {
|
|
373
|
+
throw new Error(`The instruction (${sheet.instruction.length} characters) is too long for a board this tall`);
|
|
374
|
+
}
|
|
375
|
+
return room / 2;
|
|
376
|
+
}));
|
|
377
|
+
});
|
|
312
378
|
const created = configuredPdfmake().createPdf(definition(prepared, offsetsMm, title, []));
|
|
313
379
|
const doc = (await created.getStream());
|
|
314
380
|
// Ask viewers not to scale the page. PDFKit 0.20 ends the ViewerPreferences
|
|
@@ -318,13 +384,14 @@ async function render(sheets, title, named) {
|
|
|
318
384
|
root.ViewerPreferences.data.PrintScaling = "None";
|
|
319
385
|
return await created.getBuffer();
|
|
320
386
|
}
|
|
321
|
-
/** One instance's sheet as a one
|
|
387
|
+
/** One instance's sheet as a PDF: one page, or two for a Rearrange the Pieces board, its start and its goal. */
|
|
322
388
|
export async function renderSheet(options) {
|
|
323
389
|
return await render([options], options.code, false);
|
|
324
390
|
}
|
|
325
391
|
/**
|
|
326
392
|
* Several instances' sheets in one PDF, in the order given: each on a page
|
|
327
|
-
* of its own,
|
|
393
|
+
* of its own, two for a Rearrange the Pieces board, exactly as it prints
|
|
394
|
+
* alone, turned its own way. A sheet that
|
|
328
395
|
* can't print fails the whole with a `SheetError` naming it; an empty list
|
|
329
396
|
* is an error rather than an empty PDF.
|
|
330
397
|
*/
|
package/sheet.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.js","sourceRoot":"","sources":["src/sheet.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,MAAM,EACN,YAAY,EACZ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C;QACxB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,MAAM,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;AAC3C,CAAC"}
|
package/src/limits.ts
CHANGED
|
@@ -122,8 +122,9 @@ export function gridsAcross(
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* What a board takes on a sheet, in millimetres. For Amoeba
|
|
126
|
-
*
|
|
125
|
+
* What a board takes on a sheet, in millimetres. For Amoeba, No Way Back and
|
|
126
|
+
* Rearrange the Pieces that is the board: their pieces start on it, and the
|
|
127
|
+
* targets lie on it; a Rearrange the Pieces goal page has the same box. For Line Counts: its cells, a cell more across when any row has a
|
|
127
128
|
* clue, a cell more down when any column has one, and two cells more down
|
|
128
129
|
* when any piece is to place. For Fair Shares: its grids in rows of
|
|
129
130
|
* `gridsAcross`, a cell between two grids across and down, and two cells
|
package/src/sheet.ts
CHANGED
|
@@ -4,10 +4,16 @@ import {
|
|
|
4
4
|
isLineCounts,
|
|
5
5
|
isLinks,
|
|
6
6
|
isMirror,
|
|
7
|
+
isRearrange,
|
|
7
8
|
renderBoard,
|
|
9
|
+
renderGoal,
|
|
8
10
|
} from "@cogniplay/logic-games";
|
|
9
11
|
|
|
10
|
-
import type {
|
|
12
|
+
import type {
|
|
13
|
+
Content,
|
|
14
|
+
ContentSection,
|
|
15
|
+
TDocumentDefinitions,
|
|
16
|
+
} from "pdfmake/interfaces";
|
|
11
17
|
|
|
12
18
|
import {
|
|
13
19
|
boardLimitsMm,
|
|
@@ -52,7 +58,7 @@ const instructionGapMm = 3;
|
|
|
52
58
|
/** The renderer's margin around the cells for the heavy outline, which may lie in the page margin. */
|
|
53
59
|
const outlinePaddingMm = 1;
|
|
54
60
|
|
|
55
|
-
/** What a layout pass reports: the page
|
|
61
|
+
/** What a layout pass reports for each board drawn: the page it landed on, and where its top is. */
|
|
56
62
|
interface Measured {
|
|
57
63
|
boardPage: number;
|
|
58
64
|
boardTopMm: number;
|
|
@@ -109,6 +115,11 @@ interface Prepared {
|
|
|
109
115
|
label: string;
|
|
110
116
|
svg: string;
|
|
111
117
|
drawing: { width: number; height: number };
|
|
118
|
+
/**
|
|
119
|
+
* A Rearrange the Pieces board's goal page: its heading, and the goal
|
|
120
|
+
* picture, the start's size. None for the other games.
|
|
121
|
+
*/
|
|
122
|
+
goal: { heading: string; svg: string } | undefined;
|
|
112
123
|
pageSize: (typeof pageSizes)[keyof typeof pageSizes];
|
|
113
124
|
orientation: "portrait" | "landscape";
|
|
114
125
|
pageWidth: number;
|
|
@@ -134,7 +145,7 @@ function prepare(options: SheetOptions): Prepared {
|
|
|
134
145
|
if (colour !== "colour" && colour !== "greyscale") {
|
|
135
146
|
throw new Error(`Unknown colour "${String(colour)}": colour or greyscale`);
|
|
136
147
|
}
|
|
137
|
-
const { label } = known(wording, language, "language");
|
|
148
|
+
const { label, goal: goalHeading } = known(wording, language, "language");
|
|
138
149
|
|
|
139
150
|
const size = boardSizeMm(instance, cellSizeMm);
|
|
140
151
|
// What the board takes with its clues and its pieces to place; for Amoeba,
|
|
@@ -177,19 +188,26 @@ function prepare(options: SheetOptions): Prepared {
|
|
|
177
188
|
// two paths; a piece already in place prints solid, since it stays. A
|
|
178
189
|
// Fill the Shape board prints as Build a Bridge's, without marks or paths,
|
|
179
190
|
// and a Build the Mirror Image board as Fill the Shape's, with its
|
|
180
|
-
// pattern's grid, its pattern and its axis beside it.
|
|
181
|
-
|
|
191
|
+
// pattern's grid, its pattern and its axis beside it. A No Way Back board
|
|
192
|
+
// prints its start: the pieces as ghosts with their letters, the targets
|
|
193
|
+
// dashed, no X. A Rearrange the Pieces board prints its start as No Way
|
|
194
|
+
// Back's, and on a second page its goal picture, the start's size.
|
|
195
|
+
const renderOptions = {
|
|
182
196
|
cellSizeMm,
|
|
183
197
|
marks,
|
|
184
|
-
pieceStyle: "ghost",
|
|
198
|
+
pieceStyle: "ghost" as const,
|
|
185
199
|
pieceColours: colour === "colour" ? pieceColours : undefined,
|
|
186
200
|
trayScale: 0.5,
|
|
187
201
|
trayWidthMm: limit.width,
|
|
188
202
|
...(isFairShares(instance)
|
|
189
203
|
? { gridsPerRow: gridsAcross(instance, cellSizeMm) }
|
|
190
204
|
: {}),
|
|
191
|
-
}
|
|
205
|
+
};
|
|
206
|
+
const svg = renderBoard(instance, renderOptions);
|
|
192
207
|
const drawing = drawingSizeMm(svg);
|
|
208
|
+
const goal = isRearrange(instance)
|
|
209
|
+
? { heading: goalHeading, svg: renderGoal(instance, renderOptions) }
|
|
210
|
+
: undefined;
|
|
193
211
|
|
|
194
212
|
// The limits count cells, but a piece or a mark off the board, or pieces to
|
|
195
213
|
// place that need a second row, make the drawing larger than the count; it
|
|
@@ -225,6 +243,7 @@ function prepare(options: SheetOptions): Prepared {
|
|
|
225
243
|
label,
|
|
226
244
|
svg,
|
|
227
245
|
drawing,
|
|
246
|
+
goal,
|
|
228
247
|
pageSize,
|
|
229
248
|
orientation,
|
|
230
249
|
pageWidth,
|
|
@@ -242,10 +261,10 @@ function prepare(options: SheetOptions): Prepared {
|
|
|
242
261
|
* instance's page in the corner. The board is pushed down by the offset.
|
|
243
262
|
*/
|
|
244
263
|
function section(sheet: Prepared, offsetMm: number): ContentSection {
|
|
245
|
-
const {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
264
|
+
const { instruction, title, svg, drawing } = sheet;
|
|
265
|
+
return page(
|
|
266
|
+
sheet,
|
|
267
|
+
[
|
|
249
268
|
{ text: instruction },
|
|
250
269
|
{
|
|
251
270
|
svg,
|
|
@@ -254,6 +273,49 @@ function section(sheet: Prepared, offsetMm: number): ContentSection {
|
|
|
254
273
|
alignment: "center",
|
|
255
274
|
margin: [0, mm(instructionGapMm + offsetMm), 0, 0],
|
|
256
275
|
},
|
|
276
|
+
],
|
|
277
|
+
title
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* A Rearrange the Pieces sheet's second page: the goal picture, the start's
|
|
283
|
+
* size, under the heading "Goal" in the header's place, where the first
|
|
284
|
+
* page has the title, so it lies outside the area the footprint measures.
|
|
285
|
+
* No instruction; the offset sets the board at the start's height. The
|
|
286
|
+
* footer is the first page's.
|
|
287
|
+
*/
|
|
288
|
+
function goalSection(
|
|
289
|
+
sheet: Prepared,
|
|
290
|
+
goal: { heading: string; svg: string },
|
|
291
|
+
offsetMm: number
|
|
292
|
+
): ContentSection {
|
|
293
|
+
const { drawing } = sheet;
|
|
294
|
+
return page(
|
|
295
|
+
sheet,
|
|
296
|
+
[
|
|
297
|
+
{
|
|
298
|
+
svg: goal.svg,
|
|
299
|
+
width: mm(drawing.width),
|
|
300
|
+
height: mm(drawing.height),
|
|
301
|
+
alignment: "center",
|
|
302
|
+
margin: [0, mm(offsetMm), 0, 0],
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
goal.heading
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/** A page of a sheet: what it flows, its header's text if any, and the sheet's footer. */
|
|
310
|
+
function page(
|
|
311
|
+
sheet: Prepared,
|
|
312
|
+
flow: Content[],
|
|
313
|
+
heading: string | undefined
|
|
314
|
+
): ContentSection {
|
|
315
|
+
const { code, link, label, pageWidth } = sheet;
|
|
316
|
+
return {
|
|
317
|
+
section: [
|
|
318
|
+
...flow,
|
|
257
319
|
...(link === undefined
|
|
258
320
|
? []
|
|
259
321
|
: [
|
|
@@ -272,13 +334,13 @@ function section(sheet: Prepared, offsetMm: number): ContentSection {
|
|
|
272
334
|
pageOrientation: sheet.orientation,
|
|
273
335
|
// The header's box is the top margin and the band; the rule is placed
|
|
274
336
|
// within it from the page's edge, the title flows from its margin.
|
|
275
|
-
...(
|
|
337
|
+
...(heading === undefined
|
|
276
338
|
? {}
|
|
277
339
|
: {
|
|
278
340
|
header: {
|
|
279
341
|
stack: [
|
|
280
342
|
{
|
|
281
|
-
text:
|
|
343
|
+
text: heading,
|
|
282
344
|
fontSize: 13,
|
|
283
345
|
alignment: "center",
|
|
284
346
|
margin: [mm(marginMm), mm(titleTopMm), mm(marginMm), 0],
|
|
@@ -316,9 +378,25 @@ function section(sheet: Prepared, offsetMm: number): ContentSection {
|
|
|
316
378
|
}
|
|
317
379
|
|
|
318
380
|
/**
|
|
319
|
-
* The
|
|
320
|
-
*
|
|
321
|
-
|
|
381
|
+
* The pages each sheet prints, in order: its start, and a Rearrange the
|
|
382
|
+
* Pieces board's goal page after it.
|
|
383
|
+
*/
|
|
384
|
+
interface Page {
|
|
385
|
+
sheet: number;
|
|
386
|
+
goal: boolean;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
function pagesOf(sheets: readonly Prepared[]): Page[] {
|
|
390
|
+
return sheets.flatMap((sheet, index) => [
|
|
391
|
+
{ sheet: index, goal: false },
|
|
392
|
+
...(sheet.goal === undefined ? [] : [{ sheet: index, goal: true }]),
|
|
393
|
+
]);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* The document for the sheets' pages, each board pushed down by its page's
|
|
398
|
+
* offset, with where each board landed reported to `measured` as the layout
|
|
399
|
+
* goes, in the pages' order.
|
|
322
400
|
*/
|
|
323
401
|
function definition(
|
|
324
402
|
sheets: readonly Prepared[],
|
|
@@ -342,9 +420,13 @@ function definition(
|
|
|
342
420
|
mm(marginMm + footerMm),
|
|
343
421
|
],
|
|
344
422
|
defaultStyle: { font: fontName, fontSize: 11 },
|
|
345
|
-
content: sheets.map((sheet,
|
|
346
|
-
|
|
347
|
-
|
|
423
|
+
content: pagesOf(sheets).map(({ sheet: index, goal }, page) => {
|
|
424
|
+
const sheet = sheets[index]!;
|
|
425
|
+
const offset = offsetsMm[page] ?? 0;
|
|
426
|
+
return goal && sheet.goal !== undefined
|
|
427
|
+
? goalSection(sheet, sheet.goal, offset)
|
|
428
|
+
: section(sheet, offset);
|
|
429
|
+
}),
|
|
348
430
|
// pdfmake reports every node here with its properties, once each and in
|
|
349
431
|
// the document's order, so the boards are the nodes with an svg.
|
|
350
432
|
pageBreakBefore: (node) => {
|
|
@@ -376,7 +458,7 @@ export class SheetError extends Error {
|
|
|
376
458
|
}
|
|
377
459
|
|
|
378
460
|
/**
|
|
379
|
-
* The sheets in one PDF, a page each. A sheet that can't print fails the
|
|
461
|
+
* The sheets in one PDF, a page each, a Rearrange the Pieces board two. A sheet that can't print fails the
|
|
380
462
|
* whole; with `named`, its error becomes a `SheetError` naming it, since
|
|
381
463
|
* among many the caller can't tell which it was.
|
|
382
464
|
*/
|
|
@@ -400,35 +482,60 @@ async function render(
|
|
|
400
482
|
|
|
401
483
|
// pdfmake lays out top-down, so the sheets are laid out twice: once to
|
|
402
484
|
// measure where each board lands under its instruction, and once with each
|
|
403
|
-
// board pushed down by half the room left on its page.
|
|
485
|
+
// board pushed down by half the room left on its page. A goal page's board
|
|
486
|
+
// is pushed down to its start's height.
|
|
487
|
+
const pages = pagesOf(prepared);
|
|
404
488
|
const measured: Measured[] = [];
|
|
405
489
|
await configuredPdfmake()
|
|
406
490
|
.createPdf(
|
|
407
491
|
definition(
|
|
408
492
|
prepared,
|
|
409
|
-
|
|
493
|
+
pages.map(() => 0),
|
|
410
494
|
title,
|
|
411
495
|
measured
|
|
412
496
|
)
|
|
413
497
|
)
|
|
414
498
|
.getStream();
|
|
415
|
-
const offsetsMm =
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
499
|
+
const offsetsMm: number[] = [];
|
|
500
|
+
pages.forEach(({ sheet: index, goal }, page) => {
|
|
501
|
+
const sheet = prepared[index]!;
|
|
502
|
+
const board = measured[page];
|
|
503
|
+
// Page n holds the nth board, unless an instruction pushed a board onto
|
|
504
|
+
// the next page.
|
|
505
|
+
const landed = board !== undefined && board.boardPage === page + 1;
|
|
506
|
+
if (goal) {
|
|
507
|
+
offsetsMm.push(
|
|
508
|
+
checked(sheet.code, () => {
|
|
509
|
+
const start = measured[page - 1];
|
|
510
|
+
const offset =
|
|
511
|
+
landed && start !== undefined
|
|
512
|
+
? start.boardTopMm + offsetsMm[page - 1]! - board.boardTopMm
|
|
513
|
+
: -1;
|
|
514
|
+
if (offset < 0) {
|
|
515
|
+
throw new Error(
|
|
516
|
+
`${sheet.code}: the goal page's board doesn't land at the start's height`
|
|
517
|
+
);
|
|
518
|
+
}
|
|
519
|
+
return offset;
|
|
520
|
+
})
|
|
521
|
+
);
|
|
522
|
+
return;
|
|
523
|
+
}
|
|
524
|
+
offsetsMm.push(
|
|
525
|
+
checked(sheet.code, () => {
|
|
526
|
+
const room =
|
|
527
|
+
board === undefined
|
|
528
|
+
? -1
|
|
529
|
+
: sheet.areaBottom - board.boardTopMm - sheet.drawing.height;
|
|
530
|
+
if (!landed || room < 0) {
|
|
531
|
+
throw new Error(
|
|
532
|
+
`The instruction (${sheet.instruction.length} characters) is too long for a board this tall`
|
|
533
|
+
);
|
|
534
|
+
}
|
|
535
|
+
return room / 2;
|
|
536
|
+
})
|
|
537
|
+
);
|
|
538
|
+
});
|
|
432
539
|
|
|
433
540
|
const created = configuredPdfmake().createPdf(
|
|
434
541
|
definition(prepared, offsetsMm, title, [])
|
|
@@ -444,14 +551,15 @@ async function render(
|
|
|
444
551
|
return await created.getBuffer();
|
|
445
552
|
}
|
|
446
553
|
|
|
447
|
-
/** One instance's sheet as a one
|
|
554
|
+
/** One instance's sheet as a PDF: one page, or two for a Rearrange the Pieces board, its start and its goal. */
|
|
448
555
|
export async function renderSheet(options: SheetOptions): Promise<Uint8Array> {
|
|
449
556
|
return await render([options], options.code, false);
|
|
450
557
|
}
|
|
451
558
|
|
|
452
559
|
/**
|
|
453
560
|
* Several instances' sheets in one PDF, in the order given: each on a page
|
|
454
|
-
* of its own,
|
|
561
|
+
* of its own, two for a Rearrange the Pieces board, exactly as it prints
|
|
562
|
+
* alone, turned its own way. A sheet that
|
|
455
563
|
* can't print fails the whole with a `SheetError` naming it; an empty list
|
|
456
564
|
* is an error rather than an empty PDF.
|
|
457
565
|
*/
|
package/src/wording.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { SheetLanguage } from "./types.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* The sheet's fixed wording, per language: the label before the code
|
|
5
|
-
*
|
|
4
|
+
* The sheet's fixed wording, per language: the label before the code, and
|
|
5
|
+
* the heading of a Rearrange the Pieces sheet's goal page. Fixed wording
|
|
6
|
+
* stays out of the database (backend decision 6), so it lives here.
|
|
6
7
|
*/
|
|
7
|
-
export const wording: Record<SheetLanguage, { label: string }> = {
|
|
8
|
-
hu: { label: "Feladat:" },
|
|
9
|
-
en: { label: "Puzzle:" },
|
|
8
|
+
export const wording: Record<SheetLanguage, { label: string; goal: string }> = {
|
|
9
|
+
hu: { label: "Feladat:", goal: "Cél" },
|
|
10
|
+
en: { label: "Puzzle:", goal: "Goal" },
|
|
10
11
|
};
|
package/wording.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type { SheetLanguage } from "./types.js";
|
|
2
2
|
/**
|
|
3
|
-
* The sheet's fixed wording, per language: the label before the code
|
|
4
|
-
*
|
|
3
|
+
* The sheet's fixed wording, per language: the label before the code, and
|
|
4
|
+
* the heading of a Rearrange the Pieces sheet's goal page. Fixed wording
|
|
5
|
+
* stays out of the database (backend decision 6), so it lives here.
|
|
5
6
|
*/
|
|
6
7
|
export declare const wording: Record<SheetLanguage, {
|
|
7
8
|
label: string;
|
|
9
|
+
goal: string;
|
|
8
10
|
}>;
|
|
9
11
|
//# sourceMappingURL=wording.d.ts.map
|
package/wording.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wording.d.ts","sourceRoot":"","sources":["src/wording.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD
|
|
1
|
+
{"version":3,"file":"wording.d.ts","sourceRoot":"","sources":["src/wording.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,aAAa,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAG1E,CAAC"}
|
package/wording.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The sheet's fixed wording, per language: the label before the code
|
|
3
|
-
*
|
|
2
|
+
* The sheet's fixed wording, per language: the label before the code, and
|
|
3
|
+
* the heading of a Rearrange the Pieces sheet's goal page. Fixed wording
|
|
4
|
+
* stays out of the database (backend decision 6), so it lives here.
|
|
4
5
|
*/
|
|
5
6
|
export const wording = {
|
|
6
|
-
hu: { label: "Feladat:" },
|
|
7
|
-
en: { label: "Puzzle:" },
|
|
7
|
+
hu: { label: "Feladat:", goal: "Cél" },
|
|
8
|
+
en: { label: "Puzzle:", goal: "Goal" },
|
|
8
9
|
};
|
|
9
10
|
//# sourceMappingURL=wording.js.map
|
package/wording.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wording.js","sourceRoot":"","sources":["src/wording.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"wording.js","sourceRoot":"","sources":["src/wording.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAA2D;IAC7E,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE;IACtC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE;CACvC,CAAC"}
|