@thegraid/hexlib 1.3.6 → 1.3.8

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;
@@ -169,7 +177,8 @@ export declare class Table extends Dispatcher {
169
177
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
170
178
  setHexColor: (color: string, district?: number | undefined) => void;
171
179
  metricDist: (hex: Hex) => number;
172
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
180
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
181
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
173
182
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
174
183
  _tile: import("./tile").MapTile | undefined;
175
184
  tile: Tile | undefined;
@@ -180,22 +189,8 @@ export declare class Table extends Dispatcher {
180
189
  rcspString: (color?: string) => string;
181
190
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
182
191
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
183
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
184
- x: number;
185
- y: number;
186
- w: number;
187
- h: number;
188
- dxdc: number;
189
- dydr: number;
190
- };
191
- readonly xywh0: {
192
- x: number;
193
- y: number;
194
- w: number;
195
- h: number;
196
- dxdc: number;
197
- dydr: number;
198
- };
192
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
193
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
199
194
  Aname: string;
200
195
  readonly iHex: IdHex;
201
196
  readonly rcs: string;
@@ -210,10 +205,10 @@ export declare class Table extends Dispatcher {
210
205
  readonly map: HexM<Hex>;
211
206
  readonly row: number;
212
207
  readonly col: number;
213
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
214
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
208
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
209
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
215
210
  readonly linkDirs: import("./hex-intfs").HexDir[];
216
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
211
+ readonly linkHexes: import("./hex").Hex2[];
217
212
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
218
213
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
219
214
  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;
@@ -234,7 +229,8 @@ export declare class Table extends Dispatcher {
234
229
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
235
230
  setHexColor: (color: string, district?: number | undefined) => void;
236
231
  metricDist: (hex: Hex) => number;
237
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
232
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
233
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
238
234
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
239
235
  _tile: import("./tile").MapTile | undefined;
240
236
  tile: Tile | undefined;
@@ -245,22 +241,8 @@ export declare class Table extends Dispatcher {
245
241
  rcspString: (color?: string) => string;
246
242
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
247
243
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
248
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
249
- x: number;
250
- y: number;
251
- w: number;
252
- h: number;
253
- dxdc: number;
254
- dydr: number;
255
- };
256
- readonly xywh0: {
257
- x: number;
258
- y: number;
259
- w: number;
260
- h: number;
261
- dxdc: number;
262
- dydr: number;
263
- };
244
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
245
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
264
246
  Aname: string;
265
247
  readonly iHex: IdHex;
266
248
  readonly rcs: string;
@@ -275,10 +257,10 @@ export declare class Table extends Dispatcher {
275
257
  readonly map: HexM<Hex>;
276
258
  readonly row: number;
277
259
  readonly col: number;
278
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
279
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
260
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
261
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
280
262
  readonly linkDirs: import("./hex-intfs").HexDir[];
281
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
263
+ readonly linkHexes: import("./hex").Hex2[];
282
264
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
283
265
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
284
266
  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;
@@ -331,7 +313,8 @@ export declare class Table extends Dispatcher {
331
313
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
332
314
  setHexColor: (color: string, district?: number | undefined) => void;
333
315
  metricDist: (hex: Hex) => number;
334
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
316
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
317
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
335
318
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
336
319
  _tile: import("./tile").MapTile | undefined;
337
320
  tile: Tile | undefined;
@@ -342,22 +325,8 @@ export declare class Table extends Dispatcher {
342
325
  rcspString: (color?: string) => string;
343
326
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
344
327
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
345
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
346
- x: number;
347
- y: number;
348
- w: number;
349
- h: number;
350
- dxdc: number;
351
- dydr: number;
352
- };
353
- readonly xywh0: {
354
- x: number;
355
- y: number;
356
- w: number;
357
- h: number;
358
- dxdc: number;
359
- dydr: number;
360
- };
328
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
329
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
361
330
  Aname: string;
362
331
  readonly iHex: IdHex;
363
332
  readonly rcs: string;
@@ -372,10 +341,10 @@ export declare class Table extends Dispatcher {
372
341
  readonly map: HexM<Hex>;
373
342
  readonly row: number;
374
343
  readonly col: number;
375
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
376
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
344
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
345
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
377
346
  readonly linkDirs: import("./hex-intfs").HexDir[];
378
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
347
+ readonly linkHexes: import("./hex").Hex2[];
379
348
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
380
349
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
381
350
  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;
@@ -396,7 +365,8 @@ export declare class Table extends Dispatcher {
396
365
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
397
366
  setHexColor: (color: string, district?: number | undefined) => void;
398
367
  metricDist: (hex: Hex) => number;
399
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
368
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
369
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
400
370
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
401
371
  _tile: import("./tile").MapTile | undefined;
402
372
  tile: Tile | undefined;
@@ -407,22 +377,8 @@ export declare class Table extends Dispatcher {
407
377
  rcspString: (color?: string) => string;
408
378
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
409
379
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
410
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
411
- x: number;
412
- y: number;
413
- w: number;
414
- h: number;
415
- dxdc: number;
416
- dydr: number;
417
- };
418
- readonly xywh0: {
419
- x: number;
420
- y: number;
421
- w: number;
422
- h: number;
423
- dxdc: number;
424
- dydr: number;
425
- };
380
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
381
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
426
382
  Aname: string;
427
383
  readonly iHex: IdHex;
428
384
  readonly rcs: string;
@@ -437,10 +393,10 @@ export declare class Table extends Dispatcher {
437
393
  readonly map: HexM<Hex>;
438
394
  readonly row: number;
439
395
  readonly col: number;
440
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
441
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
396
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
397
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
442
398
  readonly linkDirs: import("./hex-intfs").HexDir[];
443
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
399
+ readonly linkHexes: import("./hex").Hex2[];
444
400
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
445
401
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
446
402
  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 +408,12 @@ export declare class Table extends Dispatcher {
452
408
  };
453
409
  /**
454
410
  * 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
411
+ * @param x0 frame left [-1]; relative to scaleCont (offset from bgRect to hexCont)
412
+ * @param y0 frame top [.5]; relative to scaleCont
413
+ * @param w0 pad width [10]; width of bgRect, beyond hexCont, centered on hexCont
414
+ * @param h0 pad height [1]; height of bgRect, beyond hexCont, centered on hexCont
415
+ * @param dw extend bgRect to the right, not centered [0]
416
+ * @param dh extend bgRect to the bottom, not centered [0]
461
417
  * @returns XYWH of a rectangle around mapCont hexMap
462
418
  */
463
419
  bgXYWH(x0?: number, y0?: number, w0?: number, h0?: number, dw?: number, dh?: number): {
@@ -499,7 +455,7 @@ export declare class Table extends Dispatcher {
499
455
  * makeParamGUI2(parent) -> gui2.ymax
500
456
  */
501
457
  makeGUIs(scale?: number, cx?: number, cy?: number, dy?: number): void;
502
- /** height allocated for PlayerPanel scaled in hex height [map.rows/3-.2] */
458
+ /** height allocated for PlayerPanel scaled in row height [map.rows/3-.2] */
503
459
  get panelHeight(): number;
504
460
  /** width of PlayerPanel, scaled in hex width [4.5] */
505
461
  get panelWidth(): number;
@@ -611,7 +567,8 @@ export declare class Table extends Dispatcher {
611
567
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
612
568
  setHexColor: (color: string, district?: number | undefined) => void;
613
569
  metricDist: (hex: Hex) => number;
614
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
570
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
571
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
615
572
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
616
573
  _tile: import("./tile").MapTile | undefined;
617
574
  tile: Tile | undefined;
@@ -622,22 +579,8 @@ export declare class Table extends Dispatcher {
622
579
  rcspString: (color?: string) => string;
623
580
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
624
581
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
625
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
626
- x: number;
627
- y: number;
628
- w: number;
629
- h: number;
630
- dxdc: number;
631
- dydr: number;
632
- };
633
- readonly xywh0: {
634
- x: number;
635
- y: number;
636
- w: number;
637
- h: number;
638
- dxdc: number;
639
- dydr: number;
640
- };
582
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
583
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
641
584
  Aname: string;
642
585
  readonly iHex: IdHex;
643
586
  readonly rcs: string;
@@ -652,10 +595,10 @@ export declare class Table extends Dispatcher {
652
595
  readonly map: HexM<Hex>;
653
596
  readonly row: number;
654
597
  readonly col: number;
655
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
656
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
598
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
599
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
657
600
  readonly linkDirs: import("./hex-intfs").HexDir[];
658
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
601
+ readonly linkHexes: import("./hex").Hex2[];
659
602
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
660
603
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
661
604
  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;
@@ -676,7 +619,8 @@ export declare class Table extends Dispatcher {
676
619
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
677
620
  setHexColor: (color: string, district?: number | undefined) => void;
678
621
  metricDist: (hex: Hex) => number;
679
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
622
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
623
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
680
624
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
681
625
  _tile: import("./tile").MapTile | undefined;
682
626
  tile: Tile | undefined;
@@ -687,22 +631,8 @@ export declare class Table extends Dispatcher {
687
631
  rcspString: (color?: string) => string;
688
632
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
689
633
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
690
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
691
- x: number;
692
- y: number;
693
- w: number;
694
- h: number;
695
- dxdc: number;
696
- dydr: number;
697
- };
698
- readonly xywh0: {
699
- x: number;
700
- y: number;
701
- w: number;
702
- h: number;
703
- dxdc: number;
704
- dydr: number;
705
- };
634
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
635
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
706
636
  Aname: string;
707
637
  readonly iHex: IdHex;
708
638
  readonly rcs: string;
@@ -717,10 +647,10 @@ export declare class Table extends Dispatcher {
717
647
  readonly map: HexM<Hex>;
718
648
  readonly row: number;
719
649
  readonly col: number;
720
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
721
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
650
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
651
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
722
652
  readonly linkDirs: import("./hex-intfs").HexDir[];
723
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
653
+ readonly linkHexes: import("./hex").Hex2[];
724
654
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
725
655
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
726
656
  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 +660,6 @@ export declare class Table extends Dispatcher {
730
660
  lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
731
661
  radialDist: (hex: Hex) => number;
732
662
  }[];
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
663
  /**
738
664
  * A newHex2 with the 'Recycle' image on top. [legacy from hextowns]
739
665
  *
@@ -786,7 +712,8 @@ export declare class Table extends Dispatcher {
786
712
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
787
713
  setHexColor: (color: string, district?: number | undefined) => void;
788
714
  metricDist: (hex: Hex) => number;
789
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
715
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
716
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
790
717
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
791
718
  _tile: import("./tile").MapTile | undefined;
792
719
  tile: Tile | undefined;
@@ -797,22 +724,8 @@ export declare class Table extends Dispatcher {
797
724
  rcspString: (color?: string) => string;
798
725
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
799
726
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
800
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
801
- x: number;
802
- y: number;
803
- w: number;
804
- h: number;
805
- dxdc: number;
806
- dydr: number;
807
- };
808
- readonly xywh0: {
809
- x: number;
810
- y: number;
811
- w: number;
812
- h: number;
813
- dxdc: number;
814
- dydr: number;
815
- };
727
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
728
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
816
729
  Aname: string;
817
730
  readonly iHex: IdHex;
818
731
  readonly rcs: string;
@@ -827,10 +740,10 @@ export declare class Table extends Dispatcher {
827
740
  readonly map: HexM<Hex>;
828
741
  readonly row: number;
829
742
  readonly col: number;
830
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
831
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
743
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
744
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
832
745
  readonly linkDirs: import("./hex-intfs").HexDir[];
833
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
746
+ readonly linkHexes: import("./hex").Hex2[];
834
747
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
835
748
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
836
749
  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;
@@ -851,7 +764,8 @@ export declare class Table extends Dispatcher {
851
764
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
852
765
  setHexColor: (color: string, district?: number | undefined) => void;
853
766
  metricDist: (hex: Hex) => number;
854
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
767
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
768
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
855
769
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
856
770
  _tile: import("./tile").MapTile | undefined;
857
771
  tile: Tile | undefined;
@@ -862,22 +776,8 @@ export declare class Table extends Dispatcher {
862
776
  rcspString: (color?: string) => string;
863
777
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
864
778
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
865
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
866
- x: number;
867
- y: number;
868
- w: number;
869
- h: number;
870
- dxdc: number;
871
- dydr: number;
872
- };
873
- readonly xywh0: {
874
- x: number;
875
- y: number;
876
- w: number;
877
- h: number;
878
- dxdc: number;
879
- dydr: number;
880
- };
779
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
780
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
881
781
  Aname: string;
882
782
  readonly iHex: IdHex;
883
783
  readonly rcs: string;
@@ -892,10 +792,10 @@ export declare class Table extends Dispatcher {
892
792
  readonly map: HexM<Hex>;
893
793
  readonly row: number;
894
794
  readonly col: number;
895
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
896
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
795
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
796
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
897
797
  readonly linkDirs: import("./hex-intfs").HexDir[];
898
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
798
+ readonly linkHexes: import("./hex").Hex2[];
899
799
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
900
800
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
901
801
  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 +807,9 @@ export declare class Table extends Dispatcher {
907
807
  };
908
808
  /** Params that affect the rules of the game & board
909
809
  *
910
- * ParamGUI --> board & rules [under stats panel]
911
- * ParamGUI2 --> AI Player [left of ParamGUI]
912
- * NetworkGUI --> network [below ParamGUI2]
810
+ * ParamGUI --> board & rules []
811
+ * ParamGUI2 --> AI Player []
812
+ * NetworkGUI --> network []
913
813
  */
914
814
  makeParamGUI(parent: Container, x?: number, y?: number): ParamGUI;
915
815
  /** configures the AI player */
@@ -922,14 +822,18 @@ export declare class Table extends Dispatcher {
922
822
  doneButton: UtilButton;
923
823
  doneClicked: (evt?: any) => void;
924
824
  /**
925
- * May be contained or placed with ActionSelection buttons.
825
+ * add DoneButton to the given panel/Container.
826
+ *
827
+ * May be contained or placed with ActionSelection buttons [ankh].
828
+ *
829
+ * textColor is BLACK or WHITE to contrast with paint(color)
926
830
  * @param cont [scaleCont] a Container to hold the DoneButton
927
831
  * @param cx [0] offset in Container (to 'center', 'left', 'right' per align)
928
832
  * @param cy [0] offset in Container (to top of text box)
929
- * @param align ['center'] left or right
930
- * @returns actionCont
833
+ * @param align ['center'] 'left' or 'right' for textAlign
834
+ * @returns this.doneButton
931
835
  */
932
- addDoneButton(cont?: Container, cx?: number, cy?: number, align?: string): Container;
836
+ addDoneButton(cont?: Container, cx?: number, cy?: number, align?: string): UtilButton;
933
837
  /** show player player score on table */
934
838
  setPlayerScore(plyr: Player, score?: number, rank?: number): void;
935
839
  /** update table when a new Game is started.
@@ -986,7 +890,8 @@ export declare class Table extends Dispatcher {
986
890
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
987
891
  setHexColor: (color: string, district?: number | undefined) => void;
988
892
  metricDist: (hex: Hex) => number;
989
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
893
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
894
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
990
895
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
991
896
  _tile: import("./tile").MapTile | undefined;
992
897
  tile: Tile | undefined;
@@ -997,22 +902,8 @@ export declare class Table extends Dispatcher {
997
902
  rcspString: (color?: string) => string;
998
903
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
999
904
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1000
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1001
- x: number;
1002
- y: number;
1003
- w: number;
1004
- h: number;
1005
- dxdc: number;
1006
- dydr: number;
1007
- };
1008
- readonly xywh0: {
1009
- x: number;
1010
- y: number;
1011
- w: number;
1012
- h: number;
1013
- dxdc: number;
1014
- dydr: number;
1015
- };
905
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
906
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
1016
907
  Aname: string;
1017
908
  readonly iHex: IdHex;
1018
909
  readonly rcs: string;
@@ -1027,10 +918,10 @@ export declare class Table extends Dispatcher {
1027
918
  readonly map: HexM<Hex>;
1028
919
  readonly row: number;
1029
920
  readonly col: number;
1030
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1031
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
921
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
922
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1032
923
  readonly linkDirs: import("./hex-intfs").HexDir[];
1033
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
924
+ readonly linkHexes: import("./hex").Hex2[];
1034
925
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1035
926
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1036
927
  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;
@@ -1051,7 +942,8 @@ export declare class Table extends Dispatcher {
1051
942
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
1052
943
  setHexColor: (color: string, district?: number | undefined) => void;
1053
944
  metricDist: (hex: Hex) => number;
1054
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
945
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
946
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1055
947
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1056
948
  _tile: import("./tile").MapTile | undefined;
1057
949
  tile: Tile | undefined;
@@ -1062,22 +954,8 @@ export declare class Table extends Dispatcher {
1062
954
  rcspString: (color?: string) => string;
1063
955
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1064
956
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1065
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1066
- x: number;
1067
- y: number;
1068
- w: number;
1069
- h: number;
1070
- dxdc: number;
1071
- dydr: number;
1072
- };
1073
- readonly xywh0: {
1074
- x: number;
1075
- y: number;
1076
- w: number;
1077
- h: number;
1078
- dxdc: number;
1079
- dydr: number;
1080
- };
957
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
958
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
1081
959
  Aname: string;
1082
960
  readonly iHex: IdHex;
1083
961
  readonly rcs: string;
@@ -1092,10 +970,10 @@ export declare class Table extends Dispatcher {
1092
970
  readonly map: HexM<Hex>;
1093
971
  readonly row: number;
1094
972
  readonly col: number;
1095
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1096
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
973
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
974
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1097
975
  readonly linkDirs: import("./hex-intfs").HexDir[];
1098
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
976
+ readonly linkHexes: import("./hex").Hex2[];
1099
977
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1100
978
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1101
979
  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;
@@ -1159,7 +1037,8 @@ export declare class Table extends Dispatcher {
1159
1037
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
1160
1038
  setHexColor: (color: string, district?: number | undefined) => void;
1161
1039
  metricDist: (hex: Hex) => number;
1162
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
1040
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1041
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1163
1042
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1164
1043
  _tile: import("./tile").MapTile | undefined;
1165
1044
  tile: Tile | undefined;
@@ -1170,22 +1049,8 @@ export declare class Table extends Dispatcher {
1170
1049
  rcspString: (color?: string) => string;
1171
1050
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1172
1051
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1173
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1174
- x: number;
1175
- y: number;
1176
- w: number;
1177
- h: number;
1178
- dxdc: number;
1179
- dydr: number;
1180
- };
1181
- readonly xywh0: {
1182
- x: number;
1183
- y: number;
1184
- w: number;
1185
- h: number;
1186
- dxdc: number;
1187
- dydr: number;
1188
- };
1052
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
1053
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
1189
1054
  Aname: string;
1190
1055
  readonly iHex: IdHex;
1191
1056
  readonly rcs: string;
@@ -1200,10 +1065,10 @@ export declare class Table extends Dispatcher {
1200
1065
  readonly map: HexM<Hex>;
1201
1066
  readonly row: number;
1202
1067
  readonly col: number;
1203
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1204
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1068
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1069
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1205
1070
  readonly linkDirs: import("./hex-intfs").HexDir[];
1206
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1071
+ readonly linkHexes: import("./hex").Hex2[];
1207
1072
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1208
1073
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1209
1074
  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;
@@ -1224,7 +1089,8 @@ export declare class Table extends Dispatcher {
1224
1089
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
1225
1090
  setHexColor: (color: string, district?: number | undefined) => void;
1226
1091
  metricDist: (hex: Hex) => number;
1227
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
1092
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1093
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1228
1094
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1229
1095
  _tile: import("./tile").MapTile | undefined;
1230
1096
  tile: Tile | undefined;
@@ -1235,22 +1101,8 @@ export declare class Table extends Dispatcher {
1235
1101
  rcspString: (color?: string) => string;
1236
1102
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1237
1103
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1238
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1239
- x: number;
1240
- y: number;
1241
- w: number;
1242
- h: number;
1243
- dxdc: number;
1244
- dydr: number;
1245
- };
1246
- readonly xywh0: {
1247
- x: number;
1248
- y: number;
1249
- w: number;
1250
- h: number;
1251
- dxdc: number;
1252
- dydr: number;
1253
- };
1104
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
1105
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
1254
1106
  Aname: string;
1255
1107
  readonly iHex: IdHex;
1256
1108
  readonly rcs: string;
@@ -1265,10 +1117,10 @@ export declare class Table extends Dispatcher {
1265
1117
  readonly map: HexM<Hex>;
1266
1118
  readonly row: number;
1267
1119
  readonly col: number;
1268
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1269
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1120
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1121
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1270
1122
  readonly linkDirs: import("./hex-intfs").HexDir[];
1271
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1123
+ readonly linkHexes: import("./hex").Hex2[];
1272
1124
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1273
1125
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1274
1126
  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;
@@ -1348,7 +1200,8 @@ export declare class Table extends Dispatcher {
1348
1200
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
1349
1201
  setHexColor: (color: string, district?: number | undefined) => void;
1350
1202
  metricDist: (hex: Hex) => number;
1351
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
1203
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1204
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1352
1205
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1353
1206
  _tile: import("./tile").MapTile | undefined;
1354
1207
  tile: Tile | undefined;
@@ -1359,22 +1212,8 @@ export declare class Table extends Dispatcher {
1359
1212
  rcspString: (color?: string) => string;
1360
1213
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1361
1214
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1362
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1363
- x: number;
1364
- y: number;
1365
- w: number;
1366
- h: number;
1367
- dxdc: number;
1368
- dydr: number;
1369
- };
1370
- readonly xywh0: {
1371
- x: number;
1372
- y: number;
1373
- w: number;
1374
- h: number;
1375
- dxdc: number;
1376
- dydr: number;
1377
- };
1215
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
1216
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
1378
1217
  Aname: string;
1379
1218
  readonly iHex: IdHex;
1380
1219
  readonly rcs: string;
@@ -1389,10 +1228,10 @@ export declare class Table extends Dispatcher {
1389
1228
  readonly map: HexM<Hex>;
1390
1229
  readonly row: number;
1391
1230
  readonly col: number;
1392
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1393
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1231
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1232
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1394
1233
  readonly linkDirs: import("./hex-intfs").HexDir[];
1395
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1234
+ readonly linkHexes: import("./hex").Hex2[];
1396
1235
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1397
1236
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1398
1237
  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;
@@ -1413,7 +1252,8 @@ export declare class Table extends Dispatcher {
1413
1252
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
1414
1253
  setHexColor: (color: string, district?: number | undefined) => void;
1415
1254
  metricDist: (hex: Hex) => number;
1416
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
1255
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1256
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1417
1257
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1418
1258
  _tile: import("./tile").MapTile | undefined;
1419
1259
  tile: Tile | undefined;
@@ -1424,22 +1264,8 @@ export declare class Table extends Dispatcher {
1424
1264
  rcspString: (color?: string) => string;
1425
1265
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1426
1266
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1427
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1428
- x: number;
1429
- y: number;
1430
- w: number;
1431
- h: number;
1432
- dxdc: number;
1433
- dydr: number;
1434
- };
1435
- readonly xywh0: {
1436
- x: number;
1437
- y: number;
1438
- w: number;
1439
- h: number;
1440
- dxdc: number;
1441
- dydr: number;
1442
- };
1267
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
1268
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
1443
1269
  Aname: string;
1444
1270
  readonly iHex: IdHex;
1445
1271
  readonly rcs: string;
@@ -1454,10 +1280,10 @@ export declare class Table extends Dispatcher {
1454
1280
  readonly map: HexM<Hex>;
1455
1281
  readonly row: number;
1456
1282
  readonly col: number;
1457
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1458
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1283
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1284
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1459
1285
  readonly linkDirs: import("./hex-intfs").HexDir[];
1460
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1286
+ readonly linkHexes: import("./hex").Hex2[];
1461
1287
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1462
1288
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1463
1289
  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;
@@ -1518,7 +1344,8 @@ export declare class Table extends Dispatcher {
1518
1344
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
1519
1345
  setHexColor: (color: string, district?: number | undefined) => void;
1520
1346
  metricDist: (hex: Hex) => number;
1521
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
1347
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1348
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1522
1349
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1523
1350
  _tile: import("./tile").MapTile | undefined;
1524
1351
  tile: Tile | undefined;
@@ -1529,22 +1356,8 @@ export declare class Table extends Dispatcher {
1529
1356
  rcspString: (color?: string) => string;
1530
1357
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1531
1358
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1532
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1533
- x: number;
1534
- y: number;
1535
- w: number;
1536
- h: number;
1537
- dxdc: number;
1538
- dydr: number;
1539
- };
1540
- readonly xywh0: {
1541
- x: number;
1542
- y: number;
1543
- w: number;
1544
- h: number;
1545
- dxdc: number;
1546
- dydr: number;
1547
- };
1359
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
1360
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
1548
1361
  Aname: string;
1549
1362
  readonly iHex: IdHex;
1550
1363
  readonly rcs: string;
@@ -1559,10 +1372,10 @@ export declare class Table extends Dispatcher {
1559
1372
  readonly map: HexM<Hex>;
1560
1373
  readonly row: number;
1561
1374
  readonly col: number;
1562
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1563
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1375
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1376
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1564
1377
  readonly linkDirs: import("./hex-intfs").HexDir[];
1565
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1378
+ readonly linkHexes: import("./hex").Hex2[];
1566
1379
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1567
1380
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1568
1381
  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;
@@ -1583,7 +1396,8 @@ export declare class Table extends Dispatcher {
1583
1396
  makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
1584
1397
  setHexColor: (color: string, district?: number | undefined) => void;
1585
1398
  metricDist: (hex: Hex) => number;
1586
- cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
1399
+ cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1400
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
1587
1401
  edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
1588
1402
  _tile: import("./tile").MapTile | undefined;
1589
1403
  tile: Tile | undefined;
@@ -1594,22 +1408,8 @@ export declare class Table extends Dispatcher {
1594
1408
  rcspString: (color?: string) => string;
1595
1409
  setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
1596
1410
  unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
1597
- xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
1598
- x: number;
1599
- y: number;
1600
- w: number;
1601
- h: number;
1602
- dxdc: number;
1603
- dydr: number;
1604
- };
1605
- readonly xywh0: {
1606
- x: number;
1607
- y: number;
1608
- w: number;
1609
- h: number;
1610
- dxdc: number;
1611
- dydr: number;
1612
- };
1411
+ xywh: (radius?: number, topo?: import("./hex-intfs").TopoMetric | undefined, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
1412
+ readonly xywh0: import("./hex-intfs").TopoXYWH;
1613
1413
  Aname: string;
1614
1414
  readonly iHex: IdHex;
1615
1415
  readonly rcs: string;
@@ -1624,10 +1424,10 @@ export declare class Table extends Dispatcher {
1624
1424
  readonly map: HexM<Hex>;
1625
1425
  readonly row: number;
1626
1426
  readonly col: number;
1627
- readonly links: import("./hex").LINKS<import("./hex").Hex2>;
1628
- metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
1427
+ readonly links: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1428
+ metaLinks: Partial<Record<import("./hex-intfs").HexDir, import("./hex").Hex2>>;
1629
1429
  readonly linkDirs: import("./hex-intfs").HexDir[];
1630
- readonly linkHexes: (import("./hex").Hex2 | undefined)[];
1430
+ readonly linkHexes: import("./hex").Hex2[];
1631
1431
  forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
1632
1432
  findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
1633
1433
  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;