@mark1russell7/layout-contract 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,6 +95,21 @@ declare function segmentsCross(a: Point, b: Point, c: Point, d: Point): boolean;
95
95
  declare function crossingPoint(a: Point, b: Point, c: Point, d: Point): Point | undefined;
96
96
  /** This function gives the shortest distance from `p` to the segment `ab`. A segment of length 0 is the point `a`. */
97
97
  declare function pointSegmentDistance(p: Point, a: Point, b: Point): number;
98
+ /**
99
+ * This function gives the index at which a point goes among the items of a list on the screen.
100
+ * The reading order is the rows from top to bottom, and each row from left to right.
101
+ * The index is that of the first item whose center comes after the point, from 0 to the number of items.
102
+ * A center within `rowTolerance` of the point on the vertical axis is in the row of the point.
103
+ * The tolerance has the units of the points: on a screen, the default 24 is 24 pixels.
104
+ *
105
+ * Give the centers in reading order and without the item that moves.
106
+ *
107
+ * @example
108
+ * ```ts
109
+ * const index = dropIndex(pointer, others.map(centerOf));
110
+ * ```
111
+ */
112
+ declare function dropIndex(point: Point, centers: readonly Point[], rowTolerance?: number): number;
98
113
  /** One broken claim of a corpus, with the ids of the inputs that break it. */
99
114
  interface ClaimBreak {
100
115
  /** The name of the claim, for example `declared`, `split` or `index`. */
@@ -631,5 +646,5 @@ declare function minEffectOf(spec: Pick<MeasureSpec, "minEffect">, a?: number, b
631
646
  * Two equal values are a tie, also two infinite values. A value `NaN` is an error.
632
647
  */
633
648
  declare function compareMeasure(candidate: number, baseline: number, spec: Pick<MeasureSpec, "direction" | "minEffect">): Verdict;
634
- export { CorpusSplit as $, shapeKindsOf as A, pointSegmentDistance as At, LayoutInput as B, checkShapes as C, Sides as Ct, ruleLevel as D, grow as Dt, itemShapeOf as E, crossingPoint as Et, LayoutBox as F, translate as Ft, PairGap as G, PackInput as H, LayoutCell as I, packLinks as J, Port as K, LayoutContainer as L, shapeSupportProblems as M, segmentsCross as Mt, shapesOf as N, toRect as Nt, shapeKindOf as O, marginSides as Ot, Item as P, toSizedRect 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, regionArea as jt, shapeKindProblem as k, overlapOf 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 };
635
- //# sourceMappingURL=measures-COqcrCzv.d.ts.map
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
@@ -0,0 +1 @@
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;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,W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,iBAAiB;WACjB;;;KAIC;;iBAGI,UAAU,MAAM,KAAK,kCAAkC,MAAM,YAAY;;KAM7E,aAAa;;;;;iBAMT,WAAW,KAAK,KAAK,4CAA4C,MAAM,YAAY;;KAOvF,aAAa,KAAK,+BAA+B,QAAQ,KAAK;;;;;iBAe1D,gBAAgB,KAAK,KAAK,sDAAsD,MAAM,WAAW,OAAO,aAAa;;;;;;;iBAWrH,qBAAqB,eAAe;;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-COqcrCzv.js";
1
+ import { a as MeasureSpec } from "./measures-DGKAulWv.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.6.0",
4
+ "version": "0.6.2",
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",
package/src/geometry.ts CHANGED
@@ -194,3 +194,26 @@ export function pointSegmentDistance(p: Point, a: Point, b: Point): number {
194
194
  const t = l2 === 0 ? 0 : Math.max(0, Math.min(1, ((p.x - a.x) * dx + (p.y - a.y) * dy) / l2));
195
195
  return Math.hypot(p.x - (a.x + t * dx), p.y - (a.y + t * dy));
196
196
  }
197
+
198
+ /**
199
+ * This function gives the index at which a point goes among the items of a list on the screen.
200
+ * The reading order is the rows from top to bottom, and each row from left to right.
201
+ * The index is that of the first item whose center comes after the point, from 0 to the number of items.
202
+ * A center within `rowTolerance` of the point on the vertical axis is in the row of the point.
203
+ * The tolerance has the units of the points: on a screen, the default 24 is 24 pixels.
204
+ *
205
+ * Give the centers in reading order and without the item that moves.
206
+ *
207
+ * @example
208
+ * ```ts
209
+ * const index = dropIndex(pointer, others.map(centerOf));
210
+ * ```
211
+ */
212
+ export function dropIndex(point: Point, centers: readonly Point[], rowTolerance = 24): number {
213
+ for (let i = 0; i < centers.length; i++) {
214
+ const c = centers[i] as Point;
215
+ if (point.y < c.y - rowTolerance) return i;
216
+ if (Math.abs(point.y - c.y) <= rowTolerance && point.x < c.x) return i;
217
+ }
218
+ return centers.length;
219
+ }
package/src/record.ts CHANGED
@@ -67,6 +67,27 @@ export interface LayoutRecord {
67
67
  /** The reason when the strategy did not run, for example an input over its `maxNodes`. Then the record has no measures. */
68
68
  readonly skipped?: string;
69
69
  readonly commit?: string;
70
+ /**
71
+ * The facts of a carry: a later run kept this record after an engine release, with no new measure (L147).
72
+ * Without the field, the engines of the run of the record measured it.
73
+ * The measures, the hashes and the times stay the values of the versions of `carried.from`.
74
+ */
75
+ readonly carried?: Carried;
76
+ }
77
+
78
+ /**
79
+ * The facts of a record that a run kept from an older run after an engine release (L147).
80
+ * The run kept it because each strategy of the record has the same fingerprint at the two versions.
81
+ */
82
+ export interface Carried {
83
+ /** The version of each engine at the measure, by the name of the engine. */
84
+ readonly from: Readonly<Record<string, string>>;
85
+ /** The version of each engine of the run that keeps the record. The names are the names of `from`. */
86
+ readonly to: Readonly<Record<string, string>>;
87
+ /** The fingerprint of each strategy of the record, by its name: `fingerprintOf` of its probes, the same at the two versions. */
88
+ readonly fingerprints: Readonly<Record<string, string>>;
89
+ /** The id of the run that measured the record. */
90
+ readonly run?: string;
70
91
  }
71
92
 
72
93
  /**
@@ -135,6 +156,25 @@ function numberMap(out: string[], v: unknown, name: string): void {
135
156
  for (const [key, n] of Object.entries(v)) if (typeof n !== "number") out.push(`${name}.${key} is not a number`);
136
157
  }
137
158
 
159
+ /** This function tells if a value is an object whose values are strings. */
160
+ const isStringMap = (v: unknown): v is Readonly<Record<string, string>> => isFields(v) && Object.values(v).every((s) => typeof s === "string");
161
+
162
+ /** This function gives the problems of the field `carried` of a record. */
163
+ function carriedProblems(carried: unknown): string[] {
164
+ if (!isFields(carried)) return ["carried is not an object"];
165
+ const out: string[] = [];
166
+ for (const key of ["from", "to", "fingerprints"] as const) if (!isStringMap(carried[key])) out.push(`carried.${key} is not a map of strings`);
167
+ if (carried["run"] !== undefined && typeof carried["run"] !== "string") out.push("carried.run is not a string");
168
+ if (out.length > 0) return out;
169
+ const from = carried["from"] as Readonly<Record<string, string>>;
170
+ const to = carried["to"] as Readonly<Record<string, string>>;
171
+ const names = (m: Readonly<Record<string, string>>): string => Object.keys(m).sort().join(",");
172
+ if (names(from) === "" || names(from) !== names(to)) out.push("carried.from and carried.to do not name the same engines");
173
+ else if (Object.keys(from).every((name) => from[name] === to[name])) out.push("carried.to has no other version than carried.from");
174
+ if (Object.keys(carried["fingerprints"] as object).length === 0) out.push("carried.fingerprints is empty");
175
+ return out;
176
+ }
177
+
138
178
  /** This function gives the problems of the field `env` of a record. */
139
179
  function envProblems(env: unknown): string[] {
140
180
  if (!isFields(env)) return ["env is not an object"];
@@ -180,6 +220,10 @@ export function checkLayoutRecord(value: unknown): string[] {
180
220
  const because = v["because"];
181
221
  if (because !== undefined && (!Array.isArray(because) || !because.every((s) => typeof s === "string"))) out.push("because is not a list of strings");
182
222
  if (v["env"] !== undefined) out.push(...envProblems(v["env"]));
223
+ if (v["carried"] !== undefined) {
224
+ out.push(...carriedProblems(v["carried"]));
225
+ if (v["skipped"] !== undefined) out.push("a skipped record has carried");
226
+ }
183
227
  const deterministic = v["deterministic"];
184
228
  if (v["skipped"] === undefined) {
185
229
  const noClaim = deterministic === null && v["oneRun"] === true;
@@ -199,3 +243,32 @@ export function parseLayoutRecord(value: unknown): LayoutRecord {
199
243
  const record = value as LayoutRecord;
200
244
  return record.skipped !== undefined && record.deterministic !== null ? { ...record, deterministic: null } : record;
201
245
  }
246
+
247
+ /** The facts of one carry, for `carryRecord`. */
248
+ export interface CarryFacts {
249
+ /** The version of each engine of the run that keeps the record. */
250
+ readonly to: Readonly<Record<string, string>>;
251
+ /** The fingerprint of each strategy of the record, the same at the two versions. */
252
+ readonly fingerprints: Readonly<Record<string, string>>;
253
+ /** The version of each engine at the measure. A record that a run carried before keeps its `carried.from`, and the function ignores this value. */
254
+ readonly from?: Readonly<Record<string, string>>;
255
+ /** The id of the run that measured the record. A record that a run carried before keeps its `carried.run`. */
256
+ readonly run?: string;
257
+ }
258
+
259
+ /**
260
+ * This function gives a record that a run keeps after an engine release, with the field `carried` (L147).
261
+ * A record that a run carried before keeps the versions and the run of its measure, so `carried.from` always names the measure.
262
+ * The function throws a `RangeError` for a skipped record: a skip makes no claim on an output, so the run measures the pair again.
263
+ * It also throws a `RangeError` when `checkLayoutRecord` refuses the field `carried` of the result.
264
+ */
265
+ export function carryRecord(record: LayoutRecord, facts: CarryFacts): LayoutRecord {
266
+ if (record.skipped !== undefined) throw new RangeError(`The record of ${record.strategy} on ${record.input} is skipped, so a run measures it again.`);
267
+ const from = record.carried?.from ?? facts.from;
268
+ if (from === undefined) throw new RangeError(`The record of ${record.strategy} on ${record.input} has no carried.from, so the carry needs from.`);
269
+ const run = record.carried?.run ?? facts.run;
270
+ const carried: Carried = { from, to: facts.to, fingerprints: facts.fingerprints, ...(run === undefined ? {} : { run }) };
271
+ const problems = carriedProblems(carried);
272
+ if (problems.length > 0) throw new RangeError(`The carry of ${record.strategy} on ${record.input} is bad: ${problems.join(", ")}.`);
273
+ return { ...record, carried };
274
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"measures-COqcrCzv.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;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,GAAG,OAAO,GAAG;;UCzL3C;;WAEN;;WAEA;;WAEA;;;UAIM;;WAEN;;WAEA;;WAEA,QAAQ,SAAS;;WAEjB,WAAW;;WAEX;;;;;;;;KASC;;;;KAGA,aAAa,SAAS;;cAGrB;;;;;;iBA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