@thegraid/hexlib 1.3.2 → 1.3.4

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
@@ -154,6 +154,7 @@ export declare class Table extends Dispatcher {
154
154
  legalMark: import("./hex").LegalMark;
155
155
  isLegal: boolean;
156
156
  initCont: (row: number, col: number) => void;
157
+ reCache: (scale?: number) => void;
157
158
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
158
159
  setHexColor: (color: string, district?: number | undefined) => void;
159
160
  metricDist: (hex: Hex) => number;
@@ -218,6 +219,7 @@ export declare class Table extends Dispatcher {
218
219
  legalMark: import("./hex").LegalMark;
219
220
  isLegal: boolean;
220
221
  initCont: (row: number, col: number) => void;
222
+ reCache: (scale?: number) => void;
221
223
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
222
224
  setHexColor: (color: string, district?: number | undefined) => void;
223
225
  metricDist: (hex: Hex) => number;
@@ -316,6 +318,7 @@ export declare class Table extends Dispatcher {
316
318
  legalMark: import("./hex").LegalMark;
317
319
  isLegal: boolean;
318
320
  initCont: (row: number, col: number) => void;
321
+ reCache: (scale?: number) => void;
319
322
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
320
323
  setHexColor: (color: string, district?: number | undefined) => void;
321
324
  metricDist: (hex: Hex) => number;
@@ -380,6 +383,7 @@ export declare class Table extends Dispatcher {
380
383
  legalMark: import("./hex").LegalMark;
381
384
  isLegal: boolean;
382
385
  initCont: (row: number, col: number) => void;
386
+ reCache: (scale?: number) => void;
383
387
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
384
388
  setHexColor: (color: string, district?: number | undefined) => void;
385
389
  metricDist: (hex: Hex) => number;
@@ -536,6 +540,341 @@ export declare class Table extends Dispatcher {
536
540
  setToRowCol(cont: Container, row?: number, col?: number, hexCont?: Container): void;
537
541
  /** display source [and legalMark] on given hex [Ankh] */
538
542
  sourceOnHex(source: TileSource<Tile>, hex: IHex2): void;
543
+ /**
544
+ * Make a row of hexC that appear above panel at [row0, 0] (but are not children of panel)
545
+ * Suitable for Tile.makeSource0(...,)
546
+ *
547
+ * The row is centered across the width of panel (based on getBounds().width)
548
+ *
549
+ * Sets hex.visible = false;
550
+ * @param panel offset new Hexes to appear above given Container
551
+ * @param row0 [.75] offset in y direction
552
+ * @param colN [4] number of Hex to create
553
+ * @param hexC [this.hexC]
554
+ * @param vis [false] initial visiblity
555
+ * @returns hexC[] with each hex.cont.xy offset to appear over panel
556
+ */
557
+ hexesOnPanel(panel: Container, row0?: number, colN?: number, hexC?: Constructor<{
558
+ readonly implementsIHex2: true;
559
+ readonly cont: import("./hex").HexCont;
560
+ readonly radius: number;
561
+ readonly hexShape: HexShape;
562
+ readonly mapCont: import("./hex").MapCont;
563
+ readonly markCont: Container;
564
+ x: number;
565
+ y: number;
566
+ readonly scaleX: number;
567
+ readonly scaleY: number;
568
+ district: number | undefined;
569
+ distColor: string;
570
+ distText: Text;
571
+ rcText: Text;
572
+ constructorCode: (map: HexM<{
573
+ readonly implementsIHex2: true;
574
+ readonly cont: import("./hex").HexCont;
575
+ readonly radius: number;
576
+ readonly hexShape: HexShape;
577
+ readonly mapCont: import("./hex").MapCont;
578
+ readonly markCont: Container;
579
+ x: number;
580
+ y: number;
581
+ readonly scaleX: number;
582
+ readonly scaleY: number;
583
+ district: number | undefined;
584
+ distColor: string;
585
+ distText: Text;
586
+ rcText: Text;
587
+ constructorCode: any;
588
+ setRcText: (row: number, col: number, rcf?: number) => void;
589
+ setDistText: (dText?: string, size?: number) => void;
590
+ showText: (vis?: boolean) => void;
591
+ makeLegalMark: () => import("./hex").LegalMark;
592
+ legalMark: import("./hex").LegalMark;
593
+ isLegal: boolean;
594
+ initCont: (row: number, col: number) => void;
595
+ reCache: (scale?: number) => void;
596
+ makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
597
+ setHexColor: (color: string, district?: number | undefined) => void;
598
+ metricDist: (hex: Hex) => number;
599
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
600
+ edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
601
+ _tile: import("./tile").MapTile | undefined;
602
+ tile: Tile | undefined;
603
+ _meep: import("./meeple").Meeple | undefined;
604
+ meep: import("./meeple").Meeple | undefined;
605
+ readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
606
+ toString: (color?: string) => string;
607
+ rcspString: (color?: string) => string;
608
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
609
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
610
+ xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
611
+ x: number;
612
+ y: number;
613
+ w: number;
614
+ h: number;
615
+ dxdc: number;
616
+ dydr: number;
617
+ };
618
+ readonly xywh0: {
619
+ x: number;
620
+ y: number;
621
+ w: number;
622
+ h: number;
623
+ dxdc: number;
624
+ dydr: number;
625
+ };
626
+ Aname: string;
627
+ readonly iHex: IdHex;
628
+ readonly rcs: string;
629
+ readonly rowsp: string;
630
+ readonly colsp: string;
631
+ readonly rcsp: string;
632
+ readonly rc_linear: number;
633
+ _rcLinear?: number | undefined;
634
+ _district: number | undefined;
635
+ readonly isOnMap: boolean;
636
+ _isLegal: boolean;
637
+ readonly map: HexM<Hex>;
638
+ readonly row: number;
639
+ readonly col: number;
640
+ readonly links: import("./hex").LINKS<import("./hex").Hex2>;
641
+ metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
642
+ readonly linkDirs: import("./hex-intfs").HexDir[];
643
+ readonly linkHexes: (import("./hex").Hex2 | undefined)[];
644
+ forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
645
+ findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
646
+ 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;
647
+ hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
648
+ forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
649
+ nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
650
+ lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
651
+ radialDist: (hex: Hex) => number;
652
+ }>, row: number, col: number, dText?: string) => void;
653
+ setRcText: (row: number, col: number, rcf?: number) => void;
654
+ setDistText: (dText?: string, size?: number) => void;
655
+ showText: (vis?: boolean) => void;
656
+ makeLegalMark: () => import("./hex").LegalMark;
657
+ legalMark: import("./hex").LegalMark;
658
+ isLegal: boolean;
659
+ initCont: (row: number, col: number) => void;
660
+ reCache: (scale?: number) => void;
661
+ makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
662
+ setHexColor: (color: string, district?: number | undefined) => void;
663
+ metricDist: (hex: Hex) => number;
664
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
665
+ edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
666
+ _tile: import("./tile").MapTile | undefined;
667
+ tile: Tile | undefined;
668
+ _meep: import("./meeple").Meeple | undefined;
669
+ meep: import("./meeple").Meeple | undefined;
670
+ readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
671
+ toString: (color?: string) => string;
672
+ rcspString: (color?: string) => string;
673
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
674
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
675
+ xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
676
+ x: number;
677
+ y: number;
678
+ w: number;
679
+ h: number;
680
+ dxdc: number;
681
+ dydr: number;
682
+ };
683
+ readonly xywh0: {
684
+ x: number;
685
+ y: number;
686
+ w: number;
687
+ h: number;
688
+ dxdc: number;
689
+ dydr: number;
690
+ };
691
+ Aname: string;
692
+ readonly iHex: IdHex;
693
+ readonly rcs: string;
694
+ readonly rowsp: string;
695
+ readonly colsp: string;
696
+ readonly rcsp: string;
697
+ readonly rc_linear: number;
698
+ _rcLinear?: number | undefined;
699
+ _district: number | undefined;
700
+ readonly isOnMap: boolean;
701
+ _isLegal: boolean;
702
+ readonly map: HexM<Hex>;
703
+ readonly row: number;
704
+ readonly col: number;
705
+ readonly links: import("./hex").LINKS<import("./hex").Hex2>;
706
+ metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
707
+ readonly linkDirs: import("./hex-intfs").HexDir[];
708
+ readonly linkHexes: (import("./hex").Hex2 | undefined)[];
709
+ forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
710
+ findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
711
+ 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;
712
+ hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
713
+ forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
714
+ nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
715
+ lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
716
+ radialDist: (hex: Hex) => number;
717
+ }>, vis?: boolean): {
718
+ readonly implementsIHex2: true;
719
+ readonly cont: import("./hex").HexCont;
720
+ readonly radius: number;
721
+ readonly hexShape: HexShape;
722
+ readonly mapCont: import("./hex").MapCont;
723
+ readonly markCont: Container;
724
+ x: number;
725
+ y: number;
726
+ readonly scaleX: number;
727
+ readonly scaleY: number;
728
+ district: number | undefined;
729
+ distColor: string;
730
+ distText: Text;
731
+ rcText: Text;
732
+ constructorCode: (map: HexM<{
733
+ readonly implementsIHex2: true;
734
+ readonly cont: import("./hex").HexCont;
735
+ readonly radius: number;
736
+ readonly hexShape: HexShape;
737
+ readonly mapCont: import("./hex").MapCont;
738
+ readonly markCont: Container;
739
+ x: number;
740
+ y: number;
741
+ readonly scaleX: number;
742
+ readonly scaleY: number;
743
+ district: number | undefined;
744
+ distColor: string;
745
+ distText: Text;
746
+ rcText: Text;
747
+ constructorCode: any;
748
+ setRcText: (row: number, col: number, rcf?: number) => void;
749
+ setDistText: (dText?: string, size?: number) => void;
750
+ showText: (vis?: boolean) => void;
751
+ makeLegalMark: () => import("./hex").LegalMark;
752
+ legalMark: import("./hex").LegalMark;
753
+ isLegal: boolean;
754
+ initCont: (row: number, col: number) => void;
755
+ reCache: (scale?: number) => void;
756
+ makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
757
+ setHexColor: (color: string, district?: number | undefined) => void;
758
+ metricDist: (hex: Hex) => number;
759
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
760
+ edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
761
+ _tile: import("./tile").MapTile | undefined;
762
+ tile: Tile | undefined;
763
+ _meep: import("./meeple").Meeple | undefined;
764
+ meep: import("./meeple").Meeple | undefined;
765
+ readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
766
+ toString: (color?: string) => string;
767
+ rcspString: (color?: string) => string;
768
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
769
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
770
+ xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
771
+ x: number;
772
+ y: number;
773
+ w: number;
774
+ h: number;
775
+ dxdc: number;
776
+ dydr: number;
777
+ };
778
+ readonly xywh0: {
779
+ x: number;
780
+ y: number;
781
+ w: number;
782
+ h: number;
783
+ dxdc: number;
784
+ dydr: number;
785
+ };
786
+ Aname: string;
787
+ readonly iHex: IdHex;
788
+ readonly rcs: string;
789
+ readonly rowsp: string;
790
+ readonly colsp: string;
791
+ readonly rcsp: string;
792
+ readonly rc_linear: number;
793
+ _rcLinear?: number | undefined;
794
+ _district: number | undefined;
795
+ readonly isOnMap: boolean;
796
+ _isLegal: boolean;
797
+ readonly map: HexM<Hex>;
798
+ readonly row: number;
799
+ readonly col: number;
800
+ readonly links: import("./hex").LINKS<import("./hex").Hex2>;
801
+ metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
802
+ readonly linkDirs: import("./hex-intfs").HexDir[];
803
+ readonly linkHexes: (import("./hex").Hex2 | undefined)[];
804
+ forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
805
+ findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
806
+ 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;
807
+ hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
808
+ forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
809
+ nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
810
+ lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
811
+ radialDist: (hex: Hex) => number;
812
+ }>, row: number, col: number, dText?: string) => void;
813
+ setRcText: (row: number, col: number, rcf?: number) => void;
814
+ setDistText: (dText?: string, size?: number) => void;
815
+ showText: (vis?: boolean) => void;
816
+ makeLegalMark: () => import("./hex").LegalMark;
817
+ legalMark: import("./hex").LegalMark;
818
+ isLegal: boolean;
819
+ initCont: (row: number, col: number) => void;
820
+ reCache: (scale?: number) => void;
821
+ makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
822
+ setHexColor: (color: string, district?: number | undefined) => void;
823
+ metricDist: (hex: Hex) => number;
824
+ cornerPoint: (dir0: import("./hex-intfs").HexDir, dir1: import("./hex-intfs").HexDir, point?: import("@thegraid/easeljs-module").Point, rad?: number) => import("@thegraid/easeljs-module").Point;
825
+ edgePoint: (dir: import("./hex-intfs").HexDir, rad?: number, point?: XY) => import("@thegraid/easeljs-module").Point;
826
+ _tile: import("./tile").MapTile | undefined;
827
+ tile: Tile | undefined;
828
+ _meep: import("./meeple").Meeple | undefined;
829
+ meep: import("./meeple").Meeple | undefined;
830
+ readonly occupied: [Tile | undefined, import("./meeple").Meeple | undefined] | undefined;
831
+ toString: (color?: string) => string;
832
+ rcspString: (color?: string) => string;
833
+ setUnit: (unit: Tile, isMeep?: boolean) => void;
834
+ unitCollision: (this_unit: Tile, unit: Tile, isMeep?: boolean) => void;
835
+ xywh: (radius?: number, ewTopo?: boolean, row?: number, col?: number) => {
836
+ x: number;
837
+ y: number;
838
+ w: number;
839
+ h: number;
840
+ dxdc: number;
841
+ dydr: number;
842
+ };
843
+ readonly xywh0: {
844
+ x: number;
845
+ y: number;
846
+ w: number;
847
+ h: number;
848
+ dxdc: number;
849
+ dydr: number;
850
+ };
851
+ Aname: string;
852
+ readonly iHex: IdHex;
853
+ readonly rcs: string;
854
+ readonly rowsp: string;
855
+ readonly colsp: string;
856
+ readonly rcsp: string;
857
+ readonly rc_linear: number;
858
+ _rcLinear?: number | undefined;
859
+ _district: number | undefined;
860
+ readonly isOnMap: boolean;
861
+ _isLegal: boolean;
862
+ readonly map: HexM<Hex>;
863
+ readonly row: number;
864
+ readonly col: number;
865
+ readonly links: import("./hex").LINKS<import("./hex").Hex2>;
866
+ metaLinks: import("./hex").LINKS<import("./hex").Hex2>;
867
+ readonly linkDirs: import("./hex-intfs").HexDir[];
868
+ readonly linkHexes: (import("./hex").Hex2 | undefined)[];
869
+ forEachLinkHex: (func: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir | undefined, hex0: import("./hex").Hex2) => unknown, inclCenter?: boolean) => void;
870
+ findLinkHex: (pred: (hex: import("./hex").Hex2 | undefined, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => boolean) => import("./hex-intfs").HexDir | undefined;
871
+ 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;
872
+ hexesInDir: (dir: import("./hex-intfs").HexDir, rv?: import("./hex").Hex2[]) => import("./hex").Hex2[];
873
+ forEachHexDir: (func: (hex: import("./hex").Hex2, dir: import("./hex-intfs").HexDir, hex0: import("./hex").Hex2) => unknown) => void;
874
+ nextHex: (dir: import("./hex-intfs").HexDir, ns?: number) => import("./hex").Hex2 | undefined;
875
+ lastHex: (ds: import("./hex-intfs").HexDir) => import("./hex").Hex2;
876
+ radialDist: (hex: Hex) => number;
877
+ }[];
539
878
  /** @deprecated use UtilButton (change cgf on RectShape) [legacy from Ankh] */
540
879
  makeCircleButton(color?: string, rad?: number, c?: string, fs?: number): Container;
541
880
  /** @deprecated use UtilButton [from Ankh] */
@@ -579,6 +918,7 @@ export declare class Table extends Dispatcher {
579
918
  legalMark: import("./hex").LegalMark;
580
919
  isLegal: boolean;
581
920
  initCont: (row: number, col: number) => void;
921
+ reCache: (scale?: number) => void;
582
922
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
583
923
  setHexColor: (color: string, district?: number | undefined) => void;
584
924
  metricDist: (hex: Hex) => number;
@@ -643,6 +983,7 @@ export declare class Table extends Dispatcher {
643
983
  legalMark: import("./hex").LegalMark;
644
984
  isLegal: boolean;
645
985
  initCont: (row: number, col: number) => void;
986
+ reCache: (scale?: number) => void;
646
987
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
647
988
  setHexColor: (color: string, district?: number | undefined) => void;
648
989
  metricDist: (hex: Hex) => number;
@@ -777,6 +1118,7 @@ export declare class Table extends Dispatcher {
777
1118
  legalMark: import("./hex").LegalMark;
778
1119
  isLegal: boolean;
779
1120
  initCont: (row: number, col: number) => void;
1121
+ reCache: (scale?: number) => void;
780
1122
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
781
1123
  setHexColor: (color: string, district?: number | undefined) => void;
782
1124
  metricDist: (hex: Hex) => number;
@@ -841,6 +1183,7 @@ export declare class Table extends Dispatcher {
841
1183
  legalMark: import("./hex").LegalMark;
842
1184
  isLegal: boolean;
843
1185
  initCont: (row: number, col: number) => void;
1186
+ reCache: (scale?: number) => void;
844
1187
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
845
1188
  setHexColor: (color: string, district?: number | undefined) => void;
846
1189
  metricDist: (hex: Hex) => number;
@@ -948,6 +1291,7 @@ export declare class Table extends Dispatcher {
948
1291
  legalMark: import("./hex").LegalMark;
949
1292
  isLegal: boolean;
950
1293
  initCont: (row: number, col: number) => void;
1294
+ reCache: (scale?: number) => void;
951
1295
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
952
1296
  setHexColor: (color: string, district?: number | undefined) => void;
953
1297
  metricDist: (hex: Hex) => number;
@@ -1012,6 +1356,7 @@ export declare class Table extends Dispatcher {
1012
1356
  legalMark: import("./hex").LegalMark;
1013
1357
  isLegal: boolean;
1014
1358
  initCont: (row: number, col: number) => void;
1359
+ reCache: (scale?: number) => void;
1015
1360
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
1016
1361
  setHexColor: (color: string, district?: number | undefined) => void;
1017
1362
  metricDist: (hex: Hex) => number;
@@ -1135,6 +1480,7 @@ export declare class Table extends Dispatcher {
1135
1480
  legalMark: import("./hex").LegalMark;
1136
1481
  isLegal: boolean;
1137
1482
  initCont: (row: number, col: number) => void;
1483
+ reCache: (scale?: number) => void;
1138
1484
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
1139
1485
  setHexColor: (color: string, district?: number | undefined) => void;
1140
1486
  metricDist: (hex: Hex) => number;
@@ -1199,6 +1545,7 @@ export declare class Table extends Dispatcher {
1199
1545
  legalMark: import("./hex").LegalMark;
1200
1546
  isLegal: boolean;
1201
1547
  initCont: (row: number, col: number) => void;
1548
+ reCache: (scale?: number) => void;
1202
1549
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
1203
1550
  setHexColor: (color: string, district?: number | undefined) => void;
1204
1551
  metricDist: (hex: Hex) => number;
@@ -1303,6 +1650,7 @@ export declare class Table extends Dispatcher {
1303
1650
  legalMark: import("./hex").LegalMark;
1304
1651
  isLegal: boolean;
1305
1652
  initCont: (row: number, col: number) => void;
1653
+ reCache: (scale?: number) => void;
1306
1654
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
1307
1655
  setHexColor: (color: string, district?: number | undefined) => void;
1308
1656
  metricDist: (hex: Hex) => number;
@@ -1367,6 +1715,7 @@ export declare class Table extends Dispatcher {
1367
1715
  legalMark: import("./hex").LegalMark;
1368
1716
  isLegal: boolean;
1369
1717
  initCont: (row: number, col: number) => void;
1718
+ reCache: (scale?: number) => void;
1370
1719
  makeHexShape: (shape?: Constructor<HexShape>) => HexShape;
1371
1720
  setHexColor: (color: string, district?: number | undefined) => void;
1372
1721
  metricDist: (hex: Hex) => number;
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../src/table.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAS,WAAW,EAAe,EAAE,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAwC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAa,cAAc,EAAE,WAAW,EAAE,QAAQ,EAAa,SAAS,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnO,OAAO,EAAE,SAAS,EAAE,aAAa,EAAY,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAElG,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAU,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,WAAW,QAAQ;IACvB,SAAS,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,GAAG,IAAI,CAAC;IAC9C,SAAS,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,WAAW,GAAG,IAAI,CAAC;CAC/C;AAED,qBAAqB;AACrB,c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MrC,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAO;IACtB,8CAA8C;IAC9C,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,SAAe;IAG7C,WAAW;;;;;;MAA0E;IAErF,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC;;OAEG;IACH,aAAa;IAYb,6CAA6C;IAC7C,QAAQ;IAUR,+DAA+D;IAC/D,aAAa,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,SAAa;IAQnE,KAAK,EAAE,IAAI,CAAuC;IAClD,KAAK,EAAE,IAAI,CAAwD;IACnE;;;;;;;;;;OAUG;IACH,eAAe,CAAC,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE;IAuB5D,kEAAkE;IAClE,UAAU,CAAC,EAAE,SAAM,EAAE,EAAE,GAAE,EAAmB,GAAG,MAAM;IAMrD,YAAY,CAAC,EAAE,SAAM,EAAE,EAAE;;;KAAiB;IAU1C,IAAI,CAAC,CAAC,SAAM;IAQZ,GAAG,CAAC,EAAE,EAAE,EAAE;IAKV;;;;;;OAMG;IACH,aAAa;CAWd;AACD,KAAK,IAAI,GAAG,EAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA"}
package/dist/table.js CHANGED
@@ -3,7 +3,7 @@ import { afterUpdate, CenterText, CircleShape, Dispatcher, Dragger, KeyBinder, N
3
3
  import { Container, Graphics, Shape, Text } from "@thegraid/easeljs-module";
4
4
  import { EBC, PidChoice } from "./choosers";
5
5
  import { TileEvent } from "./game-play";
6
- import { RecycleHex } from "./hex";
6
+ import { Hex, RecycleHex } from "./hex";
7
7
  import { PlayerPanel } from "./player-panel";
8
8
  import { HexShape } from "./shapes";
9
9
  import { playerColor0, playerColor1, TP } from "./table-params";
@@ -222,9 +222,9 @@ export class Table extends Dispatcher {
222
222
  return;
223
223
  } // skip one 'click' when pressup/dropfunc
224
224
  this.isVisible = vis;
225
- Tile.allTiles.forEach(tile => tile.textVis(vis));
226
- this.hexMap.forEachHex(hex => hex.showText(vis));
227
- this.hexMap.update(); // after toggleText & updateCache()
225
+ Tile.allTiles?.forEach(tile => tile.textVis(vis));
226
+ this.hexMap?.forEachHex(hex => hex.showText(vis));
227
+ this.hexMap?.update(); // after toggleText & updateCache()
228
228
  return;
229
229
  }
230
230
  cacheScale = TP.cacheTiles;
@@ -501,6 +501,36 @@ export class Table extends Dispatcher {
501
501
  hex.legalMark.setOnHex(hex);
502
502
  hex.cont.visible = false;
503
503
  }
504
+ /**
505
+ * Make a row of hexC that appear above panel at [row0, 0] (but are not children of panel)
506
+ * Suitable for Tile.makeSource0(...,)
507
+ *
508
+ * The row is centered across the width of panel (based on getBounds().width)
509
+ *
510
+ * Sets hex.visible = false;
511
+ * @param panel offset new Hexes to appear above given Container
512
+ * @param row0 [.75] offset in y direction
513
+ * @param colN [4] number of Hex to create
514
+ * @param hexC [this.hexC]
515
+ * @param vis [false] initial visiblity
516
+ * @returns hexC[] with each hex.cont.xy offset to appear over panel
517
+ */
518
+ hexesOnPanel(panel, row0 = .75, colN = 4, hexC = this.hexC, vis = false) {
519
+ const rv = [], map = this.hexMap;
520
+ const { x: x0, y: y0 } = map.xyFromMap(panel, 0, 0); // offset from hexCont to panel
521
+ const { width: panelw } = panel.getBounds();
522
+ const { x: xn, dydr } = Hex.xywh(undefined, undefined, 0, colN - 1); // x of last cell
523
+ const dx = (panelw - xn) / 2, dy = row0 * dydr; // allocate any extra space (wide-xn) to either side
524
+ for (let col = 0; col < colN; col++) {
525
+ const hex = this.newHex2(.01, col, `C${col}`, hexC); // child of map.mapCont.hexCont
526
+ rv.push(hex);
527
+ hex.cont.x += (dx - x0);
528
+ hex.cont.y += (dy - y0);
529
+ hex.cont.visible = vis;
530
+ hex.legalMark.setOnHex(hex);
531
+ }
532
+ return rv;
533
+ }
504
534
  /** @deprecated use UtilButton (change cgf on RectShape) [legacy from Ankh] */
505
535
  makeCircleButton(color = C.WHITE, rad = TP.hexRad / 3, c, fs = rad * 3 / 2) {
506
536
  const button = new Container();