lila-gif icon indicating copy to clipboard operation
lila-gif copied to clipboard

draft: SVG renderer

Open cymruu opened this issue 1 year ago • 0 comments

inspired by https://github.com/lichess-org/lila/issues/12514

result file: example1 another example: example2

example

TODO:

  • [x] field highlight
  • [x] orientation
  • [x] check highlighting
  • [ ] player bars
  • [ ] coordinates
  • [x] board colors
  • [ ] various piece themes support (most of them are broken for now)
  • [ ] svg minification
  • [ ] code cleanup
  • [ ] ? arrows ?
  • [x] size optimization - use svg defs to reuse piece paths https://developer.mozilla.org/en-US/docs/Web/SVG/Element/defs
  • [x] use lila svg boards https://github.com/lichess-org/lila/blob/master/public/images/board/svg/

cymruu avatar Apr 07 '23 16:04 cymruu