Skip to content

v2.4.0

Compare
Choose a tag to compare
@edemaine edemaine released this 28 Jul 19:35
· 171 commits to main since this release
  • Selective building (#70): svgtiler no longer builds everything; it now acts like make and selectively builds what it detects needs rebuilding. .svg/.tex files will be recomputed only when they are older than the drawing file, any mapping file (or one of their required dependencies), or any style file; otherwise, you will see the message (SKIPPED). These files only get rewritten (and their date stamp changed) if their contents have actually changed; otherwise, you will see the message (UNCHANGED). This pairs well with the PDF/PNG conversion of v2.3.0, which only does Inkscape conversion when the SVG file is newer: if the SVG doesn't change, it will no longer trigger PDF/PNG conversion.
    • Use -f/--force to override and force all builds, like the old behavior.
  • Support require/importing raster images and SVG files from JavaScript/CoffeeScript mapping files (#73). Returns the SVG content as Preact Virtual DOM, making it easy to modify (e.g., strip off <svg> wrapper or add a child). Raw SVG string also available via require(...).svg.
  • New Chess example illustrating new require feature for loading and manipulating .svg files, dynamic symbol computation, and JSX notation for creating and composing symbols.
  • Provide new share global variable for sharing state between mapping files (#77). For example, this lets you define one mapping file whose behavior is controlled by options specified by one or more other mapping files. (See revised Mario example.)
  • Add match method to Context for simpler RegExp matching (previously documented by not implemented)
  • Omit SVG Tiler version number from generated .tex files, for consistent builds and version control across multiple users
  • Warn instead of crash when mapping returns string
  • Fix multiple xmlns:xlink attributes arising when embedding using .svg files directly inside tiles.
  • Fix removal of SVG/XML comment headers in .svg source files (when require/importing and for namespace mangling)
  • Remove examples directory from NPM package, reducing package size from 1.1 MB (135.6 kB compressed) to 184.9 kB (55.8 kB compressed), for faster installation.
  • Document -i/--inkscape option
  • Documentation now has table of contents for easier navigation

Full Changelog: v2.3.0...v2.4.0