Skip to content

Releases: edemaine/svgtiler

v1.14.0

13 Feb 19:47
Compare
Choose a tag to compare
  • Give Context (this in any function defining a symbol) access to filename (drawing filename) and subname (sheet name within e.g. .xlsx file). This makes it easy to customize e.g. colors for specific images, while sharing .js/.coffee code among many files. (#59)

v1.13.0

12 Feb 20:13
Compare
Choose a tag to compare
  • Improved LaTeX support (#54) [BREAKING from v1.12]:
    • Switch from .tex to .svg_tex extension for LaTeX component. This fixes use of figures in arXiv.org submissions, which prevents file.pdf and file.tex from simultaneously existing. It also parallels the .pdf/.pdf_tex output of Inkscape. But it's different, as the separation is done while generating the SVG instead of while generating the PDF, so we don't use .pdf_tex.
    • Correct relative scaling: SVG units are 1px = 0.75bp, not 0.75pt. This slightly (<0.4%) affects the default (and \svgscale'd) sizing of figures, but now matches the default from \includegraphics applied to the PDF.
    • Support currfile.sty as a way to find auxiliary graphics file in LaTeX output.
    • Improve documentation, both in .svg_tex file and in README.
  • Revamp README into sections
  • Output svgtiler version in help, to help with debugging
  • Update compiled examples to new id style ($v instead of -v from v1.11)

v1.12.2

12 Feb 20:09
Compare
Choose a tag to compare
  • Mogrify require calls to make ./ and ../ paths be relative to the .js or .coffee mapping file.
  • Use coffeescript/register to guarantee require('*.coffee') works

v1.12.1

08 Feb 19:56
Compare
Choose a tag to compare

v1.12.0

04 Feb 00:19
Compare
Choose a tag to compare
  • New feature for converting all <text> into a LaTeX overlay in a .tex file, including \svgscale, \svgwidth, and \svgheight to control sizing (#54)
  • Code cleanup

v1.11.0

02 Feb 18:12
Compare
Choose a tag to compare
  • Versioned ids use $v5 suffix instead of -v5 suffix, avoiding ambiguity (#45)
  • Rename $UNRECOGNIZED$ symbol, avoiding id ambiguity (#45)
  • Support slashes in direct image filenames by fixing escaping
  • Fix id generation for blank key

v1.10.0

03 Jan 14:58
Compare
Choose a tag to compare
  • Reset symbol numbering before each SVG output, which makes for more consistent outputs (#53)
  • Warn about duplicate symbol labels (#45)
  • Initial support for use as a module: Export all classes, namespaces, unrecognizedSymbol, main function
  • Initial support for in-browser use:
    • Wrap in function to prevent polluting namespace (except svgtiler which is the exported module)
    • Mock Node's path module to the extent needed (extension detection)
    • Fix use of DOMParser because of CoffeeScript scoping, and domImplementation
    • Force SVG namespace before parsing, so we get the correct namespaceURI in created nodes, without outputting additional xmlns attributes
    • Extend Input.parseFile API to allow passing in file data directly
  • Rename svg2 -> convertSVG in API
  • Bug fixes in bounding box detection, which improved tilt example
  • Bug fix in polyomino example (wrong viewBox specified)
  • Optimization: avoid creating Context for StaticSymbols which don't use it, via new usesContext hint
  • Upgrade CoffeeScript, preact, Babel, csv-parse, xlsx, xmldom, image-size, async-limiter dependencies
    • CoffeeScript 2.5 now supports xlink:href tags (#41)

v1.9.1

13 Jun 03:32
Compare
Choose a tag to compare
  • Critical bug fix: MODULE_NOT_FOUND error occurred in any use of .js or .coffee input (caused by Babel path resolution weirdness)
  • Add build rules for polyomino example

v1.9.0

12 Jun 03:52
Compare
Choose a tag to compare
  • Support JSX and CoffeeScript's analog via Preact (#32). You can now beautifully mix JavaScript/CoffeeScript and bare SVG content with minimal notation in between (just {}s to return to *Script).
  • See new polyomino example for how this cleans up code.
  • Unfortunately, our new use of Babel broke the feature introduced in 1.6.2: Errors in .coffee files are no longer prefixed with correct filename and line numbers. I'll try to get this back, somehow...
  • Fix DynamicSymbol caching: would re-use symbol when generating objects, even if contents differed. (Also necessary for current approach to JSX.)

v1.8.0

08 Jun 03:29
Compare
Choose a tag to compare
  • Feature: Automatic width/height of tiles via width="auto" and height="auto"
  • Feature: Undefined symbols are now rendered like � so they're easier to locate (#18)
  • Bug fix: Handling of relative filenames in mapping files
  • Cleanup: Refactor overflow: visible check
  • Documentation improvements
  • Testing/build improvements (#26)