@thegraid/hexlib 1.3.8 → 1.3.9
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/game-setup.js +1 -1
- package/dist/game-setup.js.map +1 -1
- package/dist/hex-intfs.d.ts +117 -51
- package/dist/hex-intfs.d.ts.map +1 -1
- package/dist/hex-intfs.js +80 -44
- package/dist/hex-intfs.js.map +1 -1
- package/dist/hex.d.ts +73 -72
- package/dist/hex.d.ts.map +1 -1
- package/dist/hex.js +73 -77
- package/dist/hex.js.map +1 -1
- package/dist/meeple.d.ts.map +1 -1
- package/dist/meeple.js +1 -1
- package/dist/meeple.js.map +1 -1
- package/dist/player-panel.js +4 -5
- package/dist/player-panel.js.map +1 -1
- package/dist/table.d.ts +84 -82
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +10 -7
- package/dist/table.js.map +1 -1
- package/dist/tile-source.d.ts.map +1 -1
- package/dist/tile-source.js +3 -2
- package/dist/tile-source.js.map +1 -1
- package/dist/tile.d.ts +0 -1
- package/dist/tile.d.ts.map +1 -1
- package/dist/tile.js +3 -3
- package/dist/tile.js.map +1 -1
- package/package.json +1 -1
package/dist/table.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ export declare class Table extends Dispatcher {
|
|
|
66
66
|
netGUI: ParamGUI;
|
|
67
67
|
/** initial visibility for toggleText */
|
|
68
68
|
initialVis: boolean;
|
|
69
|
+
/** scale to radius */
|
|
69
70
|
sr(v?: number): number;
|
|
70
71
|
undoCont: Container;
|
|
71
72
|
undoShape: Shape;
|
|
@@ -136,9 +137,9 @@ export declare class Table extends Dispatcher {
|
|
|
136
137
|
* @returns the new Hex2
|
|
137
138
|
*/
|
|
138
139
|
newHex2(row: number | undefined, col: number | undefined, name: string, claz?: Constructor<IHex2>): {
|
|
140
|
+
readonly radius: number;
|
|
139
141
|
readonly implementsIHex2: true;
|
|
140
142
|
readonly cont: import("./hex").HexCont;
|
|
141
|
-
readonly radius: number;
|
|
142
143
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
143
144
|
readonly mapCont: import("./hex").MapCont;
|
|
144
145
|
readonly markCont: Container;
|
|
@@ -151,9 +152,9 @@ export declare class Table extends Dispatcher {
|
|
|
151
152
|
distText: Text;
|
|
152
153
|
rcText: Text;
|
|
153
154
|
constructorCode: (map: HexM<{
|
|
155
|
+
readonly radius: number;
|
|
154
156
|
readonly implementsIHex2: true;
|
|
155
157
|
readonly cont: import("./hex").HexCont;
|
|
156
|
-
readonly radius: number;
|
|
157
158
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
158
159
|
readonly mapCont: import("./hex").MapCont;
|
|
159
160
|
readonly markCont: Container;
|
|
@@ -176,7 +177,10 @@ export declare class Table extends Dispatcher {
|
|
|
176
177
|
reCache: (scale?: number) => void;
|
|
177
178
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
178
179
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
179
|
-
|
|
180
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
181
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
182
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
183
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
180
184
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
181
185
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
182
186
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -189,8 +193,6 @@ export declare class Table extends Dispatcher {
|
|
|
189
193
|
rcspString: (color?: string) => string;
|
|
190
194
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
191
195
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
194
196
|
Aname: string;
|
|
195
197
|
readonly iHex: IdHex;
|
|
196
198
|
readonly rcs: string;
|
|
@@ -216,7 +218,6 @@ export declare class Table extends Dispatcher {
|
|
|
216
218
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
217
219
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
218
220
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
219
|
-
radialDist: (hex: Hex) => number;
|
|
220
221
|
}>, row: number, col: number, dText?: string) => void;
|
|
221
222
|
setRcText: (row: number, col: number, rcf?: number) => void;
|
|
222
223
|
setDistText: (dText?: string, size?: number) => void;
|
|
@@ -228,7 +229,10 @@ export declare class Table extends Dispatcher {
|
|
|
228
229
|
reCache: (scale?: number) => void;
|
|
229
230
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
230
231
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
231
|
-
|
|
232
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
233
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
234
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
235
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
232
236
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
233
237
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
234
238
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -241,8 +245,6 @@ export declare class Table extends Dispatcher {
|
|
|
241
245
|
rcspString: (color?: string) => string;
|
|
242
246
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
243
247
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
246
248
|
Aname: string;
|
|
247
249
|
readonly iHex: IdHex;
|
|
248
250
|
readonly rcs: string;
|
|
@@ -268,13 +270,12 @@ export declare class Table extends Dispatcher {
|
|
|
268
270
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
269
271
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
270
272
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
271
|
-
radialDist: (hex: Hex) => number;
|
|
272
273
|
};
|
|
273
|
-
/** if hextowns
|
|
274
|
+
/** if hextowns wants the half-row offset, they can override as follows: */
|
|
274
275
|
newHex2a(row: number | undefined, col: number | undefined, name: string, claz?: Constructor<IHex2>, sy?: number): {
|
|
276
|
+
readonly radius: number;
|
|
275
277
|
readonly implementsIHex2: true;
|
|
276
278
|
readonly cont: import("./hex").HexCont;
|
|
277
|
-
readonly radius: number;
|
|
278
279
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
279
280
|
readonly mapCont: import("./hex").MapCont;
|
|
280
281
|
readonly markCont: Container;
|
|
@@ -287,9 +288,9 @@ export declare class Table extends Dispatcher {
|
|
|
287
288
|
distText: Text;
|
|
288
289
|
rcText: Text;
|
|
289
290
|
constructorCode: (map: HexM<{
|
|
291
|
+
readonly radius: number;
|
|
290
292
|
readonly implementsIHex2: true;
|
|
291
293
|
readonly cont: import("./hex").HexCont;
|
|
292
|
-
readonly radius: number;
|
|
293
294
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
294
295
|
readonly mapCont: import("./hex").MapCont;
|
|
295
296
|
readonly markCont: Container;
|
|
@@ -312,7 +313,10 @@ export declare class Table extends Dispatcher {
|
|
|
312
313
|
reCache: (scale?: number) => void;
|
|
313
314
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
314
315
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
315
|
-
|
|
316
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
317
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
318
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
319
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
316
320
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
317
321
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
318
322
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -325,8 +329,6 @@ export declare class Table extends Dispatcher {
|
|
|
325
329
|
rcspString: (color?: string) => string;
|
|
326
330
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
327
331
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
330
332
|
Aname: string;
|
|
331
333
|
readonly iHex: IdHex;
|
|
332
334
|
readonly rcs: string;
|
|
@@ -352,7 +354,6 @@ export declare class Table extends Dispatcher {
|
|
|
352
354
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
353
355
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
354
356
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
355
|
-
radialDist: (hex: Hex) => number;
|
|
356
357
|
}>, row: number, col: number, dText?: string) => void;
|
|
357
358
|
setRcText: (row: number, col: number, rcf?: number) => void;
|
|
358
359
|
setDistText: (dText?: string, size?: number) => void;
|
|
@@ -364,7 +365,10 @@ export declare class Table extends Dispatcher {
|
|
|
364
365
|
reCache: (scale?: number) => void;
|
|
365
366
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
366
367
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
367
|
-
|
|
368
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
369
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
370
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
371
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
368
372
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
369
373
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
370
374
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -377,8 +381,6 @@ export declare class Table extends Dispatcher {
|
|
|
377
381
|
rcspString: (color?: string) => string;
|
|
378
382
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
379
383
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
382
384
|
Aname: string;
|
|
383
385
|
readonly iHex: IdHex;
|
|
384
386
|
readonly rcs: string;
|
|
@@ -404,10 +406,9 @@ export declare class Table extends Dispatcher {
|
|
|
404
406
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
405
407
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
406
408
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
407
|
-
radialDist: (hex: Hex) => number;
|
|
408
409
|
};
|
|
409
410
|
/**
|
|
410
|
-
* all
|
|
411
|
+
* all numbers in units of dxdc or dydr
|
|
411
412
|
* @param x0 frame left [-1]; relative to scaleCont (offset from bgRect to hexCont)
|
|
412
413
|
* @param y0 frame top [.5]; relative to scaleCont
|
|
413
414
|
* @param w0 pad width [10]; width of bgRect, beyond hexCont, centered on hexCont
|
|
@@ -501,6 +502,7 @@ export declare class Table extends Dispatcher {
|
|
|
501
502
|
/** move cont to metric [row, col] of hexCont
|
|
502
503
|
*
|
|
503
504
|
* see also: HexMap.xyFromMap(target, row, col)
|
|
505
|
+
* @param cont could be the HexCont of a UnitSourceHex or a panel or ...
|
|
504
506
|
*/
|
|
505
507
|
setToRowCol(cont: Container, row?: number, col?: number, hexCont?: Container): void;
|
|
506
508
|
/** display source [and legalMark] on given hex [Ankh] */
|
|
@@ -526,9 +528,9 @@ export declare class Table extends Dispatcher {
|
|
|
526
528
|
vis?: boolean;
|
|
527
529
|
gap?: number;
|
|
528
530
|
}): {
|
|
531
|
+
readonly radius: number;
|
|
529
532
|
readonly implementsIHex2: true;
|
|
530
533
|
readonly cont: import("./hex").HexCont;
|
|
531
|
-
readonly radius: number;
|
|
532
534
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
533
535
|
readonly mapCont: import("./hex").MapCont;
|
|
534
536
|
readonly markCont: Container;
|
|
@@ -541,9 +543,9 @@ export declare class Table extends Dispatcher {
|
|
|
541
543
|
distText: Text;
|
|
542
544
|
rcText: Text;
|
|
543
545
|
constructorCode: (map: HexM<{
|
|
546
|
+
readonly radius: number;
|
|
544
547
|
readonly implementsIHex2: true;
|
|
545
548
|
readonly cont: import("./hex").HexCont;
|
|
546
|
-
readonly radius: number;
|
|
547
549
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
548
550
|
readonly mapCont: import("./hex").MapCont;
|
|
549
551
|
readonly markCont: Container;
|
|
@@ -566,7 +568,10 @@ export declare class Table extends Dispatcher {
|
|
|
566
568
|
reCache: (scale?: number) => void;
|
|
567
569
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
568
570
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
569
|
-
|
|
571
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
572
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
573
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
574
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
570
575
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
571
576
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
572
577
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -579,8 +584,6 @@ export declare class Table extends Dispatcher {
|
|
|
579
584
|
rcspString: (color?: string) => string;
|
|
580
585
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
581
586
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
584
587
|
Aname: string;
|
|
585
588
|
readonly iHex: IdHex;
|
|
586
589
|
readonly rcs: string;
|
|
@@ -606,7 +609,6 @@ export declare class Table extends Dispatcher {
|
|
|
606
609
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
607
610
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
608
611
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
609
|
-
radialDist: (hex: Hex) => number;
|
|
610
612
|
}>, row: number, col: number, dText?: string) => void;
|
|
611
613
|
setRcText: (row: number, col: number, rcf?: number) => void;
|
|
612
614
|
setDistText: (dText?: string, size?: number) => void;
|
|
@@ -618,7 +620,10 @@ export declare class Table extends Dispatcher {
|
|
|
618
620
|
reCache: (scale?: number) => void;
|
|
619
621
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
620
622
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
621
|
-
|
|
623
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
624
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
625
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
626
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
622
627
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
623
628
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
624
629
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -631,8 +636,6 @@ export declare class Table extends Dispatcher {
|
|
|
631
636
|
rcspString: (color?: string) => string;
|
|
632
637
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
633
638
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
636
639
|
Aname: string;
|
|
637
640
|
readonly iHex: IdHex;
|
|
638
641
|
readonly rcs: string;
|
|
@@ -658,7 +661,6 @@ export declare class Table extends Dispatcher {
|
|
|
658
661
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
659
662
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
660
663
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
661
|
-
radialDist: (hex: Hex) => number;
|
|
662
664
|
}[];
|
|
663
665
|
/**
|
|
664
666
|
* A newHex2 with the 'Recycle' image on top. [legacy from hextowns]
|
|
@@ -671,9 +673,9 @@ export declare class Table extends Dispatcher {
|
|
|
671
673
|
* @returns
|
|
672
674
|
*/
|
|
673
675
|
makeRecycleHex(row?: number, col?: number, name?: string, claz?: typeof RecycleHex): {
|
|
676
|
+
readonly radius: number;
|
|
674
677
|
readonly implementsIHex2: true;
|
|
675
678
|
readonly cont: import("./hex").HexCont;
|
|
676
|
-
readonly radius: number;
|
|
677
679
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
678
680
|
readonly mapCont: import("./hex").MapCont;
|
|
679
681
|
readonly markCont: Container;
|
|
@@ -686,9 +688,9 @@ export declare class Table extends Dispatcher {
|
|
|
686
688
|
distText: Text;
|
|
687
689
|
rcText: Text;
|
|
688
690
|
constructorCode: (map: HexM<{
|
|
691
|
+
readonly radius: number;
|
|
689
692
|
readonly implementsIHex2: true;
|
|
690
693
|
readonly cont: import("./hex").HexCont;
|
|
691
|
-
readonly radius: number;
|
|
692
694
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
693
695
|
readonly mapCont: import("./hex").MapCont;
|
|
694
696
|
readonly markCont: Container;
|
|
@@ -711,7 +713,10 @@ export declare class Table extends Dispatcher {
|
|
|
711
713
|
reCache: (scale?: number) => void;
|
|
712
714
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
713
715
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
714
|
-
|
|
716
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
717
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
718
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
719
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
715
720
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
716
721
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
717
722
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -724,8 +729,6 @@ export declare class Table extends Dispatcher {
|
|
|
724
729
|
rcspString: (color?: string) => string;
|
|
725
730
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
726
731
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
729
732
|
Aname: string;
|
|
730
733
|
readonly iHex: IdHex;
|
|
731
734
|
readonly rcs: string;
|
|
@@ -751,7 +754,6 @@ export declare class Table extends Dispatcher {
|
|
|
751
754
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
752
755
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
753
756
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
754
|
-
radialDist: (hex: Hex) => number;
|
|
755
757
|
}>, row: number, col: number, dText?: string) => void;
|
|
756
758
|
setRcText: (row: number, col: number, rcf?: number) => void;
|
|
757
759
|
setDistText: (dText?: string, size?: number) => void;
|
|
@@ -763,7 +765,10 @@ export declare class Table extends Dispatcher {
|
|
|
763
765
|
reCache: (scale?: number) => void;
|
|
764
766
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
765
767
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
766
|
-
|
|
768
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
769
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
770
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
771
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
767
772
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
768
773
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
769
774
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -776,8 +781,6 @@ export declare class Table extends Dispatcher {
|
|
|
776
781
|
rcspString: (color?: string) => string;
|
|
777
782
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
778
783
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
781
784
|
Aname: string;
|
|
782
785
|
readonly iHex: IdHex;
|
|
783
786
|
readonly rcs: string;
|
|
@@ -803,7 +806,6 @@ export declare class Table extends Dispatcher {
|
|
|
803
806
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
804
807
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
805
808
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
806
|
-
radialDist: (hex: Hex) => number;
|
|
807
809
|
};
|
|
808
810
|
/** Params that affect the rules of the game & board
|
|
809
811
|
*
|
|
@@ -849,9 +851,9 @@ export declare class Table extends Dispatcher {
|
|
|
849
851
|
*/
|
|
850
852
|
makeDragable(tile: Tile): void;
|
|
851
853
|
hexUnderObj(dragObj: DisplayObject, legalOnly?: boolean): {
|
|
854
|
+
readonly radius: number;
|
|
852
855
|
readonly implementsIHex2: true;
|
|
853
856
|
readonly cont: import("./hex").HexCont;
|
|
854
|
-
readonly radius: number;
|
|
855
857
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
856
858
|
readonly mapCont: import("./hex").MapCont;
|
|
857
859
|
readonly markCont: Container;
|
|
@@ -864,9 +866,9 @@ export declare class Table extends Dispatcher {
|
|
|
864
866
|
distText: Text;
|
|
865
867
|
rcText: Text;
|
|
866
868
|
constructorCode: (map: HexM<{
|
|
869
|
+
readonly radius: number;
|
|
867
870
|
readonly implementsIHex2: true;
|
|
868
871
|
readonly cont: import("./hex").HexCont;
|
|
869
|
-
readonly radius: number;
|
|
870
872
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
871
873
|
readonly mapCont: import("./hex").MapCont;
|
|
872
874
|
readonly markCont: Container;
|
|
@@ -889,7 +891,10 @@ export declare class Table extends Dispatcher {
|
|
|
889
891
|
reCache: (scale?: number) => void;
|
|
890
892
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
891
893
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
892
|
-
|
|
894
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
895
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
896
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
897
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
893
898
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
894
899
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
895
900
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -902,8 +907,6 @@ export declare class Table extends Dispatcher {
|
|
|
902
907
|
rcspString: (color?: string) => string;
|
|
903
908
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
904
909
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
907
910
|
Aname: string;
|
|
908
911
|
readonly iHex: IdHex;
|
|
909
912
|
readonly rcs: string;
|
|
@@ -929,7 +932,6 @@ export declare class Table extends Dispatcher {
|
|
|
929
932
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
930
933
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
931
934
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
932
|
-
radialDist: (hex: Hex) => number;
|
|
933
935
|
}>, row: number, col: number, dText?: string) => void;
|
|
934
936
|
setRcText: (row: number, col: number, rcf?: number) => void;
|
|
935
937
|
setDistText: (dText?: string, size?: number) => void;
|
|
@@ -941,7 +943,10 @@ export declare class Table extends Dispatcher {
|
|
|
941
943
|
reCache: (scale?: number) => void;
|
|
942
944
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
943
945
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
944
|
-
|
|
946
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
947
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
948
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
949
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
945
950
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
946
951
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
947
952
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -954,8 +959,6 @@ export declare class Table extends Dispatcher {
|
|
|
954
959
|
rcspString: (color?: string) => string;
|
|
955
960
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
956
961
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
959
962
|
Aname: string;
|
|
960
963
|
readonly iHex: IdHex;
|
|
961
964
|
readonly rcs: string;
|
|
@@ -981,7 +984,6 @@ export declare class Table extends Dispatcher {
|
|
|
981
984
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
982
985
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
983
986
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
984
|
-
radialDist: (hex: Hex) => number;
|
|
985
987
|
} | undefined;
|
|
986
988
|
dragContext: DragContext;
|
|
987
989
|
/** Direct callback from this.dragger. Invoke this.dragFunc0(tile, info, hexUnderTile) */
|
|
@@ -996,9 +998,9 @@ export declare class Table extends Dispatcher {
|
|
|
996
998
|
* @param hex the IHex2 which tile is currently over (may be undefined or off map)
|
|
997
999
|
*/
|
|
998
1000
|
dragFunc0(tile: Tile, info?: DragInfo, hex?: {
|
|
1001
|
+
readonly radius: number;
|
|
999
1002
|
readonly implementsIHex2: true;
|
|
1000
1003
|
readonly cont: import("./hex").HexCont;
|
|
1001
|
-
readonly radius: number;
|
|
1002
1004
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
1003
1005
|
readonly mapCont: import("./hex").MapCont;
|
|
1004
1006
|
readonly markCont: Container;
|
|
@@ -1011,9 +1013,9 @@ export declare class Table extends Dispatcher {
|
|
|
1011
1013
|
distText: Text;
|
|
1012
1014
|
rcText: Text;
|
|
1013
1015
|
constructorCode: (map: HexM<{
|
|
1016
|
+
readonly radius: number;
|
|
1014
1017
|
readonly implementsIHex2: true;
|
|
1015
1018
|
readonly cont: import("./hex").HexCont;
|
|
1016
|
-
readonly radius: number;
|
|
1017
1019
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
1018
1020
|
readonly mapCont: import("./hex").MapCont;
|
|
1019
1021
|
readonly markCont: Container;
|
|
@@ -1036,7 +1038,10 @@ export declare class Table extends Dispatcher {
|
|
|
1036
1038
|
reCache: (scale?: number) => void;
|
|
1037
1039
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
1038
1040
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
1039
|
-
|
|
1041
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
1042
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
1043
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
1044
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
1040
1045
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
1041
1046
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
1042
1047
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -1049,8 +1054,6 @@ export declare class Table extends Dispatcher {
|
|
|
1049
1054
|
rcspString: (color?: string) => string;
|
|
1050
1055
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
1051
1056
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
1054
1057
|
Aname: string;
|
|
1055
1058
|
readonly iHex: IdHex;
|
|
1056
1059
|
readonly rcs: string;
|
|
@@ -1076,7 +1079,6 @@ export declare class Table extends Dispatcher {
|
|
|
1076
1079
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
1077
1080
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
1078
1081
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
1079
|
-
radialDist: (hex: Hex) => number;
|
|
1080
1082
|
}>, row: number, col: number, dText?: string) => void;
|
|
1081
1083
|
setRcText: (row: number, col: number, rcf?: number) => void;
|
|
1082
1084
|
setDistText: (dText?: string, size?: number) => void;
|
|
@@ -1088,7 +1090,10 @@ export declare class Table extends Dispatcher {
|
|
|
1088
1090
|
reCache: (scale?: number) => void;
|
|
1089
1091
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
1090
1092
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
1091
|
-
|
|
1093
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
1094
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
1095
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
1096
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
1092
1097
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
1093
1098
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
1094
1099
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -1101,8 +1106,6 @@ export declare class Table extends Dispatcher {
|
|
|
1101
1106
|
rcspString: (color?: string) => string;
|
|
1102
1107
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
1103
1108
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
1106
1109
|
Aname: string;
|
|
1107
1110
|
readonly iHex: IdHex;
|
|
1108
1111
|
readonly rcs: string;
|
|
@@ -1128,7 +1131,6 @@ export declare class Table extends Dispatcher {
|
|
|
1128
1131
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
1129
1132
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
1130
1133
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
1131
|
-
radialDist: (hex: Hex) => number;
|
|
1132
1134
|
} | undefined): void;
|
|
1133
1135
|
/** invoke dragShift callback if shift state changes */
|
|
1134
1136
|
checkShift(hex: IHex2 | undefined, ctx: DragContext): void;
|
|
@@ -1159,9 +1161,9 @@ export declare class Table extends Dispatcher {
|
|
|
1159
1161
|
dragShift(tile: Tile | undefined, shiftKey: boolean | undefined, ctx: DragContext): void;
|
|
1160
1162
|
/** dropFunc for each Dragable/Tile -> tile.dropFunc0(hex, ctx) */
|
|
1161
1163
|
dropFunc(dobj: DisplayObject, info?: DragInfo, hex?: {
|
|
1164
|
+
readonly radius: number;
|
|
1162
1165
|
readonly implementsIHex2: true;
|
|
1163
1166
|
readonly cont: import("./hex").HexCont;
|
|
1164
|
-
readonly radius: number;
|
|
1165
1167
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
1166
1168
|
readonly mapCont: import("./hex").MapCont;
|
|
1167
1169
|
readonly markCont: Container;
|
|
@@ -1174,9 +1176,9 @@ export declare class Table extends Dispatcher {
|
|
|
1174
1176
|
distText: Text;
|
|
1175
1177
|
rcText: Text;
|
|
1176
1178
|
constructorCode: (map: HexM<{
|
|
1179
|
+
readonly radius: number;
|
|
1177
1180
|
readonly implementsIHex2: true;
|
|
1178
1181
|
readonly cont: import("./hex").HexCont;
|
|
1179
|
-
readonly radius: number;
|
|
1180
1182
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
1181
1183
|
readonly mapCont: import("./hex").MapCont;
|
|
1182
1184
|
readonly markCont: Container;
|
|
@@ -1199,7 +1201,10 @@ export declare class Table extends Dispatcher {
|
|
|
1199
1201
|
reCache: (scale?: number) => void;
|
|
1200
1202
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
1201
1203
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
1202
|
-
|
|
1204
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
1205
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
1206
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
1207
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
1203
1208
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
1204
1209
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
1205
1210
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -1212,8 +1217,6 @@ export declare class Table extends Dispatcher {
|
|
|
1212
1217
|
rcspString: (color?: string) => string;
|
|
1213
1218
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
1214
1219
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
1217
1220
|
Aname: string;
|
|
1218
1221
|
readonly iHex: IdHex;
|
|
1219
1222
|
readonly rcs: string;
|
|
@@ -1239,7 +1242,6 @@ export declare class Table extends Dispatcher {
|
|
|
1239
1242
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
1240
1243
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
1241
1244
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
1242
|
-
radialDist: (hex: Hex) => number;
|
|
1243
1245
|
}>, row: number, col: number, dText?: string) => void;
|
|
1244
1246
|
setRcText: (row: number, col: number, rcf?: number) => void;
|
|
1245
1247
|
setDistText: (dText?: string, size?: number) => void;
|
|
@@ -1251,7 +1253,10 @@ export declare class Table extends Dispatcher {
|
|
|
1251
1253
|
reCache: (scale?: number) => void;
|
|
1252
1254
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
1253
1255
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
1254
|
-
|
|
1256
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
1257
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
1258
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
1259
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
1255
1260
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
1256
1261
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
1257
1262
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -1264,8 +1269,6 @@ export declare class Table extends Dispatcher {
|
|
|
1264
1269
|
rcspString: (color?: string) => string;
|
|
1265
1270
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
1266
1271
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
1269
1272
|
Aname: string;
|
|
1270
1273
|
readonly iHex: IdHex;
|
|
1271
1274
|
readonly rcs: string;
|
|
@@ -1291,7 +1294,6 @@ export declare class Table extends Dispatcher {
|
|
|
1291
1294
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
1292
1295
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
1293
1296
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
1294
|
-
radialDist: (hex: Hex) => number;
|
|
1295
1297
|
} | undefined): void;
|
|
1296
1298
|
/** synthesize dragStart(tile), tile.dragFunc0(hex), dropFunc(tile); */
|
|
1297
1299
|
dragStartAndDrop(tile: Tile, toHex: Hex): void;
|
|
@@ -1303,9 +1305,9 @@ export declare class Table extends Dispatcher {
|
|
|
1303
1305
|
* @param targetHex where to drop Tile [this.dragContext.tile.fromHex]
|
|
1304
1306
|
*/
|
|
1305
1307
|
stopDragging(targetHex?: {
|
|
1308
|
+
readonly radius: number;
|
|
1306
1309
|
readonly implementsIHex2: true;
|
|
1307
1310
|
readonly cont: import("./hex").HexCont;
|
|
1308
|
-
readonly radius: number;
|
|
1309
1311
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
1310
1312
|
readonly mapCont: import("./hex").MapCont;
|
|
1311
1313
|
readonly markCont: Container;
|
|
@@ -1318,9 +1320,9 @@ export declare class Table extends Dispatcher {
|
|
|
1318
1320
|
distText: Text;
|
|
1319
1321
|
rcText: Text;
|
|
1320
1322
|
constructorCode: (map: HexM<{
|
|
1323
|
+
readonly radius: number;
|
|
1321
1324
|
readonly implementsIHex2: true;
|
|
1322
1325
|
readonly cont: import("./hex").HexCont;
|
|
1323
|
-
readonly radius: number;
|
|
1324
1326
|
readonly hexShape: import("@thegraid/easeljs-lib").Paintable;
|
|
1325
1327
|
readonly mapCont: import("./hex").MapCont;
|
|
1326
1328
|
readonly markCont: Container;
|
|
@@ -1343,7 +1345,10 @@ export declare class Table extends Dispatcher {
|
|
|
1343
1345
|
reCache: (scale?: number) => void;
|
|
1344
1346
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
1345
1347
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
1346
|
-
|
|
1348
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
1349
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
1350
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
1351
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
1347
1352
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
1348
1353
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
1349
1354
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -1356,8 +1361,6 @@ export declare class Table extends Dispatcher {
|
|
|
1356
1361
|
rcspString: (color?: string) => string;
|
|
1357
1362
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
1358
1363
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
1361
1364
|
Aname: string;
|
|
1362
1365
|
readonly iHex: IdHex;
|
|
1363
1366
|
readonly rcs: string;
|
|
@@ -1383,7 +1386,6 @@ export declare class Table extends Dispatcher {
|
|
|
1383
1386
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
1384
1387
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
1385
1388
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
1386
|
-
radialDist: (hex: Hex) => number;
|
|
1387
1389
|
}>, row: number, col: number, dText?: string) => void;
|
|
1388
1390
|
setRcText: (row: number, col: number, rcf?: number) => void;
|
|
1389
1391
|
setDistText: (dText?: string, size?: number) => void;
|
|
@@ -1395,7 +1397,10 @@ export declare class Table extends Dispatcher {
|
|
|
1395
1397
|
reCache: (scale?: number) => void;
|
|
1396
1398
|
makeHexShape: (colorn?: string) => import("@thegraid/easeljs-lib").Paintable;
|
|
1397
1399
|
setHexColor: (color: string, district?: number | undefined) => void;
|
|
1398
|
-
|
|
1400
|
+
xywh: (radius?: number, topo?: import("./hex-intfs").TopoC<Partial<Record<import("./hex-intfs").HexDir, import("./hex-intfs").DCR>>, import("./hex-intfs").HexDir>, row?: number, col?: number) => import("./hex-intfs").TopoXYWH;
|
|
1401
|
+
readonly xywh0: import("./hex-intfs").TopoXYWH;
|
|
1402
|
+
radialDist: (hex: import("./hex").Hex2) => number;
|
|
1403
|
+
metricDist: (hex: import("./hex").Hex2) => number;
|
|
1399
1404
|
cornerXY: (dir: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
1400
1405
|
cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, rad?: number, point?: import("@thegraid/easeljs-module").Point) => import("@thegraid/easeljs-module").Point;
|
|
1401
1406
|
edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
|
|
@@ -1408,8 +1413,6 @@ export declare class Table extends Dispatcher {
|
|
|
1408
1413
|
rcspString: (color?: string) => string;
|
|
1409
1414
|
setUnit: (unit?: Tile | undefined, isMeep?: boolean | undefined) => void;
|
|
1410
1415
|
unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
|
|
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;
|
|
1413
1416
|
Aname: string;
|
|
1414
1417
|
readonly iHex: IdHex;
|
|
1415
1418
|
readonly rcs: string;
|
|
@@ -1435,7 +1438,6 @@ export declare class Table extends Dispatcher {
|
|
|
1435
1438
|
forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
|
|
1436
1439
|
nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
|
|
1437
1440
|
lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
|
|
1438
|
-
radialDist: (hex: Hex) => number;
|
|
1439
1441
|
} | undefined): void;
|
|
1440
1442
|
/**
|
|
1441
1443
|
* if (isDragging) stopDragging(targetHex); else startDragging(dragObj);
|