Center non-negative, finite, boards (#14)

This commit is contained in:
gavin
2018-08-23 02:03:06 +00:00
committed by Gitea
parent 77993e41e8
commit 90cf1723a8
4 changed files with 30 additions and 17 deletions

View File

@@ -22,7 +22,7 @@ import {
TILE_STYLES,
BOARD_STYLES,
FLAT, POINTY,
TILE_ORIENTATIONS,
ORIENTATION_STYLES,
FILL, OUTLINE,
DRAW_STYLES,
} from './consts.js';
@@ -64,13 +64,13 @@ function selectCartographer(board, orientation) {
}
export class Tessellate {
static get TILE_STYLES() {return TILE_STYLES}
static get BOARD_STYLES() {return BOARD_STYLES}
static get TILE_ORIENTATIONS() {return TILE_ORIENTATIONS} // TODO: rename to ORIENTATION_STYLES
static get DRAW_STYLES() {return DRAW_STYLES}
static get TILE_STYLES() {return TILE_STYLES}
static get BOARD_STYLES() {return BOARD_STYLES}
static get ORIENTATION_STYLES() {return ORIENTATION_STYLES}
static get DRAW_STYLES() {return DRAW_STYLES}
static get TILES() {return TILES}
static get Cell() {return Cell}
static get TILES() {return TILES}
static get Cell() {return Cell}
static get Shapes() {return Shapes}
static get utils() {return utils}