@mark1russell7/layout-contract 0.10.4 → 0.10.6
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 +3 -1
- package/build/index.d.ts +65 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +255 -5
- package/build/index.js.map +1 -1
- package/build/{measures-B4oIewps.d.ts → measures-Qii_B6SV.d.ts} +8 -2
- package/build/measures-Qii_B6SV.d.ts.map +1 -0
- package/build/text.d.ts +1 -1
- package/package.json +1 -1
- package/src/geometry.ts +13 -0
- package/src/index.ts +1 -0
- package/src/nest.ts +233 -0
- package/build/measures-B4oIewps.d.ts.map +0 -1
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`, `regionPerimeter`, `translate`, `overlapOf`, `segmentsCross`, `crossingPoint`, `pointSegmentDistance`, `pointPolylineDistance`, `Ring`, `pointInRing`, `pointInRings`, `pointRegionDistance`, `convexCorners`, `convexOverlap`, `cornersInConvex`, `rectCenter`, `boxCenterDistance` |
|
|
11
|
+
| Geometry | `Point`, `Rect`, `Region`, `Side`, `Sides`, `Margin`, `marginSides`, `grow`, `boundsOf`, `regionArea`, `regionPerimeter`, `translate`, `overlapOf`, `segmentsCross`, `crossingPoint`, `pointSegmentDistance`, `nearestOnSegment`, `pointPolylineDistance`, `Ring`, `pointInRing`, `pointInRings`, `pointRegionDistance`, `convexCorners`, `convexOverlap`, `cornersInConvex`, `rectCenter`, `boxCenterDistance` |
|
|
12
12
|
| Geometry in 3D | `Point3`, `Box3`, `Rotation3`, `Transform3`, `ORIGIN3`, `NO_ROTATION3`, `NO_TRANSFORM3`, `addPoints3`, `subtractPoints3`, `scalePoint3`, `dot3`, `cross3`, `length3`, `distance3`, `rotationAbout`, `rotatePoint3`, `composeRotations3`, `inverseRotation3`, `normalizeRotation3`, `transformPoint3`, `composeTransforms3`, `inverseTransform3`, `transformMatrix4`, `box3Center`, `box3Volume`, `box3Corners`, `boundsOf3`, `transformedBounds3`, `overlapOf3` |
|
|
13
13
|
| 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` |
|
|
14
14
|
| The input `layout-input/1` | `LayoutInput`, `LayoutBox` (`Item` for the packer), `Port`, `portPoint`, `LayoutEdge`, `LayoutContainer`, `Obstacle`, `LayoutCell`, `LayoutGenerator`, `PairGap`, `canonicalInput` |
|
|
@@ -20,6 +20,7 @@ The package has one runtime dependency: `@mark1russell7/rigor-generators`, the h
|
|
|
20
20
|
| The cell measures | `cellsOf`, `Cells`, `CellItem`, `cellMeasures`, `cellMeasureSpecs`, `cellMeasureEntries`, `CELL_MEASURE_SUFFIXES`, `CellMeasureSuffix`, `CELL_SOURCE`, `SQUARE_COMPACTNESS` |
|
|
21
21
|
| The paths | `PathSegment`, `PathMove`, `PathLine`, `PathCubic`, `PathArc`, `PathTangent`, `PATH_KINDS`, `pathOf`, `samplePath`, `pathBounds`, `pathStart`, `pathEnd`, `toSvgPath`, `cubicAt`, `checkPath` |
|
|
22
22
|
| The picture `layout-picture/1` | `LayoutPicture`, `PictureBox`, `PictureRoute`, `PictureLabel`, `LabelAlign`, `LABEL_ALIGNS`, `PICTURE_SCHEMA`, `pictureOf`, `PictureParts`, `PictureRouteSource`, `checkPicture`, `parsePicture`, `pictureBounds` |
|
|
23
|
+
| The boxes in boxes | `BoxNode`, `boxTree`, `topBoxes`, `siblingEdges`, `flattenInput`, `FlattenOptions`, `FLATTEN_SIDES`, `flatPortId` |
|
|
23
24
|
| 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` |
|
|
24
25
|
| The edges step | `edgeStep`, `EdgeShape`, `EdgeStepParams`, `EDGE_DENSITY`, `EDGE_STEP_VERSION` |
|
|
25
26
|
| The random numbers | `mulberry32`, `fnv1a32`, `stepRandom`, `randomInt` |
|
|
@@ -119,6 +120,7 @@ The comments of the source name each doc as `docs/<NAME>.md`. The docs are in th
|
|
|
119
120
|
| [`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 |
|
|
120
121
|
| [`docs/GEOMETRY-3D.md`](https://github.com/mark1russell7/layout-contract/blob/main/docs/GEOMETRY-3D.md) | The 3D records: points, boxes, rotations and rigid transforms |
|
|
121
122
|
| [`docs/PICTURE.md`](https://github.com/mark1russell7/layout-contract/blob/main/docs/PICTURE.md) | The picture record `layout-picture/1`: the placed boxes, the path of each route and the labels that a viewer draws |
|
|
123
|
+
| [`docs/NESTED.md`](https://github.com/mark1russell7/layout-contract/blob/main/docs/NESTED.md) | The boxes in boxes of an input: the tree for a layout engine, and the flat input with ports for a router |
|
|
122
124
|
| [`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 |
|
|
123
125
|
| [`docs/CORPUS.md`](https://github.com/mark1russell7/layout-contract/blob/main/docs/CORPUS.md) | The shared corpus registry, its dimensions and families |
|
|
124
126
|
| [`docs/CORPUS-CHECKS.md`](https://github.com/mark1russell7/layout-contract/blob/main/docs/CORPUS-CHECKS.md) | The corpus checks and the split files |
|
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as CorpusEntry, A as shapeKindsOf, At as convexCorners, B as LayoutInput, Bt as
|
|
1
|
+
import { $ as CorpusEntry, $t as translate, A as shapeKindsOf, At as convexCorners, B as LayoutInput, Bt as pointInRings, 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 regionArea, H as PackInput, Ht as pointRegionDistance, I as LayoutCell, It as marginSides, J as canonicalInput, Jt as scaleRect, K as Port, Kt as regionPerimeter, L as LayoutContainer, Lt as nearestOnSegment, 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, Qt as toSizedRect, R as LayoutEdge, Rt as overlapOf, S as boxArea, St as Ring, T as isShapeKind, Tt as Sides, U as PackInputOptions, Ut as pointSegmentDistance, V as Obstacle, Vt as pointPolylineDistance, W as PackLink, Wt as rectCenter, X as portPoint, Xt as snapRect, Y as packLinks, Yt as segmentsCross, Z as toPackInput, Zt as toRect, _ 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 ringCentroid, 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 pointInRing } from "./measures-Qii_B6SV.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
3
|
/**
|
|
4
4
|
* The 3D records: points, boxes with their sides along the axes, rotations and rigid transforms.
|
|
@@ -1097,6 +1097,69 @@ export declare function pictureOf(input: Pick<LayoutInput, "id" | "boxes" | "edg
|
|
|
1097
1097
|
* A picture with no record gives `undefined`. The picture must be good (`checkPicture`).
|
|
1098
1098
|
*/
|
|
1099
1099
|
export declare function pictureBounds(picture: LayoutPicture): Rect | undefined;
|
|
1100
|
+
/** One box of a tree of boxes, with the boxes that it contains. */
|
|
1101
|
+
export interface BoxNode {
|
|
1102
|
+
readonly box: LayoutBox;
|
|
1103
|
+
/** The boxes that have this box as their `parent`, in the order of the input. */
|
|
1104
|
+
readonly children: readonly BoxNode[];
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* This function gives the tree of the boxes of an input. Each box with no `parent` is a root, in the order of the input.
|
|
1108
|
+
* The children of a box are in the order of the input too. An adapter of a layout engine makes the nodes of the engine from this tree.
|
|
1109
|
+
*
|
|
1110
|
+
* A `RangeError` comes for an id that is two times in the list, and for a parent that is not in the list.
|
|
1111
|
+
* It comes also for a loop of parents.
|
|
1112
|
+
*/
|
|
1113
|
+
export declare function boxTree(boxes: readonly LayoutBox[]): BoxNode[];
|
|
1114
|
+
/**
|
|
1115
|
+
* This function gives the top box of each box of an input, by the id of the box. The top box of a box is the box with no `parent` that contains it.
|
|
1116
|
+
* A box with no parent is its own top box.
|
|
1117
|
+
*
|
|
1118
|
+
* A `RangeError` comes for each list that `boxTree` refuses.
|
|
1119
|
+
*/
|
|
1120
|
+
export declare function topBoxes(boxes: readonly LayoutBox[]): Map<string, string>;
|
|
1121
|
+
/**
|
|
1122
|
+
* This function gives the edges of an input between boxes with the same parent. A layout of the children of one box reads them, for example as springs.
|
|
1123
|
+
*
|
|
1124
|
+
* - An edge between two boxes with the same parent stays as it is. Two boxes with no parent have the same parent.
|
|
1125
|
+
* - Each other edge goes up the tree: its ends become the two boxes with the same parent that contain its ends.
|
|
1126
|
+
* - An end that goes up loses its port. The edge keeps its id and its `data`.
|
|
1127
|
+
* - An edge has no result if one end contains the other end, or if the two ends are one box.
|
|
1128
|
+
* - An edge with an end that is not a box of the input has no result.
|
|
1129
|
+
*
|
|
1130
|
+
* The result has the order of the edges of the input. A `RangeError` comes for each list of boxes that `boxTree` refuses.
|
|
1131
|
+
*/
|
|
1132
|
+
export declare function siblingEdges(input: Pick<LayoutInput, "boxes" | "edges">): LayoutEdge[];
|
|
1133
|
+
/** The options of `flattenInput`. */
|
|
1134
|
+
export interface FlattenOptions {
|
|
1135
|
+
/**
|
|
1136
|
+
* The sides of a top box that can hold the port of a box inside it. The default is `right` and `left`, for rows in a column.
|
|
1137
|
+
* The first side of the list wins a tie. With an empty list, an edge of a box inside a top box goes to the top box with no port.
|
|
1138
|
+
*/
|
|
1139
|
+
readonly sides?: readonly Side[];
|
|
1140
|
+
}
|
|
1141
|
+
/** The sides of `flattenInput` with no option: the two ends of a row. */
|
|
1142
|
+
export declare const FLATTEN_SIDES: readonly Side[];
|
|
1143
|
+
/** This function gives the id of the port that `flattenInput` makes for a box inside a top box, on a side of the top box. */
|
|
1144
|
+
export declare function flatPortId(box: string, side: Side): string;
|
|
1145
|
+
/**
|
|
1146
|
+
* This function gives the input of the top boxes of an input, for a router that does not go into a box.
|
|
1147
|
+
* The top boxes are the boxes with no `parent`. Each top box is one obstacle, and a box inside it becomes a port on its border.
|
|
1148
|
+
*
|
|
1149
|
+
* - An edge between two top boxes stays as it is.
|
|
1150
|
+
* - An edge with an end inside a top box goes to that top box, at a port. The port is on the side that points most to the top box of the other end.
|
|
1151
|
+
* - The port is at the middle of the inner box along that side. Its id comes from `flatPortId`. Only an end of an edge makes a port.
|
|
1152
|
+
* - An end that moves to a top box loses the port that it had.
|
|
1153
|
+
* - An edge has no result if its two ends are in one top box, or if an end is not a box of the input.
|
|
1154
|
+
*
|
|
1155
|
+
* Each edge keeps its id and its `data`. Thus a route of the flat input is the route of the edge with the same id in the input.
|
|
1156
|
+
* `pictureOf` puts that route between the inner boxes.
|
|
1157
|
+
*
|
|
1158
|
+
* The other fields of the input stay. The result has no `hash`, because it is a different document, and no `pairGaps` entry of an inner box.
|
|
1159
|
+
* A port needs the place of its inner box and of the two top boxes. A `RangeError` comes for a box with no place there.
|
|
1160
|
+
* It comes also for a top box that has a port with the id of a new port. Each list of boxes that `boxTree` refuses gives one too.
|
|
1161
|
+
*/
|
|
1162
|
+
export declare function flattenInput(input: LayoutInput, options?: FlattenOptions): LayoutInput;
|
|
1100
1163
|
/**
|
|
1101
1164
|
* The common fields of a strategy of an engine. Each engine adds its own function, for example `pack` or `route`.
|
|
1102
1165
|
* `O` is the type of the options, and `S` is the type of `supports`.
|
|
@@ -2165,5 +2228,5 @@ export declare function checkSurvey(v: unknown): string[];
|
|
|
2165
2228
|
export declare function nameAfterStage(id: string): string;
|
|
2166
2229
|
/** This function gives the findings of a good survey. `checkSurvey` examines the survey first. */
|
|
2167
2230
|
export declare function surveyFindings(survey: MeasureSurvey): SurveyFindings;
|
|
2168
|
-
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, pointPolylineDistance, pointRegionDistance, pointSegmentDistance, portPoint, productSpace, rectCenter, regionArea, regionPerimeter, ringCentroid, ruleLevel, scaleRect, segmentsCross, shapeKindOf, shapeKindProblem, shapeKindsOf, shapeLevel, shapeSupportProblems, shapesOf, snapRect, splitConfig, splitFileName, splitFolds, sweepGrid, sweepOf, sweepValues, toPackInput, toRect, toSizedRect, translate };
|
|
2231
|
+
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, nearestOnSegment, optionDefaults, optionIssue, overlapOf, packLinks, paramActive, paramAt, paramLevels, paramProblem, paramUnit, paramValue, pointInRing, pointInRings, pointPolylineDistance, pointRegionDistance, pointSegmentDistance, portPoint, productSpace, rectCenter, regionArea, regionPerimeter, ringCentroid, ruleLevel, scaleRect, segmentsCross, shapeKindOf, shapeKindProblem, shapeKindsOf, shapeLevel, shapeSupportProblems, shapesOf, snapRect, splitConfig, splitFileName, splitFolds, sweepGrid, sweepOf, sweepValues, toPackInput, toRect, toSizedRect, translate };
|
|
2169
2232
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["StrategySpace","KindOptions","SpaceSizeOptions","SpaceSize","EnumerateOptions","StrategyConfig"],"sources":["../src/geometry3.ts","../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/path.ts","../src/picture.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":";;;;;;;;iBAOiB;WAC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paceSize","EnumerateOptions","StrategyConfig"],"sources":["../src/geometry3.ts","../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/path.ts","../src/picture.ts","../src/nest.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":";;;;;;;;iBAOiB;WACN;WACA;WACA;;;qBAIE,SAAS;;;;;iBAML;WACN;WACA;WACA;WACA;WACA;WACA;;;;;;iBAOM;WACN;WACA;WACA;WACA;;;qBAIE,cAAc;;;;;iBAMV;WACN,UAAU;WACV,UAAU;;;qBAIR,eAAe;;wBAGZ,WAAW,GAAG,QAAQ,GAAG,SAAS;;wBAKlC,gBAAgB,GAAG,QAAQ,GAAG,SAAS;;wBAKvC,YAAY,OAAO,QAAQ,iBAAiB;;wBAK5C,KAAK,GAAG,QAAQ,GAAG;;wBAKnB,OAAO,GAAG,QAAQ,GAAG,SAAS;;wBAK9B,QAAQ,QAAQ;;wBAKhB,UAAU,GAAG,QAAQ,GAAG;;;;;;wBASxB,cAAc,MAAM,QAAQ,gBAAgB;;;;;wBAa5C,kBAAkB,OAAO,WAAW,OAAO,YAAY;;wBAUvD,iBAAiB,UAAU,YAAY;;;;;wBAQvC,mBAAmB,UAAU,YAAY;;wBAOzC,aAAa,UAAU,WAAW,OAAO,SAAS;;wBAYlD,gBAAgB,WAAW,YAAY,OAAO,SAAS;;;;;wBAQvD,mBAAmB,OAAO,YAAY,OAAO,aAAa;;wBAQ1D,kBAAkB,WAAW,aAAa;;;;;wBAS1C,iBAAiB,WAAW;;wBAwB5B,WAAW,KAAK,OAAO;;wBAKvB,WAAW,KAAK;;;;;wBAQhB,YAAY,KAAK,gBAAgB;;wBAajC,UAAU,iBAA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AAM,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;;qBCl3B7B;;iBAGI;WACN;WACA;WACA,WAAW;WACX;WACA;;WAEA;;;iBAIM;WACN;WACA;WACA,mBAAmB;;;iBAIb;WACN,eAAe;;WAEf;WACA,kBAAkB;;;;;;iBAOZ;WACN;WACA;;WAEA;aAA4B;aAAqB;aAAyB;;;;iBAIpE;;WAEN;;WAEA,UAAU,SAAS;;WAEnB;aAA+B;aAAqB;aAAsC;;;WAE1F,gBAAgB;;WAEhB;;WAEA,OAAO,SAAS;;;wBAOX,YAAY;;wBA8CZ,eAAe;;wBAMf,eAAe,QAAQ,gBAAgB"}
|
package/build/index.js
CHANGED
|
@@ -352,6 +352,21 @@ function pointSegmentDistance(p, a, b) {
|
|
|
352
352
|
return Math.hypot(p.x - (a.x + t * dx), p.y - (a.y + t * dy));
|
|
353
353
|
}
|
|
354
354
|
/**
|
|
355
|
+
* This function gives the point of the segment `ab` nearest to `p`. A segment of length 0 gives the point `a`.
|
|
356
|
+
* The point is `a + t * (b - a)`, with `t` from 0 to 1. The point at the end `b` is `a + (b - a)`, and it can differ from `b` by a rounding error.
|
|
357
|
+
* The `Math.hypot` distance from `p` to the point is the same float as `pointSegmentDistance(p, a, b)`, for finite coordinates.
|
|
358
|
+
*/
|
|
359
|
+
function nearestOnSegment(p, a, b) {
|
|
360
|
+
const dx = b.x - a.x;
|
|
361
|
+
const dy = b.y - a.y;
|
|
362
|
+
const l2 = dx * dx + dy * dy;
|
|
363
|
+
const t = l2 > 0 ? Math.max(0, Math.min(1, ((p.x - a.x) * dx + (p.y - a.y) * dy) / l2)) : 0;
|
|
364
|
+
return {
|
|
365
|
+
x: a.x + t * dx,
|
|
366
|
+
y: a.y + t * dy
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
355
370
|
* This function gives the shortest distance from `p` to a polyline. A polyline of one point is that point, and an empty polyline gives `Infinity`.
|
|
356
371
|
* The hit test of a route uses it with the polyline of `samplePath`.
|
|
357
372
|
*/
|
|
@@ -849,7 +864,7 @@ function inverseSymmetry(symmetry) {
|
|
|
849
864
|
return symmetry === "rise" ? "fall" : symmetry === "fall" ? "rise" : symmetry;
|
|
850
865
|
}
|
|
851
866
|
/** This function gives the count of levels of a side. A side that is not a power of 2 from 1 to `CURVE_MAX_SIDE` is a `RangeError`. */
|
|
852
|
-
function levelsOf$
|
|
867
|
+
function levelsOf$2(side) {
|
|
853
868
|
if (!Number.isInteger(side) || side < 1 || side > 67108864 || (side & side - 1) !== 0) throw new RangeError(`The side of a curve grid must be a power of 2 from 1 to ${CURVE_MAX_SIDE}, not ${side}.`);
|
|
854
869
|
return Math.round(Math.log2(side));
|
|
855
870
|
}
|
|
@@ -859,7 +874,7 @@ function levelsOf$1(side) {
|
|
|
859
874
|
* The cost is `O(log side)`.
|
|
860
875
|
*/
|
|
861
876
|
function curveCell(curve, index, side) {
|
|
862
|
-
const levels = levelsOf$
|
|
877
|
+
const levels = levelsOf$2(side);
|
|
863
878
|
if (!Number.isInteger(index) || index < 0 || index >= side * side) throw new RangeError(`The index ${index} is not a cell of a grid of side ${side}.`);
|
|
864
879
|
let x = 0;
|
|
865
880
|
let y = 0;
|
|
@@ -880,7 +895,7 @@ function curveCell(curve, index, side) {
|
|
|
880
895
|
* 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)`.
|
|
881
896
|
*/
|
|
882
897
|
function curveIndex(curve, x, y, side) {
|
|
883
|
-
const levels = levelsOf$
|
|
898
|
+
const levels = levelsOf$2(side);
|
|
884
899
|
for (const value of [x, y]) if (!Number.isInteger(value) || value < 0 || value >= side) throw new RangeError(`The cell (${x}, ${y}) is not in a grid of side ${side}.`);
|
|
885
900
|
let index = 0;
|
|
886
901
|
let s = x;
|
|
@@ -924,7 +939,7 @@ function mortonCell(index, side) {
|
|
|
924
939
|
* A side that is not a power of 2 is a `RangeError`.
|
|
925
940
|
*/
|
|
926
941
|
function curveCells(curve, side) {
|
|
927
|
-
levelsOf$
|
|
942
|
+
levelsOf$2(side);
|
|
928
943
|
return Array.from({ length: side * side }, (_, index) => curveCell(curve, index, side));
|
|
929
944
|
}
|
|
930
945
|
// src/shapes.ts
|
|
@@ -3792,6 +3807,241 @@ function pictureBounds(picture) {
|
|
|
3792
3807
|
h: y1 - y0
|
|
3793
3808
|
};
|
|
3794
3809
|
}
|
|
3810
|
+
// src/nest.ts
|
|
3811
|
+
/** This function gives the tree of a list of boxes, with the depth and the top box of each box. `name` is the function in the text of an error. */
|
|
3812
|
+
function levelsOf$1(boxes, name) {
|
|
3813
|
+
const nodes = /* @__PURE__ */ new Map();
|
|
3814
|
+
for (const box of boxes) {
|
|
3815
|
+
if (nodes.has(box.id)) throw new RangeError(`${name}: the id ${box.id} is two times in the boxes.`);
|
|
3816
|
+
nodes.set(box.id, {
|
|
3817
|
+
box,
|
|
3818
|
+
children: []
|
|
3819
|
+
});
|
|
3820
|
+
}
|
|
3821
|
+
const roots = [];
|
|
3822
|
+
for (const node of nodes.values()) {
|
|
3823
|
+
const { id, parent } = node.box;
|
|
3824
|
+
if (parent === void 0) {
|
|
3825
|
+
roots.push(node);
|
|
3826
|
+
continue;
|
|
3827
|
+
}
|
|
3828
|
+
const above = nodes.get(parent);
|
|
3829
|
+
if (above === void 0) throw new RangeError(`${name}: the parent ${parent} of the box ${id} is not a box of the input.`);
|
|
3830
|
+
above.children.push(node);
|
|
3831
|
+
}
|
|
3832
|
+
const depth = /* @__PURE__ */ new Map();
|
|
3833
|
+
const top = /* @__PURE__ */ new Map();
|
|
3834
|
+
for (const root of roots) {
|
|
3835
|
+
const stack = [[root, 0]];
|
|
3836
|
+
for (let next = stack.pop(); next !== void 0; next = stack.pop()) {
|
|
3837
|
+
const [node, level] = next;
|
|
3838
|
+
depth.set(node.box.id, level);
|
|
3839
|
+
top.set(node.box.id, root.box.id);
|
|
3840
|
+
for (const child of node.children) stack.push([child, level + 1]);
|
|
3841
|
+
}
|
|
3842
|
+
}
|
|
3843
|
+
if (depth.size < nodes.size) throw new RangeError(`${name}: the parents of the boxes make a loop.`);
|
|
3844
|
+
return {
|
|
3845
|
+
roots,
|
|
3846
|
+
depth,
|
|
3847
|
+
top
|
|
3848
|
+
};
|
|
3849
|
+
}
|
|
3850
|
+
/**
|
|
3851
|
+
* This function gives the tree of the boxes of an input. Each box with no `parent` is a root, in the order of the input.
|
|
3852
|
+
* The children of a box are in the order of the input too. An adapter of a layout engine makes the nodes of the engine from this tree.
|
|
3853
|
+
*
|
|
3854
|
+
* A `RangeError` comes for an id that is two times in the list, and for a parent that is not in the list.
|
|
3855
|
+
* It comes also for a loop of parents.
|
|
3856
|
+
*/
|
|
3857
|
+
function boxTree(boxes) {
|
|
3858
|
+
return [...levelsOf$1(boxes, "boxTree").roots];
|
|
3859
|
+
}
|
|
3860
|
+
/**
|
|
3861
|
+
* This function gives the top box of each box of an input, by the id of the box. The top box of a box is the box with no `parent` that contains it.
|
|
3862
|
+
* A box with no parent is its own top box.
|
|
3863
|
+
*
|
|
3864
|
+
* A `RangeError` comes for each list that `boxTree` refuses.
|
|
3865
|
+
*/
|
|
3866
|
+
function topBoxes(boxes) {
|
|
3867
|
+
return new Map(levelsOf$1(boxes, "topBoxes").top);
|
|
3868
|
+
}
|
|
3869
|
+
/**
|
|
3870
|
+
* This function gives the edges of an input between boxes with the same parent. A layout of the children of one box reads them, for example as springs.
|
|
3871
|
+
*
|
|
3872
|
+
* - An edge between two boxes with the same parent stays as it is. Two boxes with no parent have the same parent.
|
|
3873
|
+
* - Each other edge goes up the tree: its ends become the two boxes with the same parent that contain its ends.
|
|
3874
|
+
* - An end that goes up loses its port. The edge keeps its id and its `data`.
|
|
3875
|
+
* - An edge has no result if one end contains the other end, or if the two ends are one box.
|
|
3876
|
+
* - An edge with an end that is not a box of the input has no result.
|
|
3877
|
+
*
|
|
3878
|
+
* The result has the order of the edges of the input. A `RangeError` comes for each list of boxes that `boxTree` refuses.
|
|
3879
|
+
*/
|
|
3880
|
+
function siblingEdges(input) {
|
|
3881
|
+
const { depth } = levelsOf$1(input.boxes, "siblingEdges");
|
|
3882
|
+
const parent = new Map(input.boxes.map((box) => [box.id, box.parent]));
|
|
3883
|
+
const out = [];
|
|
3884
|
+
for (const edge of input.edges ?? []) {
|
|
3885
|
+
let a = edge.source;
|
|
3886
|
+
let b = edge.target;
|
|
3887
|
+
let da = depth.get(a);
|
|
3888
|
+
let db = depth.get(b);
|
|
3889
|
+
if (da === void 0 || db === void 0) continue;
|
|
3890
|
+
for (; da > db; da--) a = parent.get(a);
|
|
3891
|
+
for (; db > da; db--) b = parent.get(b);
|
|
3892
|
+
if (a === b) continue;
|
|
3893
|
+
while (parent.get(a) !== parent.get(b)) {
|
|
3894
|
+
a = parent.get(a);
|
|
3895
|
+
b = parent.get(b);
|
|
3896
|
+
}
|
|
3897
|
+
out.push({
|
|
3898
|
+
id: edge.id,
|
|
3899
|
+
source: a,
|
|
3900
|
+
target: b,
|
|
3901
|
+
...a === edge.source && edge.sourcePort !== void 0 ? { sourcePort: edge.sourcePort } : {},
|
|
3902
|
+
...b === edge.target && edge.targetPort !== void 0 ? { targetPort: edge.targetPort } : {},
|
|
3903
|
+
...edge.data === void 0 ? {} : { data: edge.data }
|
|
3904
|
+
});
|
|
3905
|
+
}
|
|
3906
|
+
return out;
|
|
3907
|
+
}
|
|
3908
|
+
/** The sides of `flattenInput` with no option: the two ends of a row. */
|
|
3909
|
+
const FLATTEN_SIDES = /* @__PURE__ */ Object.freeze(["right", "left"]);
|
|
3910
|
+
/** The direction out of each side of a box. The y axis points down. */
|
|
3911
|
+
const OUT = {
|
|
3912
|
+
top: {
|
|
3913
|
+
x: 0,
|
|
3914
|
+
y: -1
|
|
3915
|
+
},
|
|
3916
|
+
right: {
|
|
3917
|
+
x: 1,
|
|
3918
|
+
y: 0
|
|
3919
|
+
},
|
|
3920
|
+
bottom: {
|
|
3921
|
+
x: 0,
|
|
3922
|
+
y: 1
|
|
3923
|
+
},
|
|
3924
|
+
left: {
|
|
3925
|
+
x: -1,
|
|
3926
|
+
y: 0
|
|
3927
|
+
}
|
|
3928
|
+
};
|
|
3929
|
+
/** This function gives the rectangle of a placed box. A `RangeError` comes for a box with no place. */
|
|
3930
|
+
function placeOf(box) {
|
|
3931
|
+
if (box.x === void 0 || box.y === void 0) throw new RangeError(`flattenInput: the box ${box.id} has no place, and the port of a box in a top box needs it.`);
|
|
3932
|
+
return {
|
|
3933
|
+
x: box.x,
|
|
3934
|
+
y: box.y,
|
|
3935
|
+
w: box.w,
|
|
3936
|
+
h: box.h
|
|
3937
|
+
};
|
|
3938
|
+
}
|
|
3939
|
+
/** This function gives the id of the port that `flattenInput` makes for a box inside a top box, on a side of the top box. */
|
|
3940
|
+
function flatPortId(box, side) {
|
|
3941
|
+
return `${box}:${side}`;
|
|
3942
|
+
}
|
|
3943
|
+
/** This function gives the share `part` of `whole`, from 0 to 1. A whole of 0 gives the middle. */
|
|
3944
|
+
function shareOf(part, whole) {
|
|
3945
|
+
return whole > 0 ? Math.min(1, Math.max(0, part / whole)) : .5;
|
|
3946
|
+
}
|
|
3947
|
+
/**
|
|
3948
|
+
* This function gives the input of the top boxes of an input, for a router that does not go into a box.
|
|
3949
|
+
* The top boxes are the boxes with no `parent`. Each top box is one obstacle, and a box inside it becomes a port on its border.
|
|
3950
|
+
*
|
|
3951
|
+
* - An edge between two top boxes stays as it is.
|
|
3952
|
+
* - An edge with an end inside a top box goes to that top box, at a port. The port is on the side that points most to the top box of the other end.
|
|
3953
|
+
* - The port is at the middle of the inner box along that side. Its id comes from `flatPortId`. Only an end of an edge makes a port.
|
|
3954
|
+
* - An end that moves to a top box loses the port that it had.
|
|
3955
|
+
* - An edge has no result if its two ends are in one top box, or if an end is not a box of the input.
|
|
3956
|
+
*
|
|
3957
|
+
* Each edge keeps its id and its `data`. Thus a route of the flat input is the route of the edge with the same id in the input.
|
|
3958
|
+
* `pictureOf` puts that route between the inner boxes.
|
|
3959
|
+
*
|
|
3960
|
+
* The other fields of the input stay. The result has no `hash`, because it is a different document, and no `pairGaps` entry of an inner box.
|
|
3961
|
+
* A port needs the place of its inner box and of the two top boxes. A `RangeError` comes for a box with no place there.
|
|
3962
|
+
* It comes also for a top box that has a port with the id of a new port. Each list of boxes that `boxTree` refuses gives one too.
|
|
3963
|
+
*/
|
|
3964
|
+
function flattenInput(input, options = {}) {
|
|
3965
|
+
const sides = options.sides ?? FLATTEN_SIDES;
|
|
3966
|
+
const { top } = levelsOf$1(input.boxes, "flattenInput");
|
|
3967
|
+
const byId = new Map(input.boxes.map((box) => [box.id, box]));
|
|
3968
|
+
const ports = /* @__PURE__ */ new Map();
|
|
3969
|
+
const made = /* @__PURE__ */ new Set();
|
|
3970
|
+
/** This function gives the end of an edge in the flat input: the top box of `id`, and its port. `other` is the top box of the other end. */
|
|
3971
|
+
const endOf = (id, own, other, port) => {
|
|
3972
|
+
if (own === id) return port === void 0 ? { box: id } : {
|
|
3973
|
+
box: id,
|
|
3974
|
+
port
|
|
3975
|
+
};
|
|
3976
|
+
if (sides.length === 0) return { box: own };
|
|
3977
|
+
const card = byId.get(own);
|
|
3978
|
+
const outer = placeOf(card);
|
|
3979
|
+
const from = rectCenter(outer);
|
|
3980
|
+
const to = rectCenter(placeOf(byId.get(other)));
|
|
3981
|
+
let side = sides[0];
|
|
3982
|
+
let most = -Infinity;
|
|
3983
|
+
for (const s of sides) {
|
|
3984
|
+
const toward = (to.x - from.x) * OUT[s].x + (to.y - from.y) * OUT[s].y;
|
|
3985
|
+
if (toward > most) {
|
|
3986
|
+
most = toward;
|
|
3987
|
+
side = s;
|
|
3988
|
+
}
|
|
3989
|
+
}
|
|
3990
|
+
const name = flatPortId(id, side);
|
|
3991
|
+
if (!made.has(name)) {
|
|
3992
|
+
if (card.ports?.some((p) => p.id === name) === true) throw new RangeError(`flattenInput: the box ${own} has a port with the id ${name} of a new port.`);
|
|
3993
|
+
const middle = rectCenter(placeOf(byId.get(id)));
|
|
3994
|
+
const along = side === "left" || side === "right" ? shareOf(middle.y - outer.y, outer.h) : shareOf(middle.x - outer.x, outer.w);
|
|
3995
|
+
const list = ports.get(own);
|
|
3996
|
+
if (list === void 0) ports.set(own, [{
|
|
3997
|
+
id: name,
|
|
3998
|
+
side,
|
|
3999
|
+
along
|
|
4000
|
+
}]);
|
|
4001
|
+
else list.push({
|
|
4002
|
+
id: name,
|
|
4003
|
+
side,
|
|
4004
|
+
along
|
|
4005
|
+
});
|
|
4006
|
+
made.add(name);
|
|
4007
|
+
}
|
|
4008
|
+
return {
|
|
4009
|
+
box: own,
|
|
4010
|
+
port: name
|
|
4011
|
+
};
|
|
4012
|
+
};
|
|
4013
|
+
const edges = [];
|
|
4014
|
+
for (const edge of input.edges ?? []) {
|
|
4015
|
+
const s = top.get(edge.source);
|
|
4016
|
+
const t = top.get(edge.target);
|
|
4017
|
+
if (s === void 0 || t === void 0 || s === t) continue;
|
|
4018
|
+
const source = endOf(edge.source, s, t, edge.sourcePort);
|
|
4019
|
+
const target = endOf(edge.target, t, s, edge.targetPort);
|
|
4020
|
+
edges.push({
|
|
4021
|
+
id: edge.id,
|
|
4022
|
+
source: source.box,
|
|
4023
|
+
target: target.box,
|
|
4024
|
+
...source.port === void 0 ? {} : { sourcePort: source.port },
|
|
4025
|
+
...target.port === void 0 ? {} : { targetPort: target.port },
|
|
4026
|
+
...edge.data === void 0 ? {} : { data: edge.data }
|
|
4027
|
+
});
|
|
4028
|
+
}
|
|
4029
|
+
const boxes = input.boxes.filter((box) => box.parent === void 0).map((box) => {
|
|
4030
|
+
const more = ports.get(box.id);
|
|
4031
|
+
return more === void 0 ? box : {
|
|
4032
|
+
...box,
|
|
4033
|
+
ports: [...box.ports ?? [], ...more]
|
|
4034
|
+
};
|
|
4035
|
+
});
|
|
4036
|
+
const { hash: _hash, pairGaps, ...rest } = input;
|
|
4037
|
+
const gaps = pairGaps?.filter((pair) => top.get(pair.a) === pair.a && top.get(pair.b) === pair.b);
|
|
4038
|
+
return {
|
|
4039
|
+
...rest,
|
|
4040
|
+
...gaps === void 0 ? {} : { pairGaps: gaps },
|
|
4041
|
+
boxes,
|
|
4042
|
+
...input.edges === void 0 ? {} : { edges }
|
|
4043
|
+
};
|
|
4044
|
+
}
|
|
3795
4045
|
// src/random.ts
|
|
3796
4046
|
/**
|
|
3797
4047
|
* This function gives a generator of random numbers in [0, 1). It is `mulberry32`, as in `docs/FORMAT.md` of `packing`.
|
|
@@ -6952,6 +7202,6 @@ function surveyFindings(survey) {
|
|
|
6952
7202
|
units
|
|
6953
7203
|
};
|
|
6954
7204
|
}
|
|
6955
|
-
export { BALANCE_MEASURE_SUFFIXES, BALANCE_SIDE_DEPTH, CELL_MEASURE_SUFFIXES, CELL_SOURCE, CIRCLE_SCATTERED, CORPUS_DIMENSIONS, CORPUS_MANIFEST_SCHEMA, CURVE_MAX_SIDE, CURVE_SYMMETRIES, DEFAULT_FAMILY_BY, DEFAULT_RNG, DEFAULT_SHAPES, DEFAULT_TOLERANCE, EDGES_STEP, EDGE_DENSITY, EDGE_KEY_STEP, EDGE_KEY_STEP_VERSION, EDGE_STEP_VERSION, EPS, EPS_STEPS, FAMILY_ANY_KIND, FRAME_SCHEMA, FRAME_STATES, HARD_RULE_VERSION, HILBERT_CURVE, HILBERT_PATTERN, INVALIDATED_FIELD, JOINT_MEASURES, JOINT_MOVED_MIN, JOINT_SOURCE, LABEL_ALIGNS, MEASURE_REGISTRY, MEASURE_SURVEY_SCHEMA, MOORE_CURVE, MOORE_PATTERN, MORTON_CURVE, NODE_POSITIONS_DIMENSION, NOISE_KINDS, NO_FINITE_RANGE, NO_ROTATION3, NO_TRANSFORM3, NO_UNIT, ORIGIN3, OUTPUT_CLASS_MIN_INPUTS, OUTPUT_GRID_PROPERTIES, OUTPUT_NEAR_WHOLE, PACK_HARD_RULES, PATH_KINDS, PICTURE_SCHEMA, RECORD_EPS, RECORD_SCALE, RECT_SCATTERED, REFUSED_PROBE, SHAPE_KINDS, SHAPE_KIND_IDS, SHARE_UNIT, SIDES, SPLIT_SCHEMA, SQUARE_COMPACTNESS, STRATEGY_CATALOG_SCHEMA, STRATEGY_CATALOG_SCHEMAS, STRATEGY_SPACE_SCHEMA, VERDICT_DRAWS, VERDICT_EXACT_CAP, VERDICT_EXACT_MAX, VERDICT_RUNS, VERDICT_SEED, addPoints3, applyPack, applySymmetry, balanceMeasureSpecs, balanceMeasures, balanceOf, boundsOf, boundsOf3, box3Center, box3Corners, box3Volume, boxArea, boxCenterDistance, canonicalConfig, canonicalInput, canonicalJson, carryRecord, catalogChoices, catalogDefaults, catalogKey, catalogOptions, cellMeasureEntries, cellMeasureSpecs, cellMeasures, cellsOf, checkCatalog, checkConfig, checkDeclared, checkInput, checkLayoutRecord, checkOptions, checkPath, checkPicture, checkRegistry, checkSchema, checkShapes, checkSpace, checkSplit, checkSurvey, circleOverlaps, circlesOutside, clampOptions, clipRing, compareMeasure, composeFamily, composeRotations3, composeTransforms3, configId, convexCorners, convexOverlap, cornersInConvex, corpusHashOf, corpusManifestText, countLinksThroughShapes, countObstacleHits, countOutside, countOverlaps, countPortsOffBorder, countResizeBreaks, createFamilyRegistry, cross3, crossingPoint, cubicAt, curveCell, curveCells, curveIndex, declarationIssues, declaredClaimOf, declaredCounts, decodeOptionValue, defaultNormalize, dimensionAt, dimensionSupports, dimensionUnit, distance3, documentHash, dot3, dropIndex, edgeKeyStep, edgeStep, encodeOptionValue, enumerateSpace, exercised, familyKind, familyOf, fingerprintOf, fixedPointMove, fnv1a32, frameAt, frameMove, frameOf, grow, hardRuleOf, hilbertCell, hilbertIndex, inputShapeLevel, inverseRotation3, inverseSymmetry, inverseTransform3, isShapeKind, itemShapeOf, joinConfigs, leaveOneSeedOut, length3, levelsOf, lineJson, listOptions, manifestText, marginSides, measureEntry, minEffectOf, mooreCell, mooreIndex, mortonCell, mortonIndex, mulberry32, nameAfterStage, nearestGaps, normalizeMeasure, normalizeRotation3, optionDefaults, optionIssue, outputGridClass, outputGroups, outputHash, outputOf, overlapOf, overlapOf3, ownerDimension, packHard, packLinks, packOutputForm, paramActive, paramAt, paramLevels, paramProblem, paramUnit, paramValue, parseLayoutRecord, parsePicture, parseStrategyCatalog, pathBounds, pathEnd, pathOf, pathStart, perChange, pickMoves, pictureBounds, pictureOf, placedCircle, placedConvex, placedRect, pointInRing, pointInRings, pointPolylineDistance, pointRegionDistance, pointSegmentDistance, portPoint, portfolio, probeHash, procrustesOf, productSpace, randomInt, rectCenter, rectInRegion, regionArea, regionHitsRect, regionPerimeter, resizeBox, resizeProblems, resolveDimensions, ringCentroid, rotatePoint3, rotationAbout, ruleLevel, samplePath, scalePoint3, scaleRect, segmentThroughShape, segmentsCross, selectBest, sha256Hex, shapeFits, shapeKindOf, shapeKindProblem, shapeKindsOf, shapeLevel, shapeSupportProblems, shapesOf, shapesOverlap, sharedDimension, sizeBoundsOf, sizeFits, snapRect, spaceShapeKinds, spaceSize, splitConfig, splitFileName, splitFolds, stepRandom, subtractPoints3, surveyFindings, sweepGrid, sweepOf, sweepValues, toLayoutRecord, toPackInput, toRect, toSizedRect, toSvgPath, transformMatrix4, transformPoint3, transformedBounds3, translate, turnBox, turnMargin, turnPoint, turnPort, turnRegion, turnResize, turnSide, unitFault, verdict, writeStrategyCatalog };
|
|
7205
|
+
export { BALANCE_MEASURE_SUFFIXES, BALANCE_SIDE_DEPTH, CELL_MEASURE_SUFFIXES, CELL_SOURCE, CIRCLE_SCATTERED, CORPUS_DIMENSIONS, CORPUS_MANIFEST_SCHEMA, CURVE_MAX_SIDE, CURVE_SYMMETRIES, DEFAULT_FAMILY_BY, DEFAULT_RNG, DEFAULT_SHAPES, DEFAULT_TOLERANCE, EDGES_STEP, EDGE_DENSITY, EDGE_KEY_STEP, EDGE_KEY_STEP_VERSION, EDGE_STEP_VERSION, EPS, EPS_STEPS, FAMILY_ANY_KIND, FLATTEN_SIDES, FRAME_SCHEMA, FRAME_STATES, HARD_RULE_VERSION, HILBERT_CURVE, HILBERT_PATTERN, INVALIDATED_FIELD, JOINT_MEASURES, JOINT_MOVED_MIN, JOINT_SOURCE, LABEL_ALIGNS, MEASURE_REGISTRY, MEASURE_SURVEY_SCHEMA, MOORE_CURVE, MOORE_PATTERN, MORTON_CURVE, NODE_POSITIONS_DIMENSION, NOISE_KINDS, NO_FINITE_RANGE, NO_ROTATION3, NO_TRANSFORM3, NO_UNIT, ORIGIN3, OUTPUT_CLASS_MIN_INPUTS, OUTPUT_GRID_PROPERTIES, OUTPUT_NEAR_WHOLE, PACK_HARD_RULES, PATH_KINDS, PICTURE_SCHEMA, RECORD_EPS, RECORD_SCALE, RECT_SCATTERED, REFUSED_PROBE, SHAPE_KINDS, SHAPE_KIND_IDS, SHARE_UNIT, SIDES, SPLIT_SCHEMA, SQUARE_COMPACTNESS, STRATEGY_CATALOG_SCHEMA, STRATEGY_CATALOG_SCHEMAS, STRATEGY_SPACE_SCHEMA, VERDICT_DRAWS, VERDICT_EXACT_CAP, VERDICT_EXACT_MAX, VERDICT_RUNS, VERDICT_SEED, addPoints3, applyPack, applySymmetry, balanceMeasureSpecs, balanceMeasures, balanceOf, boundsOf, boundsOf3, box3Center, box3Corners, box3Volume, boxArea, boxCenterDistance, boxTree, canonicalConfig, canonicalInput, canonicalJson, carryRecord, catalogChoices, catalogDefaults, catalogKey, catalogOptions, cellMeasureEntries, cellMeasureSpecs, cellMeasures, cellsOf, checkCatalog, checkConfig, checkDeclared, checkInput, checkLayoutRecord, checkOptions, checkPath, checkPicture, checkRegistry, checkSchema, checkShapes, checkSpace, checkSplit, checkSurvey, circleOverlaps, circlesOutside, clampOptions, clipRing, compareMeasure, composeFamily, composeRotations3, composeTransforms3, configId, convexCorners, convexOverlap, cornersInConvex, corpusHashOf, corpusManifestText, countLinksThroughShapes, countObstacleHits, countOutside, countOverlaps, countPortsOffBorder, countResizeBreaks, createFamilyRegistry, cross3, crossingPoint, cubicAt, curveCell, curveCells, curveIndex, declarationIssues, declaredClaimOf, declaredCounts, decodeOptionValue, defaultNormalize, dimensionAt, dimensionSupports, dimensionUnit, distance3, documentHash, dot3, dropIndex, edgeKeyStep, edgeStep, encodeOptionValue, enumerateSpace, exercised, familyKind, familyOf, fingerprintOf, fixedPointMove, flatPortId, flattenInput, fnv1a32, frameAt, frameMove, frameOf, grow, hardRuleOf, hilbertCell, hilbertIndex, inputShapeLevel, inverseRotation3, inverseSymmetry, inverseTransform3, isShapeKind, itemShapeOf, joinConfigs, leaveOneSeedOut, length3, levelsOf, lineJson, listOptions, manifestText, marginSides, measureEntry, minEffectOf, mooreCell, mooreIndex, mortonCell, mortonIndex, mulberry32, nameAfterStage, nearestGaps, nearestOnSegment, normalizeMeasure, normalizeRotation3, optionDefaults, optionIssue, outputGridClass, outputGroups, outputHash, outputOf, overlapOf, overlapOf3, ownerDimension, packHard, packLinks, packOutputForm, paramActive, paramAt, paramLevels, paramProblem, paramUnit, paramValue, parseLayoutRecord, parsePicture, parseStrategyCatalog, pathBounds, pathEnd, pathOf, pathStart, perChange, pickMoves, pictureBounds, pictureOf, placedCircle, placedConvex, placedRect, pointInRing, pointInRings, pointPolylineDistance, pointRegionDistance, pointSegmentDistance, portPoint, portfolio, probeHash, procrustesOf, productSpace, randomInt, rectCenter, rectInRegion, regionArea, regionHitsRect, regionPerimeter, resizeBox, resizeProblems, resolveDimensions, ringCentroid, rotatePoint3, rotationAbout, ruleLevel, samplePath, scalePoint3, scaleRect, segmentThroughShape, segmentsCross, selectBest, sha256Hex, shapeFits, shapeKindOf, shapeKindProblem, shapeKindsOf, shapeLevel, shapeSupportProblems, shapesOf, shapesOverlap, sharedDimension, siblingEdges, sizeBoundsOf, sizeFits, snapRect, spaceShapeKinds, spaceSize, splitConfig, splitFileName, splitFolds, stepRandom, subtractPoints3, surveyFindings, sweepGrid, sweepOf, sweepValues, toLayoutRecord, toPackInput, toRect, toSizedRect, toSvgPath, topBoxes, transformMatrix4, transformPoint3, transformedBounds3, translate, turnBox, turnMargin, turnPoint, turnPort, turnRegion, turnResize, turnSide, unitFault, verdict, writeStrategyCatalog };
|
|
6956
7206
|
|
|
6957
7207
|
//# sourceMappingURL=index.js.map
|