Skip to content

Releases: edemaine/svgtiler

v1.17.0

05 Aug 00:49
Compare
Choose a tag to compare
  • API improvements:
    • renderSVG* no longer requires the styles argument
    • Drawing.useHref can be set to use <use href=...> (SVG 2) instead of <use xlink:href=...> (SVG 1.1). This behaves better when embedding directly into HTML.
  • Fix use of svgtiler on web (via <script> tag, no bundling)
    • Switch from setAttributeNS to setAttribute; only createElementNS seems to be needed/preferred
    • Workarounds for grapheme-splitter (with imperfect Unicode handling), prettify-xml (no prettification), and version number ((web))

v1.16.4

27 Jul 19:28
Compare
Choose a tag to compare
  • Fix svgtiler API access within symbol definition files (introduced in v1.16.3 when fixing exports)
  • Add support for svgtiler.version version number in API

v1.16.3

27 Jul 19:26
Compare
Choose a tag to compare
  • Update dependencies, including DoS security vulnerabilities in xlsx
  • Render Preact to string before duplicate detection, needed for latest Preact. You may need smaller SVG output files thanks to better duplicate detection.
  • Fix svgtiler not knowing its own version number (in .svg_tex files and command-line output)
  • Fix exports when using svgtiler.js in browser or in Node
  • Fix handling of symbol without viewBox and manual width/height via --tw/--th options (as in examples/tilt).

v1.16.2

04 May 22:42
Compare
Choose a tag to compare

v1.16.1

26 Jun 19:35
Compare
Choose a tag to compare
  • Fix support for zero-size viewBox width and/or height, so that "Even zero-width and zero-height symbols will get rendered (unless overflow="hidden")" as claimed in README and as used to be (regression likely introduced in 1.15.0).

v1.16.0

30 May 15:05
Compare
Choose a tag to compare
  • CSS styling can now be specified in Stylus or CSS (#38)
  • Inkscape 1.0 (which has different command-line syntax) is now supported for automatic PDF/PNG conversion
  • New .js/.coffee evaluation via Function engine instead of eval, which should offer a more consistent environment and is hopefully also faster. No more messing with the first line of code, which gives source maps more of a chance. Should be backwards-compatible via a new implicit-final-return Babel plugin.
  • Context (this in symbol definitions) now has match method for regular expression matching (#12)
  • SVG ids are escaped differently, now completely following the relevant specification (no dollar signs allowed) and unwritten spec (colons don't work on embedded SVGs). Underscores are the answer. Generated SVGs will differ but be more compatible.
  • Generated SVGs no longer have nonstandard z-index or overflowBox attributes (#62) or stray xmlns
  • Improved testing, including SVG validation which now fully passes
  • Many documentation improvements
    • Rewrote opening paragraphs, including earlier demonstrations and links to examples
    • Add links to papers using SVG TIler (#27) [add an issue/PR to include your own paper!]
    • Link to Preact API and mention helpfulness of cloneElement
  • API exports more, including extensionMap, escapeId, Style, and convertSVG
  • Dependencies use fixed versions for reliability
  • Makefile revamped (#26)

v1.15.2

02 May 18:52
Compare
Choose a tag to compare

v1.15.1

23 Feb 22:56
Compare
Choose a tag to compare

v1.15.0

23 Feb 21:47
Compare
Choose a tag to compare
  • BREAKING: Change default overflow behavior to visible, unless --no-overflow option specified (#60)
    • Remove now-unnecessary overflow attributes from examples
  • New <image> processing:
    • Automatic inlining of <image>s unless --no-inline option specified (#42)
    • Sharing of duplicate inlined images via another level of <symbol>s
    • For all <image>s (not just those included directly by filename), set default image-rendering to pixelated (via Inkscape/Chrome hack).
      • Also apply the hack when image-rendering="pixelated" or image-rendering="optimizeSpeed" specified.
      • Don't apply the hack when image-rendering="auto", for example, so can get smooth rendering that way.
    • For all <image>s (not just those included directly by filename), set width and height to that of the image (scaling if exactly one is specified).
  • BREAKING API change: Symbol.id is now a static property instead of a function, set in constructor and via new setId method.
  • Bug fix in processing style attributes (introduced in v1.12)
  • Fix viewBox/overflowBox parsing (previously did not support comma-without-space separators)
  • Change automatic viewBox output to use spaces instead of commas (a stylistic, not functional, change)

v1.14.1

14 Feb 00:27
Compare
Choose a tag to compare
  • Fix handling of .xlsx file with only one sheet (was crashing)