@thegraid/hexlib 1.3.5 → 1.3.7

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/dist/table.d.ts CHANGED
@@ -27,12 +27,19 @@ export interface DragContext {
27
27
  info: DragInfo;
28
28
  tile?: Tile;
29
29
  nLegal: number;
30
- gameState?: GameState;
30
+ gameState: GameState;
31
31
  phase?: string;
32
32
  }
33
33
  declare class TextLog extends NamedContainer {
34
34
  size: number;
35
35
  lead: number;
36
+ /**
37
+ *
38
+ * @param Aname
39
+ * @param nlines
40
+ * @param size fontSize [TP.hexRad/2]
41
+ * @param lead between lines [3]
42
+ */
36
43
  constructor(Aname: string, nlines?: number, size?: number, lead?: number);
37
44
  lines: Text[];
38
45
  lastLine: string;
@@ -59,6 +66,7 @@ export declare class Table extends Dispatcher {
59
66
  netGUI: ParamGUI;
60
67
  /** initial visibility for toggleText */
61
68
  initialVis: boolean;
69
+ sr(v?: number): number;
62
70
  undoCont: Container;
63
71
  undoShape: Shape;
64
72
  skipShape: Shape;
@@ -173,12 +181,12 @@ export declare class Table extends Dispatcher {
173
181
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
174
182
  _tile: import("./tile").MapTile | undefined;
175
183
  tile: Tile | undefined;
176
- _meep: import("./meeple").Meeple | undefined;
177
- meep: import("./meeple").Meeple | undefined;
178
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
184
+ _meep: Tile | undefined;
185
+ meep: Tile | undefined;
186
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
179
187
  toString: (color?: string) => string;
180
188
  rcspString: (color?: string) => string;
181
- setUnit: (unit: Tile, isMeep?: boolean) => void;
189
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
182
190
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
183
191
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
184
192
  x: number;
@@ -210,10 +218,10 @@ export declare class Table extends Dispatcher {
210
218
  readonly map: HexM<Hex>;
211
219
  readonly row: number;
212
220
  readonly col: number;
213
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
214
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
221
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
222
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
215
223
  readonly linkDirs: import("./hex-intfs").HexDir[];
216
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
224
+ readonly linkHexes: import("./hex").Hex2[];
217
225
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
218
226
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
219
227
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -238,12 +246,12 @@ export declare class Table extends Dispatcher {
238
246
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
239
247
  _tile: import("./tile").MapTile | undefined;
240
248
  tile: Tile | undefined;
241
- _meep: import("./meeple").Meeple | undefined;
242
- meep: import("./meeple").Meeple | undefined;
243
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
249
+ _meep: Tile | undefined;
250
+ meep: Tile | undefined;
251
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
244
252
  toString: (color?: string) => string;
245
253
  rcspString: (color?: string) => string;
246
- setUnit: (unit: Tile, isMeep?: boolean) => void;
254
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
247
255
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
248
256
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
249
257
  x: number;
@@ -275,10 +283,10 @@ export declare class Table extends Dispatcher {
275
283
  readonly map: HexM<Hex>;
276
284
  readonly row: number;
277
285
  readonly col: number;
278
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
279
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
286
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
287
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
280
288
  readonly linkDirs: import("./hex-intfs").HexDir[];
281
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
289
+ readonly linkHexes: import("./hex").Hex2[];
282
290
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
283
291
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
284
292
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -335,12 +343,12 @@ export declare class Table extends Dispatcher {
335
343
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
336
344
  _tile: import("./tile").MapTile | undefined;
337
345
  tile: Tile | undefined;
338
- _meep: import("./meeple").Meeple | undefined;
339
- meep: import("./meeple").Meeple | undefined;
340
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
346
+ _meep: Tile | undefined;
347
+ meep: Tile | undefined;
348
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
341
349
  toString: (color?: string) => string;
342
350
  rcspString: (color?: string) => string;
343
- setUnit: (unit: Tile, isMeep?: boolean) => void;
351
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
344
352
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
345
353
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
346
354
  x: number;
@@ -372,10 +380,10 @@ export declare class Table extends Dispatcher {
372
380
  readonly map: HexM<Hex>;
373
381
  readonly row: number;
374
382
  readonly col: number;
375
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
376
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
383
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
384
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
377
385
  readonly linkDirs: import("./hex-intfs").HexDir[];
378
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
386
+ readonly linkHexes: import("./hex").Hex2[];
379
387
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
380
388
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
381
389
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -400,12 +408,12 @@ export declare class Table extends Dispatcher {
400
408
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
401
409
  _tile: import("./tile").MapTile | undefined;
402
410
  tile: Tile | undefined;
403
- _meep: import("./meeple").Meeple | undefined;
404
- meep: import("./meeple").Meeple | undefined;
405
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
411
+ _meep: Tile | undefined;
412
+ meep: Tile | undefined;
413
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
406
414
  toString: (color?: string) => string;
407
415
  rcspString: (color?: string) => string;
408
- setUnit: (unit: Tile, isMeep?: boolean) => void;
416
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
409
417
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
410
418
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
411
419
  x: number;
@@ -437,10 +445,10 @@ export declare class Table extends Dispatcher {
437
445
  readonly map: HexM<Hex>;
438
446
  readonly row: number;
439
447
  readonly col: number;
440
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
441
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
448
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
449
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
442
450
  readonly linkDirs: import("./hex-intfs").HexDir[];
443
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
451
+ readonly linkHexes: import("./hex").Hex2[];
444
452
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
445
453
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
446
454
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -452,12 +460,12 @@ export declare class Table extends Dispatcher {
452
460
  };
453
461
  /**
454
462
  * all number in units of dxdc or dydr
455
- * @param x0 frame left; relative to scaleCont (offset from bgRect to hexCont)
456
- * @param y0 frame top; relative to scaleCont
457
- * @param w0 pad width; width of bgRect, beyond hexCont, centered on hexCont
458
- * @param h0 pad height; height of bgRect, beyond hexCont, centered on hexCont
459
- * @param dw extend bgRect to the right, not centered
460
- * @param dh extend bgRect to the bottom, not centered
463
+ * @param x0 frame left [-1]; relative to scaleCont (offset from bgRect to hexCont)
464
+ * @param y0 frame top [.5]; relative to scaleCont
465
+ * @param w0 pad width [10]; width of bgRect, beyond hexCont, centered on hexCont
466
+ * @param h0 pad height [1]; height of bgRect, beyond hexCont, centered on hexCont
467
+ * @param dw extend bgRect to the right, not centered [0]
468
+ * @param dh extend bgRect to the bottom, not centered [0]
461
469
  * @returns XYWH of a rectangle around mapCont hexMap
462
470
  */
463
471
  bgXYWH(x0?: number, y0?: number, w0?: number, h0?: number, dw?: number, dh?: number): {
@@ -499,7 +507,7 @@ export declare class Table extends Dispatcher {
499
507
  * makeParamGUI2(parent) -> gui2.ymax
500
508
  */
501
509
  makeGUIs(scale?: number, cx?: number, cy?: number, dy?: number): void;
502
- /** height allocated for PlayerPanel scaled in hex height [map.rows/3-.2] */
510
+ /** height allocated for PlayerPanel scaled in row height [map.rows/3-.2] */
503
511
  get panelHeight(): number;
504
512
  /** width of PlayerPanel, scaled in hex width [4.5] */
505
513
  get panelWidth(): number;
@@ -615,12 +623,12 @@ export declare class Table extends Dispatcher {
615
623
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
616
624
  _tile: import("./tile").MapTile | undefined;
617
625
  tile: Tile | undefined;
618
- _meep: import("./meeple").Meeple | undefined;
619
- meep: import("./meeple").Meeple | undefined;
620
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
626
+ _meep: Tile | undefined;
627
+ meep: Tile | undefined;
628
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
621
629
  toString: (color?: string) => string;
622
630
  rcspString: (color?: string) => string;
623
- setUnit: (unit: Tile, isMeep?: boolean) => void;
631
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
624
632
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
625
633
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
626
634
  x: number;
@@ -652,10 +660,10 @@ export declare class Table extends Dispatcher {
652
660
  readonly map: HexM<Hex>;
653
661
  readonly row: number;
654
662
  readonly col: number;
655
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
656
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
663
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
664
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
657
665
  readonly linkDirs: import("./hex-intfs").HexDir[];
658
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
666
+ readonly linkHexes: import("./hex").Hex2[];
659
667
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
660
668
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
661
669
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -680,12 +688,12 @@ export declare class Table extends Dispatcher {
680
688
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
681
689
  _tile: import("./tile").MapTile | undefined;
682
690
  tile: Tile | undefined;
683
- _meep: import("./meeple").Meeple | undefined;
684
- meep: import("./meeple").Meeple | undefined;
685
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
691
+ _meep: Tile | undefined;
692
+ meep: Tile | undefined;
693
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
686
694
  toString: (color?: string) => string;
687
695
  rcspString: (color?: string) => string;
688
- setUnit: (unit: Tile, isMeep?: boolean) => void;
696
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
689
697
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
690
698
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
691
699
  x: number;
@@ -717,10 +725,10 @@ export declare class Table extends Dispatcher {
717
725
  readonly map: HexM<Hex>;
718
726
  readonly row: number;
719
727
  readonly col: number;
720
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
721
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
728
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
729
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
722
730
  readonly linkDirs: import("./hex-intfs").HexDir[];
723
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
731
+ readonly linkHexes: import("./hex").Hex2[];
724
732
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
725
733
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
726
734
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -730,10 +738,6 @@ export declare class Table extends Dispatcher {
730
738
  lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
731
739
  radialDist: (hex: Hex) => number;
732
740
  }[];
733
- /** @deprecated use UtilButton (change cgf on RectShape) [legacy from Ankh] */
734
- makeCircleButton(color?: string, rad?: number, c?: string, fs?: number): Container;
735
- /** @deprecated use UtilButton [from Ankh] */
736
- makeSquareButton(color: string | undefined, xywh: XYWH, c?: string, fs?: number): Container;
737
741
  /**
738
742
  * A newHex2 with the 'Recycle' image on top. [legacy from hextowns]
739
743
  *
@@ -790,12 +794,12 @@ export declare class Table extends Dispatcher {
790
794
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
791
795
  _tile: import("./tile").MapTile | undefined;
792
796
  tile: Tile | undefined;
793
- _meep: import("./meeple").Meeple | undefined;
794
- meep: import("./meeple").Meeple | undefined;
795
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
797
+ _meep: Tile | undefined;
798
+ meep: Tile | undefined;
799
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
796
800
  toString: (color?: string) => string;
797
801
  rcspString: (color?: string) => string;
798
- setUnit: (unit: Tile, isMeep?: boolean) => void;
802
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
799
803
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
800
804
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
801
805
  x: number;
@@ -827,10 +831,10 @@ export declare class Table extends Dispatcher {
827
831
  readonly map: HexM<Hex>;
828
832
  readonly row: number;
829
833
  readonly col: number;
830
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
831
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
834
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
835
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
832
836
  readonly linkDirs: import("./hex-intfs").HexDir[];
833
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
837
+ readonly linkHexes: import("./hex").Hex2[];
834
838
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
835
839
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
836
840
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -855,12 +859,12 @@ export declare class Table extends Dispatcher {
855
859
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
856
860
  _tile: import("./tile").MapTile | undefined;
857
861
  tile: Tile | undefined;
858
- _meep: import("./meeple").Meeple | undefined;
859
- meep: import("./meeple").Meeple | undefined;
860
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
862
+ _meep: Tile | undefined;
863
+ meep: Tile | undefined;
864
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
861
865
  toString: (color?: string) => string;
862
866
  rcspString: (color?: string) => string;
863
- setUnit: (unit: Tile, isMeep?: boolean) => void;
867
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
864
868
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
865
869
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
866
870
  x: number;
@@ -892,10 +896,10 @@ export declare class Table extends Dispatcher {
892
896
  readonly map: HexM<Hex>;
893
897
  readonly row: number;
894
898
  readonly col: number;
895
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
896
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
899
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
900
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
897
901
  readonly linkDirs: import("./hex-intfs").HexDir[];
898
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
902
+ readonly linkHexes: import("./hex").Hex2[];
899
903
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
900
904
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
901
905
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -907,9 +911,9 @@ export declare class Table extends Dispatcher {
907
911
  };
908
912
  /** Params that affect the rules of the game & board
909
913
  *
910
- * ParamGUI --> board & rules [under stats panel]
911
- * ParamGUI2 --> AI Player [left of ParamGUI]
912
- * NetworkGUI --> network [below ParamGUI2]
914
+ * ParamGUI --> board & rules []
915
+ * ParamGUI2 --> AI Player []
916
+ * NetworkGUI --> network []
913
917
  */
914
918
  makeParamGUI(parent: Container, x?: number, y?: number): ParamGUI;
915
919
  /** configures the AI player */
@@ -922,14 +926,18 @@ export declare class Table extends Dispatcher {
922
926
  doneButton: UtilButton;
923
927
  doneClicked: (evt?: any) => void;
924
928
  /**
925
- * May be contained or placed with ActionSelection buttons.
929
+ * add DoneButton to the given panel/Container.
930
+ *
931
+ * May be contained or placed with ActionSelection buttons [ankh].
932
+ *
933
+ * textColor is BLACK or WHITE to contrast with paint(color)
926
934
  * @param cont [scaleCont] a Container to hold the DoneButton
927
935
  * @param cx [0] offset in Container (to 'center', 'left', 'right' per align)
928
936
  * @param cy [0] offset in Container (to top of text box)
929
- * @param align ['center'] left or right
930
- * @returns actionCont
937
+ * @param align ['center'] 'left' or 'right' for textAlign
938
+ * @returns this.doneButton
931
939
  */
932
- addDoneButton(cont?: Container, cx?: number, cy?: number, align?: string): Container;
940
+ addDoneButton(cont?: Container, cx?: number, cy?: number, align?: string): UtilButton;
933
941
  /** show player player score on table */
934
942
  setPlayerScore(plyr: Player, score?: number, rank?: number): void;
935
943
  /** update table when a new Game is started.
@@ -990,12 +998,12 @@ export declare class Table extends Dispatcher {
990
998
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
991
999
  _tile: import("./tile").MapTile | undefined;
992
1000
  tile: Tile | undefined;
993
- _meep: import("./meeple").Meeple | undefined;
994
- meep: import("./meeple").Meeple | undefined;
995
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1001
+ _meep: Tile | undefined;
1002
+ meep: Tile | undefined;
1003
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
996
1004
  toString: (color?: string) => string;
997
1005
  rcspString: (color?: string) => string;
998
- setUnit: (unit: Tile, isMeep?: boolean) => void;
1006
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
999
1007
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1000
1008
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1001
1009
  x: number;
@@ -1027,10 +1035,10 @@ export declare class Table extends Dispatcher {
1027
1035
  readonly map: HexM<Hex>;
1028
1036
  readonly row: number;
1029
1037
  readonly col: number;
1030
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1031
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1038
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1039
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1032
1040
  readonly linkDirs: import("./hex-intfs").HexDir[];
1033
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1041
+ readonly linkHexes: import("./hex").Hex2[];
1034
1042
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1035
1043
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1036
1044
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -1055,12 +1063,12 @@ export declare class Table extends Dispatcher {
1055
1063
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1056
1064
  _tile: import("./tile").MapTile | undefined;
1057
1065
  tile: Tile | undefined;
1058
- _meep: import("./meeple").Meeple | undefined;
1059
- meep: import("./meeple").Meeple | undefined;
1060
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1066
+ _meep: Tile | undefined;
1067
+ meep: Tile | undefined;
1068
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
1061
1069
  toString: (color?: string) => string;
1062
1070
  rcspString: (color?: string) => string;
1063
- setUnit: (unit: Tile, isMeep?: boolean) => void;
1071
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1064
1072
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1065
1073
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1066
1074
  x: number;
@@ -1092,10 +1100,10 @@ export declare class Table extends Dispatcher {
1092
1100
  readonly map: HexM<Hex>;
1093
1101
  readonly row: number;
1094
1102
  readonly col: number;
1095
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1096
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1103
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1104
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1097
1105
  readonly linkDirs: import("./hex-intfs").HexDir[];
1098
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1106
+ readonly linkHexes: import("./hex").Hex2[];
1099
1107
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1100
1108
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1101
1109
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -1163,12 +1171,12 @@ export declare class Table extends Dispatcher {
1163
1171
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1164
1172
  _tile: import("./tile").MapTile | undefined;
1165
1173
  tile: Tile | undefined;
1166
- _meep: import("./meeple").Meeple | undefined;
1167
- meep: import("./meeple").Meeple | undefined;
1168
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1174
+ _meep: Tile | undefined;
1175
+ meep: Tile | undefined;
1176
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
1169
1177
  toString: (color?: string) => string;
1170
1178
  rcspString: (color?: string) => string;
1171
- setUnit: (unit: Tile, isMeep?: boolean) => void;
1179
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1172
1180
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1173
1181
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1174
1182
  x: number;
@@ -1200,10 +1208,10 @@ export declare class Table extends Dispatcher {
1200
1208
  readonly map: HexM<Hex>;
1201
1209
  readonly row: number;
1202
1210
  readonly col: number;
1203
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1204
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1211
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1212
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1205
1213
  readonly linkDirs: import("./hex-intfs").HexDir[];
1206
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1214
+ readonly linkHexes: import("./hex").Hex2[];
1207
1215
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1208
1216
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1209
1217
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -1228,12 +1236,12 @@ export declare class Table extends Dispatcher {
1228
1236
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1229
1237
  _tile: import("./tile").MapTile | undefined;
1230
1238
  tile: Tile | undefined;
1231
- _meep: import("./meeple").Meeple | undefined;
1232
- meep: import("./meeple").Meeple | undefined;
1233
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1239
+ _meep: Tile | undefined;
1240
+ meep: Tile | undefined;
1241
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
1234
1242
  toString: (color?: string) => string;
1235
1243
  rcspString: (color?: string) => string;
1236
- setUnit: (unit: Tile, isMeep?: boolean) => void;
1244
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1237
1245
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1238
1246
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1239
1247
  x: number;
@@ -1265,10 +1273,10 @@ export declare class Table extends Dispatcher {
1265
1273
  readonly map: HexM<Hex>;
1266
1274
  readonly row: number;
1267
1275
  readonly col: number;
1268
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1269
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1276
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1277
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1270
1278
  readonly linkDirs: import("./hex-intfs").HexDir[];
1271
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1279
+ readonly linkHexes: import("./hex").Hex2[];
1272
1280
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1273
1281
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1274
1282
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -1352,12 +1360,12 @@ export declare class Table extends Dispatcher {
1352
1360
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1353
1361
  _tile: import("./tile").MapTile | undefined;
1354
1362
  tile: Tile | undefined;
1355
- _meep: import("./meeple").Meeple | undefined;
1356
- meep: import("./meeple").Meeple | undefined;
1357
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1363
+ _meep: Tile | undefined;
1364
+ meep: Tile | undefined;
1365
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
1358
1366
  toString: (color?: string) => string;
1359
1367
  rcspString: (color?: string) => string;
1360
- setUnit: (unit: Tile, isMeep?: boolean) => void;
1368
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1361
1369
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1362
1370
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1363
1371
  x: number;
@@ -1389,10 +1397,10 @@ export declare class Table extends Dispatcher {
1389
1397
  readonly map: HexM<Hex>;
1390
1398
  readonly row: number;
1391
1399
  readonly col: number;
1392
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1393
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1400
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1401
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1394
1402
  readonly linkDirs: import("./hex-intfs").HexDir[];
1395
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1403
+ readonly linkHexes: import("./hex").Hex2[];
1396
1404
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1397
1405
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1398
1406
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -1417,12 +1425,12 @@ export declare class Table extends Dispatcher {
1417
1425
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1418
1426
  _tile: import("./tile").MapTile | undefined;
1419
1427
  tile: Tile | undefined;
1420
- _meep: import("./meeple").Meeple | undefined;
1421
- meep: import("./meeple").Meeple | undefined;
1422
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1428
+ _meep: Tile | undefined;
1429
+ meep: Tile | undefined;
1430
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
1423
1431
  toString: (color?: string) => string;
1424
1432
  rcspString: (color?: string) => string;
1425
- setUnit: (unit: Tile, isMeep?: boolean) => void;
1433
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1426
1434
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1427
1435
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1428
1436
  x: number;
@@ -1454,10 +1462,10 @@ export declare class Table extends Dispatcher {
1454
1462
  readonly map: HexM<Hex>;
1455
1463
  readonly row: number;
1456
1464
  readonly col: number;
1457
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1458
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1465
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1466
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1459
1467
  readonly linkDirs: import("./hex-intfs").HexDir[];
1460
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1468
+ readonly linkHexes: import("./hex").Hex2[];
1461
1469
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1462
1470
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1463
1471
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -1522,12 +1530,12 @@ export declare class Table extends Dispatcher {
1522
1530
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1523
1531
  _tile: import("./tile").MapTile | undefined;
1524
1532
  tile: Tile | undefined;
1525
- _meep: import("./meeple").Meeple | undefined;
1526
- meep: import("./meeple").Meeple | undefined;
1527
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1533
+ _meep: Tile | undefined;
1534
+ meep: Tile | undefined;
1535
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
1528
1536
  toString: (color?: string) => string;
1529
1537
  rcspString: (color?: string) => string;
1530
- setUnit: (unit: Tile, isMeep?: boolean) => void;
1538
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1531
1539
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1532
1540
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1533
1541
  x: number;
@@ -1559,10 +1567,10 @@ export declare class Table extends Dispatcher {
1559
1567
  readonly map: HexM<Hex>;
1560
1568
  readonly row: number;
1561
1569
  readonly col: number;
1562
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1563
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1570
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1571
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1564
1572
  readonly linkDirs: import("./hex-intfs").HexDir[];
1565
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1573
+ readonly linkHexes: import("./hex").Hex2[];
1566
1574
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1567
1575
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1568
1576
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;
@@ -1587,12 +1595,12 @@ export declare class Table extends Dispatcher {
1587
1595
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1588
1596
  _tile: import("./tile").MapTile | undefined;
1589
1597
  tile: Tile | undefined;
1590
- _meep: import("./meeple").Meeple | undefined;
1591
- meep: import("./meeple").Meeple | undefined;
1592
- readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
1598
+ _meep: Tile | undefined;
1599
+ meep: Tile | undefined;
1600
+ readonly occupied: [Tile | undefined, Tile | undefined] | undefined;
1593
1601
  toString: (color?: string) => string;
1594
1602
  rcspString: (color?: string) => string;
1595
- setUnit: (unit: Tile, isMeep?: boolean) => void;
1603
+ setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1596
1604
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1597
1605
  xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1598
1606
  x: number;
@@ -1624,10 +1632,10 @@ export declare class Table extends Dispatcher {
1624
1632
  readonly map: HexM<Hex>;
1625
1633
  readonly row: number;
1626
1634
  readonly col: number;
1627
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1628
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1635
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1636
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1629
1637
  readonly linkDirs: import("./hex-intfs").HexDir[];
1630
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1638
+ readonly linkHexes: import("./hex").Hex2[];
1631
1639
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1632
1640
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1633
1641
  findInDir: (dir: import("./hex-intfs").HexDir, pred: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex").Hex2 | undefined;