@mark1russell7/layout-contract 0.8.0 → 0.9.1

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
@@ -105,6 +105,7 @@ The comments of the source name each doc as `docs/<NAME>.md`. The docs are in th
105
105
  | Doc | The subject |
106
106
  |---|---|
107
107
  | [`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 |
108
+ | [`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 |
108
109
  | [`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 |
109
110
  | [`docs/CORPUS.md`](https://github.com/mark1russell7/layout-contract/blob/main/docs/CORPUS.md) | The shared corpus registry, its dimensions and families |
110
111
  | [`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,5 @@
1
1
  import { $ as CorpusSplit, A as shapeKindsOf, At as overlapOf, B as LayoutInput, C as checkShapes, Ct as Sides, D as ruleLevel, Dt as dropIndex, E as itemShapeOf, Et as crossingPoint, F as LayoutBox, Ft as toSizedRect, G as PairGap, H as PackInput, I as LayoutCell, It as translate, J as packLinks, K as Port, L as LayoutContainer, M as shapeSupportProblems, Mt as regionArea, N as shapesOf, Nt as segmentsCross, O as shapeKindOf, Ot as grow, P as Item, Pt as toRect, Q as CorpusEntry, R as LayoutEdge, S as boxArea, St as Side, T as isShapeKind, Tt as boundsOf, U as PackInputOptions, V as Obstacle, W as PackLink, X as toPackInput, Y as portPoint, Z as ClaimBreak, _ as ShapeKind, _t as Margin, a as MeasureSpec, at as SPLIT_SCHEMA, b as ShapeLimit, bt as Region, c as minEffectOf, ct as checkDeclared, d as SHAPE_KINDS, dt as declaredClaimOf, et as DeclaredClaim, f as SHAPE_KIND_IDS, ft as declaredCounts, g as ShapeInput, gt as splitFolds, h as ShapeGeometry, ht as splitFileName, i as JointMeasureId, it as FamilyCell, j as shapeLevel, jt as pointSegmentDistance, k as shapeKindProblem, kt as marginSides, l as DEFAULT_SHAPES, lt as checkSplit, m as ShapeCheck, mt as leaveOneSeedOut, n as JOINT_MEASURES, nt as FAMILY_ANY_KIND, o as Verdict, ot as SplitCorpus, p as ShapeBound, pt as familyOf, q as canonicalInput, r as JOINT_MOVED_MIN, rt as FamilyBy, s as compareMeasure, st as SplitFold, t as Direction, tt as Declares, u as RuleLevel, ut as corpusHashOf, v as ShapeKindSpec, vt as Point, w as inputShapeLevel, wt as SizedRect, x as ShapeSupport, xt as SIDES, y as ShapeLevel, yt as Rect, z as LayoutGenerator } from "./measures-DGKAulWv.js";
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, paramLevels, paramProblem, paramValue, productSpace, splitConfig, sweepGrid, sweepOf, sweepValues } from "@mark1russell7/strategy-space";
2
3
  /** The epsilon for the float compares in an engine. */
3
4
  export declare const EPS = 1e-6;
4
5
  /** The count of `EPS` steps in one layout unit. It is the integer equal to `1 / EPS`. */
@@ -423,6 +424,62 @@ export declare function balanceMeasures<S extends string>(stage: S, balance: Bal
423
424
  * The balance measures read the area of each box, so they support only `rect`. The stability measures read only the centers.
424
425
  */
425
426
  export declare function balanceMeasureSpecs<S extends string>(stage: S): readonly MeasureSpec<`${S}.${BalanceMeasureSuffix}`>[];
427
+ /** The schema of a frame. */
428
+ export declare const FRAME_SCHEMA = "layout-frame/1";
429
+ /** The states of a box in a frame: in the two layouts, only in the end layout, or only in the start layout. */
430
+ export declare const FRAME_STATES: readonly ["stay", "enter", "leave"];
431
+ /** The state of a box in a frame. */
432
+ export type FrameState = (typeof FRAME_STATES)[number];
433
+ /** One box of a frame: its rectangle, its turn, its presence and its state. */
434
+ export interface FrameBox extends PlacedBox {
435
+ readonly turn?: 0 | 90;
436
+ /** The visible share of the box, from 0 (not visible) to 1 (fully visible). */
437
+ readonly presence: number;
438
+ readonly state: FrameState;
439
+ }
440
+ /** A frame: the boxes of a layout by id, at one time of a change. Each id occurs one time. */
441
+ export interface LayoutFrame {
442
+ readonly schema: typeof FRAME_SCHEMA;
443
+ readonly boxes: readonly FrameBox[];
444
+ }
445
+ /**
446
+ * The change of the presence of a box that enters or leaves.
447
+ * With `fade`, the presence changes in a straight line with the time.
448
+ * With `cut`, an entering box is fully visible after the time 0, and a leaving box is fully visible before the time 1.
449
+ */
450
+ export type Presence = "fade" | "cut";
451
+ /** The options of `frameAt`. The default of each is `fade`. */
452
+ export interface FrameAtOptions {
453
+ readonly enter?: Presence;
454
+ readonly leave?: Presence;
455
+ }
456
+ /** One box of a layout for `frameOf`: a placed rectangle, with an optional turn. */
457
+ export interface FrameSource extends PlacedBox {
458
+ readonly turn?: 0 | 90;
459
+ }
460
+ /** This function makes a frame of a layout. Each box has the state `stay` and the presence 1. */
461
+ export declare function frameOf(boxes: readonly FrameSource[]): LayoutFrame;
462
+ /** This function gives the placements of a frame: the boxes with the state `stay` or `enter`, in the order of the frame. An engine starts a layout from them. */
463
+ export declare function outputOf(frame: LayoutFrame): Placement[];
464
+ /**
465
+ * This function gives the frame at the time `t` of the change from `from` to `to`. The time is a number from 0 to 1.
466
+ * A box in the two frames moves on a straight line, and its size and presence change on a straight line. It keeps the turn of `from` before the time 1.
467
+ *
468
+ * A box only in `to` enters at its place in `to`. A box only in `from` leaves at its place in `from`. `options` sets how their presence changes.
469
+ * At the time 1, the result has the boxes of `to`. At the time 0, the result has the boxes of `from` and the entering boxes.
470
+ * The order of the result: the boxes of `to`, then the leaving boxes in the order of `from`.
471
+ */
472
+ export declare function frameAt(from: LayoutFrame, to: LayoutFrame, t: number, options?: FrameAtOptions): LayoutFrame;
473
+ /**
474
+ * This function gives the move from `a` to `b`: the sum of the distances of the box centers, over the ids in the two frames.
475
+ * A box that enters or leaves does not move, so it adds nothing. A start frame that an engine does not change gives 0.
476
+ */
477
+ export declare function frameMove(a: LayoutFrame, b: LayoutFrame): number;
478
+ /**
479
+ * This function gives the move of an engine from a start frame: `frameMove(start, run(start))`.
480
+ * The gate of a start: a start that is a fixed point of the engine gives 0.
481
+ */
482
+ export declare function fixedPointMove(start: LayoutFrame, run: (start: LayoutFrame) => LayoutFrame): number;
426
483
  /**
427
484
  * The common fields of a strategy of an engine. Each engine adds its own function, for example `pack` or `route`.
428
485
  * `O` is the type of the options, and `S` is the type of `supports`.
@@ -731,434 +788,26 @@ export declare function pickMoves(trace: Pick<PortfolioTrace, "picked">): {
731
788
  * It also throws a `RangeError` for an empty list of members, or for two members with the same id.
732
789
  */
733
790
  export declare function portfolio<I, O>(id: string, members: readonly Member<I, O>[] | ((input: I) => readonly Member<I, O>[]), key: PortfolioKey<I, O>, options?: PortfolioOptions): Portfolio<I, O>;
734
- /** The schema of a strategy space. */
735
- export declare const STRATEGY_SPACE_SCHEMA = "strategy-space/1";
736
- /** The kind of a param: a whole number, a real number, one value of a list, or `true` and `false`. */
737
- export type ParamKind = "int" | "real" | "enum" | "bool";
738
- /** The value of one param in a config. */
739
- export type ParamValue = number | string | boolean;
740
- /** The condition of a conditional param: the param is active only when an earlier param of the same option has one of the values `in`. */
741
- export interface ParamWhen {
742
- /** The name of an earlier param of the same option. */
743
- readonly param: string;
744
- /** The values of that param that make this param active. */
745
- readonly in: readonly ParamValue[];
746
- }
747
- /** One param of a stage option, with its range. */
748
- export interface SpaceParam {
749
- readonly name: string;
750
- readonly kind: ParamKind;
751
- /** The smallest value of an `int` or `real` param. */
752
- readonly min?: number;
753
- /** The largest value of an `int` or `real` param. */
754
- readonly max?: number;
755
- /** The step of the values from `min`. An `int` param has the step 1 by default. */
756
- readonly step?: number;
757
- /** The scale of the grid and of the samples. The scale `log` needs a `min` above 0. The default is `linear`. */
758
- readonly scale?: "linear" | "log";
759
- /** The values of an `enum` param. */
760
- readonly values?: readonly (string | number)[];
761
- /** The value that a config gets when it does not set the param. */
762
- readonly default: ParamValue;
763
- /** Without `when`, the param is active each time its option is chosen. */
764
- readonly when?: ParamWhen;
765
- }
766
- /**
767
- * The rule of the members of a meta option: a count from `min` to `max`. Members with `ordered: false` are sorted by their `configId`.
768
- * With `min` and `max` 0, the option chooses its members from the input, so a config lists none. This form has no `pool` and no `view`.
769
- */
770
- export interface MemberRule {
771
- readonly min: number;
772
- readonly max: number;
773
- readonly ordered: boolean;
774
- /**
775
- * The member lists that the option permits. Each entry is a list of whole configs of the space of the members.
776
- * Without `pool`, each list of base configs with a good count is a member list.
777
- * With `pool`, a config of the option has the members of one entry, and `spaceSize` counts each entry one time.
778
- */
779
- readonly pool?: readonly (readonly StrategyConfig[])[];
780
- /**
781
- * The view of the items that the members get. With `bounds`, the option gives its members the bounding box of each item.
782
- * Then a shape filter checks the members with the kind `rect`, and the option itself with the kinds of the input. Without `view`, the members get the kinds of the input.
783
- */
784
- readonly view?: "bounds";
785
- }
786
- /** The inputs that an option supports. A missing field supports each value. */
787
- export interface OptionSupports {
788
- /** The shape kinds of the boxes (`docs/SHAPES.md`). Without it, the option supports each kind. */
789
- readonly shape?: readonly ShapeKind[];
790
- }
791
- /** One implementation of a stage. An option with `members` is a meta option: it chooses between whole configs, or wraps them. */
792
- export interface StageOption {
793
- readonly id: string;
794
- readonly params: readonly SpaceParam[];
795
- readonly members?: MemberRule;
796
- /** The inputs that the option supports. It describes the option, so it is not part of a config or of its id. */
797
- readonly supports?: OptionSupports;
798
- }
799
- /** The shape kinds of the inputs of a check, a count or an enumeration. Without `shapes`, each option counts. */
800
- export interface ShapeFilter {
801
- /** The shape kinds of the input. Only the options that support each of these kinds count. */
802
- readonly shapes?: readonly ShapeKind[];
803
- }
804
- /** One stage of the pipeline of an engine. A config of an `optional` stage can have no option. */
805
- export interface SpaceStage {
806
- readonly name: string;
807
- readonly options: readonly StageOption[];
808
- readonly optional?: boolean;
809
- }
810
- /** A reference to one option of a stage. The option `null` refers to an optional stage that a config does not use. */
811
- export interface OptionRef {
812
- readonly stage: string;
813
- readonly option: string | null;
814
- }
815
- /** A rule that keeps out invalid combinations. A config with the option `if` also has the option `then`, or does not have the option `then.not`. */
816
- export interface SpaceConstraint {
817
- readonly if: OptionRef;
818
- readonly then: OptionRef | {
819
- readonly not: OptionRef;
820
- };
821
- }
822
- /** The strategy space of an engine: the stages, the constraints and the named configs. `docs/STRATEGY-SPACE.md` tells the rules. */
823
- export interface StrategySpace {
824
- readonly schema: typeof STRATEGY_SPACE_SCHEMA;
825
- /** The name of the space. A config names the space with this value. */
826
- readonly engine: string;
827
- /** The version of the space. It is not part of a config or of its id. A record writes it. */
828
- readonly version: string;
829
- readonly stages: readonly SpaceStage[];
830
- readonly constraints?: readonly SpaceConstraint[];
831
- /** The named strategies of the engine, as points of the space. Old records stay comparable through them. */
832
- readonly named?: Readonly<Record<string, StrategyConfig>>;
833
- /** The spaces of a product space, from `productSpace`. A meta option of a part takes members of that part. */
834
- readonly parts?: readonly StrategySpace[];
835
- }
836
- /** The choice of one stage in a config: an option, its params and, for a meta option, its members. */
837
- export interface StageChoice {
838
- readonly option: string;
839
- /** The values of the active params. A param that is not set gets its default. */
840
- readonly params?: Readonly<Record<string, ParamValue>>;
841
- /** The members of a meta option: configs of the same space, with no meta option. */
842
- readonly members?: readonly StrategyConfig[];
843
- }
844
- /** One point of a strategy space. The value `null` of a stage tells that the config does not use the optional stage. */
845
- export interface StrategyConfig {
846
- /** The `engine` of the space, without its version. */
847
- readonly space: string;
848
- readonly stages: Readonly<Record<string, StageChoice | null>>;
849
- }
850
- /** The count of the grid points of a space. */
851
- export interface SpaceSize {
852
- /** The count of the configs without a meta option. */
853
- readonly base: bigint;
854
- /** The count of the configs with a meta option. The value is `null` when the count is more than `maxMeta`. */
855
- readonly meta: bigint | null;
856
- }
857
- /** The options of `spaceSize`. */
858
- export interface SpaceSizeOptions extends ShapeFilter {
859
- /** The count of the levels of each numeric param, a whole number of 1 or more. */
860
- readonly levels: number;
861
- /** The largest meta count that `spaceSize` gives. The default is `10n ** 18n`. */
862
- readonly maxMeta?: bigint;
863
- }
864
- /** The options of a grid. The grid gives only the configs without a meta option. */
865
- export interface GridOptions extends ShapeFilter {
866
- readonly mode: "grid";
867
- readonly levels: number;
868
- /** The largest count of configs. A larger grid causes a `RangeError`. The default is 100000. */
869
- readonly limit?: number;
870
- }
871
- /** The options of a sample. */
872
- export interface SampleOptions extends ShapeFilter {
873
- readonly mode: "sample";
874
- /** The count of the configs, a whole number of 0 or more. */
875
- readonly n: number;
876
- readonly seed: number;
877
- /** With `skip` (the default), the sample has no meta option. With `sample`, a meta option draws its members from base samples, or one entry of its `pool`. */
878
- readonly meta?: "skip" | "sample";
879
- /** The largest count of option draws. The default is the larger value of 1000 and `100 * n`. */
880
- readonly maxTries?: number;
881
- /**
882
- * How a point keeps the constraints. With `reject` (the default), a point that breaks a constraint draws again.
883
- * With `walk`, a point draws its stages from the largest to the smallest. Each stage draws only from the options that keep the constraints with the stages before it.
884
- * The stages of `fixed` draw before the other stages.
885
- * A space whose constraints reject most draws gets its sample with `walk`. The two values give different configs for one seed.
886
- * A sample of `walk` is not uniform over the valid configs. Each option of the largest stage gets an equal share, whatever count of valid configs it has.
887
- * Thus a mean over this sample is not a mean of the space.
888
- */
889
- readonly draw?: "reject" | "walk";
890
- /**
891
- * The options that each config of the sample has. A key is the name of a stage, and its value is the id of one option of that stage. The other stages draw as before.
892
- * A stage of a product space has the name of its part before its own name, for example `pack.placement`.
893
- * A fixed meta option needs `meta: "sample"`. A meta option of another stage of the same part goes out, because such an option replaces the fixed stage.
894
- * A fixed option that the shape filter removes, or that the constraints forbid, gets a `RangeError` with the reason.
895
- */
896
- readonly fixed?: Readonly<Record<string, string>>;
897
- }
898
- /** The options of `enumerateSpace`. */
899
- export type EnumerateOptions = GridOptions | SampleOptions;
900
- /** This function gives the problem of a value of a param, or `undefined` for a value in its range. The corpus dimensions of `families.ts` use it. */
901
- export declare function paramProblem(param: SpaceParam, value: unknown): string | undefined;
902
- /** This function tells if a param is active for the values of the earlier params. A param without `when` is always active. */
903
- export declare function paramActive(param: SpaceParam, values: Readonly<Record<string, ParamValue>>): boolean;
904
- /** This function gives the stable form of a value of a param: a real number gets 12 significant digits, and `-0` becomes `0`. */
905
- export declare function paramValue(param: SpaceParam, value: ParamValue): ParamValue;
906
- /**
907
- * This function checks one config of a space. It gives one break for each problem. An empty list tells that the config is good.
908
- * The `claim` of a break is the kind of the problem, for example `missing`, `unknown`, `inactive`, `param`, `constraint`, `members` or `depth`.
909
- *
910
- * A member list that is not an entry of the `pool` of its option gives the claim `pool`.
911
- * With `shapes`, an option that does not support a kind of the list gives the claim `shape`. A member of a meta option gets the same check.
912
- * A member of an option with `view: "bounds"` gets the check with the kind `rect`.
913
- */
914
- export declare function checkConfig(space: StrategySpace, config: StrategyConfig, options?: ShapeFilter): ClaimBreak[];
915
- /**
916
- * This function checks a space. It gives one break for each problem. An empty list tells that the space is good.
917
- * It finds duplicate names, empty ranges, defaults out of range, enums without values, bad log scales, unknown names and bad named configs.
918
- * It also checks each entry of a `pool`: the count of its members, each member and a repeated entry.
919
- * The `inputs` of a break of a named config have the name of the config.
920
- */
921
- export declare function checkSpace(space: StrategySpace): ClaimBreak[];
922
- /**
923
- * This function gives the canonical form of a config: each stage of the space, the active params only, the defaults, and stable numbers.
924
- * An unused optional stage is `null`. The members of an unordered meta option are sorted by their `configId`.
925
- * It throws an `Error` for a config with a break of `checkConfig`.
926
- */
927
- export declare function canonicalConfig(space: StrategySpace, config: StrategyConfig): StrategyConfig;
928
- /**
929
- * This function gives the id of a config: the first 16 hex characters of the SHA-256 of `canonicalJson` of `canonicalConfig`.
930
- * Two spellings of one config get one id. The version of the space is not part of the id.
931
- */
932
- export declare function configId(space: StrategySpace, config: StrategyConfig): string;
933
- /**
934
- * This function gives the grid values of one param, in increasing order. An `enum` gives its values, and a `bool` gives `false` and `true`.
935
- * With 1 level, a numeric param gives its default. With k levels, it gives k points from `min` to `max` on its scale and step, without repeats.
936
- */
937
- export declare function paramLevels(param: SpaceParam, levels: number): ParamValue[];
938
- /**
939
- * This function gives the count of the grid points of a space, with `levels` levels for each numeric param.
940
- * It counts only the active params and the combinations that keep the constraints. It gives the meta configs apart.
941
- * A meta option with a `pool` counts each entry of the pool one time.
942
- * With `shapes`, it counts only the options that support each kind of the list.
943
- */
944
- export declare function spaceSize(space: StrategySpace, options: SpaceSizeOptions): SpaceSize;
945
- /**
946
- * This function gives configs of a space, in their canonical form. Each config keeps the constraints. The result is deterministic.
947
- *
948
- * - The mode `grid` gives each grid point without a meta option, in a stable order. Stages, options and values go in the order of the space.
949
- * - The mode `sample` gives `n` configs of a seeded Latin hypercube. The options of a stage get equal strata, and each active param gets its own strata.
950
- * - A sample draws again when a point breaks a constraint. After `maxTries` draws, it throws an `Error`. Two sampled configs can be equal.
951
- * - With `draw: "walk"`, each stage draws only from the options that keep the constraints with the stages before it. The largest stage keeps its equal strata.
952
- * - With `shapes`, only the options that support each kind of the list count. Without `shapes`, the result does not change.
953
- * - A meta option with a `pool` gives only the entries of its pool. With `shapes`, only the entries whose members support each kind count.
954
- * - A sample draws again when a point chooses a meta option without a member list. `spaceSize` gives such an option 0.
955
- * - With `shapes`, a sample throws a `RangeError` when the space has no config for the kinds. The error names the stages without an option and the meta options without members.
956
- * - With `fixed`, each config has the fixed option at each named stage. A fixed option that the space, the shape filter or the constraints do not permit gets a `RangeError` with the reason.
957
- */
958
- export declare function enumerateSpace(space: StrategySpace, options: EnumerateOptions): StrategyConfig[];
959
- /**
960
- * This function gives the shape kinds that a space accepts, in the order of `SHAPE_KINDS`. The value comes from the `supports` of the options.
961
- * A space accepts a kind when it has at least one config without a meta option on that kind.
962
- */
963
- export declare function spaceShapeKinds(space: StrategySpace): ShapeKind[];
964
- /**
965
- * This function joins configs of the parts of a product space into one config of the space `space`.
966
- * The name of each stage gets the prefix `<space of the part>.`. The members of a meta option do not change.
967
- */
968
- export declare function joinConfigs(space: string, parts: readonly StrategyConfig[]): StrategyConfig;
969
- /** This function gives the config of the part `engine` of a joint config. It throws a `RangeError` when no stage has the prefix `<engine>.`. */
970
- export declare function splitConfig(config: StrategyConfig, engine: string): StrategyConfig;
971
- /**
972
- * This function joins two spaces, for example a packer and a router, into the space `name`. The stages of `a` and `b` get the prefixes `<a.engine>.` and `<b.engine>.`.
973
- * The constraints get the same prefixes. The named configs are the pairs `<name of a>+<name of b>`. It throws a `RangeError` when the two engines have the same name.
974
- */
975
- export declare function productSpace(a: StrategySpace, b: StrategySpace, name: string): StrategySpace;
976
- /** The scale of a number option. A sweep on the scale `log` gives values with equal ratios, not with equal differences. */
977
- export type OptionScale = "linear" | "log";
978
- /** The reason why an option has no default value. The strategy reads the absence, the caller sets it, the strategy calculates it, or the default is code. */
979
- export type NoDefaultReason = "unset" | "required" | "derived" | "function";
980
- /** The statement of an option without a default value that JSON can hold. */
981
- export interface NoDefault {
982
- readonly reason: NoDefaultReason;
983
- /** One short sentence that tells what the strategy does without a value. */
984
- readonly describe: string;
985
- }
986
- /** The fields of each option declaration. */
987
- interface OptionBase {
988
- /** One short sentence that tells what the option sets. The site and the documents show it. */
989
- readonly describe: string;
990
- /** This field tells why the option has no default. The catalog of an engine has this field or a `default` on each option. */
991
- readonly noDefault?: NoDefault;
992
- /** The option is active only when an earlier option of the same strategy has one of these values. */
993
- readonly when?: ParamWhen;
994
- }
995
- /**
996
- * The declaration of a number option. The range from `min` to `max` is the range of a control and of a sweep.
997
- * The strategy can take a value outside the range. `checkOptions` reports such a value, and `clampOptions` moves it into the range.
998
- */
999
- export interface NumberOption extends OptionBase {
1000
- /** The type `integer` takes only whole numbers. */
1001
- readonly type: "number" | "integer";
1002
- readonly min: number;
1003
- readonly max: number;
1004
- /** The grain of a control and of a sweep. A value off the step is valid. Without it, the grain is free (or 1 for an integer). */
1005
- readonly step?: number;
1006
- /** The scale of a control and of a sweep. The default is `linear`. The scale `log` needs a `min` above 0. */
1007
- readonly scale?: OptionScale;
1008
- /** These values are valid outside the range. For example, `Infinity` sets no limit. */
1009
- readonly special?: readonly number[];
1010
- /** These values are the notable values of the option: the default and the values of the sweeps of the benchmark. */
1011
- readonly marks?: readonly number[];
1012
- /**
1013
- * These values are the only valid values of the option, in the order of a control. A control shows them as a list, and a sweep gives them.
1014
- * Without them, each value on the range is valid.
1015
- */
1016
- readonly values?: readonly number[];
1017
- /** The strategy uses this value when the caller and `defaults` give no value. */
1018
- readonly default?: number;
1019
- }
1020
- /** The declaration of a boolean option. */
1021
- export interface BooleanOption extends OptionBase {
1022
- readonly type: "boolean";
1023
- /** The strategy uses this value when the caller and `defaults` give no value. */
1024
- readonly default?: boolean;
1025
- }
1026
- /** The declaration of an option with a fixed list of string values. */
1027
- export interface EnumOption<V extends string = string> extends OptionBase {
1028
- readonly type: "enum";
1029
- /** The values of the option, in the order of a control. */
1030
- readonly values: readonly V[];
1031
- /**
1032
- * With `function`, the option also takes a rule of the caller in place of a name. A control sets only the names.
1033
- * Each name is a known rule of the strategy.
1034
- */
1035
- readonly custom?: "function";
1036
- /** The strategy uses this value when the caller and `defaults` give no value. */
1037
- readonly default?: V;
1038
- }
1039
- /**
1040
- * The declaration of an option that a control or a sweep cannot set from a range.
1041
- * The type `function` is a rule, `strategy` is a strategy of the step `step`, `list` is an array and `object` is any other object.
1042
- */
1043
- export interface ValueOption<V = unknown, S extends string = string> extends OptionBase {
1044
- readonly type: "function" | "strategy" | "list" | "object";
1045
- /** The step of the strategy, for the type `strategy`. A control lists the strategies of this step of a registry. */
1046
- readonly step?: S;
1047
- /** The kinds of strategy that the option takes, for the type `strategy`. Without them, the option takes each kind. */
1048
- readonly kinds?: readonly string[];
1049
- /** The key of the option that holds the options of the chosen strategy, for the type `strategy`. */
1050
- readonly optionsKey?: string;
1051
- /** The value `true` lets a value hold its options: a key, or an object with the fields `strategy`, `options` and `id`. This field is for the type `strategy`, and also for an item of a list. */
1052
- readonly inlineOptions?: boolean;
1053
- /** The value `false` leaves out the opt-in strategies, because the option finds only the default set of the engine. This field is for the type `strategy`. */
1054
- readonly optIn?: boolean;
1055
- /** For each dimension of `supports`, the value that a chosen strategy must take. This field is for the type `strategy`, and also for an item of a list. */
1056
- readonly needs?: Readonly<Record<string, string>>;
1057
- /** The declaration of each item, for the type `list`. */
1058
- readonly of?: ListItem<S>;
1059
- /** The smallest number of items, for the type `list`. */
1060
- readonly min?: number;
1061
- /** The largest number of items, for the type `list`. */
1062
- readonly max?: number;
1063
- /** The strategy uses this value when the caller and `defaults` give no value. */
1064
- readonly default?: V;
1065
- }
1066
- /** The declaration of one option of any type. */
1067
- export type AnyOption<S extends string = string> = NumberOption | BooleanOption | EnumOption | ValueOption<unknown, S>;
1068
- /** This type removes the fields of a whole option from a declaration. */
1069
- type ItemOf<T> = T extends unknown ? Omit<T, "describe" | "default" | "noDefault" | "when"> : never;
1070
- /** The declaration of one item of a list option: an option without its text, its default and its condition. */
1071
- export type ListItem<S extends string = string> = ItemOf<AnyOption<S>>;
1072
- /**
1073
- * The declaration that fits the type of an option value: numbers, booleans, string unions or other values.
1074
- * A union of strings and other values takes an enum of the strings or a value declaration. An example is a rule or the name of a rule.
1075
- * A plain `string` takes an enum or a value declaration, because the value can be the key of a strategy.
1076
- */
1077
- export type OptionDeclaration<V, S extends string = string> = [V] extends [number] ? NumberOption : [V] extends [boolean] ? BooleanOption : [V] extends [string] ? string extends V ? EnumOption<V> | ValueOption<V, S> : EnumOption<V> : [Extract<V, string>] extends [never] ? ValueOption<V, S> : EnumOption<Extract<V, string>> | ValueOption<V, S>;
1078
- /** The declarations of the options of a strategy. The schema has one declaration for each key of the options type, and no other key. */
1079
- export type OptionSchema<O, S extends string = string> = { readonly [K in keyof O]-?: OptionDeclaration<NonNullable<O[K]>, S>; };
1080
- /** The fields of a strategy that the functions of this module read. An engine can add other fields. */
1081
- export interface DeclaredStrategy<O extends object = object, S extends string = string> {
1082
- /** The name of the strategy in a message. */
1083
- readonly name: string;
1084
- readonly defaults: O;
1085
- readonly schema?: OptionSchema<O, S>;
1086
- }
1087
- /** One problem of an option value against its declaration. */
1088
- export interface OptionIssue {
1089
- /** The key of the option. */
1090
- readonly key: string;
1091
- readonly value: unknown;
1092
- /** The kind of the problem: no declaration, the wrong type, out of the range, not a whole number or not one of the values. */
1093
- readonly problem: "unknown" | "type" | "range" | "integer" | "value";
1094
- /** One sentence that tells the problem. */
1095
- readonly message: string;
1096
- }
1097
- /** One setting of a sweep: a name for the rows of a table, and the options of the strategy. */
1098
- export interface OptionSetting<O extends object> {
1099
- /** The key and the value of each option of the setting, for example `stretch 1.5`. */
1100
- readonly name: string;
1101
- readonly options: Partial<O>;
1102
- }
1103
- /** The options of `sweepValues`, `sweepOf` and `sweepGrid`. */
1104
- export interface SweepOptions {
1105
- /**
1106
- * The number of values on the range of a number option. Without it, the sweep gives the `marks` of the declaration.
1107
- * A declaration without `marks` gets 5 values.
1108
- */
1109
- readonly count?: number;
1110
- /** With `true`, a sweep of a number option on the range also gives the `special` values. The default is `false`. */
1111
- readonly special?: boolean;
1112
- }
1113
- /** This function gives the declared options of a strategy, in the order of its schema, with the effective default of each one. */
1114
- export declare function listOptions<O extends object, S extends string = string>(strategy: DeclaredStrategy<O, S>): {
1115
- readonly key: keyof O & string;
1116
- readonly declaration: AnyOption<S>;
1117
- readonly value: unknown;
1118
- }[];
1119
- /**
1120
- * This function gives the effective default of each declared option: the value of `defaults`, else the `default` of the declaration.
1121
- * An option without either value stays out. The strategy gives the same output with this object as with no options.
1122
- */
1123
- export declare function optionDefaults<O extends object, S extends string = string>(strategy: DeclaredStrategy<O, S>): Partial<O>;
1124
- /** This function gives the problem of one value against its declaration, or `undefined` when the value fits. */
1125
- export declare function optionIssue(key: string, value: unknown, d: AnyOption): OptionIssue | undefined;
1126
- /**
1127
- * This function examines option values against the schema of a strategy. It gives one issue for each key without a declaration.
1128
- * It also gives one issue for each value of the wrong type, out of the range, not whole or not one of the values.
1129
- * It changes no value.
1130
- * A strategy without a schema gives no issue.
1131
- */
1132
- export declare function checkOptions<O extends object>(strategy: DeclaredStrategy<O>, options: Partial<O>): OptionIssue[];
1133
- /**
1134
- * This function moves each number option into the range of its declaration, for a control. An integer option gets the nearest whole number.
1135
- * An option with a list of `values` gets the nearest value of the list. A special value stays. The function keeps each other value as it is. `checkOptions` reports the values that this function cannot correct.
1136
- */
1137
- export declare function clampOptions<O extends object>(strategy: DeclaredStrategy<O>, options: Partial<O>): Partial<O>;
1138
791
  /**
1139
- * This function gives the values of a sweep of one option declaration.
1140
- * A number option gives its `marks`, or its list of `values`, or `count` values on its range and its scale. A boolean gives `false` and `true`. An enum gives its values.
1141
- * An option of another type has no sweep, so the function throws an error.
792
+ * This function checks a space with `checkSpace` of `@mark1russell7/strategy-space`.
793
+ * Without `kinds`, a shape kind of a `supports` that is not in `SHAPE_KIND_IDS` gives the claim `shape`.
1142
794
  */
1143
- export declare function sweepValues(declaration: AnyOption, options?: SweepOptions): unknown[];
795
+ export declare function checkSpace(space: StrategySpace$1, kindOptions?: KindOptions$1): ClaimBreak[];
1144
796
  /**
1145
- * This function gives the settings of a sweep of one option of a strategy, from its declaration only.
1146
- * The name of each setting is the key and the value, for example `stretch 1.5`.
797
+ * This function counts the grid points of a space with `spaceSize` of `@mark1russell7/strategy-space`.
798
+ * Without `kinds`, a shape kind that is not in `SHAPE_KIND_IDS` causes an error.
1147
799
  */
1148
- export declare function sweepOf<O extends object>(strategy: DeclaredStrategy<O>, key: keyof O & string, options?: SweepOptions): OptionSetting<O>[];
800
+ export declare function spaceSize(space: StrategySpace$1, options: SpaceSizeOptions$1): SpaceSize$1;
1149
801
  /**
1150
- * This function gives the settings of a grid of options: each combination of the values of the sweeps of the keys.
1151
- * The name of a setting joins the names of its values with commas, in the order of the keys.
802
+ * This function gives the configs of a grid or a sample with `enumerateSpace` of `@mark1russell7/strategy-space`.
803
+ * Without `kinds`, a shape kind that is not in `SHAPE_KIND_IDS` causes an error.
1152
804
  */
1153
- export declare function sweepGrid<O extends object>(strategy: DeclaredStrategy<O>, keys: readonly (keyof O & string)[], options?: SweepOptions): OptionSetting<O>[];
1154
- /** This function gives the problems of one declaration: a bad range, a bad step, or marks and a default that do not fit. */
1155
- export declare function declarationIssues(key: string, d: AnyOption): string[];
805
+ export declare function enumerateSpace(space: StrategySpace$1, options: EnumerateOptions$1): StrategyConfig$1[];
1156
806
  /**
1157
- * This function examines the schema of a strategy. It gives one message for each option of `defaults` without a declaration.
1158
- * It also gives one message for each bad declaration, and for each value of `defaults` that does not fit its declaration.
1159
- * A good schema gives an empty list.
807
+ * This function gives the shape kinds that a space accepts, with `spaceShapeKinds` of `@mark1russell7/strategy-space`.
808
+ * Without `kinds`, it examines the kinds of `SHAPE_KIND_IDS`, in their order.
1160
809
  */
1161
- export declare function checkSchema(strategy: DeclaredStrategy): string[];
810
+ export declare function spaceShapeKinds(space: StrategySpace$1, options?: KindOptions$1): string[];
1162
811
  /** The newest schema of a strategy catalog. A new field is a new version of the schema. */
1163
812
  export declare const STRATEGY_CATALOG_SCHEMA = "strategy-catalog/3";
1164
813
  /** The schemas that `parseStrategyCatalog` reads, oldest first. Schema 2 adds the field `output` of an entry, and schema 3 adds the field `fingerprint`. */
@@ -1774,5 +1423,5 @@ export declare const CIRCLE_SCATTERED: CorpusFamily<LayoutInput>;
1774
1423
  * The steps `container`, `obstacles` and `boxes` each have a stream of `stepRandom`. Each value is a whole number, so the family is `exact`.
1775
1424
  */
1776
1425
  export declare const RECT_SCATTERED: CorpusFamily<LayoutInput>;
1777
- export { ClaimBreak, CorpusEntry, CorpusSplit, DEFAULT_SHAPES, DeclaredClaim, Declares, Direction, FAMILY_ANY_KIND, FamilyBy, FamilyCell, Item, JOINT_MEASURES, JOINT_MOVED_MIN, JointMeasureId, LayoutBox, LayoutCell, LayoutContainer, LayoutEdge, LayoutGenerator, LayoutInput, Margin, MeasureSpec, Obstacle, PackInput, PackInputOptions, PackLink, PairGap, Point, Port, Rect, Region, RuleLevel, SHAPE_KINDS, SHAPE_KIND_IDS, SIDES, SPLIT_SCHEMA, ShapeBound, ShapeCheck, ShapeGeometry, ShapeInput, ShapeKind, ShapeKindSpec, ShapeLevel, ShapeLimit, ShapeSupport, Side, Sides, SizedRect, SplitCorpus, SplitFold, Verdict, boundsOf, boxArea, canonicalInput, checkDeclared, checkShapes, checkSplit, compareMeasure, corpusHashOf, crossingPoint, declaredClaimOf, declaredCounts, dropIndex, familyOf, grow, inputShapeLevel, isShapeKind, itemShapeOf, leaveOneSeedOut, marginSides, minEffectOf, overlapOf, packLinks, pointSegmentDistance, portPoint, regionArea, ruleLevel, segmentsCross, shapeKindOf, shapeKindProblem, shapeKindsOf, shapeLevel, shapeSupportProblems, shapesOf, splitFileName, splitFolds, toPackInput, toRect, toSizedRect, translate };
1426
+ 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, 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, canonicalConfig, canonicalInput, checkConfig, checkDeclared, checkOptions, checkSchema, checkShapes, checkSplit, clampOptions, compareMeasure, configId, corpusHashOf, crossingPoint, declarationIssues, declaredClaimOf, declaredCounts, dropIndex, familyOf, grow, inputShapeLevel, isShapeKind, itemShapeOf, joinConfigs, leaveOneSeedOut, listOptions, marginSides, minEffectOf, optionDefaults, optionIssue, overlapOf, packLinks, paramActive, paramLevels, paramProblem, paramValue, pointSegmentDistance, portPoint, productSpace, regionArea, ruleLevel, segmentsCross, shapeKindOf, shapeKindProblem, shapeKindsOf, shapeLevel, shapeSupportProblems, shapesOf, splitConfig, splitFileName, splitFolds, sweepGrid, sweepOf, sweepValues, toPackInput, toRect, toSizedRect, translate };
1778
1427
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/tolerance.ts","../src/output.ts","../src/record.ts","../src/rules.ts","../src/turn.ts","../src/balance.ts","../src/strategy.ts","../src/random.ts","../src/edges.ts","../src/hash.ts","../src/portfolio.ts","../src/strategy-space.ts","../src/strategy-options.ts","../src/strateg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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/tolerance.ts","../src/output.ts","../src/record.ts","../src/rules.ts","../src/turn.ts","../src/balance.ts","../src/frame.ts","../src/strategy.ts","../src/random.ts","../src/edges.ts","../src/hash.ts","../src/portfolio.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;;iBC5Bf;WACN;WACA;WACA;WACA;;;iBAIM;WACN;WACA;WACA,WAAW,SAAS;;;iBAId;WACN,qBAAqB;;WAErB;;WAEA;aAAiB;aAAoB;;;WAErC;aAA2B;aAAqB;aAAoB;;WACpE,iBAAiB;;;;;;;wBAQZ,UAAU,OAAO,aAAa,QAAQ,aAAa;;YC/BvD;;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;;WAEA;;;;;;WAMA;;WAEA;;WAEA;;WAEA;;;;;WAKA;;WAEA,MAAM;;WAEN;WACA;;;;;;WAMA,UAAU;;;;;;iBAOJ;;WAEN,MAAM,SAAS;;WAEf,IAAI,SAAS;;WAEb,cAAc,SAAS;;WAEvB;;;;;;YAOC,WAAW,SAAS;;iBAGf;WACN;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;;YAIC,WAAW,KAAK;;;;;wB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