summaryrefslogtreecommitdiffstats
path: root/dist/svg.js
Commit message (Collapse)AuthorAgeFilesLines
* Release 2.5.02.5.0Ulrich-Matthias Schäfer2017-03-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ### Added - added a plot and array method to `SVG.TextPath` (#582) - added `clone()` method to `SVG.Array/PointArray/PathArray` (#590) - added `font()` method to `SVG.Tspan` - added `SVG.Box()` - added `transform()` method to boxes - added `event()` to `SVG.Element` to retrieve the event that was fired last on the element (#550) ### Changed - changed CHANGELOG to follow the conventions described in [“Keep a CHANGELOG”](http://keepachangelog.com) (#578) - make the method plot a getter when no parameter is passed for `SVG.Polyline`,`SVG.Polygon`, `SVG.Line`, `SVG.Path` (related #547) - allow `SVG.PointArray` to be passed flat array - change the regexp `SVG.PointArray` use to parse string to allow more flexibility in the way spaces and commas can be used - allow `plot` to be called with 4 parameters when animating an `SVG.Line` - relative value for `SVG.Number` are now calculated in its `morph` method (related #547) - clean up the implementation of the `initAnimation` method of the FX module (#547, #552, #584) - deprecated `.tbox()`. `.tbox()` now map to `.rbox()`. If you are using `.tbox()`, you can substitute it with `.rbox()` (#594, #602) - all boxes now accept 4 values or an object on creation - `el.rbox()` now always returns the right boxes in screen coordinates and has an additional paramater to transform the box into other coordinate systems - `font()` method can now be used like `attr()` method (#620) - events are now cancelable by default (#550) ### Fixed - fixed a bug in the plain morphing part of `SVG.MorphObj` that is in the FX module - fixed bug which produces an error when removing an event from a node which was formerly removed with a global `off()` (#518) - fixed a bug in `size()` for poly elements when their height/width is zero (#505) - viewbox now also accepts strings and arrays as constructor arguments - `SVG.Array` now accepts a comma seperated string and returns array of numbers instead of strings - `SVG.Matrix` now accepts an array as input - `SVG.Element.matrix()` now accepts also 6 values - `dx()/dy()` now accepts percentage values, too but only if the value on the element is already percentage - `flip()` now flips on both axis when no parameter is passed - fixed bug with `documentElement.contains()` in IE - fixed offset produced by svg parser (#553) - fixed a bug with clone which didnt copy over dom data (#621)
* fix bug in box when box with top and left is given which is 0 (#632)Ulrich-Matthias Schäfer2017-03-091-2/+2
|
* fixed a bug with clone which didnt copy over dom data (#621)Ulrich-Matthias Schäfer2017-03-091-2/+5
|
* make events cancelable by default (#550) - version 5Ulrich-Matthias Schäfer2017-03-091-2/+7
|
* start the animation when after(All)/during(All) is called (#583)Ulrich-Matthias Schäfer2017-03-091-10/+18
|
* Fix offset produced by svg parser (#553)Ulrich-Matthias Schäfer2017-03-081-2/+2
|
* add ability to use `font()` method like `attr()` method (#620)Ulrich-Matthias Schäfer2017-03-081-11/+12
|
* fix documet.contains bug in IE (#612)Ulrich-Matthias Schäfer2017-03-081-3/+12
|
* added SVG.Box, added transform method to boxes, fix rbox (#626)Ulrich-Matthias Schäfer2017-03-081-84/+106
| | | | | | | | added SVG.Box, added transform method to boxes, fix rbox Also: - workaround for screenCTM with nested svg (FF bug) - remove unneeded workaround in toParent() - rbox accepts additional parameter to transform the box
* fixes SVG.PointArray.size() which created NaN when the bbox of the point ↵Ulrich-Matthias Schäfer2017-03-081-3/+3
| | | | | | | | array had zero height/width (#625) fixes SVG.PointArray.size() which created NaN when the bbox of the point array had zero height/width * update changelog
* Fix Animating a flip transform does not work #624Rémi Tétreault2017-03-071-3/+3
|
* Make the method dequeue stop the current animationRémi Tétreault2017-03-071-6/+7
| | | | | | | | | There was a bug in the dequeue method of the FX module. It was not stopping the current animation as it was supposed too. This bug is now fixed. Also, I rewritten the test that @fuzzyma left commented. I changed its implementation to not use the once callback since there seem to be some issues when combining once and dequeue. The method stop was also modified, it now call start only when it's revelant.
* make flip working with both axis when no parameter / only offset is passedUlrich-Matthias Schäfer2017-03-061-3/+9
|
* fix bug in rebuild, remove x adjusting in x method (#616)Ulrich-Matthias Schäfer2017-03-061-7/+2
|
* speed up path parsing for most casesUlrich-Matthias Schäfer2017-03-061-29/+18
| | | | added test, added pathArray speed bench
* added `font()` method to `SVG.Tspan` (#599)Ulrich-Matthias Schäfer2017-03-051-2/+2
|
* `dx()/dy()` now accepts percentage values, too (#524)Ulrich-Matthias Schäfer2017-03-051-3/+3
| | | | but only if the value on the element is already percentage
* fixed error in event which did not clean up `SVG.handlerMap` properly (#518)Ulrich-Matthias Schäfer2017-03-051-1/+2
|
* removed at() helper which is not used anymoreUlrich-Matthias Schäfer2017-03-031-14/+1
|
* fixed bug in SVG.Transformations when creating with array/argument list.Ulrich-Matthias Schäfer2017-02-281-17/+14
| | | | added tests to increase code coverage
* added tests to increase code coverageUlrich-Matthias Schäfer2017-02-281-2/+4
|
* removed old fx code which is unused (#605)Ulrich-Matthias Schäfer2017-02-281-25/+1
|
* Add tests for the method atEnd of the FX moduleRémi Tétreault2017-02-251-13/+15
| | | | | | | | List of changes: * Add tests for atEnd for the case the animation is in a infinite loop * Fix a bug in atEnd that was uncovered by the new tests * Fix the indentation of the methods atStart and atEnd * Improve the comments of some of the others tests of atEnd
* viewbox now also accepts arrays and stringsUlrich-Matthias Schäfer2017-02-251-23/+12
|
* `SVG.Array` now accepts a comma seperated string and returns array of ↵Ulrich-Matthias Schäfer2017-02-241-2/+4
| | | | numbers instead of strings
* Added SVG.Symbol so SVG.adopt can pick up symbols correctlyUlrich-Matthias Schäfer2017-02-241-5/+14
|
* slim down the SVG.TBox to SVG.RBox mapping (new SVG.TBox will not work)dotnetCarpenter2017-02-241-15/+4
|
* deprecate SVG.TBoxdotnetCarpenter2017-02-241-4/+18
|
* remove SVG.TBoxdotnetCarpenter2017-02-231-36/+5
|
* Allow 0 to be passed without unitRémi Tétreault2017-02-221-5/+9
| | | | | | | | This commit finish fixing issue #552. It makes it unnecessary to specify a unit with 0 when interacting with another SVG.Number that has a unit. This was accomplished by modifying the operation methods of SVG.Number to allow them to use the unit of the passed number when this number as no unit.
* Added clone method to SVG.Array/PointArray/PathArray (#590)Ulrich-Matthias Schäfer2017-02-201-5/+22
|
* Make some change to the previous commitRémi Tétreault2017-02-171-10/+10
| | | | | | | | | | | | | Here is a list of the changes: * Enhance the call to plot in the constructor of SVG.Path, SVG.Line, SVG.Polyline and SVG.Polygon * Rewrite the description of the tests of the method plot for SVG.TextPath, SVG.Path, SVG.Line, SVG.Polyline and SVG.Polygon to make it more precise * Remove the useless parens surrounding track in the method array of SVG.TextPath
* Sort out leftovers from the old fx moduleRémi Tétreault2017-02-161-56/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is mostly to clean up the implementation of the initAnimation method of the Fx Module (issue #547). It also fixes these issues: #552, #582 and #584. Here is a list of the changes and fixes that are made: * Add a plot and array method to SVG.TextPath (issue #582) * Make the method plot a getter when no parameter is passed for SVG.Polyline, SVG.Polygon, SVG.Line, SVG.Path (this idea come from issue #547) * Allow SVG.PointArray to be passed flat array * Change the regexp SVG.PointArray use to parse string to allow more flexibility in the way spaces and commas can be used to separate points (something like this is now accepted: '1, 2, 3, 4') * Allow plot to be called with 4 parameters when animating an SVG.Line * Fix a bug in the plain morphing part of SVG.MorphObj that is in the FX module * Relative value for SVG.Number are now calculated in its morph method (idea from issue #547) * Clean up the implementation of the initAnimation method of the FX module (issues #547, #552, #584)
* Merge branch 'master' of https://github.com/svgdotjs/svg.jsdotnetCarpenter2017-02-051-4/+4
|\
| * Make some fixes in SVG.PathArrayRémi Tétreault2017-01-141-10/+10
| | | | | | | | | | Rename the method haveSameCommands to equalCommands and replace undefined by null.
| * Implement a more basic morph method for SVG.PathArrayRémi Tétreault2017-01-141-610/+34
| | | | | | | | | | | | The method expect the paths to use the exact same commands. It will not attempt to modify them if they do not. Any more complex algorithm shall be provided as a plugin instead in order to keep the size of the library down.
| * Implement the morph method of SVG.PathArrayRémi Tétreault2017-01-141-8/+642
| | | | | | | | | | Also add methods to SVG.Point that allow to perform operations between two points.
| * Wrapping up for 2.3.7 releasedotnetCarpenter2017-01-141-3/+3
| |
* | Make some fixes in SVG.PathArrayRémi Tétreault2016-12-231-10/+10
| | | | | | | | | | Rename the method haveSameCommands to equalCommands and replace undefined by null.
* | Implement a more basic morph method for SVG.PathArrayRémi Tétreault2016-12-201-610/+34
| | | | | | | | | | | | The method expect the paths to use the exact same commands. It will not attempt to modify them if they do not. Any more complex algorithm shall be provided as a plugin instead in order to keep the size of the library down.
* | Implement the morph method of SVG.PathArrayRémi Tétreault2016-12-201-7/+641
|/ | | | | Also add methods to SVG.Point that allow to perform operations between two points.
* accidently removed dist/svg.min.js from repodotnetCarpenter2016-11-131-1/+1
|
* speedup build for testsdotnetCarpenter2016-11-131-1/+1
|
* added code coveragedotnetCarpenter2016-11-131-1/+1
|
* gentle optimization of PR #549dotnetCarpenter2016-11-121-3/+3
|
* Revert "optimize loop performance"dotnetCarpenter2016-11-121-2/+2
| | | | | | This reverts commit 98fdf3202901017dcdf16cde910ddd896aab519d. Signed-off-by: dotnetCarpenter <jon.ronnenberg@gmail.com>
* Fix the bug where relative matrix transforms are not animatedRémi Tétreault2016-11-091-7/+8
| | | | Also, add the possibility to make uniform skew transform.
* Fix a bug with the animation of a scale transformRémi Tétreault2016-11-081-1/+7
| | | | | Fix the bug where animating a scale transform also caused a translation when there was already a transform in place.
* Fix and improve the dequeue method of the FX moduleRémi Tétreault2016-11-031-31/+25
| | | | | | | | | | | | The first improvement is to stop using setTimeout to perform the delay. It is now performed in a manner similar to the start method. This should be a lot more reliable than using setTimeout and allow some nice goodies like being able to pause it or affect its duration using the speed method. The second improvement is to have the delay method add an empty situation (with its duration set to the duration of the delay) to the queue. This change allows dequeue not to have to treat delay added to the queue as something special, now its just a situation.
* changelog, run gulp cause of #504Ulrich-Matthias Schäfer2016-11-031-4/+4
|