Changelog
[2.5.2] - 2017-04-11
clear()
does not remove the parser in svg documents anymorelen
not declared in FX module, making it a global variable (9737e8a)bbox
not declared in SVG.Box.transform in the Box module (131df0f)namespace
not declared in the Event module (e89c97e)Changelog
[2.5.1] - 2017-03-27
SVG.PathArray.parse
that did not correctly parsed flat arraysChangelog
[2.5.0] - 2017-03-10
SVG.TextPath
(#582)clone()
method to SVG.Array/PointArray/PathArray
(#590)font()
method to SVG.Tspan
SVG.Box()
transform()
method to boxesevent()
to SVG.Element
to retrieve the event that was fired last on the element (#550)SVG.Polyline
,SVG.Polygon
, SVG.Line
, SVG.Path
(related #547)SVG.PointArray
to be passed flat arraySVG.PointArray
use to parse string to allow more flexibility in the way spaces and commas can be usedplot
to be called with 4 parameters when animating an SVG.Line
SVG.Number
are now calculated in its morph
method (related #547)initAnimation
method of the FX module (#547, #552, #584).tbox()
. .tbox()
now map to .rbox()
. If you are using .tbox()
, you can substitute it with .rbox()
(#594, #602)el.rbox()
now always returns the right boxes in screen coordinates and has an additional paramater to transform the box into other coordinate systemsfont()
method can now be used like attr()
method (#620)SVG.MorphObj
that is in the FX moduleoff()
(#518)size()
for poly elements when their height/width is zero (#505)SVG.Array
now accepts a comma seperated string and returns array of numbers instead of stringsSVG.Matrix
now accepts an array as inputSVG.Element.matrix()
now accepts also 6 valuesdx()/dy()
now accepts percentage values, too but only if the value on the element is already percentageflip()
now flips on both axis when no parameter is passeddocumentElement.contains()
in IEChangelog
[2.4.0] - 2017-01-14
Changelog
[2.3.7] - 2017-01-14
npm run test:quick
which aim at being fast rather than correct - great for git hooks (981ce24)npm run build
now requires nodejs 4.x+SVG.Matrix.skew()
(#545)SVG.FX.dequeue()
(#546)SVG.FX.step
, if custom properties is added to Array.prototype
(#549)Changelog
[2.3.6] - 2016-10-21
SVG.FX.afterAll
(#534)SVG.FX.speed()
(#536)Changelog
[2.3.5] - 2016-10-13
npm run build
to build a new version of SVG.js without requiring gulp to be globally installedfill()
, stroke()
without an argument is now a nopChangelog
[2.3.4] - 2016-08-04
filterSVGElements
utility to use a for loop instead of the native filter functionChangelog
[2.3.2] - 2016-06-21
SVG.ViewBox
parent
parameter for clone()
document.contains
(#490) related to (#480)undo
when undoing transformations (#494)Changelog
[2.3.1] - 2016-05-05
SVG.morph()
(#473)SVG.Color
with new fxradius()
for circles when animating and other related code (#477)stop(true)
throws an error when element is not animated (#475)add()
when altering svgs with whitespacesSVG.Doc().create
where size was set to 100% even if size was already specifiedparse()
from SVG.PathArray
which does not correctly handled S
and T
(#485)