@mark1russell7/layout-contract 0.3.6 → 0.3.8

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.
@@ -83,6 +83,13 @@ declare function overlapOf(a: Rect, b: Rect): {
83
83
  readonly x: number;
84
84
  readonly y: number;
85
85
  };
86
+ /**
87
+ * This function tells if the segments `ab` and `cd` cross at one point inside both of them.
88
+ * Segments that only touch at an end, or that are collinear, do not cross. The test has no tolerance.
89
+ */
90
+ declare function segmentsCross(a: Point, b: Point, c: Point, d: Point): boolean;
91
+ /** This function gives the shortest distance from `p` to the segment `ab`. A segment of length 0 is the point `a`. */
92
+ declare function pointSegmentDistance(p: Point, a: Point, b: Point): number;
86
93
  /** One broken claim of a corpus, with the ids of the inputs that break it. */
87
94
  interface ClaimBreak {
88
95
  /** The name of the claim, for example `declared`, `split` or `index`. */
@@ -596,5 +603,5 @@ declare function minEffectOf(spec: Pick<MeasureSpec, "minEffect">, a?: number, b
596
603
  * Two equal values are a tie, also two infinite values. A value `NaN` is an error.
597
604
  */
598
605
  declare function compareMeasure(candidate: number, baseline: number, spec: Pick<MeasureSpec, "direction" | "minEffect">): Verdict;
599
- export { FAMILY_ANY_KIND as $, shapesOf as A, PackInputOptions as B, itemShapeOf as C, grow as Ct, shapeKindsOf as D, toRect as Dt, shapeKindProblem as E, regionArea as Et, LayoutEdge as F, packLinks as G, PairGap as H, LayoutGenerator as I, ClaimBreak as J, portPoint as K, LayoutInput as L, LayoutBox as M, LayoutCell as N, shapeLevel as O, toSizedRect as Ot, LayoutContainer as P, Declares as Q, Obstacle as R, isShapeKind as S, boundsOf as St, shapeKindOf as T, overlapOf as Tt, Port as U, PackLink as V, canonicalInput as W, CorpusSplit as X, CorpusEntry as Y, DeclaredClaim as Z, ShapeKindSpec as _, Region as _t, MeasureSpec as a, checkDeclared as at, boxArea as b, Sides as bt, minEffectOf as c, declaredClaimOf as ct, SHAPE_KINDS as d, leaveOneSeedOut as dt, FamilyBy as et, SHAPE_KIND_IDS as f, splitFileName as ft, ShapeKind as g, Rect as gt, ShapeGeometry as h, Point as ht, JointMeasureId as i, SplitFold as it, Item as j, shapeSupportProblems as k, translate as kt, DEFAULT_SHAPES as l, declaredCounts as lt, ShapeCheck as m, Margin as mt, JOINT_MEASURES as n, SPLIT_SCHEMA as nt, Verdict as o, checkSplit as ot, ShapeBound as p, splitFolds as pt, toPackInput as q, JOINT_MOVED_MIN as r, SplitCorpus as rt, compareMeasure as s, corpusHashOf as st, Direction as t, FamilyCell as tt, RuleLevel as u, familyOf as ut, ShapeLevel as v, SIDES as vt, ruleLevel as w, marginSides as wt, checkShapes as x, SizedRect as xt, ShapeSupport as y, Side as yt, PackInput as z };
600
- //# sourceMappingURL=measures-WwacWhot.d.ts.map
606
+ export { FAMILY_ANY_KIND as $, shapesOf as A, toSizedRect as At, PackInputOptions as B, itemShapeOf as C, grow as Ct, shapeKindsOf as D, regionArea as Dt, shapeKindProblem as E, pointSegmentDistance as Et, LayoutEdge as F, packLinks as G, PairGap as H, LayoutGenerator as I, ClaimBreak as J, portPoint as K, LayoutInput as L, LayoutBox as M, LayoutCell as N, shapeLevel as O, segmentsCross as Ot, LayoutContainer as P, Declares as Q, Obstacle as R, isShapeKind as S, boundsOf as St, shapeKindOf as T, overlapOf as Tt, Port as U, PackLink as V, canonicalInput as W, CorpusSplit as X, CorpusEntry as Y, DeclaredClaim as Z, ShapeKindSpec as _, Region as _t, MeasureSpec as a, checkDeclared as at, boxArea as b, Sides as bt, minEffectOf as c, declaredClaimOf as ct, SHAPE_KINDS as d, leaveOneSeedOut as dt, FamilyBy as et, SHAPE_KIND_IDS as f, splitFileName as ft, ShapeKind as g, Rect as gt, ShapeGeometry as h, Point as ht, JointMeasureId as i, SplitFold as it, Item as j, translate as jt, shapeSupportProblems as k, toRect as kt, DEFAULT_SHAPES as l, declaredCounts as lt, ShapeCheck as m, Margin as mt, JOINT_MEASURES as n, SPLIT_SCHEMA as nt, Verdict as o, checkSplit as ot, ShapeBound as p, splitFolds as pt, toPackInput as q, JOINT_MOVED_MIN as r, SplitCorpus as rt, compareMeasure as s, corpusHashOf as st, Direction as t, FamilyCell as tt, RuleLevel as u, familyOf as ut, ShapeLevel as v, SIDES as vt, ruleLevel as w, marginSides as wt, checkShapes as x, SizedRect as xt, ShapeSupport as y, Side as yt, PackInput as z };
607
+ //# sourceMappingURL=measures-C-Tuv8GU.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measures-C-Tuv8GU.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;;iBAK/C,qBAAqB,GAAG,OAAO,GAAG,OAAO,GAAG;;UC9K3C;;WAEN;;WAEA;;WAEA;;;UAIM;;WAEN;;WAEA;;WAEA,QAAQ,SAAS;;WAEjB,WAAW;;WAEX;;;;;;;;KASC;;;;KAGA,aAAa,SAAS;;cAGrB;;;;;;iBA4CG,SAAS,MAAM,YAAY,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A;;;;;WAKA;aAAgC;;;WAEhC;;WAEA,kBAAkB;;;;;WAKlB,QAAQ;;;KAIP;;;;;cAoBC,yBAAyB,YAAY;;cAarC;;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-WwacWhot.js";
1
+ import { a as MeasureSpec } from "./measures-C-Tuv8GU.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.3.6",
4
+ "version": "0.3.8",
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",
@@ -49,7 +49,7 @@
49
49
  "node": ">=22.12"
50
50
  },
51
51
  "devDependencies": {
52
- "@mark1russell7/cue": "^1.0.2",
52
+ "@mark1russell7/cue": "^2.1.1",
53
53
  "@types/node": "^26.6.4",
54
54
  "esbuild": "^0.28.2",
55
55
  "fast-check": "^4.10.2",
package/src/geometry.ts CHANGED
@@ -156,3 +156,30 @@ export function overlapOf(a: Rect, b: Rect): { readonly x: number; readonly y: n
156
156
  y: Math.min(a.y + a.h, b.y + b.h) - Math.max(a.y, b.y),
157
157
  };
158
158
  }
159
+
160
+ /** This function gives the cross product of `ab` and `ac`. The sign tells the side of `ab` that has `c`. */
161
+ function orient(a: Point, b: Point, c: Point): number {
162
+ return (b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x);
163
+ }
164
+
165
+ /** This function tells if two numbers have opposite signs. Zero and NaN give false, so a touch at an end does not count. */
166
+ function opposite(p: number, q: number): boolean {
167
+ return (p < 0 && q > 0) || (p > 0 && q < 0);
168
+ }
169
+
170
+ /**
171
+ * This function tells if the segments `ab` and `cd` cross at one point inside both of them.
172
+ * Segments that only touch at an end, or that are collinear, do not cross. The test has no tolerance.
173
+ */
174
+ export function segmentsCross(a: Point, b: Point, c: Point, d: Point): boolean {
175
+ return opposite(orient(c, d, a), orient(c, d, b)) && opposite(orient(a, b, c), orient(a, b, d));
176
+ }
177
+
178
+ /** This function gives the shortest distance from `p` to the segment `ab`. A segment of length 0 is the point `a`. */
179
+ export function pointSegmentDistance(p: Point, a: Point, b: Point): number {
180
+ const dx = b.x - a.x;
181
+ const dy = b.y - a.y;
182
+ const l2 = dx * dx + dy * dy;
183
+ const t = l2 === 0 ? 0 : Math.max(0, Math.min(1, ((p.x - a.x) * dx + (p.y - a.y) * dy) / l2));
184
+ return Math.hypot(p.x - (a.x + t * dx), p.y - (a.y + t * dy));
185
+ }
@@ -690,6 +690,20 @@ interface Combo {
690
690
  const optionIds = (choices: Choices): Map<string, string | null> => new Map([...choices].map(([k, o]) => [k, o?.id ?? null]));
691
691
  const keeps = (space: StrategySpace, choices: Choices): boolean => (space.constraints ?? []).every((c) => holds(c, optionIds(choices)));
692
692
 
693
+ /**
694
+ * This function gives the constraints of a space for each stage: a constraint goes to the last stage that it names.
695
+ * The last list holds each constraint that names a stage outside the space, so a walk examines it at the end.
696
+ */
697
+ function constraintsByStage(space: StrategySpace): readonly (readonly SpaceConstraint[])[] {
698
+ const place = new Map(space.stages.map((s, i) => [s.name, i]));
699
+ const lists: SpaceConstraint[][] = Array.from({ length: space.stages.length + 1 }, () => []);
700
+ for (const c of space.constraints ?? []) {
701
+ const named = [c.if.stage, "not" in c.then ? c.then.not.stage : c.then.stage];
702
+ lists[Math.max(...named.map((name) => place.get(name) ?? space.stages.length))]!.push(c);
703
+ }
704
+ return lists;
705
+ }
706
+
693
707
  /** This function gives the count of the member lists of a meta option without a pool from `base` base configs, or `null` above `limit`. */
694
708
  function memberLists(base: bigint, rule: MemberRule, limit: bigint): bigint | null {
695
709
  let sum = 0n;
@@ -738,9 +752,12 @@ function combos(space: StrategySpace, levels: number, meta: boolean, limit: bigi
738
752
  };
739
753
  const out: Combo[] = [];
740
754
  const stages = space.stages;
755
+ // A space can have hundreds of constraints. Each one is examined at its last stage, so the walk leaves a branch at the first break.
756
+ const checks = constraintsByStage(space);
757
+ const ids = new Map<string, string | null>();
741
758
  const walk = (i: number, choices: Map<string, StageOption | null>, weight: bigint): void => {
742
759
  if (i === stages.length) {
743
- if (keeps(space, choices)) out.push({ choices: new Map(choices), base: true, weight });
760
+ if (checks[i]!.every((c) => holds(c, ids))) out.push({ choices: new Map(choices), base: true, weight });
744
761
  return;
745
762
  }
746
763
  const s = stages[i]!;
@@ -748,9 +765,11 @@ function combos(space: StrategySpace, levels: number, meta: boolean, limit: bigi
748
765
  if (s.optional) list.push(null);
749
766
  for (const o of list) {
750
767
  choices.set(s.name, o);
751
- walk(i + 1, choices, o === null ? weight : weight * countOf(o));
768
+ ids.set(s.name, o?.id ?? null);
769
+ if (checks[i]!.every((c) => holds(c, ids))) walk(i + 1, choices, o === null ? weight : weight * countOf(o));
752
770
  }
753
771
  choices.delete(s.name);
772
+ ids.delete(s.name);
754
773
  };
755
774
  walk(0, new Map(), 1n);
756
775
  if (!meta) return out;
@@ -1 +0,0 @@
1
- {"version":3,"file":"measures-WwacWhot.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;WA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