@mark1russell7/layout-contract 0.9.9 → 0.10.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 CHANGED
@@ -8,7 +8,7 @@ The package has one runtime dependency: `@mark1russell7/rigor-generators`, the h
8
8
 
9
9
  | Part | Exports |
10
10
  |---|---|
11
- | Geometry | `Point`, `Rect`, `Region`, `Side`, `Sides`, `Margin`, `marginSides`, `grow`, `boundsOf`, `regionArea`, `translate`, `overlapOf`, `segmentsCross`, `crossingPoint`, `pointSegmentDistance`, `Ring`, `pointInRing`, `pointInRings`, `boxCenterDistance` |
11
+ | Geometry | `Point`, `Rect`, `Region`, `Side`, `Sides`, `Margin`, `marginSides`, `grow`, `boundsOf`, `regionArea`, `regionPerimeter`, `translate`, `overlapOf`, `segmentsCross`, `crossingPoint`, `pointSegmentDistance`, `Ring`, `pointInRing`, `pointInRings`, `convexCorners`, `convexOverlap`, `cornersInConvex`, `boxCenterDistance` |
12
12
  | The shape kinds | `ShapeKind`, `SHAPE_KINDS`, `SHAPE_KIND_IDS`, `ShapeKindSpec`, `ShapeGeometry`, `DEFAULT_SHAPES`, `ShapeSupport`, `ShapeBound`, `RuleLevel`, `ShapeLevel`, `ShapeCheck`, `isShapeKind`, `shapeKindOf`, `shapeKindsOf`, `itemShapeOf`, `shapeKindProblem`, `shapesOf`, `ruleLevel`, `shapeLevel`, `shapeSupportProblems`, `boxArea`, `checkShapes` |
13
13
  | The input `layout-input/1` | `LayoutInput`, `LayoutBox` (`Item` for the packer), `Port`, `portPoint`, `LayoutEdge`, `LayoutContainer`, `Obstacle`, `LayoutCell`, `LayoutGenerator`, `PairGap`, `canonicalInput` |
14
14
  | The packer | `PackInput`, `PackLink`, `toPackInput`, `packLinks`, `Placement`, `PackOutput`, `StageTrace`, `applyPack` |
@@ -16,6 +16,7 @@ The package has one runtime dependency: `@mark1russell7/rigor-generators`, the h
16
16
  | The strategies | `StrategyInfo` |
17
17
  | The measures | `MeasureSpec`, `Direction`, `JointMeasureId`, `JOINT_MEASURES`, `JOINT_MOVED_MIN`, `Verdict`, `compareMeasure`, `minEffectOf` |
18
18
  | The balance and stability measures | `balanceOf`, `Balance`, `nearestGaps`, `procrustesOf`, `ProcrustesOptions`, `perChange`, `balanceMeasures`, `balanceMeasureSpecs`, `BALANCE_MEASURE_SUFFIXES`, `BalanceMeasureSuffix`, `BALANCE_SIDE_DEPTH`, `PlacedBox` |
19
+ | The cell measures | `cellsOf`, `Cells`, `CellItem`, `cellMeasures`, `cellMeasureSpecs`, `cellMeasureEntries`, `CELL_MEASURE_SUFFIXES`, `CellMeasureSuffix`, `CELL_SOURCE`, `SQUARE_COMPACTNESS` |
19
20
  | Text layout, in the subpath `/text` | `layoutText`, `TextLayout`, `TextLayoutOptions`, `TextSizing`, `createTextCharset`, `TextCharset`, `TextCharsetOptions`, `DIGITS`, `PRINTABLE_ASCII`, `createTextLayoutCache`, `TextLayoutCache`, `TextLayoutCacheOptions`, `TextLayoutCacheStats`, `createMeasurer`, `TextMeasurer`, `canvasAdvance`, `AdvanceFn`, `fontKey`, `graphemesOf`, `textMeasures`, `TEXT_MEASURES`, `TEXT_UNITS` |
20
21
  | The edges step | `edgeStep`, `EdgeShape`, `EdgeStepParams`, `EDGE_DENSITY`, `EDGE_STEP_VERSION` |
21
22
  | The random numbers | `mulberry32`, `fnv1a32`, `stepRandom`, `randomInt` |
@@ -32,15 +33,16 @@ The package has one runtime dependency: `@mark1russell7/rigor-generators`, the h
32
33
  | The option declarations | `OptionSchema`, `OptionDeclaration`, `AnyOption`, `NumberOption`, `BooleanOption`, `EnumOption`, `ValueOption`, `ListItem`, `NoDefault`, `DeclaredStrategy`, `listOptions`, `optionDefaults`, `checkOptions`, `clampOptions`, `sweepValues`, `sweepOf`, `sweepGrid`, `checkSchema` |
33
34
  | The strategy catalog | `StrategyCatalog`, `StrategyCatalogSource`, `CatalogEntry`, `ParamRoute`, `StrategyMember`, `CatalogLimit`, `OutputRow`, `OutputEvidence`, `OutputGridClass`, `OutputGridCounts`, `StrategyCatalogSchema`, `STRATEGY_CATALOG_SCHEMA`, `STRATEGY_CATALOG_SCHEMAS`, `OUTPUT_GRID_PROPERTIES`, `OUTPUT_NEAR_WHOLE`, `OUTPUT_CLASS_MIN_INPUTS`, `NODE_POSITIONS_DIMENSION`, `outputGridClass`, `parseStrategyCatalog`, `writeStrategyCatalog`, `checkCatalog`, `catalogDefaults`, `catalogOptions`, `catalogChoices`, `catalogKey`, `decodeOptionValue`, `encodeOptionValue` |
34
35
  | The turn | `turnBox`, `turnPort`, `turnMargin`, `turnRegion`, `turnResize`, `turnSide`, `turnPoint` |
35
- | The resize | `Resize`, `SizeBounds`, `sizeBoundsOf`, `sizeFits`, `resizeBox`, `resizeProblems`, `countResizeBreaks` |
36
+ | The resize | `Resize`, `SizeBounds`, `sizeBoundsOf`, `sizeFits`, `resizeBox`, `resizeProblems`, `shapeFits`, `countResizeBreaks` |
36
37
  | The tolerances | `EPS`, `EPS_STEPS`, `RECORD_EPS`, `RECORD_SCALE`, `Tolerance`, `DEFAULT_TOLERANCE` |
37
- | The hard rules | `HARD_RULE_VERSION`, `shapesOverlap`, `circleOverlaps`, `circlesOutside`, `placedCircle`, `PlacedCircle`, `segmentThroughShape`, `countLinksThroughShapes`, `ShapeLink`, `countOverlaps`, `countObstacleHits`, `regionHitsRect`, `rectInRegion`, `countOutside`, `ContainerTest`, `countPortsOffBorder`, `packHard`, `PackHard`, `PACK_HARD_RULES`, `countResizeBreaks`, `placedRect`, `checkInput` |
38
+ | The hard rules | `HARD_RULE_VERSION`, `shapesOverlap`, `circleOverlaps`, `circlesOutside`, `placedCircle`, `PlacedCircle`, `placedConvex`, `segmentThroughShape`, `countLinksThroughShapes`, `ShapeLink`, `countOverlaps`, `countObstacleHits`, `regionHitsRect`, `rectInRegion`, `countOutside`, `ContainerTest`, `countPortsOffBorder`, `packHard`, `PackHard`, `PACK_HARD_RULES`, `countResizeBreaks`, `placedRect`, `checkInput` |
38
39
 
39
40
  ## The rules
40
41
 
41
42
  - **The turn.** A turn is 90 degrees clockwise, with the y axis down. A point (`px`, `py`) of a box of height `h` goes to (`h - py`, `px`). Each side moves one step clockwise. The router gets the turned box and ports, and does not read `turn`.
42
43
  - **The resize.** A box with `resize` can get another size from the packer, in its bounds. A bound that the resize does not set is the size of the box. The placement gives the size after the turn in `w` and `h`, and `applyPack` gives the box that size. A port with `x` or `y` moves with the scale, and a port with `along` keeps its place. Only a `rect` box without a shape can have a resize (`checkInput`).
43
- - **The rule `size-kept`.** It counts each placement with a size outside the bounds of its box. `packHard` gives it only for an input with a resize or an output with a size. Thus the counts of the other inputs do not change.
44
+ - **The shape of a placement.** A box with `resize.reshape` can get a shape from the packer, for example the polygon cell of a Voronoi treemap. `Placement.shape` is relative to the origin of the placed box, as `LayoutBox.shape`, and stays inside its size. `applyPack` gives the box that shape.
45
+ - **The rule `size-kept`.** It counts each placement with a size outside the bounds of its box, or with a shape that does not fit (`shapeFits`). `packHard` gives it only for an input with a resize or an output with a size. Thus the counts of the other inputs do not change.
44
46
  - **The margin.** A margin is a ring around a box. No other box and no route enters it. A route from a port of the box crosses the ring at a right angle.
45
47
  - **The gap.** The gap is the free space between two boxes with their margins. Routes use it. Two boxes are `mA + gap + mB` apart.
46
48
  - **The pair gaps.** `pairGaps` gives a minimum distance to some pairs of boxes: `{ a, b, gap, lanes? }`. For its pair, the `gap` of an entry replaces `mA + gap + mB`.
@@ -57,10 +59,11 @@ The package has one runtime dependency: `@mark1russell7/rigor-generators`, the h
57
59
  - `portPoint(box, port)` gives the point of a port, relative to the top-left corner of the box. A port without a fixed point gives `undefined`, because the router picks the point.
58
60
  - A turn changes `along` of `left` and `right` to `1 - along`, because the start of the side moves to its other end. `along` of `top` and `bottom` stays.
59
61
  - An input without `along` keeps its hash.
60
- - **The hard rules of a pack.** `no-overlap` counts the pairs of boxes and the pairs of a box and an obstacle. Two circles count by the distance of their centers, and each other pair counts by its bounding boxes. A pair of `pairGaps` uses its gap in place of the margins. A locked box without a placement, or with a move of more than `RECORD_EPS`, breaks `locked-kept`. `checkInput` refuses a locked box without a position. Another box without a placement and not in `overflow` breaks `complete`.
61
- - **The container rule.** `in-container` counts each box that goes out of the container made smaller by `inset`. The box counts with its margin. A circle in a circle container counts by distance, also when the size is free.
62
+ - **The shapes in `no-overlap`.** Two circles count by the distance of their centers. A convex polygon without a margin, beside a rectangle or another convex polygon, counts by the separating axis theorem. Each other pair counts by its bounding boxes.
63
+ - **The hard rules of a pack.** `no-overlap` counts the pairs of boxes and the pairs of a box and an obstacle. A pair of `pairGaps` uses its gap in place of the margins. A locked box without a placement, or with a move of more than `RECORD_EPS`, breaks `locked-kept`. `checkInput` refuses a locked box without a position. Another box without a placement and not in `overflow` breaks `complete`.
64
+ - **The container rule.** `in-container` counts each box that goes out of the container made smaller by `inset`. The box counts with its margin. A circle in a circle container counts by distance, also when the size is free. A convex polygon without a margin in a convex container counts by its corners.
62
65
  - **The exact container.** Since 0.4.0, a box of a shaped container with the size `fixed` must stay inside the shape. A cut corner, a notch and a hole count. A container with a free side keeps the bounding test. Give `{ exactContainer: false }` to `packHard` or `countOutside` for the bounding test on each shape.
63
- - **The version of the rules.** `HARD_RULE_VERSION` is 2. A record states the version in `hardRule`, and `hardRuleOf` gives 1 for a record without the field. On version 1, a count on a circle is an upper bound.
66
+ - **The version of the rules.** `HARD_RULE_VERSION` is 3. A record states the version in `hardRule`, and `hardRuleOf` gives 1 for a record without the field. On version 1, a count on a circle is an upper bound. Before version 3, a count on a convex polygon is an upper bound.
64
67
  - **The shape kinds.** An item is a `rect`, a `polygon`, a `circle` or a `free` shape. Each measure and rule declares its kinds. `checkShapes` refuses the other kinds. `docs/SHAPES.md` tells the rules.
65
68
  - `regionArea(region)` gives the exact area of a region. `boxArea(box)` gives the exact area of a box, or `undefined` for a `free` box. A box with an ellipse shape is `free`.
66
69
  - `ShapeSupport.safe` lists the kinds with a safe count: an upper bound that does not miss a break. `ruleLevel(rule, kind)` gives `exact`, `safe` or `none`.
@@ -108,6 +111,8 @@ The comments of the source name each doc as `docs/<NAME>.md`. The docs are in th
108
111
  | Doc | The subject |
109
112
  |---|---|
110
113
  | [`docs/BALANCE.md`](https://github.com/mark1russell7/layout-contract/blob/main/docs/BALANCE.md) | The balance and stability measures of a pack and of a joint layout |
114
+ | [`docs/CELLS.md`](https://github.com/mark1russell7/layout-contract/blob/main/docs/CELLS.md) | The cell measures of a Voronoi treemap: the area error and the compactness of the cells |
115
+ | [`docs/CURVES.md`](https://github.com/mark1russell7/layout-contract/blob/main/docs/CURVES.md) | The Hilbert, Moore and Morton curves through a grid, as data |
111
116
  | [`docs/FRAMES.md`](https://github.com/mark1russell7/layout-contract/blob/main/docs/FRAMES.md) | The frame record `layout-frame/1`, the frames between two layouts and their laws |
112
117
  | [`docs/TEXT.md`](https://github.com/mark1russell7/layout-contract/blob/main/docs/TEXT.md) | The text layout of the subpath `/text`: the rules, the units and the measures |
113
118
  | [`docs/CORPUS.md`](https://github.com/mark1russell7/layout-contract/blob/main/docs/CORPUS.md) | The shared corpus registry, its dimensions and families |
package/build/index.d.ts CHANGED
@@ -1,5 +1,70 @@
1
- import { $ as CorpusEntry, A as shapeKindsOf, At as crossingPoint, B as LayoutInput, Bt as scaleRect, C as checkShapes, Ct as SIDES, D as ruleLevel, Dt as boundsOf, E as itemShapeOf, Et as SizedRect, F as LayoutBox, Ft as pointInRing, G as PairGap, Gt as translate, H as PackInput, Ht as snapRect, I as LayoutCell, It as pointInRings, J as canonicalInput, K as Port, L as LayoutContainer, Lt as pointSegmentDistance, M as shapeSupportProblems, Mt as grow, N as shapesOf, Nt as marginSides, O as shapeKindOf, Ot as boxCenterDistance, P as Item, Pt as overlapOf, Q as ClaimBreak, R as LayoutEdge, Rt as regionArea, S as boxArea, St as Ring, T as isShapeKind, Tt as Sides, U as PackInputOptions, Ut as toRect, V as Obstacle, Vt as segmentsCross, W as PackLink, Wt as toSizedRect, X as portPoint, Y as packLinks, Z as toPackInput, _ as ShapeKind, _t as splitFolds, a as MeasureSpec, at as FamilyCell, b as ShapeLimit, bt as Rect, c as minEffectOf, ct as SplitFold, d as SHAPE_KINDS, dt as corpusHashOf, et as CorpusSplit, f as SHAPE_KIND_IDS, ft as declaredClaimOf, g as ShapeInput, gt as splitFileName, h as ShapeGeometry, ht as leaveOneSeedOut, i as JointMeasureId, it as FamilyBy, j as shapeLevel, jt as dropIndex, k as shapeKindProblem, kt as clipRing, l as DEFAULT_SHAPES, lt as checkDeclared, m as ShapeCheck, mt as familyOf, n as JOINT_MEASURES, nt as Declares, o as Verdict, ot as SPLIT_SCHEMA, p as ShapeBound, pt as declaredCounts, q as Resize, r as JOINT_MOVED_MIN, rt as FAMILY_ANY_KIND, s as compareMeasure, st as SplitCorpus, t as Direction, tt as DeclaredClaim, u as RuleLevel, ut as checkSplit, v as ShapeKindSpec, vt as Margin, w as inputShapeLevel, wt as Side, x as ShapeSupport, xt as Region, y as ShapeLevel, yt as Point, z as LayoutGenerator, zt as ringCentroid } from "./measures-CJZw-Y3H.js";
1
+ import { $ as CorpusEntry, A as shapeKindsOf, At as convexCorners, B as LayoutInput, Bt as pointSegmentDistance, C as checkShapes, Ct as SIDES, D as ruleLevel, Dt as boundsOf, E as itemShapeOf, Et as SizedRect, F as LayoutBox, Ft as grow, G as PairGap, Gt as segmentsCross, H as PackInput, Ht as regionPerimeter, I as LayoutCell, It as marginSides, J as canonicalInput, Jt as toSizedRect, K as Port, Kt as snapRect, L as LayoutContainer, Lt as overlapOf, M as shapeSupportProblems, Mt as cornersInConvex, N as shapesOf, Nt as crossingPoint, O as shapeKindOf, Ot as boxCenterDistance, P as Item, Pt as dropIndex, Q as ClaimBreak, R as LayoutEdge, Rt as pointInRing, S as boxArea, St as Ring, T as isShapeKind, Tt as Sides, U as PackInputOptions, Ut as ringCentroid, V as Obstacle, Vt as regionArea, W as PackLink, Wt as scaleRect, X as portPoint, Y as packLinks, Yt as translate, Z as toPackInput, _ as ShapeKind, _t as splitFolds, a as MeasureSpec, at as FamilyCell, b as ShapeLimit, bt as Rect, c as minEffectOf, ct as SplitFold, d as SHAPE_KINDS, dt as corpusHashOf, et as CorpusSplit, f as SHAPE_KIND_IDS, ft as declaredClaimOf, g as ShapeInput, gt as splitFileName, h as ShapeGeometry, ht as leaveOneSeedOut, i as JointMeasureId, it as FamilyBy, j as shapeLevel, jt as convexOverlap, k as shapeKindProblem, kt as clipRing, l as DEFAULT_SHAPES, lt as checkDeclared, m as ShapeCheck, mt as familyOf, n as JOINT_MEASURES, nt as Declares, o as Verdict, ot as SPLIT_SCHEMA, p as ShapeBound, pt as declaredCounts, q as Resize, qt as toRect, r as JOINT_MOVED_MIN, rt as FAMILY_ANY_KIND, s as compareMeasure, st as SplitCorpus, t as Direction, tt as DeclaredClaim, u as RuleLevel, ut as checkSplit, v as ShapeKindSpec, vt as Margin, w as inputShapeLevel, wt as Side, x as ShapeSupport, xt as Region, y as ShapeLevel, yt as Point, z as LayoutGenerator, zt as pointInRings } from "./measures-J0yY_JvV.js";
2
2
  import { AnyOption, BooleanOption, DeclaredStrategy, EnumOption, EnumerateOptions, EnumerateOptions as EnumerateOptions$1, GridOptions, KindOptions, KindOptions as KindOptions$1, ListItem, MemberRule, NoDefault, NoDefaultReason, NumberOption, OptionDeclaration, OptionIssue, OptionRef, OptionScale, OptionSchema, OptionSetting, OptionSupports, ParamKind, ParamValue, ParamWhen, STRATEGY_SPACE_SCHEMA, SampleOptions, ShapeFilter, SpaceConstraint, SpaceParam, SpaceSize, SpaceSize as SpaceSize$1, SpaceSizeOptions, SpaceSizeOptions as SpaceSizeOptions$1, SpaceStage, StageChoice, StageOption, StrategyConfig, StrategyConfig as StrategyConfig$1, StrategySpace, StrategySpace as StrategySpace$1, SweepOptions, ValueOption, canonicalConfig, checkConfig, checkOptions, checkSchema, clampOptions, configId, declarationIssues, joinConfigs, listOptions, optionDefaults, optionIssue, paramActive, paramAt, paramLevels, paramProblem, paramUnit, paramValue, productSpace, splitConfig, sweepGrid, sweepOf, sweepValues } from "@mark1russell7/strategy-space";
3
+ /**
4
+ * A symmetry of a square: one of its 8 rotations and reflections. The names tell where a point `(s, t)` goes in a square
5
+ * of side `size`.
6
+ */
7
+ export type CurveSymmetry = "same" | "swap" | "back" | "half" | "rise" | "fall" | "flip-s" | "flip-t";
8
+ /** The 8 symmetries of a square, in a fixed order. */
9
+ export declare const CURVE_SYMMETRIES: readonly CurveSymmetry[];
10
+ /** A quadrant of a square: `[0, 0]` is the low left quadrant, and `[1, 0]` is the quadrant with the high `s` and the low `t`. */
11
+ export type CurveQuadrant = readonly [0 | 1, 0 | 1];
12
+ /** The symmetries of the four parts of one level of a curve, in the order of the parts. */
13
+ export type CurvePattern = readonly [CurveSymmetry, CurveSymmetry, CurveSymmetry, CurveSymmetry];
14
+ /** A curve as data. It has the quadrant of each part in the order of the curve, and the symmetry of each part. */
15
+ export interface CurveSpec {
16
+ readonly name: string;
17
+ readonly order: readonly [CurveQuadrant, CurveQuadrant, CurveQuadrant, CurveQuadrant];
18
+ readonly root: CurvePattern;
19
+ readonly child: CurvePattern;
20
+ }
21
+ /** The parts of the Hilbert curve. The curve goes in at the corner `(0, 0)` and out at the corner `(size, 0)`. */
22
+ export declare const HILBERT_PATTERN: CurvePattern;
23
+ /** The top level of the Moore curve: four Hilbert curves in a loop. The loop goes in and out at the middle of the side `t = 0`. */
24
+ export declare const MOORE_PATTERN: CurvePattern;
25
+ /** The Hilbert curve. Two cells in a row along the curve share a side. */
26
+ export declare const HILBERT_CURVE: CurveSpec;
27
+ /** The Moore curve. Two cells in a row share a side, and the last cell shares a side with the first cell. */
28
+ export declare const MOORE_CURVE: CurveSpec;
29
+ /** The Morton curve (the Z order). The index of a cell has the bits of `x` at the even places and the bits of `y` at the odd places. */
30
+ export declare const MORTON_CURVE: CurveSpec;
31
+ /** The largest side of a curve grid: 2 to the power 26. Thus each index is less than 2 to the power 52, and is exact. */
32
+ export declare const CURVE_MAX_SIDE: number;
33
+ /**
34
+ * This function gives a point of the square `[0, size] x [0, size]` after a symmetry. The cell `(x, y)` of a grid of
35
+ * side `n` goes to a cell of the same grid with `size = n - 1`.
36
+ */
37
+ export declare function applySymmetry(symmetry: CurveSymmetry, s: number, t: number, size?: number): [number, number];
38
+ /** This function gives the symmetry that undoes `symmetry`. Each symmetry undoes itself, but `rise` and `fall` undo each other. */
39
+ export declare function inverseSymmetry(symmetry: CurveSymmetry): CurveSymmetry;
40
+ /**
41
+ * This function gives the cell `[x, y]` at the place `index` along a curve on a grid of `side` cells on each side.
42
+ * The side is a power of 2, and the index is a whole number from 0 to `side * side - 1`. Other values are a `RangeError`.
43
+ * The cost is `O(log side)`.
44
+ */
45
+ export declare function curveCell(curve: CurveSpec, index: number, side: number): [number, number];
46
+ /**
47
+ * This function gives the place along a curve of the cell `(x, y)` of a grid of `side` cells on each side. It is the inverse
48
+ * of `curveCell`. A side that is not a power of 2, or a cell outside the grid, is a `RangeError`. The cost is `O(log side)`.
49
+ */
50
+ export declare function curveIndex(curve: CurveSpec, x: number, y: number, side: number): number;
51
+ /** This function gives the place along the Hilbert curve of the cell `(x, y)` of a grid of side `side`. */
52
+ export declare function hilbertIndex(x: number, y: number, side: number): number;
53
+ /** This function gives the cell at the place `index` along the Hilbert curve on a grid of side `side`. */
54
+ export declare function hilbertCell(index: number, side: number): [number, number];
55
+ /** This function gives the place along the Moore curve of the cell `(x, y)` of a grid of side `side`. */
56
+ export declare function mooreIndex(x: number, y: number, side: number): number;
57
+ /** This function gives the cell at the place `index` along the Moore curve on a grid of side `side`. */
58
+ export declare function mooreCell(index: number, side: number): [number, number];
59
+ /** This function gives the place along the Morton curve of the cell `(x, y)` of a grid of side `side`. */
60
+ export declare function mortonIndex(x: number, y: number, side: number): number;
61
+ /** This function gives the cell at the place `index` along the Morton curve on a grid of side `side`. */
62
+ export declare function mortonCell(index: number, side: number): [number, number];
63
+ /**
64
+ * This function gives each cell of a grid of side `side` in the order of a curve. The cost is `O(side^2 log side)`.
65
+ * A side that is not a power of 2 is a `RangeError`.
66
+ */
67
+ export declare function curveCells(curve: CurveSpec, side: number): [number, number][];
3
68
  /** The epsilon for the float compares in an engine. */
4
69
  export declare const EPS = 1e-6;
5
70
  /** The count of `EPS` steps in one layout unit. It is the integer equal to `1 / EPS`. */
@@ -40,6 +105,11 @@ export interface Placement {
40
105
  readonly turn?: 0 | 90;
41
106
  readonly w?: number;
42
107
  readonly h?: number;
108
+ /**
109
+ * The shape of the placed box, relative to its origin, as `LayoutBox.shape`. Only a box with `resize.reshape` can get it (`size-kept`).
110
+ * The shape stays inside the box: `w` by `h` of the placement, or of the box without them.
111
+ */
112
+ readonly shape?: Region;
43
113
  }
44
114
  /** The facts of one stage of a strategy, for the records and the site. */
45
115
  export interface StageTrace {
@@ -71,6 +141,7 @@ export interface PackOutput {
71
141
  * The container gets the size of the output. The router reads this result. It does not read `turn`.
72
142
  *
73
143
  * A placement with `w` or `h` gives the box that size after the turn (`resizeBox`).
144
+ * A placement with `shape` gives the box that shape. The box loses its `shapeKind`, so `shapeKindOf` reads the kind of the new shape.
74
145
  */
75
146
  export declare function applyPack(input: LayoutInput, output: PackOutput): LayoutInput;
76
147
  /** The stage of a record: the packer, the router, or both together. */
@@ -250,8 +321,10 @@ export declare function placedRect(box: LayoutBox): Rect | undefined;
250
321
  *
251
322
  * - Version 1 counts each shape by its bounding box. On a circle, that count is an upper bound. A count over 0 proves nothing.
252
323
  * - Version 2 counts two circles, and a circle in a circle container, by the distance of the centers. The other pairs stay on the bounding box.
324
+ * - Version 3 counts a pair with a convex polygon by the separating axis theorem. The other box is a rectangle or a convex polygon, and neither box has a margin.
325
+ * A convex polygon without a margin in a convex container counts by its corners. The counts of the other inputs do not change.
253
326
  */
254
- export declare const HARD_RULE_VERSION = 2;
327
+ export declare const HARD_RULE_VERSION = 3;
255
328
  /** A circle at its place on the board: its center and its radius, without a margin. */
256
329
  export interface PlacedCircle {
257
330
  readonly cx: number;
@@ -260,11 +333,17 @@ export interface PlacedCircle {
260
333
  }
261
334
  /** This function gives the circle of a placed box. A box without a position, or with another shape, gives `undefined`. */
262
335
  export declare function placedCircle(box: LayoutBox): PlacedCircle | undefined;
336
+ /**
337
+ * This function gives the corners of a placed box on the board, when its outline is convex and it has no margin. Each other box gives `undefined`.
338
+ * A box without a shape is its rectangle. A box with a shape gives `convexCorners` of the shape at the position of the box.
339
+ */
340
+ export declare function placedConvex(box: LayoutBox): Ring | undefined;
263
341
  /**
264
342
  * This function tells if two placed boxes break `no-overlap`. It is the rule for one pair of `countOverlaps`.
265
343
  *
266
344
  * - Two circles break the rule when their centers are nearer than the two radii and the two margins, less `tolerance`. The margin of a circle is the largest side of its margin.
267
345
  * - Another pair breaks the rule when the bounding boxes with their margins overlap by more than `tolerance` on each axis. With a shape that is not a rectangle, this test is an upper bound.
346
+ * - A pair with a convex polygon and no margin also needs an overlap over `tolerance` on the normal of each side (`convexOverlap`). Thus that pair is exact.
268
347
  * - With `gap`, the gap replaces the two margins. Two circles are then apart by the two radii and the gap. For another pair, one box grows by the gap.
269
348
  * - A box without a position does not overlap.
270
349
  */
@@ -272,6 +351,7 @@ export declare function shapesOverlap(a: LayoutBox, b: LayoutBox, tolerance?: nu
272
351
  /**
273
352
  * This function counts the pairs of placed boxes that break `no-overlap`. `shapesOverlap` is the rule for one pair.
274
353
  * Two circles count by the distance of their centers. Each other pair counts by the bounding boxes, so a circle beside another shape is an upper bound (roadmap item L107).
354
+ * A pair with a convex polygon and no margin also needs an overlap on the normal of each side, so it is exact (version 3).
275
355
  *
276
356
  * A pair of `pairGaps`, in either order, uses its `gap` in place of the two margins. One box grows by the gap, and the other box does not grow.
277
357
  * Thus the pair breaks the rule only when the boxes are nearer than the gap on each axis. The other pairs do not change.
@@ -328,8 +408,10 @@ export declare function countLinksThroughShapes(boxes: readonly LayoutBox[], lin
328
408
  *
329
409
  * With `exactContainer`, the default, a box of a shaped container with the size `fixed` also counts when it is not inside the shape, by `rectInRegion`.
330
410
  * For that test, the box grows by `inset` and becomes smaller by `tolerance` on each side. A shaped container with a free side keeps the bounding test only.
331
- * A circle in a circle container does not use `rectInRegion`. It counts by distance, as in `circlesOutside`, also when the size is free.
332
411
  * An input without a container gives 0.
412
+ *
413
+ * A circle in a circle container does not use `rectInRegion`. It counts by distance, as in `circlesOutside`, also when the size is free.
414
+ * A box of a `polygon` shape with `placedConvex` in a convex shape does not use `rectInRegion`. It counts by its corners (`cornersInConvex`), so the count is exact (version 3).
333
415
  */
334
416
  export declare function countOutside(input: LayoutInput, tolerance?: number, options?: ContainerTest): number;
335
417
  /** This function counts the fixed ports that are not on the border of their box, with the epsilon of a written file. A port without a side does not count. */
@@ -341,8 +423,8 @@ export interface PackHard {
341
423
  readonly "locked-kept": number;
342
424
  readonly complete: number;
343
425
  /**
344
- * The count of the placements whose size is not in the bounds of their box (`countResizeBreaks`).
345
- * `packHard` gives it only when a box of the input has `resize` or a placement has `w` or `h`. Thus the counts of the other inputs do not change.
426
+ * The count of the placements whose size or shape does not fit their box (`countResizeBreaks`).
427
+ * `packHard` gives it only when a box of the input has `resize` or a placement has `w`, `h` or `shape`. Thus the counts of the other inputs do not change.
346
428
  */
347
429
  readonly "size-kept"?: number;
348
430
  }
@@ -351,6 +433,9 @@ export interface PackHard {
351
433
  * `no-overlap` and `in-container` are exact for a `rect` and a `circle`. `limit` tells the inputs where the count of a circle is only safe (roadmap item L107).
352
434
  * For the other kinds, these rules test the bounding box. The count is safe: a shape is inside its bounding box, so the count is an upper bound. A count of 0 tells that the rule has no break.
353
435
  * `locked-kept` and `complete` read only the positions and the ids, so they support each kind.
436
+ *
437
+ * A convex `polygon` without a margin is exact beside a rectangle or a convex polygon, and in a convex container (version 3).
438
+ * The kind `polygon` stays `safe`, because a concave polygon is not exact.
354
439
  */
355
440
  export declare const PACK_HARD_RULES: readonly ShapeSupport<keyof PackHard>[];
356
441
  /** This function tells if the inside of `region` and the inside of `rect` have a common point. */
@@ -366,8 +451,9 @@ export declare function rectInRegion(region: Region, rect: Rect): boolean;
366
451
  */
367
452
  export declare function countObstacleHits(boxes: readonly LayoutBox[], obstacles: readonly Obstacle[] | undefined, tolerance?: number): number;
368
453
  /**
369
- * This function gives the count of the placements whose size is not in the bounds of their box (`sizeFits`).
454
+ * This function counts the placements with a size outside the bounds of their box (`sizeFits`), or with a shape that does not fit (`shapeFits`).
370
455
  * The bounds are in the axes of the placed box: a turned box has the turned bounds. A placement without `w` or `h` keeps that size of the box.
456
+ * A placement with a shape on a box without `resize.reshape` counts. A placement counts one time, also when its size and its shape both break.
371
457
  * A placement of an id that is not in the input does not count.
372
458
  */
373
459
  export declare function countResizeBreaks(input: LayoutInput, output: PackOutput): number;
@@ -379,7 +465,7 @@ export declare function countResizeBreaks(input: LayoutInput, output: PackOutput
379
465
  * A locked box without a placement, or with a move of more than `RECORD_EPS`, breaks `locked-kept`.
380
466
  * A locked box without a position in the input is a bad input, not a break. `checkInput` finds it.
381
467
  * Another box without a placement that is not in `overflow` breaks `complete`.
382
- * `size-kept` is in the result only when a box has `resize` or a placement has `w` or `h` (`countResizeBreaks`).
468
+ * `size-kept` is in the result only when a box has `resize` or a placement has `w`, `h` or `shape` (`countResizeBreaks`).
383
469
  *
384
470
  * `options` goes to `countOutside` for `in-container`.
385
471
  */
@@ -431,6 +517,11 @@ export declare function sizeBoundsOf(box: LayoutBox): SizeBounds;
431
517
  * A size that is not positive and finite is not in the bounds.
432
518
  */
433
519
  export declare function sizeFits(box: LayoutBox, w: number, h: number): boolean;
520
+ /**
521
+ * This function tells if a placement can give a box the shape `shape` at the size `w` by `h`.
522
+ * The box needs `resize.reshape`, and the bounding box of the shape stays inside the rectangle from 0, 0 to `w`, `h`, with the tolerance `RECORD_EPS`.
523
+ */
524
+ export declare function shapeFits(box: LayoutBox, shape: Region, w: number, h: number): boolean;
434
525
  /**
435
526
  * This function gives a box at the size `w` by `h`. The position, the margin and the other fields stay.
436
527
  * A port with `x` or `y` moves with the scale of its axis. A port with `along` keeps its place on its side.
@@ -440,7 +531,7 @@ export declare function resizeBox(box: LayoutBox, w: number, h: number): LayoutB
440
531
  /**
441
532
  * This function gives the problems of the `resize` of a box. A box without `resize` has no problem.
442
533
  * Only a `rect` box without a shape can have a resize. Each bound is a positive finite number.
443
- * The size of the box is in its bounds, and `aspect` is `keep` or `free`.
534
+ * The size of the box is in its bounds, `aspect` is `keep` or `free`, and `reshape` is `true` or `false`.
444
535
  */
445
536
  export declare function resizeProblems(box: LayoutBox): string[];
446
537
  /** A placed box: its id and its bounding box. */
@@ -451,6 +542,8 @@ export interface PlacedBox extends Rect {
451
542
  export interface Balance {
452
543
  /** The standard deviation of the nearest-neighbour gaps divided by their mean. */
453
544
  readonly gapCv: number;
545
+ /** The mean of the nearest-neighbour gaps, in layout units. With fewer than 2 boxes, the value is 0. */
546
+ readonly gapMean: number;
454
547
  /** The distance from the centroid of the free area to the center of the container, as a share of the half-diagonal. */
455
548
  readonly centroidOffset: number;
456
549
  /** The empty share of the strip at each side of the container. */
@@ -461,7 +554,7 @@ export interface Balance {
461
554
  /** The depth of the strip of each side, as a share of the container. For `top` and `bottom`, it is a share of the height. For `left` and `right`, it is a share of the width. */
462
555
  export declare const BALANCE_SIDE_DEPTH = .25;
463
556
  /** A suffix of a balance or stability measure. A stage adds its prefix, for example `pack.balance.gapCv`. */
464
- export type BalanceMeasureSuffix = "balance.gapCv" | "balance.centroidOffset" | "balance.side.top" | "balance.side.right" | "balance.side.bottom" | "balance.side.left" | "balance.sideRange" | "stability.procrustes" | "stability.seed";
557
+ export type BalanceMeasureSuffix = "balance.gapCv" | "balance.gapMean" | "balance.centroidOffset" | "balance.side.top" | "balance.side.right" | "balance.side.bottom" | "balance.side.left" | "balance.sideRange" | "stability.procrustes" | "stability.seed";
465
558
  /** The suffixes of the balance and stability measures, in the order of `docs/BALANCE.md`. */
466
559
  export declare const BALANCE_MEASURE_SUFFIXES: readonly BalanceMeasureSuffix[];
467
560
  /**
@@ -499,8 +592,154 @@ export declare function balanceMeasures<S extends string>(stage: S, balance: Bal
499
592
  /**
500
593
  * This function gives the specs of the balance and stability measures, with the prefix of the stage.
501
594
  * The balance measures read the area of each box, so they support only `rect`. The stability measures read only the centers.
595
+ * `balance.gapMean` has no better side. An objective gives it a target, so its role is `diagnostic`, and the joint selector does not rank by it.
502
596
  */
503
597
  export declare function balanceMeasureSpecs<S extends string>(stage: S): readonly MeasureSpec<`${S}.${BalanceMeasureSuffix}`>[];
598
+ /**
599
+ * The noise of a measure: the cause of a change of its value when the layout does not change.
600
+ *
601
+ * - `exact`: the value is a function of the layout. Two reads of one layout give the same value.
602
+ * - `sampled`: the value is an estimate from a seeded sample. Another seed gives another value.
603
+ * - `timed`: the value is a time of the machine. Each read gives another value.
604
+ */
605
+ export type NoiseKind = "exact" | "sampled" | "timed";
606
+ /** The ids of the noise kinds, in the order of `NoiseKind`. */
607
+ export declare const NOISE_KINDS: readonly NoiseKind[];
608
+ /**
609
+ * The rule that maps a value of a measure to a loss from 0 to 1. The loss 0 is the best value. `docs/MEASURE-REGISTRY.md` gives the formulas.
610
+ *
611
+ * - `range`: the share of the range `min` to `max`. Only a measure with a finite `max` has this rule.
612
+ * - `scale`: `d / (d + half)` for the distance `d` from `min`. The loss is 0.5 at `min + half`. A measure with no upper limit uses it.
613
+ * - `none`: no agreed scale. An objective compares two values with `compareMeasure`, or ranks the values of a set. The reason tells why the measure has no scale.
614
+ *
615
+ * The rule `range` needs a finite `min` and `max`. The rule `scale` needs a finite `min`. A measure with no finite range gets the rule `none`, not a guess.
616
+ */
617
+ export type MeasureNormalize = {
618
+ readonly kind: "range";
619
+ } | {
620
+ readonly kind: "scale";
621
+ readonly half: number;
622
+ readonly reason: string;
623
+ } | {
624
+ readonly kind: "none";
625
+ readonly reason: string;
626
+ };
627
+ /**
628
+ * The one unit word of a value from 0 to 1: a share, or a flag of 0 or 1 that a record averages.
629
+ * `checkRegistry` refuses a unit text that names a range, for example `0 to 1`, `0 or 1` or `-1 to 1`. The range goes in `min` and `max`.
630
+ */
631
+ export declare const SHARE_UNIT = "share";
632
+ /** The unit word of a measure with no other unit and a range that is not 0 to 1. An example is a correlation from -1 to 1. */
633
+ export declare const NO_UNIT = "no unit";
634
+ /** This function gives the fault of a unit text, or `undefined` for a good unit. */
635
+ export declare function unitFault(spec: Pick<MeasureSpec, "unit" | "min" | "max">): string | undefined;
636
+ /**
637
+ * The cost of one read of a measure, as an order of growth. The text is a sum of terms, for example `n + e^2` or `e log e`.
638
+ * The variables are `n` (the boxes), `e` (the edges) and `p` (the points of the routes). The value `1` is a constant cost.
639
+ */
640
+ export type CostOrder = string;
641
+ /**
642
+ * One entry of the measure registry: the spec of the measure, its source package, its noise, its normalization and its cost.
643
+ * The registry extends `MeasureSpec`. Thus a spec of an engine becomes an entry with `measureEntry`.
644
+ */
645
+ export interface MeasureEntry<Id extends string = string> extends MeasureSpec<Id> {
646
+ /** The npm name of the package that computes the measure. */
647
+ readonly source: string;
648
+ readonly noise: NoiseKind;
649
+ readonly normalize: MeasureNormalize;
650
+ /** The cost of one read of the measure. Without it, the cost is not known. */
651
+ readonly cost?: CostOrder;
652
+ /**
653
+ * The reason that no code computes the measure yet. A planned measure has a spec and no value.
654
+ * An objective refuses a planned measure, and `normalizeMeasure` throws an error for it.
655
+ */
656
+ readonly planned?: string;
657
+ }
658
+ /** The facts that `measureEntry` adds to a spec. Without `normalize`, the rule is `range` for a finite range and `none` for the other ranges. */
659
+ export interface EntryFacts {
660
+ readonly source: string;
661
+ readonly noise?: NoiseKind;
662
+ readonly normalize?: MeasureNormalize;
663
+ readonly cost?: CostOrder;
664
+ readonly planned?: string;
665
+ }
666
+ /** The reason of the default rule `none`. */
667
+ export declare const NO_FINITE_RANGE = "The range is not finite, and the registry has no agreed scale for the measure.";
668
+ /** This function gives the default normalization of a spec: `range` when `min` and `max` are finite, else `none` with the reason `NO_FINITE_RANGE`. */
669
+ export declare function defaultNormalize(spec: Pick<MeasureSpec, "min" | "max">): MeasureNormalize;
670
+ /** This function makes a registry entry from a spec and the added facts. The noise is `exact` by default. */
671
+ export declare function measureEntry<Id extends string>(spec: MeasureSpec<Id>, facts: EntryFacts): MeasureEntry<Id>;
672
+ /**
673
+ * This function gives the loss of the value `value` of a measure: a number from 0 to 1, where 0 is the best value.
674
+ * A value outside the range of the spec gives a `RangeError`. A value `NaN` also gives a `RangeError`.
675
+ * The rule `none` gives `undefined`: the measure has no agreed scale.
676
+ * A planned measure gives an `Error`: no code computes it, so it has no value.
677
+ */
678
+ export declare function normalizeMeasure(value: number, entry: Pick<MeasureEntry, "id" | "direction" | "min" | "max" | "normalize" | "planned">): number | undefined;
679
+ /**
680
+ * This function gives the faults of a list of registry entries, as plain text. An empty list tells that the entries are good.
681
+ * It examines the unique ids, the unit, the range, the floor, the noise, the normalization, the cost, the source and the planned reason.
682
+ */
683
+ export declare function checkRegistry(entries: readonly MeasureEntry[]): string[];
684
+ /** The package of the joint bench. It is private, so the joint measures have no npm version. */
685
+ export declare const JOINT_SOURCE = "@layout-contract/joint";
686
+ /**
687
+ * The registry entries of the joint measures, in the order of `JOINT_MEASURES`. `docs/MEASURE-REGISTRY.md` gives the reason of each cost and scale.
688
+ * The engines keep the specs of their own measures. `docs/measure-survey.json` lists them, and an engine adopts the registry with `measureEntry`.
689
+ */
690
+ export declare const MEASURE_REGISTRY: readonly MeasureEntry<JointMeasureId>[];
691
+ /** One placed item for the cell measures: the area that the item asks for, and the region that it got. */
692
+ export interface CellItem {
693
+ /**
694
+ * The weight of the item, for example the area `w` by `h` of its box in the input. It is a finite number above 0.
695
+ * The targets do not need a sum of 1, because `cellsOf` divides each target by the sum of the targets.
696
+ */
697
+ readonly target: number;
698
+ /** The region that the item got, in any frame. A box without a shape gives its rectangle. */
699
+ readonly cell: Region;
700
+ }
701
+ /** The cell measures of a set of items: `docs/CELLS.md` gives the definitions. */
702
+ export interface Cells {
703
+ /** Half the sum of the differences of the cell share and the target share, from 0 to 1. */
704
+ readonly areaError: number;
705
+ /** The mean of the perimeter squared over 4 PI times the area of each cell, 1 or more. */
706
+ readonly compactness: number;
707
+ }
708
+ /** The suffix of a cell measure id. The id is the stage, a point and the suffix, for example `pack.cell.areaError`. */
709
+ export type CellMeasureSuffix = "cell.areaError" | "cell.compactness";
710
+ /** The suffixes of the cell measures, in the order of `cellMeasureSpecs`. */
711
+ export declare const CELL_MEASURE_SUFFIXES: readonly CellMeasureSuffix[];
712
+ /** The compactness of a square: 4 over PI. */
713
+ export declare const SQUARE_COMPACTNESS: number;
714
+ /**
715
+ * This function gives the cell measures of the placed items in a container of the area `containerArea`.
716
+ *
717
+ * - The cell share of an item is the area of its cell over `containerArea`. The target share is its `target` over the sum of the targets.
718
+ * - `containerArea` is the area of the container region. For a container with a shape, give `regionArea` of the shape, not `w` by `h`.
719
+ * - `areaError` is half the sum of the absolute differences of the two shares. Cells that fill the container in the target shares give 0.
720
+ * Cells that overlap or go out of the container can give a sum over 1. Those cells break the hard rules, and the value stops at 1.
721
+ * - `compactness` is the mean of `P * P / (4 * PI * A)` over the cells, for the perimeter `P` and the area `A` of each cell.
722
+ * A circle gives 1, and a square gives 4 over PI. A cell with the area 0 gives `Infinity`.
723
+ * - No items give the best values: an `areaError` of 0 and a `compactness` of 1. The hard rule `complete` counts the items that are not placed.
724
+ *
725
+ * A target that is not a finite number above 0, and a container area that is not a finite number above 0, give a `RangeError`.
726
+ */
727
+ export declare function cellsOf(items: readonly CellItem[], containerArea: number): Cells;
728
+ /** This function gives the cell values as measures, with the prefix of the stage, for example `pack.cell.areaError`. */
729
+ export declare function cellMeasures<S extends string>(stage: S, cells: Cells): Record<`${S}.${CellMeasureSuffix}`, number>;
730
+ /**
731
+ * This function gives the specs of the cell measures, with the prefix of the stage. The family is `cell`.
732
+ * The measures read the exact area and perimeter of each cell, so they support `rect`, `polygon` and `circle`. A `free` box has only its bounding box, so it is not supported.
733
+ */
734
+ export declare function cellMeasureSpecs<S extends string>(stage: S): readonly MeasureSpec<`${S}.${CellMeasureSuffix}`>[];
735
+ /** The npm name of the package that computes the cell measures. */
736
+ export declare const CELL_SOURCE = "@mark1russell7/layout-contract";
737
+ /**
738
+ * This function gives the registry entries of the cell measures, with the prefix of the stage.
739
+ * `areaError` uses the rule `range`. `compactness` uses the rule `scale`: a square has the loss 0.5.
740
+ * The cost of each is `n`. Each makes one pass over the corners of the cells. The cells of a Voronoi diagram have a count of corners in the order of `n`.
741
+ */
742
+ export declare function cellMeasureEntries<S extends string>(stage: S): readonly MeasureEntry<`${S}.${CellMeasureSuffix}`>[];
504
743
  /** The schema of a frame. */
505
744
  export declare const FRAME_SCHEMA = "layout-frame/1";
506
745
  /** The states of a box in a frame: in the two layouts, only in the end layout, or only in the start layout. */
@@ -678,7 +917,7 @@ export declare function outputHash(value: unknown, options?: HashOptions): strin
678
917
  * Thus two packers with the same result in a different order have the same form.
679
918
  * The function throws a `RangeError` when `placements`, `overflow` or `moved` has an id two times.
680
919
  *
681
- * A placement has `w` and `h` only when the packer set them, so the form of an output without a resize does not change.
920
+ * A placement has `w`, `h` and `shape` only when the packer set them, so the form of an output without a resize does not change.
682
921
  */
683
922
  export declare function packOutputForm(output: PackOutput): unknown;
684
923
  /** The hash of a probe that the strategy refused or does not support. It has no reason text, so a new text of a refusal does not change a fingerprint. */
@@ -1561,5 +1800,69 @@ export declare const CIRCLE_SCATTERED: CorpusFamily<LayoutInput>;
1561
1800
  * The steps `container`, `obstacles` and `boxes` each have a stream of `stepRandom`. Each value is a whole number, so the family is `exact`.
1562
1801
  */
1563
1802
  export declare const RECT_SCATTERED: CorpusFamily<LayoutInput>;
1564
- export { type AnyOption, type BooleanOption, ClaimBreak, CorpusEntry, CorpusSplit, DEFAULT_SHAPES, DeclaredClaim, type DeclaredStrategy, Declares, Direction, type EnumOption, type EnumerateOptions, FAMILY_ANY_KIND, FamilyBy, FamilyCell, type GridOptions, Item, JOINT_MEASURES, JOINT_MOVED_MIN, JointMeasureId, type KindOptions, LayoutBox, LayoutCell, LayoutContainer, LayoutEdge, LayoutGenerator, LayoutInput, type ListItem, Margin, MeasureSpec, type MemberRule, type NoDefault, type NoDefaultReason, type NumberOption, Obstacle, type OptionDeclaration, type OptionIssue, type OptionRef, type OptionScale, type OptionSchema, type OptionSetting, type OptionSupports, PackInput, PackInputOptions, PackLink, PairGap, type ParamKind, type ParamValue, type ParamWhen, Point, Port, Rect, Region, Resize, Ring, RuleLevel, SHAPE_KINDS, SHAPE_KIND_IDS, SIDES, SPLIT_SCHEMA, STRATEGY_SPACE_SCHEMA, type SampleOptions, ShapeBound, ShapeCheck, type ShapeFilter, ShapeGeometry, ShapeInput, ShapeKind, ShapeKindSpec, ShapeLevel, ShapeLimit, ShapeSupport, Side, Sides, SizedRect, type SpaceConstraint, type SpaceParam, type SpaceSize, type SpaceSizeOptions, type SpaceStage, SplitCorpus, SplitFold, type StageChoice, type StageOption, type StrategyConfig, type StrategySpace, type SweepOptions, type ValueOption, Verdict, boundsOf, boxArea, boxCenterDistance, canonicalConfig, canonicalInput, checkConfig, checkDeclared, checkOptions, checkSchema, checkShapes, checkSplit, clampOptions, clipRing, compareMeasure, configId, corpusHashOf, crossingPoint, declarationIssues, declaredClaimOf, declaredCounts, dropIndex, familyOf, grow, inputShapeLevel, isShapeKind, itemShapeOf, joinConfigs, leaveOneSeedOut, listOptions, marginSides, minEffectOf, optionDefaults, optionIssue, overlapOf, packLinks, paramActive, paramAt, paramLevels, paramProblem, paramUnit, paramValue, pointInRing, pointInRings, pointSegmentDistance, portPoint, productSpace, regionArea, ringCentroid, ruleLevel, scaleRect, segmentsCross, shapeKindOf, shapeKindProblem, shapeKindsOf, shapeLevel, shapeSupportProblems, shapesOf, snapRect, splitConfig, splitFileName, splitFolds, sweepGrid, sweepOf, sweepValues, toPackInput, toRect, toSizedRect, translate };
1803
+ /** The schema of a measure survey. */
1804
+ export declare const MEASURE_SURVEY_SCHEMA = "measure-survey/1";
1805
+ /** One measure of a source, as the source declares it. A source without a range has no `min` and no `max`. */
1806
+ export interface SurveyMeasure {
1807
+ readonly id: string;
1808
+ readonly unit: string;
1809
+ readonly direction: Direction;
1810
+ readonly family?: string;
1811
+ readonly min?: number;
1812
+ /** The highest value. JSON has no `Infinity`, so `null` tells that the measure has no upper limit. */
1813
+ readonly max?: number | null;
1814
+ }
1815
+ /** The measures of one package at one version. */
1816
+ export interface SurveySource {
1817
+ readonly package: string;
1818
+ readonly version: string;
1819
+ readonly measures: readonly SurveyMeasure[];
1820
+ }
1821
+ /** A list of the measures of each package, kept as data in `docs/measure-survey.json`. */
1822
+ export interface MeasureSurvey {
1823
+ readonly schema: typeof MEASURE_SURVEY_SCHEMA;
1824
+ /** The day of the survey, as `YYYY-MM-DD`. */
1825
+ readonly date: string;
1826
+ readonly sources: readonly SurveySource[];
1827
+ }
1828
+ /**
1829
+ * Two measures of two sources with one name after the stage, for example `pack.fill` and `joint.fill`, and another unit or direction.
1830
+ * The name after the stage is the id without its first part.
1831
+ */
1832
+ export interface TwinConflict {
1833
+ readonly name: string;
1834
+ readonly field: "unit" | "direction";
1835
+ /** The id and the value of each measure of the twins. */
1836
+ readonly values: readonly {
1837
+ readonly id: string;
1838
+ readonly source: string;
1839
+ readonly value: string;
1840
+ }[];
1841
+ }
1842
+ /** The facts of a survey that feed the idea queue. */
1843
+ export interface SurveyFindings {
1844
+ /** The count of the distinct ids over all sources. */
1845
+ readonly ids: number;
1846
+ /** The count of the measures of each source. */
1847
+ readonly bySource: Readonly<Record<string, number>>;
1848
+ /** The ids that two sources declare, with another unit or direction. */
1849
+ readonly conflicts: readonly {
1850
+ readonly id: string;
1851
+ readonly field: "unit" | "direction";
1852
+ readonly sources: readonly string[];
1853
+ }[];
1854
+ /** The twins of two sources with another unit or another direction. */
1855
+ readonly twins: readonly TwinConflict[];
1856
+ /** The ids without a range. An objective cannot normalize them with the rule `range` or `scale`. */
1857
+ readonly noRange: readonly string[];
1858
+ /** The distinct units, with the count of the measures of each. */
1859
+ readonly units: Readonly<Record<string, number>>;
1860
+ }
1861
+ /** This function gives the faults of a survey, as plain text. An empty list tells that the survey is good. */
1862
+ export declare function checkSurvey(v: unknown): string[];
1863
+ /** This function gives the name of an id after its stage: the id without its first part. An id without a dot is its own name. */
1864
+ export declare function nameAfterStage(id: string): string;
1865
+ /** This function gives the findings of a good survey. `checkSurvey` examines the survey first. */
1866
+ export declare function surveyFindings(survey: MeasureSurvey): SurveyFindings;
1867
+ export { type AnyOption, type BooleanOption, ClaimBreak, CorpusEntry, CorpusSplit, DEFAULT_SHAPES, DeclaredClaim, type DeclaredStrategy, Declares, Direction, type EnumOption, type EnumerateOptions, FAMILY_ANY_KIND, FamilyBy, FamilyCell, type GridOptions, Item, JOINT_MEASURES, JOINT_MOVED_MIN, JointMeasureId, type KindOptions, LayoutBox, LayoutCell, LayoutContainer, LayoutEdge, LayoutGenerator, LayoutInput, type ListItem, Margin, MeasureSpec, type MemberRule, type NoDefault, type NoDefaultReason, type NumberOption, Obstacle, type OptionDeclaration, type OptionIssue, type OptionRef, type OptionScale, type OptionSchema, type OptionSetting, type OptionSupports, PackInput, PackInputOptions, PackLink, PairGap, type ParamKind, type ParamValue, type ParamWhen, Point, Port, Rect, Region, Resize, Ring, RuleLevel, SHAPE_KINDS, SHAPE_KIND_IDS, SIDES, SPLIT_SCHEMA, STRATEGY_SPACE_SCHEMA, type SampleOptions, ShapeBound, ShapeCheck, type ShapeFilter, ShapeGeometry, ShapeInput, ShapeKind, ShapeKindSpec, ShapeLevel, ShapeLimit, ShapeSupport, Side, Sides, SizedRect, type SpaceConstraint, type SpaceParam, type SpaceSize, type SpaceSizeOptions, type SpaceStage, SplitCorpus, SplitFold, type StageChoice, type StageOption, type StrategyConfig, type StrategySpace, type SweepOptions, type ValueOption, Verdict, boundsOf, boxArea, boxCenterDistance, canonicalConfig, canonicalInput, checkConfig, checkDeclared, checkOptions, checkSchema, checkShapes, checkSplit, clampOptions, clipRing, compareMeasure, configId, convexCorners, convexOverlap, cornersInConvex, corpusHashOf, crossingPoint, declarationIssues, declaredClaimOf, declaredCounts, dropIndex, familyOf, grow, inputShapeLevel, isShapeKind, itemShapeOf, joinConfigs, leaveOneSeedOut, listOptions, marginSides, minEffectOf, optionDefaults, optionIssue, overlapOf, packLinks, paramActive, paramAt, paramLevels, paramProblem, paramUnit, paramValue, pointInRing, pointInRings, pointSegmentDistance, portPoint, productSpace, regionArea, regionPerimeter, ringCentroid, ruleLevel, scaleRect, segmentsCross, shapeKindOf, shapeKindProblem, shapeKindsOf, shapeLevel, shapeSupportProblems, shapesOf, snapRect, splitConfig, splitFileName, splitFolds, sweepGrid, sweepOf, sweepValues, toPackInput, toRect, toSizedRect, translate };
1565
1868
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["StrategySpace","KindOptions","SpaceSizeOptions","SpaceSize","EnumerateOptions","StrategyConfig"],"sources":["../src/tolerance.ts","../src/output.ts","../src/record.ts","../src/rules.ts","../src/turn.ts","../src/resize.ts","../src/balance.ts","../src/frame.ts","../src/strategy.ts","../src/random.ts","../src/edges.ts","../src/hash.ts","../src/portfolio.ts","../src/corpus-manifest.ts","../src/strategy-space.ts","../src/strategy-catalog.ts","../src/verdict.ts","../src/families.ts"],"mappings":";;;qBACa;;qBAGA;;;;;qBAMA;;;;;qBAMA;;;;;iBAMI;;WAEN;;WAEA;;;;;;qBAOE,mBAAmB;;;;;iBCxBf;WACN;WACA;WACA;WACA;WACA;WACA;;;iBAIM;WACN;WACA;WACA,WAAW,SAAS;;;iBAId;WACN,qBAAqB;;WAErB;;WAEA;aAAiB;aAAoB;;;WAErC;aAA2B;aAAqB;aAAoB;;WACpE,iBAAiB;;;;;;;;;wBAUZ,UAAU,OAAO,aAAa,QAAQ,aAAa;;YCvCvD;;iBAGK;WACN;WACA,OAAO;WACP;WACA;;WAEA,SAAS,SAAS;WAClB;;WAEA;;WAEA;WACA;WACA;WACA;WACA;;WAEA,kBAAkB;;WAElB,UAAU,SAAS;;WAEnB,MAAM,SAAS;;WAEf,YAAY,SAAS,QAAQ;;WAE7B;;;;;;;WAOA;;WAEA;;WAEA;;WAE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,eAAe;;iBA2G/F;WACN;WACA;;WAEA;WACA;;WAEA,qBAAqB;;WAErB;WACA,aAAa;;WAEb,cAAc,MAAM;;EAE7B,MAAM,OAAO,aAAa,cAAc,MAAM,kBAAkB;;;iBAIjD;;WAEN;;WAEA;WACA;;WAEA,QAAQ,OAAO;;;;;;;wBAWV,cAAc,MAAM,aAAa,cAAc,gBAAgB,cAAc,UAAS,iBAAsB,aAAa;;;;;qBA+D5H,YAAY;;;;qBA0BZ,eAAe;;;;;;;;;qBAuBf,kBAAkB,aAAa;;;;;;qBAqD/B,gBAAgB,aAAa"}
1
+ {"version":3,"file":"index.d.ts","names":["StrategySpace","KindOptions","SpaceSizeOptions","SpaceSize","EnumerateOptions","StrategyConfig"],"sources":["../src/curves.ts","../src/tolerance.ts","../src/output.ts","../src/record.ts","../src/rules.ts","../src/turn.ts","../src/resize.ts","../src/balance.ts","../src/measure-registry.ts","../src/cell.ts","../src/frame.ts","../src/strategy.ts","../src/random.ts","../src/edges.ts","../src/hash.ts","../src/portfolio.ts","../src/corpus-manifest.ts","../src/strategy-space.ts","../src/strategy-catalog.ts","../src/verdict.ts","../src/families.ts","../src/measure-survey.ts"],"mappings":";;;;;;YAUY;;qBAmBC,2BAA2B;;YAG5B;;YAGA,yBAAyB,eAAe,eAAe,eAAe;;iBAGjE;WACN;WACA,iBAAiB,eAAe,eAAe,eAAe;WAC9D,MAAM;WACN,OAAO;;;qBAYL,iBAAiB;;qBAGjB,eAAe;;qBAGf,eAAe;;qBAGf,aAAa;;qBAGb,cAAc;;qBAQd;;;;;wBAMG,cAAc,UAAU,eAAe,WAAW,WAAW;;wBAsB7D,gBAAgB,UAAU,gBAAgB;;;;;;wBAiB1C,UAAU,OAAO,WAAW,eAAe;;;;;wBAuB3C,WAAW,OAAO,WAAW,WAAW,WAAW;;wBAqBnD,aAAa,WAAW,WAAW;;wBAKnC,YAAY,eAAe;;wBAK3B,WAAW,WAAW,WAAW;;wBAKjC,UAAU,eAAe;;wBAKzB,Y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