- added UMD support
- fixed event module
- removed
mouseenter
andmouseleave
events because they are not supported by IE
- added
SVG.Marker
- added
SVG.Symbol
- added
first()
andlast()
methods toSVG.Set
- added
length()
method toSVG.Text
andSVG.TSpan
to calculate total text length SVG.get()
will now also fetch elements with axlink:href="#elementId"
orurl(#elementId)
value given- added
reference()
method to get referenced elements from a given attribute value - fixed infinite loop in viewbox when element has a percentage width / height [thanks @shabegger]
- fixed bug in
SVG.off
- fixed offset by window scroll position in
rbox()
[thanks @bryhoyt]
- calling
after()
when callingstop(true)
(fulfill flag) [thanks @vird] - added
classes()
,hasClass()
,addClass()
,removeClass()
andtoggleClass()
[thanks @pklingem] - fixed a bug where
Element#style()
would not save empty values in IE11 [thanks @Shtong] - fixed
SVG is not defined error
[thanks @anvaka] - fixed a bug in
move()
on text elements with a string based value - binding events listeners to svg.js instance
- text element fires
rebuild
event whenever therebuild()
method is called - fix for
text()
method on text element when acting as getter [thanks @Lochemage] - fix in
style()
method with a css string [thanks @TobiasHeckel]
- fine-tuned text element positioning
- fixed a bug in text
dy()
method - added
leading()
method toSVG.FX
- removed internal representation for
style
- added
reverse()
method toSVG.Array
(and thereby also toSVG.PointArray
andSVG.PathArray
) - added
fulfill
option tostop()
method inSVG.FX
to finalise animations - calling
at()
method directly on morphable svg.js instances inSVG.FX
module - moved most
_private
methods to local named functions - moved helpers to a separate file
- added more output values to
bbox()
andrbox()
methods
- added
plain()
method toSVG.Text
element to add plain text content, without tspans - added
plain()
method to parent elements to create a text element without tspans - updated
SVG.TSpan
to accept nested tspan elements, not unlike thetext()
method inSVG.Text
- removed the
relative()
method in favour ofdx()
,dy()
anddmove()
- switched form objects to arrays in
SVG.PathArray
for compatibility with other libraries and better performance on parsing and rendering (up-to 48% faster than 1.0.0-rc.4) - refined docs on element-specific methods and
SVG.PathArray
structure - added
build()
to enable/disable build mode - removed verbose style application to tspans
- reworked
leading()
implementation to be more font-size "aware" - refactored the
attr
method onSVG.Element
- applied Helvetica as default font
- building
SVG.FX
class withSVG.invent()
function
- switched to
MAJOR
.MINOR
.PATCH
versioning format to play nice with package managers - made svg.pattern.js part of the core library
- automatic pattern creation by passing an image url or instance as
fill
attribute on elements - added
loaded()
method to image tag - fix in
animate('=').to()
- added
pointAt()
method toSVG.Path
, wrapping the nativegetPointAtLength()
- moved
length()
method to sugar module - fix for arcs in patharray
toString()
method [thanks @dotnetCarpenter]
- fix for html-less documents
- added the
SVG.invent
function to ease invention of new elements - using
SVG.invent
to generate core shapes as well for leaner code - added second values for
animate('2s')
- fix for arcs in patharray
toString()
method - added
length()
mehtod to path, wrapping the nativegetTotalLength()
- added
index()
method toSVG.Parent
andSVG.Set
- modified
cx()
andcy()
methods on elements with nativex
,y
,width
andheight
attributes for better performance - added
morph()
andat()
methods toSVG.Number
for unit morphing
- added
SVG.PathArray
for real path transformations - removed
unbiased
system for paths - enabled proportional resizing on
size()
method withnull
for eitherwidth
orheight
values - moved data module to separate file
data()
method now accepts object for for multiple key / value assignments- added
bbox()
method toSVG.Set
- added
relative()
method for moves relative to the current position - added
morph()
andat()
methods toSVG.Color
for color morphing
- added
loop()
method toSVG.FX
- switched from
setInterval
torequestAnimFrame
for animations
- added
get()
toSVG.Set
- moved
SVG.PointArray
to a separate file
- added
linkTo()
,addTo()
andputIn()
methods onSVG.Element
- provided more detailed documentation on parent elements
- added
SVG.A
element with thelink()
- added
pause()
andplay()
toSVG.FX
- storing animation values in
situation
object
- added
has()
method toSVG.Set
- added
width()
andheight()
as setter and getter methods on all shapes - moved sub-pixel offset fix to be an optional method (e.g.
SVG('drawing').fixSubPixelOffset()
) - added
replace()
method to elements - added
radius()
method toSVG.Rect
andSVG.Ellipse
- added reference to parent node in defs
- merged plotable.js and path.js
- added library to cdnjs