@mark1russell7/layout-contract 0.10.0 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -449,9 +449,251 @@ function dropIndex(point, centers, rowTolerance = 24) {
449
449
  }
450
450
  return centers.length;
451
451
  }
452
+ // src/geometry3.ts
453
+ /** The point at the origin. It is also the vector of length 0. */
454
+ const ORIGIN3 = {
455
+ x: 0,
456
+ y: 0,
457
+ z: 0
458
+ };
459
+ /** The rotation that moves no point. */
460
+ const NO_ROTATION3 = {
461
+ x: 0,
462
+ y: 0,
463
+ z: 0,
464
+ w: 1
465
+ };
466
+ /** The transform that moves no point. */
467
+ const NO_TRANSFORM3 = {
468
+ position: ORIGIN3,
469
+ rotation: NO_ROTATION3
470
+ };
471
+ /** This function gives the sum of two vectors. */
472
+ function addPoints3(a, b) {
473
+ return {
474
+ x: a.x + b.x,
475
+ y: a.y + b.y,
476
+ z: a.z + b.z
477
+ };
478
+ }
479
+ /** This function gives the vector from `b` to `a`: `a` minus `b`. */
480
+ function subtractPoints3(a, b) {
481
+ return {
482
+ x: a.x - b.x,
483
+ y: a.y - b.y,
484
+ z: a.z - b.z
485
+ };
486
+ }
487
+ /** This function gives a vector with each coordinate times `factor`. */
488
+ function scalePoint3(point, factor) {
489
+ return {
490
+ x: point.x * factor,
491
+ y: point.y * factor,
492
+ z: point.z * factor
493
+ };
494
+ }
495
+ /** This function gives the dot product of two vectors. */
496
+ function dot3(a, b) {
497
+ return a.x * b.x + a.y * b.y + a.z * b.z;
498
+ }
499
+ /** This function gives the cross product of `a` and `b`. In a right-handed system, x cross y is z. */
500
+ function cross3(a, b) {
501
+ return {
502
+ x: a.y * b.z - a.z * b.y,
503
+ y: a.z * b.x - a.x * b.z,
504
+ z: a.x * b.y - a.y * b.x
505
+ };
506
+ }
507
+ /** This function gives the length of a vector. */
508
+ function length3(vector) {
509
+ return Math.hypot(vector.x, vector.y, vector.z);
510
+ }
511
+ /** This function gives the distance between two points. */
512
+ function distance3(a, b) {
513
+ return Math.hypot(a.x - b.x, a.y - b.y, a.z - b.z);
514
+ }
515
+ /**
516
+ * This function gives the rotation by `angle` radians about the line through the origin along `axis`.
517
+ * The rotation follows the right-hand rule: a positive angle about z turns the x axis to the y axis.
518
+ * An axis of length 0, or a number that is not finite, gives a `RangeError`.
519
+ */
520
+ function rotationAbout(axis, angle) {
521
+ const length = length3(axis);
522
+ if (!Number.isFinite(length) || length === 0 || !Number.isFinite(angle)) throw new RangeError("A rotation needs a finite angle and a finite axis with a length above 0.");
523
+ const factor = Math.sin(angle / 2) / length;
524
+ return {
525
+ x: axis.x * factor,
526
+ y: axis.y * factor,
527
+ z: axis.z * factor,
528
+ w: Math.cos(angle / 2)
529
+ };
530
+ }
531
+ /**
532
+ * This function gives the rotation `inner`, then the rotation `outer`, as one rotation.
533
+ * It is the quaternion product of `outer` and `inner`.
534
+ */
535
+ function composeRotations3(outer, inner) {
536
+ return {
537
+ x: outer.w * inner.x + outer.x * inner.w + outer.y * inner.z - outer.z * inner.y,
538
+ y: outer.w * inner.y - outer.x * inner.z + outer.y * inner.w + outer.z * inner.x,
539
+ z: outer.w * inner.z + outer.x * inner.y - outer.y * inner.x + outer.z * inner.w,
540
+ w: outer.w * inner.w - outer.x * inner.x - outer.y * inner.y - outer.z * inner.z
541
+ };
542
+ }
543
+ /** This function gives the rotation that moves each point back. It is the conjugate of a unit quaternion. */
544
+ function inverseRotation3(rotation) {
545
+ return {
546
+ x: -rotation.x,
547
+ y: -rotation.y,
548
+ z: -rotation.z,
549
+ w: rotation.w
550
+ };
551
+ }
552
+ /**
553
+ * This function gives the rotation with the length 1. Many products of rotations collect small float errors, and this function removes them.
554
+ * A quaternion of length 0, or a number that is not finite, gives a `RangeError`.
555
+ */
556
+ function normalizeRotation3(rotation) {
557
+ const length = Math.hypot(rotation.x, rotation.y, rotation.z, rotation.w);
558
+ if (!Number.isFinite(length) || length === 0) throw new RangeError("A rotation needs a finite quaternion with a length above 0.");
559
+ return {
560
+ x: rotation.x / length,
561
+ y: rotation.y / length,
562
+ z: rotation.z / length,
563
+ w: rotation.w / length
564
+ };
565
+ }
566
+ /** This function gives the point after the rotation. The rotation is a unit quaternion. */
567
+ function rotatePoint3(rotation, point) {
568
+ const first = cross3(rotation, point);
569
+ const second = cross3(rotation, first);
570
+ return {
571
+ x: point.x + 2 * (rotation.w * first.x + second.x),
572
+ y: point.y + 2 * (rotation.w * first.y + second.y),
573
+ z: point.z + 2 * (rotation.w * first.z + second.z)
574
+ };
575
+ }
576
+ /** This function gives the point after the transform: the rotation, then the move. */
577
+ function transformPoint3(transform, point) {
578
+ return addPoints3(rotatePoint3(transform.rotation, point), transform.position);
579
+ }
580
+ /**
581
+ * This function gives the transform `inner`, then the transform `outer`, as one transform.
582
+ * Thus `inner` is the place of a part in its parent, and `outer` is the place of the parent.
583
+ */
584
+ function composeTransforms3(outer, inner) {
585
+ return {
586
+ position: transformPoint3(outer, inner.position),
587
+ rotation: composeRotations3(outer.rotation, inner.rotation)
588
+ };
589
+ }
590
+ /** This function gives the transform that moves each point back. */
591
+ function inverseTransform3(transform) {
592
+ const rotation = inverseRotation3(transform.rotation);
593
+ return {
594
+ position: scalePoint3(rotatePoint3(rotation, transform.position), -1),
595
+ rotation
596
+ };
597
+ }
598
+ /**
599
+ * This function gives the 4 by 4 matrix of a transform as 16 numbers, column by column.
600
+ * WebGL, the glTF format and three.js read a matrix in this order.
601
+ */
602
+ function transformMatrix4(transform) {
603
+ const { x, y, z, w } = transform.rotation;
604
+ const { position } = transform;
605
+ return [
606
+ 1 - 2 * (y * y + z * z),
607
+ 2 * (x * y + w * z),
608
+ 2 * (x * z - w * y),
609
+ 0,
610
+ 2 * (x * y - w * z),
611
+ 1 - 2 * (x * x + z * z),
612
+ 2 * (y * z + w * x),
613
+ 0,
614
+ 2 * (x * z + w * y),
615
+ 2 * (y * z - w * x),
616
+ 1 - 2 * (x * x + y * y),
617
+ 0,
618
+ position.x,
619
+ position.y,
620
+ position.z,
621
+ 1
622
+ ];
623
+ }
624
+ /** This function gives the center of a box. */
625
+ function box3Center(box) {
626
+ return {
627
+ x: box.x + box.w / 2,
628
+ y: box.y + box.h / 2,
629
+ z: box.z + box.d / 2
630
+ };
631
+ }
632
+ /** This function gives the volume of a box. */
633
+ function box3Volume(box) {
634
+ return box.w * box.h * box.d;
635
+ }
636
+ /**
637
+ * This function gives the 8 corners of a box. The corner at the index `i` has the largest x when bit 0 of `i` is 1.
638
+ * Bit 1 gives the largest y, and bit 2 gives the largest z. Thus the corner 0 is the corner of the box record.
639
+ */
640
+ function box3Corners(box) {
641
+ const corners = [];
642
+ for (let index = 0; index < 8; index += 1) corners.push({
643
+ x: box.x + (index & 1) * box.w,
644
+ y: box.y + (index >> 1 & 1) * box.h,
645
+ z: box.z + (index >> 2 & 1) * box.d
646
+ });
647
+ return corners;
648
+ }
649
+ /** This function gives the smallest box that holds each point, or `undefined` for no points. */
650
+ function boundsOf3(points) {
651
+ const first = points[0];
652
+ if (first === void 0) return void 0;
653
+ let minX = first.x;
654
+ let minY = first.y;
655
+ let minZ = first.z;
656
+ let maxX = first.x;
657
+ let maxY = first.y;
658
+ let maxZ = first.z;
659
+ for (const point of points) {
660
+ minX = Math.min(minX, point.x);
661
+ minY = Math.min(minY, point.y);
662
+ minZ = Math.min(minZ, point.z);
663
+ maxX = Math.max(maxX, point.x);
664
+ maxY = Math.max(maxY, point.y);
665
+ maxZ = Math.max(maxZ, point.z);
666
+ }
667
+ return {
668
+ x: minX,
669
+ y: minY,
670
+ z: minZ,
671
+ w: maxX - minX,
672
+ h: maxY - minY,
673
+ d: maxZ - minZ
674
+ };
675
+ }
676
+ /**
677
+ * This function gives the smallest box along the axes that holds a box after a transform.
678
+ * A box that turns by an angle that is not a quarter turn gets a larger box.
679
+ */
680
+ function transformedBounds3(box, transform) {
681
+ return boundsOf3(box3Corners(box).map((corner) => transformPoint3(transform, corner)));
682
+ }
683
+ /**
684
+ * This function gives the overlap of the insides of two boxes on each axis.
685
+ * A value of 0 or less on an axis is no overlap. Two boxes with a common face have an overlap of 0 on one axis.
686
+ */
687
+ function overlapOf3(a, b) {
688
+ return {
689
+ x: Math.min(a.x + a.w, b.x + b.w) - Math.max(a.x, b.x),
690
+ y: Math.min(a.y + a.h, b.y + b.h) - Math.max(a.y, b.y),
691
+ z: Math.min(a.z + a.d, b.z + b.d) - Math.max(a.z, b.z)
692
+ };
693
+ }
452
694
  // src/curves.ts
453
695
  /** The 8 symmetries of a square, in a fixed order. */
454
- const CURVE_SYMMETRIES = Object.freeze([
696
+ const CURVE_SYMMETRIES = /* @__PURE__ */ Object.freeze([
455
697
  "same",
456
698
  "swap",
457
699
  "back",
@@ -462,64 +704,67 @@ const CURVE_SYMMETRIES = Object.freeze([
462
704
  "flip-t"
463
705
  ]);
464
706
  /** The order of the parts of the Hilbert and Moore curves: low left, high left, high right and low right. */
465
- const LOOP_ORDER = Object.freeze([
466
- Object.freeze([0, 0]),
467
- Object.freeze([0, 1]),
468
- Object.freeze([1, 1]),
469
- Object.freeze([1, 0])
707
+ const LOOP_ORDER = /* @__PURE__ */ Object.freeze([
708
+ /* @__PURE__ */ Object.freeze([0, 0]),
709
+ /* @__PURE__ */ Object.freeze([0, 1]),
710
+ /* @__PURE__ */ Object.freeze([1, 1]),
711
+ /* @__PURE__ */ Object.freeze([1, 0])
470
712
  ]);
471
713
  /** The parts of the Hilbert curve. The curve goes in at the corner `(0, 0)` and out at the corner `(size, 0)`. */
472
- const HILBERT_PATTERN = Object.freeze([
714
+ const HILBERT_PATTERN = /* @__PURE__ */ Object.freeze([
473
715
  "swap",
474
716
  "same",
475
717
  "same",
476
718
  "back"
477
719
  ]);
478
720
  /** 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`. */
479
- const MOORE_PATTERN = Object.freeze([
721
+ const MOORE_PATTERN = /* @__PURE__ */ Object.freeze([
480
722
  "rise",
481
723
  "rise",
482
724
  "fall",
483
725
  "fall"
484
726
  ]);
485
727
  /** The Hilbert curve. Two cells in a row along the curve share a side. */
486
- const HILBERT_CURVE = Object.freeze({
728
+ const HILBERT_CURVE = /* @__PURE__ */ Object.freeze({
487
729
  name: "hilbert",
488
730
  order: LOOP_ORDER,
489
731
  root: HILBERT_PATTERN,
490
732
  child: HILBERT_PATTERN
491
733
  });
492
734
  /** The Moore curve. Two cells in a row share a side, and the last cell shares a side with the first cell. */
493
- const MOORE_CURVE = Object.freeze({
735
+ const MOORE_CURVE = /* @__PURE__ */ Object.freeze({
494
736
  name: "moore",
495
737
  order: LOOP_ORDER,
496
738
  root: MOORE_PATTERN,
497
739
  child: HILBERT_PATTERN
498
740
  });
499
741
  /** 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. */
500
- const MORTON_CURVE = Object.freeze({
742
+ const MORTON_CURVE = /* @__PURE__ */ Object.freeze({
501
743
  name: "morton",
502
- order: Object.freeze([
503
- Object.freeze([0, 0]),
504
- Object.freeze([1, 0]),
505
- Object.freeze([0, 1]),
506
- Object.freeze([1, 1])
744
+ order: /* @__PURE__ */ Object.freeze([
745
+ /* @__PURE__ */ Object.freeze([0, 0]),
746
+ /* @__PURE__ */ Object.freeze([1, 0]),
747
+ /* @__PURE__ */ Object.freeze([0, 1]),
748
+ /* @__PURE__ */ Object.freeze([1, 1])
507
749
  ]),
508
- root: Object.freeze([
750
+ root: /* @__PURE__ */ Object.freeze([
509
751
  "same",
510
752
  "same",
511
753
  "same",
512
754
  "same"
513
755
  ]),
514
- child: Object.freeze([
756
+ child: /* @__PURE__ */ Object.freeze([
515
757
  "same",
516
758
  "same",
517
759
  "same",
518
760
  "same"
519
761
  ])
520
762
  });
521
- /** 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. */
522
- const CURVE_MAX_SIDE = 2 ** 26;
763
+ /**
764
+ * 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. The value is a literal,
765
+ * because a bundler keeps a top-level `2 ** 26`, also when no code uses it.
766
+ */
767
+ const CURVE_MAX_SIDE = 67108864;
523
768
  /**
524
769
  * This function gives a point of the square `[0, size] x [0, size]` after a symmetry. The cell `(x, y)` of a grid of
525
770
  * side `n` goes to a cell of the same grid with `size = n - 1`.
@@ -542,7 +787,7 @@ function inverseSymmetry(symmetry) {
542
787
  }
543
788
  /** 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`. */
544
789
  function levelsOf$1(side) {
545
- if (!Number.isInteger(side) || side < 1 || side > CURVE_MAX_SIDE || (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}.`);
790
+ 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}.`);
546
791
  return Math.round(Math.log2(side));
547
792
  }
548
793
  /**
@@ -2583,9 +2828,11 @@ function unitFault(spec) {
2583
2828
  if (SHARE_WORDS.has(u)) return `the unit ${JSON.stringify(u)} is a share: use ${JSON.stringify(SHARE_UNIT)}`;
2584
2829
  if (u === "share" && !(spec.min === 0 && spec.max === 1)) return `the unit ${JSON.stringify(SHARE_UNIT)} needs the range 0 to 1`;
2585
2830
  }
2586
- /** The pattern of a `CostOrder`: terms of `1`, `n`, `e` or `p`, each with an optional `^2`, `^3` or `log`, joined by ` + `. */
2587
- const COST_TERM = "(?:1|[nep](?:\\^[23])?(?: log [nep])?)";
2588
- const COST_ORDER = /* @__PURE__ */ new RegExp(`^${COST_TERM}(?: \\+ ${COST_TERM})*$`);
2831
+ /**
2832
+ * The pattern of a `CostOrder`: terms of `1`, `n`, `e` or `p`, each with an optional `^2`, `^3` or `log`, joined by ` + `. The pattern is a
2833
+ * literal, because a bundler keeps a top-level `new RegExp` of a template, also when no code uses it.
2834
+ */
2835
+ const COST_ORDER = /^(?:1|[nep](?:\^[23])?(?: log [nep])?)(?: \+ (?:1|[nep](?:\^[23])?(?: log [nep])?))*$/;
2589
2836
  /** The reason of the default rule `none`. */
2590
2837
  const NO_FINITE_RANGE = "The range is not finite, and the registry has no agreed scale for the measure.";
2591
2838
  /** This function gives the default normalization of a spec: `range` when `min` and `max` are finite, else `none` with the reason `NO_FINITE_RANGE`. */
@@ -2713,15 +2960,18 @@ const JOINT_FACTS = {
2713
2960
  * 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.
2714
2961
  * The engines keep the specs of their own measures. `docs/measure-survey.json` lists them, and an engine adopts the registry with `measureEntry`.
2715
2962
  */
2716
- const MEASURE_REGISTRY = /* @__PURE__ */ Object.freeze(JOINT_MEASURES.map((spec) => measureEntry(spec, {
2963
+ const MEASURE_REGISTRY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ JOINT_MEASURES.map((spec) => measureEntry(spec, {
2717
2964
  source: JOINT_SOURCE,
2718
2965
  ...JOINT_FACTS[spec.id]
2719
2966
  })));
2720
2967
  // src/cell.ts
2721
2968
  /** The suffixes of the cell measures, in the order of `cellMeasureSpecs`. */
2722
2969
  const CELL_MEASURE_SUFFIXES = /* @__PURE__ */ Object.freeze(["cell.areaError", "cell.compactness"]);
2723
- /** The compactness of a square: 4 over PI. */
2724
- const SQUARE_COMPACTNESS = 4 / Math.PI;
2970
+ /**
2971
+ * The compactness of a square: 4 over PI. The value is the literal of `4 / Math.PI`, because a bundler keeps a top-level division, also when
2972
+ * no code uses it.
2973
+ */
2974
+ const SQUARE_COMPACTNESS = 1.2732395447351628;
2725
2975
  /**
2726
2976
  * This function gives the cell measures of the placed items in a container of the area `containerArea`.
2727
2977
  *
@@ -2815,7 +3065,7 @@ function cellMeasureEntries(stage) {
2815
3065
  cost: "n",
2816
3066
  normalize: {
2817
3067
  kind: "scale",
2818
- half: SQUARE_COMPACTNESS - 1,
3068
+ half: .27323954473516276,
2819
3069
  reason: "A square cell has the loss 0.5, and a circle has the loss 0."
2820
3070
  }
2821
3071
  })]);
@@ -4091,8 +4341,7 @@ const COMMON_FIELDS = [
4091
4341
  "noDefault",
4092
4342
  "when"
4093
4343
  ];
4094
- const NUMBER_FIELDS = [
4095
- ...COMMON_FIELDS,
4344
+ const NUMBER_FIELDS = /* @__PURE__ */ COMMON_FIELDS.concat([
4096
4345
  "min",
4097
4346
  "max",
4098
4347
  "step",
@@ -4100,32 +4349,26 @@ const NUMBER_FIELDS = [
4100
4349
  "special",
4101
4350
  "marks",
4102
4351
  "values"
4103
- ];
4104
- const ENUM_FIELDS = [
4105
- ...COMMON_FIELDS,
4106
- "values",
4107
- "custom"
4108
- ];
4109
- const STRATEGY_FIELDS = [
4110
- ...COMMON_FIELDS,
4352
+ ]);
4353
+ const ENUM_FIELDS = /* @__PURE__ */ COMMON_FIELDS.concat(["values", "custom"]);
4354
+ const STRATEGY_FIELDS = /* @__PURE__ */ COMMON_FIELDS.concat([
4111
4355
  "step",
4112
4356
  "kinds",
4113
4357
  "optionsKey",
4114
4358
  "inlineOptions",
4115
4359
  "optIn",
4116
4360
  "needs"
4117
- ];
4361
+ ]);
4118
4362
  const MEMBER_FIELDS = [
4119
4363
  "strategy",
4120
4364
  "options",
4121
4365
  "id"
4122
4366
  ];
4123
- const LIST_FIELDS = [
4124
- ...COMMON_FIELDS,
4367
+ const LIST_FIELDS = /* @__PURE__ */ COMMON_FIELDS.concat([
4125
4368
  "of",
4126
4369
  "min",
4127
4370
  "max"
4128
- ];
4371
+ ]);
4129
4372
  const ROW_FIELDS = [
4130
4373
  "property",
4131
4374
  "class",
@@ -6145,6 +6388,6 @@ function surveyFindings(survey) {
6145
6388
  units
6146
6389
  };
6147
6390
  }
6148
- 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, MEASURE_REGISTRY, MEASURE_SURVEY_SCHEMA, MOORE_CURVE, MOORE_PATTERN, MORTON_CURVE, NODE_POSITIONS_DIMENSION, NOISE_KINDS, NO_FINITE_RANGE, NO_UNIT, OUTPUT_CLASS_MIN_INPUTS, OUTPUT_GRID_PROPERTIES, OUTPUT_NEAR_WHOLE, PACK_HARD_RULES, 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, applyPack, applySymmetry, balanceMeasureSpecs, balanceMeasures, balanceOf, boundsOf, boxArea, boxCenterDistance, canonicalConfig, canonicalInput, canonicalJson, carryRecord, catalogChoices, catalogDefaults, catalogKey, catalogOptions, cellMeasureEntries, cellMeasureSpecs, cellMeasures, cellsOf, checkCatalog, checkConfig, checkDeclared, checkInput, checkLayoutRecord, checkOptions, checkRegistry, checkSchema, checkShapes, checkSpace, checkSplit, checkSurvey, circleOverlaps, circlesOutside, clampOptions, clipRing, compareMeasure, composeFamily, configId, convexCorners, convexOverlap, cornersInConvex, corpusHashOf, corpusManifestText, countLinksThroughShapes, countObstacleHits, countOutside, countOverlaps, countPortsOffBorder, countResizeBreaks, createFamilyRegistry, crossingPoint, curveCell, curveCells, curveIndex, declarationIssues, declaredClaimOf, declaredCounts, decodeOptionValue, defaultNormalize, dimensionAt, dimensionSupports, dimensionUnit, documentHash, dropIndex, edgeKeyStep, edgeStep, encodeOptionValue, enumerateSpace, exercised, familyKind, familyOf, fingerprintOf, fixedPointMove, fnv1a32, frameAt, frameMove, frameOf, grow, hardRuleOf, hilbertCell, hilbertIndex, inputShapeLevel, inverseSymmetry, isShapeKind, itemShapeOf, joinConfigs, leaveOneSeedOut, levelsOf, lineJson, listOptions, manifestText, marginSides, measureEntry, minEffectOf, mooreCell, mooreIndex, mortonCell, mortonIndex, mulberry32, nameAfterStage, nearestGaps, normalizeMeasure, optionDefaults, optionIssue, outputGridClass, outputGroups, outputHash, outputOf, overlapOf, ownerDimension, packHard, packLinks, packOutputForm, paramActive, paramAt, paramLevels, paramProblem, paramUnit, paramValue, parseLayoutRecord, parseStrategyCatalog, perChange, pickMoves, placedCircle, placedConvex, placedRect, pointInRing, pointInRings, pointSegmentDistance, portPoint, portfolio, probeHash, procrustesOf, productSpace, randomInt, rectInRegion, regionArea, regionHitsRect, regionPerimeter, resizeBox, resizeProblems, resolveDimensions, ringCentroid, ruleLevel, scaleRect, segmentThroughShape, segmentsCross, selectBest, sha256Hex, shapeFits, shapeKindOf, shapeKindProblem, shapeKindsOf, shapeLevel, shapeSupportProblems, shapesOf, shapesOverlap, sharedDimension, sizeBoundsOf, sizeFits, snapRect, spaceShapeKinds, spaceSize, splitConfig, splitFileName, splitFolds, stepRandom, surveyFindings, sweepGrid, sweepOf, sweepValues, toLayoutRecord, toPackInput, toRect, toSizedRect, translate, turnBox, turnMargin, turnPoint, turnPort, turnRegion, turnResize, turnSide, unitFault, verdict, writeStrategyCatalog };
6391
+ 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, 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, 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, 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, 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, parseStrategyCatalog, perChange, pickMoves, placedCircle, placedConvex, placedRect, pointInRing, pointInRings, pointSegmentDistance, portPoint, portfolio, probeHash, procrustesOf, productSpace, randomInt, rectInRegion, regionArea, regionHitsRect, regionPerimeter, resizeBox, resizeProblems, resolveDimensions, ringCentroid, rotatePoint3, rotationAbout, ruleLevel, 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, transformMatrix4, transformPoint3, transformedBounds3, translate, turnBox, turnMargin, turnPoint, turnPort, turnRegion, turnResize, turnSide, unitFault, verdict, writeStrategyCatalog };
6149
6392
 
6150
6393
  //# sourceMappingURL=index.js.map