The lightweight library for manipulating and animating SVG
point()
by not creating intermediate objects (#1251)assignNewId
to clone()
to allow cloning with the same id (#1161)css()
returning camelCased properties even though they were specified in kebap-caseObjectBag
loosing information when calling valueOf()
(Numbers lost its unit)parents()
(#1235)nodeOrNew()
to work in object tags as well (#1219)zoom()
method of runner which was passed a wrong parameterTSpan
to position them by its bounding boxflip()
method which flips correctly by center by default now and accepts correct argumentsrbox()
where not always all values of the box were updatedgetOrigin()
function used by transform()
so that all origin popssibilities specified in the docs are working (#1085)amove()
put()
and parent()
put()
which correctly creates an svgjs object from the passed element now before returningparent()
which correctly returns a Dom instance when parent is the document or document-fragmentadd()
which correctly removes namespaces of non-root svg elements now when added to another svg element (#1086)isRoot()
which correctly returns false, if the element is in a document-fragmentreplace()
which works without a parent now, toodefs()
which correctly returns null
when called on a detached node that is not a root nodereference()
which correctly returns null
instead of throwing when specifying an attribute which holds a numberflatten()
which correctly flattens now but doesnt accept parameters anymore (makes no sense)ungroup()
which now inserts the elements at the correct position in the correct order and has position as second argument nowposition
for transform()
to also allow a position of 0bbox()
of PathArray
and PointArray
which returns an instance of Box
nowPID
controller and makeSetterGetter functionQueue.push
which didnt let you push queue itemsTimeline.reverse()
which did exactly the opposite of what you would expect when passing true/false
clone()
to return the correct instance (#1154)SVG(el, isHTML)
which allows to explicitely create elements in the HTML namespace (#1058)unlink()
and linker()
to hyperlinked elements to remove or access the underling <a>
elementwrap()
method to Dom
which lets you wrap an element by another oneorient()
method to Marker
options
parameter to dispatch()
and fire()
to allow for more special needsnewLine()
constructor to Text
to create a tspan marked as new line (#1088)Fragment
as a wrapper for document-fragmenttoParent()
toRoot()
data()
methodList.each()
so that it mostly behaves like mapPointArray.transform()
similar to Pointwith-last
as when
to animate
and schedule
to let an animation start with the start of the last one in the timelineA
(#1110)Matrix.compose()
method which did the same as new Matrix()
or Matrix.transform()
Path.morph()
and Path.at()
which was replaced with Morphables in v3