Skip to content

Abstract Play Renderer

Compare
Choose a tag to compare
@Perlkonig Perlkonig released this 19 Dec 21:43

Breaking Change

  • Yet another breaking change. Found an issue where nested glyphs (symbols within symbols) couldn't be reused because of how the IDs got duplicated. So I completely refactored the glyph loading code. This has vastly simplified the <defs> section. It now only contains the glyphs defined in the legend. It means that glyphs in the sheets may not have hard-coded IDs. Let the renderer auto-assign them. More documentation on this is forthcoming.

Added

  • Documented the API. This involved adding full TSDoc comments and using TypeDoc to generate the HTML. Also included an API description from Microsoft's API Extractor. The JSON schema is still documented manually. See the /docs folder.
  • A new playground/demo site is now available at https://abstractplay.com/renderer/.
  • Added tileSpacing property that, when combined with tileWidth and tileHeight, will break the tiles apart and space them from each other. Only works for squares* and vertex* boards.
  • Added a glyphmap: [string,string][] option to the renderer (where [string,string] is the old glyph name mapped to a new glyph name). This lets the user swap any glyph for another. Say they prefer the square pieces to the default round ones. The front end could let them map piece to piece-square.
  • Added glyphs for Alfred's Wyke.