@cogniplay/logic-games-sheet 0.0.0-stage → 0.1.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/types.d.ts ADDED
@@ -0,0 +1,34 @@
1
+ import type { GameData, MarkDrawer } from "@cogniplay/logic-games";
2
+ export type Paper = "A4" | "Letter";
3
+ export type SheetLanguage = "hu" | "en";
4
+ /** Whether the pieces print in the kit's colours or in grey. */
5
+ export type SheetColour = "colour" | "greyscale";
6
+ export interface SheetOptions {
7
+ /** The instance's data, as the renderer takes it. */
8
+ instance: GameData;
9
+ /** The instance's code, such as AMO-03-0005. */
10
+ code: string;
11
+ /** What the child is told for this instance, in the school's language: one plain line. */
12
+ instruction: string;
13
+ /** The language of the sheet's fixed wording. */
14
+ language: SheetLanguage;
15
+ paper: Paper;
16
+ /** The kit's cell size in millimetres. Default 16. */
17
+ cellSizeMm?: number;
18
+ /** Drawings for mark kinds, passed to the renderer. */
19
+ marks?: Record<string, MarkDrawer>;
20
+ /** The kit's colour per piece id. Without it the pieces are grey. */
21
+ pieceColours?: Record<string, string>;
22
+ /** Default `colour`: the pieces in the kit's colours, when given. */
23
+ colour?: SheetColour;
24
+ /** A link to the instance's page, drawn as a QR code in the footer. None without. */
25
+ link?: string;
26
+ /** The variant's name, in the school's language, as the sheet's header. None without. */
27
+ title?: string;
28
+ }
29
+ /** What belongs to a document of several sheets rather than to one of them. */
30
+ export interface DocumentOptions {
31
+ /** The document's title, which a viewer names a saved file by. None without. */
32
+ title?: string;
33
+ }
34
+ //# sourceMappingURL=types.d.ts.map
package/types.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEnE,MAAM,MAAM,KAAK,GAAG,IAAI,GAAG,QAAQ,CAAC;AAEpC,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,CAAC;AAExC,gEAAgE;AAChE,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEjD,MAAM,WAAW,YAAY;IAC3B,qDAAqD;IACrD,QAAQ,EAAE,QAAQ,CAAC;IACnB,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,0FAA0F;IAC1F,WAAW,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,QAAQ,EAAE,aAAa,CAAC;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACnC,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,qEAAqE;IACrE,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,+EAA+E;AAC/E,MAAM,WAAW,eAAe;IAC9B,gFAAgF;IAChF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
package/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
package/types.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["src/types.ts"],"names":[],"mappings":""}
package/wording.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import type { SheetLanguage } from "./types.js";
2
+ /**
3
+ * The sheet's fixed wording, per language: the label before the code. Fixed
4
+ * wording stays out of the database (backend decision 6), so it lives here.
5
+ */
6
+ export declare const wording: Record<SheetLanguage, {
7
+ label: string;
8
+ }>;
9
+ //# sourceMappingURL=wording.d.ts.map
@@ -0,0 +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;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,aAAa,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAG5D,CAAC"}
package/wording.js ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The sheet's fixed wording, per language: the label before the code. Fixed
3
+ * wording stays out of the database (backend decision 6), so it lives here.
4
+ */
5
+ export const wording = {
6
+ hu: { label: "Feladat:" },
7
+ en: { label: "Puzzle:" },
8
+ };
9
+ //# sourceMappingURL=wording.js.map
package/wording.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wording.js","sourceRoot":"","sources":["src/wording.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAA6C;IAC/D,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE;IACzB,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;CACzB,CAAC"}