@mark1russell7/layout-contract 0.9.1 → 0.9.3

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.
@@ -27,6 +27,11 @@ interface SizedRect {
27
27
  declare function toRect(rect: SizedRect): Rect;
28
28
  /** This function gives the `SizedRect` of a `Rect`. It copies each number, and it does not round. */
29
29
  declare function toSizedRect(rect: Rect): SizedRect;
30
+ /**
31
+ * This function gives a rectangle on whole pixels. It rounds each edge with `Math.round`, not the size. Thus two
32
+ * rectangles that touch still touch after the rounding, and no gap or overlap of one pixel comes between them.
33
+ */
34
+ declare function snapRect(rect: Rect): Rect;
30
35
  /** A value for each side of a box. */
31
36
  interface Sides {
32
37
  readonly top: number;
@@ -646,5 +651,5 @@ declare function minEffectOf(spec: Pick<MeasureSpec, "minEffect">, a?: number, b
646
651
  * Two equal values are a tie, also two infinite values. A value `NaN` is an error.
647
652
  */
648
653
  declare function compareMeasure(candidate: number, baseline: number, spec: Pick<MeasureSpec, "direction" | "minEffect">): Verdict;
649
- export { CorpusSplit as $, shapeKindsOf as A, overlapOf as At, LayoutInput as B, checkShapes as C, Sides as Ct, ruleLevel as D, dropIndex as Dt, itemShapeOf as E, crossingPoint as Et, LayoutBox as F, toSizedRect as Ft, PairGap as G, PackInput as H, LayoutCell as I, translate as It, packLinks as J, Port as K, LayoutContainer as L, shapeSupportProblems as M, regionArea as Mt, shapesOf as N, segmentsCross as Nt, shapeKindOf as O, grow as Ot, Item as P, toRect as Pt, CorpusEntry as Q, LayoutEdge as R, boxArea as S, Side as St, isShapeKind as T, boundsOf as Tt, PackInputOptions as U, Obstacle as V, PackLink as W, toPackInput as X, portPoint as Y, ClaimBreak as Z, ShapeKind as _, Margin as _t, MeasureSpec as a, SPLIT_SCHEMA as at, ShapeLimit as b, Region as bt, minEffectOf as c, checkDeclared as ct, SHAPE_KINDS as d, declaredClaimOf as dt, DeclaredClaim as et, SHAPE_KIND_IDS as f, declaredCounts as ft, ShapeInput as g, splitFolds as gt, ShapeGeometry as h, splitFileName as ht, JointMeasureId as i, FamilyCell as it, shapeLevel as j, pointSegmentDistance as jt, shapeKindProblem as k, marginSides as kt, DEFAULT_SHAPES as l, checkSplit as lt, ShapeCheck as m, leaveOneSeedOut as mt, JOINT_MEASURES as n, FAMILY_ANY_KIND as nt, Verdict as o, SplitCorpus as ot, ShapeBound as p, familyOf as pt, canonicalInput as q, JOINT_MOVED_MIN as r, FamilyBy as rt, compareMeasure as s, SplitFold as st, Direction as t, Declares as tt, RuleLevel as u, corpusHashOf as ut, ShapeKindSpec as v, Point as vt, inputShapeLevel as w, SizedRect as wt, ShapeSupport as x, SIDES as xt, ShapeLevel as y, Rect as yt, LayoutGenerator as z };
650
- //# sourceMappingURL=measures-DGKAulWv.d.ts.map
654
+ export { CorpusSplit as $, shapeKindsOf as A, overlapOf as At, LayoutInput as B, checkShapes as C, Sides as Ct, ruleLevel as D, dropIndex as Dt, itemShapeOf as E, crossingPoint as Et, LayoutBox as F, toRect as Ft, PairGap as G, PackInput as H, LayoutCell as I, toSizedRect as It, packLinks as J, Port as K, LayoutContainer as L, translate as Lt, shapeSupportProblems as M, regionArea as Mt, shapesOf as N, segmentsCross as Nt, shapeKindOf as O, grow as Ot, Item as P, snapRect as Pt, CorpusEntry as Q, LayoutEdge as R, boxArea as S, Side as St, isShapeKind as T, boundsOf as Tt, PackInputOptions as U, Obstacle as V, PackLink as W, toPackInput as X, portPoint as Y, ClaimBreak as Z, ShapeKind as _, Margin as _t, MeasureSpec as a, SPLIT_SCHEMA as at, ShapeLimit as b, Region as bt, minEffectOf as c, checkDeclared as ct, SHAPE_KINDS as d, declaredClaimOf as dt, DeclaredClaim as et, SHAPE_KIND_IDS as f, declaredCounts as ft, ShapeInput as g, splitFolds as gt, ShapeGeometry as h, splitFileName as ht, JointMeasureId as i, FamilyCell as it, shapeLevel as j, pointSegmentDistance as jt, shapeKindProblem as k, marginSides as kt, DEFAULT_SHAPES as l, checkSplit as lt, ShapeCheck as m, leaveOneSeedOut as mt, JOINT_MEASURES as n, FAMILY_ANY_KIND as nt, Verdict as o, SplitCorpus as ot, ShapeBound as p, familyOf as pt, canonicalInput as q, JOINT_MOVED_MIN as r, FamilyBy as rt, compareMeasure as s, SplitFold as st, Direction as t, Declares as tt, RuleLevel as u, corpusHashOf as ut, ShapeKindSpec as v, Point as vt, inputShapeLevel as w, SizedRect as wt, ShapeSupport as x, SIDES as xt, ShapeLevel as y, Rect as yt, LayoutGenerator as z };
655
+ //# sourceMappingURL=measures-O-NfAbmJ.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measures-O-NfAbmJ.d.ts","names":[],"sources":["../src/geometry.ts","../src/corpus.ts","../src/input.ts","../src/shapes.ts","../src/measures.ts"],"mappings":";KACY;;cAGC,gBAAgB;UAEZ;WACN;WACA;;;UAIM;WACN;WACA;WACA;WACA;;;;;;UAOM;WACN;WACA;WACA;WACA;;;iBAIK,OAAO,MAAM,YAAY;;iBAKzB,YAAY,MAAM,OAAO;;;;;iBAWzB,SAAS,MAAM,OAAO;;UAOrB;WACN;WACA;WACA;WACA;;;;;;KAOC;WACG;WAAuB;WAAoB;WAAoB;WAAoB;;WAEnF;WACA;WACA;;WAEA;WAAyB;WAAqB;WAAqB;;WACnE;WAA0B;WAAqB;WAAqB;WAAqB;;;KAG5F,kBAAkB;;iBAGd,YAAY,QAAQ,qBAAqB;;iBAOzC,KAAK,MAAM,MAAM,QAAQ,qBAAqB;;iBAM9C,SAAS,QAAQ,SAAS;;;;;iBA4B1B,WAAW,QAAQ;;iBAyBnB,UAAU,QAAQ,QAAQ,YAAY,aAAa;;;;;iBAoBnD,UAAU,GAAG,MAAM,GAAG;WAAkB;WAAoB;;;;;;iBAqB5D,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG;;;;;iBAQ/C,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ;;iBAQvD,qBAAqB,GAAG,OAAO,GAA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iBAwCpC,YAAY,iBAAiB,SAAS;;;;;iBAQtC,YAAY,KAAK,YAAY;;;;;;;iBAW7B,QAAQ,KAAK;;iBAQb,aAAa,OAAO,KAAK,wBAAwB;;iBAMjD,YAAY,OAAO,KAAK,wBAAwB;;iBAMhD,iBAAiB,KAAK;;iBAWtB,SAAS,KAAK,KAAK,mCAAmC;;UAKrD;;;;;;WAMN;;;;;;;;iBASK,YAAY,OAAO,YAAY,eAAe,gBAAgB,UAAS,aAAkB;;KCtQ7F;;;;;;UAOK,YAAY;WAClB,IAAI;WACJ;WACA,WAAW;;WAEX;;WAEA;;WAEA;;WAEA;;WAEA;;;;;WAKA;aAAgC;;;WAEhC;;WAEA,kBAAkB;;;;;WAKlB,QAAQ;;;KAIP;;;;;cAqBC,yBAAyB,YAAY;;cAcrC;;KAGD;;;;;;iBAOI,YAAY,MAAM,KAAK,2BAA2B,YAAO;;;;;;;iBAezD,eAAe,mBAAmB,kBAAkB,MAAM,KAAK,0CAA0C"}
package/build/text.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as MeasureSpec } from "./measures-DGKAulWv.js";
1
+ import { a as MeasureSpec } from "./measures-O-NfAbmJ.js";
2
2
  /**
3
3
  * The advance function of a host: the width of a run of text in a font, in pixels.
4
4
  * A browser host gives `canvasAdvance(context)`. A test or a server host gives a function of a font file.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@mark1russell7/layout-contract",
4
- "version": "0.9.1",
4
+ "version": "0.9.3",
5
5
  "description": "The shared contract of the packing and highways layout engines: the input and record formats, the turn rule, margins, tolerances and hard rules.",
6
6
  "keywords": [
7
7
  "layout",
@@ -0,0 +1,94 @@
1
+ // The manifest of a corpus, `layout-corpus/1`, and the one writer of its text (`docs/CORPUS.md`).
2
+ // The bench of each engine and the joint bench write the same form: one line for each field, and one line for each item of a list.
3
+ import type { DeclaredClaim } from "./corpus.ts";
4
+
5
+ /** The schema of a corpus manifest. */
6
+ export const CORPUS_MANIFEST_SCHEMA = "layout-corpus/1";
7
+
8
+ /** The held-out split of a portfolio report: a seed, or `all` when each input is held out. */
9
+ export type HeldOut = number | "all";
10
+
11
+ /** The claims of a corpus that each bench reads. `declared` is the count of the inputs of each declared property. */
12
+ export interface ManifestClaims {
13
+ readonly declared?: DeclaredClaim;
14
+ }
15
+
16
+ /**
17
+ * A corpus manifest: the name, the specs of the inputs and, as an option, the held-out split, the claims and the inputs.
18
+ * `Spec`, `Claims` and `Input` are the types of the bench that writes the manifest.
19
+ */
20
+ export interface CorpusManifest<Spec = unknown, Claims extends object = ManifestClaims, Input = unknown> {
21
+ readonly schema: typeof CORPUS_MANIFEST_SCHEMA;
22
+ readonly corpus: string;
23
+ readonly heldOut?: HeldOut;
24
+ readonly claims?: Claims;
25
+ readonly specs: readonly Spec[];
26
+ readonly inputs?: readonly Input[];
27
+ }
28
+
29
+ /**
30
+ * The form of a JSON value on one line.
31
+ * With `spaced`, a space comes after each colon and each comma. With `compact`, the text is the text of `JSON.stringify`.
32
+ */
33
+ export type JsonStyle = "spaced" | "compact";
34
+
35
+ /** This function gives a JSON value on one line, in the style `style`. The keys of an object keep their order. */
36
+ export function lineJson(value: unknown, style: JsonStyle = "spaced"): string {
37
+ if (style === "compact") return JSON.stringify(value);
38
+ if (Array.isArray(value)) return `[${value.map((v) => lineJson(v)).join(", ")}]`;
39
+ if (value !== null && typeof value === "object") return `{${Object.entries(value).map(([k, v]) => `${JSON.stringify(k)}: ${lineJson(v)}`).join(", ")}}`;
40
+ return JSON.stringify(value);
41
+ }
42
+
43
+ /** One field of a manifest text. */
44
+ export interface ManifestField {
45
+ readonly key: string;
46
+ /** The value. With `rows`, it is an array, and each item gets its own line. */
47
+ readonly value: unknown;
48
+ readonly rows?: boolean;
49
+ /** The style of the value or of each item. The default is the style of the options. */
50
+ readonly style?: JsonStyle;
51
+ }
52
+
53
+ /** The options of `manifestText`. */
54
+ export interface ManifestTextOptions {
55
+ /** The style of each field with no style of its own. The default is `spaced`. */
56
+ readonly style?: JsonStyle;
57
+ /** The text of a list with no item: `[]` (the default), or `[` and `]` with an empty line between them. */
58
+ readonly emptyRows?: "brackets" | "line";
59
+ }
60
+
61
+ /** This function gives the text of a manifest: `{`, one line for each field in the order of `fields`, `}` and a newline. */
62
+ export function manifestText(fields: readonly ManifestField[], options: ManifestTextOptions = {}): string {
63
+ const keys = new Set<string>();
64
+ const lines = fields.map((field, i) => {
65
+ if (keys.has(field.key)) throw new RangeError(`manifestText: the key ${field.key} occurs two times.`);
66
+ keys.add(field.key);
67
+ const style = field.style ?? options.style ?? "spaced";
68
+ const end = i === fields.length - 1 ? "" : ",";
69
+ const head = ` ${JSON.stringify(field.key)}: `;
70
+ if (field.rows !== true) return `${head}${lineJson(field.value, style)}${end}`;
71
+ if (!Array.isArray(field.value)) throw new RangeError(`manifestText: the field ${field.key} has rows, so its value is an array.`);
72
+ if (field.value.length === 0 && options.emptyRows !== "line") return `${head}[]${end}`;
73
+ return `${head}[\n${field.value.map((item) => ` ${lineJson(item, style)}`).join(",\n")}\n ]${end}`;
74
+ });
75
+ return `{\n${lines.join("\n")}\n}\n`;
76
+ }
77
+
78
+ /**
79
+ * This function gives the text of a corpus manifest.
80
+ * The fields come in the order `schema`, `corpus`, `heldOut`, `claims`, `specs` and `inputs`. A field with no value is not in the text.
81
+ * `specs` and `inputs` have one line for each item.
82
+ */
83
+ export function corpusManifestText<Spec, Claims extends object, Input>(manifest: CorpusManifest<Spec, Claims, Input>, options: ManifestTextOptions = {}): string {
84
+ if (manifest.schema !== CORPUS_MANIFEST_SCHEMA) throw new RangeError(`corpusManifestText: the schema is ${String(manifest.schema)}, not ${CORPUS_MANIFEST_SCHEMA}.`);
85
+ const fields: ManifestField[] = [
86
+ { key: "schema", value: manifest.schema },
87
+ { key: "corpus", value: manifest.corpus },
88
+ ];
89
+ if (manifest.heldOut !== undefined) fields.push({ key: "heldOut", value: manifest.heldOut });
90
+ if (manifest.claims !== undefined) fields.push({ key: "claims", value: manifest.claims });
91
+ fields.push({ key: "specs", value: manifest.specs, rows: true });
92
+ if (manifest.inputs !== undefined) fields.push({ key: "inputs", value: manifest.inputs, rows: true });
93
+ return manifestText(fields, options);
94
+ }
package/src/geometry.ts CHANGED
@@ -38,6 +38,19 @@ export function toSizedRect(rect: Rect): SizedRect {
38
38
  return { x: rect.x, y: rect.y, width: rect.w, height: rect.h };
39
39
  }
40
40
 
41
+ /** This function rounds a number to a whole number with `Math.round`. It gives 0, not -0, for a small negative number. */
42
+ const roundEdge = (value: number): number => Math.round(value) + 0;
43
+
44
+ /**
45
+ * This function gives a rectangle on whole pixels. It rounds each edge with `Math.round`, not the size. Thus two
46
+ * rectangles that touch still touch after the rounding, and no gap or overlap of one pixel comes between them.
47
+ */
48
+ export function snapRect(rect: Rect): Rect {
49
+ const x = roundEdge(rect.x);
50
+ const y = roundEdge(rect.y);
51
+ return { x, y, w: roundEdge(rect.x + rect.w) - x, h: roundEdge(rect.y + rect.h) - y };
52
+ }
53
+
41
54
  /** A value for each side of a box. */
42
55
  export interface Sides {
43
56
  readonly top: number;
package/src/index.ts CHANGED
@@ -15,6 +15,7 @@ export * from "./edges.ts";
15
15
  export * from "./hash.ts";
16
16
  export * from "./portfolio.ts";
17
17
  export * from "./corpus.ts";
18
+ export * from "./corpus-manifest.ts";
18
19
  export * from "./strategy-space.ts";
19
20
  export * from "./strategy-catalog.ts";
20
21
  export * from "./verdict.ts";
@@ -1 +0,0 @@
1
- {"version":3,"file":"measures-DGKAulWv.d.ts","names":[],"sources":["../src/geometry.ts","../src/corpus.ts","../src/input.ts","../src/shapes.ts","../src/measures.ts"],"mappings":";KACY;;cAGC,gBAAgB;UAEZ;WACN;WACA;;;UAIM;WACN;WACA;WACA;WACA;;;;;;UAOM;WACN;WACA;WACA;WACA;;;iBAIK,OAAO,MAAM,YAAY;;iBAKzB,YAAY,MAAM,OAAO;;UAKxB;WACN;WACA;WACA;WACA;;;;;;KAOC;WACG;WA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