Releases: edemaine/svgtiler
Releases · edemaine/svgtiler
v1.17.0
- API improvements:
renderSVG*
no longer requires thestyles
argumentDrawing.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
tosetAttribute
; onlycreateElementNS
seems to be needed/preferred - Workarounds for
grapheme-splitter
(with imperfect Unicode handling),prettify-xml
(no prettification), and version number ((web)
)
- Switch from
v1.16.4
v1.16.3
- 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 manualwidth
/height
via--tw
/--th
options (as inexamples/tilt
).
v1.16.2
- Upgrade
xmldom
(security and other fixes, but also some minor incompatibilities)
v1.16.1
v1.16.0
- 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 viaFunction
engine instead ofeval
, 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 hasmatch
method for regular expression matching (#12)- SVG
id
s 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
oroverflowBox
attributes (#62) or strayxmlns
- 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
, andconvertSVG
- Dependencies use fixed versions for reliability
- Makefile revamped (#26)
v1.15.2
- Force specific preact version to work around this issue
- Support for
.css
files inlined into<style>
tags (#38) - Animation example, illustrating CSS
v1.15.1
v1.15.0
- BREAKING: Change default
overflow
behavior tovisible
, unless--no-overflow
option specified (#60)- Remove now-unnecessary
overflow
attributes from examples
- Remove now-unnecessary
- 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 defaultimage-rendering
topixelated
(via Inkscape/Chrome hack).- Also apply the hack when
image-rendering="pixelated"
orimage-rendering="optimizeSpeed"
specified. - Don't apply the hack when
image-rendering="auto"
, for example, so can get smooth rendering that way.
- Also apply the hack when
- For all
<image>
s (not just those included directly by filename), setwidth
andheight
to that of the image (scaling if exactly one is specified).
- Automatic inlining of
- BREAKING API change:
Symbol.id
is now a static property instead of a function, set in constructor and via newsetId
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)