Skip to content

piecepackr v1.0.2

Compare
Choose a tag to compare
@trevorld trevorld released this 28 Jun 16:58
· 405 commits to master since this release

piecepackr 1.0.2

  • Initial "stable" release.

New features

  • save_print_and_play function now supports adding piecepack pyramids (#37), matchsticks (#69), and subpacks (aka "travel" piecepacks) (#129) to the print-and-play layout.
  • Now supports drawing most pieces with a simple 3D oblique projection (#76).
  • New pp_cfg function (and R6 class) which on-the-fly builds a cache to speed up component drawing (#112, #122).
    Can also signal to rule diagram functions whether the piecepack lacks certain components (#130).
  • Now exports several additional utility functions for those who would like to use their own custom draw function (#116). See help("pp_utils"), help("grob_fn_helpers"), and help("grid.piece") for more info.

Breaking changes

  • component_opt color names are now _color instead of _col to better match "configuration lists".
  • draw_component has been renamed grid.piece (and many of its arguments vectorized) and
    draw_components has been renamed pmap_piece(#123).
  • make_images has been renamed save_piece_images and make_pnp has been renamed save_print_and_play.
  • The function arguments component_side, i_r, and i_s have been
    renamed piece_side, rank, and suit.
  • Lots of configuration list style names were changed (#95, #121, #140).
  • All executable Rscripts have been removed (#113).
  • make_collection and make_preview functions removed.
  • load_configurations and read_configuration functions removed.
  • make_pnp print-and-play layouts have been radically re-configured and renamed to save_print_and_play (#54).
  • Non-standard chip component no longer supported by piecepackr (#114)
  • 'hexlines' and 'checkers' no longer supported by base piecepackr configuration (#115).
    NB. Can still add checkers and hexlines via a custom drawing function.
  • make_pnp now gets deck title from the configuration element title (#118)
  • ribbons are now mat (as in picture frame 'matting') (#117)
  • Default pawn "belt" width is now ¾π" (#105).
  • Default pawn "saucer" width is now ¾" and they now have a 'mat' coloring on the edge (#105)
  • draw_preview function has been removed. Can now do grid.piece("preview_layout", cfg=cfg).
  • Demos moved to companion website: https://trevorldavis.com/piecepackr

Bug fixes and minor improvements

  • Bug in get_embedded_font function fixed.
  • make_pnp function now supports the A5 page size and is more A4 page size friendly (#54).
  • Can now specify fontface (#121) as well as width, height, and depth (#106) in configuration lists.
  • Removed some package dependencies.
  • pmap_piece now supports angle=NA and grid.piece no longer draws different output
    for components like tile_back if you specify a suit or rank (#120).
  • "configuration lists" now support credit, copyright, and description fields
    which add extra info to the new "credit", "copyright", and "description" sections of the print-and-play layout.
  • "configuration lists" now support coin_arrangement (#136).
  • Also if ghostscript installed will automatically embed metadata in the print-and-play pdf (#93).
  • "configuration lists" now support border_lex and gridline_lex to allow customizing the width of the border and grid lines.
  • save_piece_images's format argument is now vectorized.
  • save_print_and_play can now save a print-and-play "svg" and "ps" file (besides "pdf").
  • grid.piece no longer throws a warning when use_pictureGrob==TRUE and angle!=0 (#148).