Releases: svgdotjs/svg.js
Releases · svgdotjs/svg.js
Release 3.2.4
Fixed
- fixed dmove for nested svgs (svgdotjs/svg.draggable.js#127)
Release 3.2.3
Fixed
- fixed import map for father (#1317)
Release 3.2.2
Fixed
- fixed import map
Release 3.2.1
Fixed
- skip descriptive elements on rebuild and
toParent()
(#1304) - allow 0 as animation duration and delay (#1125)
- allow nodes that are not imported yet (#1252)
- only apply color conversion to attributes that can take a color (#1241)
- support css vars (#1230)
- fix import of leading, dont write data to dom if not neccessary
- discontinue use of svgjs:data in favor of data-svg
- allow + as delemiter in paths (#1165)
- added
amove()
methods to runner (#1131) - fix
css()
, dont throw when screenCtm fails (#968) - several type fixes
Added
Release 3.2.0
Fixed
- improve performance of
point()
by not creating intermediate objects (#1251) - fixed references by using single quotes instead of double quotes which lead to errors (#1277)
- fixed a few spelling errors in comments (#1277)
- fix several typings (#1253, #1280, #1300)
Added
- added second parameter
assignNewId
toclone()
to allow cloning with the same id (#1161)
Release 3.1.2
Fixed
- fixed several type issues (#1249, #1233, #1231, #1223, #1215)
- fixed
css()
returning camelCased properties even though they were specified in kebap-case - fixed
ObjectBag
loosing information when callingvalueOf()
(Numbers lost its unit) - fixed
parents()
(#1235) - fixed
nodeOrNew()
to work in object tags as well (#1219)
Release 3.1.1
Release 3.1.0
Fixed
- fixed
zoom()
method of runner which was passed a wrong parameter - fixed positioning methods of
TSpan
to position them by its bounding box - fixed
flip()
method which flips correctly by center by default now and accepts correct arguments - fixed a case in
rbox()
where not always all values of the box were updated - fixed
getOrigin()
function used bytransform()
so that all origin popssibilities specified in the docs are working (#1085) - fixed positioning of text by its baseline when using
amove()
- fixed tons of typings in the svg.d.ts file and relaxed type requirements for
put()
andparent()
- fixed adopter when adopting an svg/html string. It had still its wrapper as parentNode attached
- fixed
put()
which correctly creates an svgjs object from the passed element now before returning - fixed
parent()
which correctly returns a Dom instance when parent is the document or document-fragment - fixed
add()
which correctly removes namespaces of non-root svg elements now when added to another svg element (#1086) - fixed
isRoot()
which correctly returns false, if the element is in a document-fragment - fixed
replace()
which works without a parent now, too - fixed
defs()
which correctly returnsnull
when called on a detached node that is not a root node - fixed
reference()
which correctly returnsnull
instead of throwing when specifying an attribute which holds a number - fixed
flatten()
which correctly flattens now but doesnt accept parameters anymore (makes no sense) - fixed
ungroup()
which now inserts the elements at the correct position in the correct order and has position as second argument now - fixed
position
fortransform()
to also allow a position of 0 - fixed
bbox()
ofPathArray
andPointArray
which returns an instance ofBox
now - fixed bug in creation of PointArray which had still references to source arrays in it
- fixed
PID
controller and makeSetterGetter function - fixed
Queue.push
which didnt let you push queue items - fixed
Timeline.reverse()
which did exactly the opposite of what you would expect when passingtrue/false
- fixed cancelAnimationFrame-mock for tests
- fixed animate when=after to be really "now" when no runner is on the timeline
- fixed animate attr which is also retargetable now
- fixed internals of ObjectBag which can hold other Morphable values now
- fixed animate transform which didnt change its origin on retarget for declaritive animations
- fixed path parsing (#1145)
- fixed
clone()
to return the correct instance (#1154)
Added
- added second Parameter to
SVG(el, isHTML)
which allows to explicitely create elements in the HTML namespace (#1058) - added
unlink()
andlinker()
to hyperlinked elements to remove or access the underling<a>
element - added
wrap()
method toDom
which lets you wrap an element by another one - added
orient()
method toMarker
- added
options
parameter todispatch()
andfire()
to allow for more special needs - added
newLine()
constructor toText
to create a tspan marked as new line (#1088) - added
Fragment
as a wrapper for document-fragment - added position argument for
toParent()
- added position argument for
toRoot()
- added attr syntax for
data()
method - added index and array parameter when passing a function to
List.each()
so that it mostly behaves like map - added possibility to pass a transform object to
PointArray.transform()
similar to Point - added
with-last
aswhen
toanimate
andschedule
to let an animation start with the start of the last one in the timeline - added lots of tests in es6 format
- added geometry and positioning methods to
A
(#1110)
Deleted
- deleted undocumented
Matrix.compose()
method which did the same asnew Matrix()
orMatrix.transform()
- deleted undocumented
Path.morph()
andPath.at()
which was replaced with Morphables in v3
Release 3.0.16
Fixed
- fixed build of polyfills which was broken because of core-js update
Release 3.0.15
Fixed
- allow object input of
when
anddelay
toanimate()
Added
- added missing dmove function to runner