]> source.dussan.org Git - svg.js.git/log
svg.js.git
7 years agoFix offset produced by svg parser (#553)
Ulrich-Matthias Schäfer [Wed, 8 Mar 2017 18:48:20 +0000 (19:48 +0100)]
Fix offset produced by svg parser (#553)

7 years agoupdate changelog
Ulrich-Matthias Schäfer [Wed, 8 Mar 2017 18:38:56 +0000 (19:38 +0100)]
update changelog

7 years agoadd ability to use `font()` method like `attr()` method (#620)
Ulrich-Matthias Schäfer [Wed, 8 Mar 2017 18:34:22 +0000 (19:34 +0100)]
add ability to use `font()` method like `attr()` method (#620)

7 years agoupdate changelog
Ulrich-Matthias Schäfer [Wed, 8 Mar 2017 13:46:35 +0000 (14:46 +0100)]
update changelog

7 years agofix documet.contains bug in IE (#612)
Ulrich-Matthias Schäfer [Wed, 8 Mar 2017 13:44:45 +0000 (14:44 +0100)]
fix documet.contains bug in IE (#612)

7 years agoadded SVG.Box, added transform method to boxes, fix rbox (#626)
Ulrich-Matthias Schäfer [Wed, 8 Mar 2017 13:29:15 +0000 (14:29 +0100)]
added SVG.Box, added transform method to boxes, fix rbox (#626)

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

7 years agofixes SVG.PointArray.size() which created NaN when the bbox of the point array had...
Ulrich-Matthias Schäfer [Wed, 8 Mar 2017 13:02:13 +0000 (14:02 +0100)]
fixes SVG.PointArray.size() which created NaN when the bbox of the point 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

7 years agoFix Animating a flip transform does not work #624
Rémi Tétreault [Tue, 7 Mar 2017 23:56:45 +0000 (18:56 -0500)]
Fix Animating a flip transform does not work #624

7 years agoMake the method dequeue stop the current animation
Rémi Tétreault [Mon, 6 Mar 2017 01:55:09 +0000 (20:55 -0500)]
Make the method dequeue stop the current animation

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.

7 years agoHave stop be called after each test of the fx module
Rémi Tétreault [Sat, 4 Mar 2017 23:50:38 +0000 (18:50 -0500)]
Have stop be called after each test of the fx module

This change should prevent some animations to keep running in
the background while the tests that spawned them is long done.

Introducing this change made some tests fail, they were also fixed.

7 years agoadd rotate() as an animation method in typescript
dotnetCarpenter [Wed, 8 Mar 2017 00:09:14 +0000 (01:09 +0100)]
add rotate() as an animation method in typescript

7 years agomake flip working with both axis when no parameter / only offset is passed
Ulrich-Matthias Schäfer [Mon, 6 Mar 2017 17:52:28 +0000 (18:52 +0100)]
make flip working with both axis when no parameter / only offset is passed

7 years agofix bug in rebuild, remove x adjusting in x method (#616)
Ulrich-Matthias Schäfer [Mon, 6 Mar 2017 14:15:39 +0000 (15:15 +0100)]
fix bug in rebuild, remove x adjusting in x method (#616)

7 years agospeed up path parsing for most cases
Ulrich-Matthias Schäfer [Mon, 6 Mar 2017 12:39:53 +0000 (13:39 +0100)]
speed up path parsing for most cases

added test, added pathArray speed bench

7 years ago added `font()` method to `SVG.Tspan` (#599)
Ulrich-Matthias Schäfer [Sun, 5 Mar 2017 14:42:11 +0000 (15:42 +0100)]
 added `font()` method to `SVG.Tspan` (#599)

7 years ago`dx()/dy()` now accepts percentage values, too (#524)
Ulrich-Matthias Schäfer [Sun, 5 Mar 2017 13:14:31 +0000 (14:14 +0100)]
`dx()/dy()` now accepts percentage values, too (#524)

but only if the value on the element is already percentage

7 years agofixed error in event which did not clean up `SVG.handlerMap` properly (#518)
Ulrich-Matthias Schäfer [Sun, 5 Mar 2017 12:52:11 +0000 (13:52 +0100)]
fixed error in event which did not clean up `SVG.handlerMap` properly (#518)

7 years agoremoved at() helper which is not used anymore
Ulrich-Matthias Schäfer [Fri, 3 Mar 2017 16:55:33 +0000 (17:55 +0100)]
removed at() helper which is not used anymore

7 years agoadded test cases to increase code coverage
Ulrich-Matthias Schäfer [Wed, 1 Mar 2017 21:20:46 +0000 (22:20 +0100)]
added test cases to increase code coverage

7 years agoadded test cases to increase coverage
Ulrich-Matthias Schäfer [Wed, 1 Mar 2017 19:00:38 +0000 (20:00 +0100)]
added test cases to increase coverage

7 years agoadded test cases to increase code coverage
Ulrich-Matthias Schäfer [Wed, 1 Mar 2017 16:26:51 +0000 (17:26 +0100)]
added test cases to increase code coverage

7 years agoAdded test cases to increase code coverage
Ulrich-Matthias Schäfer [Wed, 1 Mar 2017 13:08:20 +0000 (14:08 +0100)]
Added test cases to increase code coverage

7 years agoadded test case for ungroup/flatten
Ulrich-Matthias Schäfer [Wed, 1 Mar 2017 09:43:01 +0000 (10:43 +0100)]
added test case for ungroup/flatten

7 years agofixed bug in SVG.Transformations when creating with array/argument list.
Ulrich-Matthias Schäfer [Tue, 28 Feb 2017 17:55:27 +0000 (18:55 +0100)]
fixed bug in SVG.Transformations when creating with array/argument list.

added tests to increase code coverage

7 years agoupdate changelog
Ulrich-Matthias Schäfer [Tue, 28 Feb 2017 12:51:21 +0000 (13:51 +0100)]
update changelog

7 years agoadded tests to increase code coverage
Ulrich-Matthias Schäfer [Tue, 28 Feb 2017 12:50:08 +0000 (13:50 +0100)]
added tests to increase code coverage

7 years agoremoved old fx code which is unused (#605)
Ulrich-Matthias Schäfer [Tue, 28 Feb 2017 11:03:38 +0000 (12:03 +0100)]
removed old fx code which is unused (#605)

7 years agoadded tests to increase code coverage
Ulrich-Matthias Schäfer [Tue, 28 Feb 2017 10:59:27 +0000 (11:59 +0100)]
added tests to increase code coverage

7 years agoadded test cases to increase coverage
Ulrich-Matthias Schäfer [Mon, 27 Feb 2017 21:45:59 +0000 (22:45 +0100)]
added test cases to increase coverage

7 years agoAdd tests for the animate method of the FX module
Rémi Tétreault [Sat, 25 Feb 2017 21:47:47 +0000 (16:47 -0500)]
Add tests for the animate method of the FX module

7 years agoAdd tests for when the user call stop/finish in during callback
Rémi Tétreault [Sat, 25 Feb 2017 21:08:55 +0000 (16:08 -0500)]
Add tests for when the user call stop/finish in during callback

7 years agoAdd tests for the method atEnd of the FX module
Rémi Tétreault [Sat, 25 Feb 2017 18:23:23 +0000 (13:23 -0500)]
Add tests for the method atEnd of the FX module

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

7 years agoCorrect some tests for the at_ methods of the FX module
Rémi Tétreault [Fri, 24 Feb 2017 23:08:17 +0000 (18:08 -0500)]
Correct some tests for the at_ methods of the FX module

In the first test of both the methods atStart and atEnd, `this` should
instead be `fx`.

7 years agoadded test cases to increase code coverage
Ulrich-Matthias Schäfer [Sat, 25 Feb 2017 15:31:31 +0000 (16:31 +0100)]
added test cases to increase code coverage

7 years agoupdate changelog
Ulrich-Matthias Schäfer [Sat, 25 Feb 2017 14:07:42 +0000 (15:07 +0100)]
update changelog

7 years agoviewbox now also accepts arrays and strings
Ulrich-Matthias Schäfer [Sat, 25 Feb 2017 14:05:59 +0000 (15:05 +0100)]
viewbox now also accepts arrays and strings

7 years agoadded test cases to increase code coverage
Ulrich-Matthias Schäfer [Sat, 25 Feb 2017 12:52:45 +0000 (13:52 +0100)]
added test cases to increase code coverage

7 years agoadded a few missing tests to increase coverage
Ulrich-Matthias Schäfer [Fri, 24 Feb 2017 20:50:07 +0000 (21:50 +0100)]
added a few missing tests to increase coverage

7 years ago`SVG.Array` now accepts a comma seperated string and returns array of numbers instead...
Ulrich-Matthias Schäfer [Fri, 24 Feb 2017 20:48:27 +0000 (21:48 +0100)]
`SVG.Array` now accepts a comma seperated string and returns array of numbers instead of strings

7 years agonewlines
Ulrich-Matthias Schäfer [Fri, 24 Feb 2017 19:08:21 +0000 (20:08 +0100)]
newlines

7 years agoAdded SVG.Symbol so SVG.adopt can pick up symbols correctly
Ulrich-Matthias Schäfer [Fri, 24 Feb 2017 19:07:01 +0000 (20:07 +0100)]
Added SVG.Symbol so SVG.adopt can pick up symbols correctly

7 years agoslim down the SVG.TBox to SVG.RBox mapping (new SVG.TBox will not work) 602/head
dotnetCarpenter [Fri, 24 Feb 2017 15:26:15 +0000 (16:26 +0100)]
slim down the SVG.TBox to SVG.RBox mapping (new SVG.TBox will not work)

7 years agodeprecate SVG.TBox
dotnetCarpenter [Fri, 24 Feb 2017 13:38:01 +0000 (14:38 +0100)]
deprecate SVG.TBox

7 years agoremove SVG.TBox
dotnetCarpenter [Thu, 23 Feb 2017 18:38:00 +0000 (19:38 +0100)]
remove SVG.TBox

7 years agoAdded gradient tests
wout [Wed, 22 Feb 2017 11:10:20 +0000 (12:10 +0100)]
Added gradient tests

7 years agoAllow 0 to be passed without unit
Rémi Tétreault [Wed, 22 Feb 2017 05:20:09 +0000 (00:20 -0500)]
Allow 0 to be passed without unit

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.

7 years agoAdded paths to bench
wout [Tue, 21 Feb 2017 10:47:38 +0000 (11:47 +0100)]
Added paths to bench

7 years agoUpdated bench
wout [Tue, 21 Feb 2017 08:43:13 +0000 (09:43 +0100)]
Updated bench

7 years agoAdded clone method to SVG.Array/PointArray/PathArray (#590)
Ulrich-Matthias Schäfer [Mon, 20 Feb 2017 14:29:14 +0000 (15:29 +0100)]
Added clone method to SVG.Array/PointArray/PathArray (#590)

7 years agoupdate changelog
Ulrich-Matthias Schäfer [Sun, 19 Feb 2017 14:54:35 +0000 (15:54 +0100)]
update changelog

7 years agoMerge pull request #589 from RmiTtro/sort-leftovers-from-old-fx
Ulrich-Matthias Schäfer [Sun, 19 Feb 2017 14:30:50 +0000 (15:30 +0100)]
Merge pull request #589 from RmiTtro/sort-leftovers-from-old-fx

Sort out leftovers from the old fx module

7 years agoMake some change to the previous commit 589/head
Rémi Tétreault [Sat, 18 Feb 2017 03:23:51 +0000 (22:23 -0500)]
Make some change to the previous commit

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

7 years agoSort out leftovers from the old fx module
Rémi Tétreault [Fri, 17 Feb 2017 01:35:05 +0000 (20:35 -0500)]
Sort out leftovers from the old fx module

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)

7 years agoDocumentup config no longer required
Wout [Wed, 15 Feb 2017 09:29:34 +0000 (10:29 +0100)]
Documentup config no longer required

7 years agoUpdated CHANGELOG
wout [Sun, 5 Feb 2017 09:46:44 +0000 (10:46 +0100)]
Updated CHANGELOG

7 years agoFixed sentence
Jon Ege Ronnenberg [Sun, 5 Feb 2017 05:05:17 +0000 (06:05 +0100)]
Fixed sentence

From "change from SVG() to use querySelector instead of getElementById (breaking change) -> __TODO!__" to "change SVG() to use querySelector instead of getElementById (breaking change) -> __TODO!__"

7 years agoadded PR reference number
dotnetCarpenter [Sun, 5 Feb 2017 04:37:48 +0000 (05:37 +0100)]
added PR reference number

7 years agobegan notes for the 2.4.1 release
dotnetCarpenter [Sun, 5 Feb 2017 03:39:19 +0000 (04:39 +0100)]
began notes for the 2.4.1 release

7 years agoadded newline for readability
dotnetCarpenter [Sun, 5 Feb 2017 03:38:34 +0000 (04:38 +0100)]
added newline for readability

7 years agoMerge branch 'master' of https://github.com/svgdotjs/svg.js
dotnetCarpenter [Sun, 5 Feb 2017 03:38:12 +0000 (04:38 +0100)]
Merge branch 'master' of https://github.com/svgdotjs/svg.js

7 years agoFormat change log according to “Keep a CHANGELOG” guidelines (#578)
Zearin [Sun, 5 Feb 2017 01:55:48 +0000 (20:55 -0500)]
Format change log according to “Keep a CHANGELOG” guidelines (#578)

* Switch dates to YYYY-MM-DD

* Updating headings; add document title & desc

* Add subheadings and group changes accordingly

* Linkify release numbers in each heading

* Mark unreleased version

7 years agoTypo in typings
wout [Wed, 18 Jan 2017 12:17:26 +0000 (13:17 +0100)]
Typo in typings

7 years agoDocumentup
Wout [Sun, 15 Jan 2017 22:20:49 +0000 (23:20 +0100)]
Documentup

7 years agoDocumentup fix
Wout [Sun, 15 Jan 2017 22:20:14 +0000 (23:20 +0100)]
Documentup fix

7 years agoChanged documentup twitter account
wout [Sun, 15 Jan 2017 22:15:40 +0000 (23:15 +0100)]
Changed documentup twitter account

7 years agoUpdated LICENSE
wout [Sat, 14 Jan 2017 17:56:30 +0000 (18:56 +0100)]
Updated LICENSE

7 years agonote to self for the 3.0 release
dotnetCarpenter [Sat, 14 Jan 2017 08:06:31 +0000 (09:06 +0100)]
note to self for the 3.0 release

7 years agoversion 2.4.0 - new feature: path animation 2.4.0
dotnetCarpenter [Sat, 14 Jan 2017 06:29:24 +0000 (07:29 +0100)]
version 2.4.0 - new feature: path animation

7 years agowrapping up for 2.4.0 release
dotnetCarpenter [Sat, 14 Jan 2017 06:29:18 +0000 (07:29 +0100)]
wrapping up for 2.4.0 release

7 years agoupdate documentation to reflect our new basic path animation support - closing #561
dotnetCarpenter [Sun, 25 Dec 2016 02:14:20 +0000 (03:14 +0100)]
update documentation to reflect our new basic path animation support - closing #561

7 years agoMake some fixes in SVG.PathArray
Rémi Tétreault [Fri, 23 Dec 2016 20:19:20 +0000 (15:19 -0500)]
Make some fixes in SVG.PathArray

Rename the method haveSameCommands to equalCommands and
replace undefined by null.

7 years agoImplement a more basic morph method for SVG.PathArray
Rémi Tétreault [Wed, 21 Dec 2016 02:33:18 +0000 (21:33 -0500)]
Implement a more basic morph method for SVG.PathArray

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.

7 years agoImplement the morph method of SVG.PathArray
Rémi Tétreault [Tue, 20 Dec 2016 09:09:22 +0000 (04:09 -0500)]
Implement the morph method of SVG.PathArray

Also add methods to SVG.Point that allow to perform operations
between two points.

7 years agoversion 2.3.7 - maintenance release 2.3.7
dotnetCarpenter [Sat, 14 Jan 2017 05:26:45 +0000 (06:26 +0100)]
version 2.3.7 - maintenance release

7 years agoWrapping up for 2.3.7 release
dotnetCarpenter [Sat, 14 Jan 2017 05:25:33 +0000 (06:25 +0100)]
Wrapping up for 2.3.7 release

7 years agoRestored original README
Wout [Fri, 13 Jan 2017 16:06:00 +0000 (17:06 +0100)]
Restored original README

7 years agoAdding documentup referrer
Wout [Fri, 13 Jan 2017 16:04:07 +0000 (17:04 +0100)]
Adding documentup referrer

7 years agoadded missing constructor definitions
rdfriedl [Mon, 9 Jan 2017 00:40:11 +0000 (18:40 -0600)]
added missing constructor definitions

7 years agoimproved typings
rdfriedl [Mon, 9 Jan 2017 00:25:46 +0000 (18:25 -0600)]
improved typings

7 years agofix(typing): Export for umd module
Daniel Gräber [Fri, 6 Jan 2017 12:54:14 +0000 (13:54 +0100)]
fix(typing): Export for umd module

7 years agoadd CDNJS version badge in README.md (#566)
Daniel Wang [Mon, 9 Jan 2017 23:19:21 +0000 (07:19 +0800)]
add CDNJS version badge in README.md (#566)

convey our current published version clearly

7 years agoUpdated README
wout [Wed, 4 Jan 2017 11:12:11 +0000 (12:12 +0100)]
Updated README

7 years agoUpdated docs
wout [Tue, 3 Jan 2017 19:01:03 +0000 (20:01 +0100)]
Updated docs

7 years agoupdate documentation to reflect our new basic path animation support - closing #561
dotnetCarpenter [Sun, 25 Dec 2016 02:14:20 +0000 (03:14 +0100)]
update documentation to reflect our new basic path animation support - closing #561

7 years agoMake some fixes in SVG.PathArray 561/head
Rémi Tétreault [Fri, 23 Dec 2016 20:19:20 +0000 (15:19 -0500)]
Make some fixes in SVG.PathArray

Rename the method haveSameCommands to equalCommands and
replace undefined by null.

7 years agoImplement a more basic morph method for SVG.PathArray
Rémi Tétreault [Wed, 21 Dec 2016 02:33:18 +0000 (21:33 -0500)]
Implement a more basic morph method for SVG.PathArray

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.

7 years agoImplement the morph method of SVG.PathArray
Rémi Tétreault [Tue, 20 Dec 2016 09:09:22 +0000 (04:09 -0500)]
Implement the morph method of SVG.PathArray

Also add methods to SVG.Point that allow to perform operations
between two points.

8 years agoaccidently removed dist/svg.min.js from repo
dotnetCarpenter [Sun, 13 Nov 2016 13:07:04 +0000 (14:07 +0100)]
accidently removed dist/svg.min.js from repo

8 years agoupdated changelog for 2.3.7
dotnetCarpenter [Sun, 13 Nov 2016 10:45:49 +0000 (11:45 +0100)]
updated changelog for 2.3.7

8 years agospeedup build for tests
dotnetCarpenter [Sun, 13 Nov 2016 10:39:22 +0000 (11:39 +0100)]
speedup build for tests

8 years agoadded `npm run test:quick` which aim at being fast rather than correct - great for...
dotnetCarpenter [Sun, 13 Nov 2016 10:21:50 +0000 (11:21 +0100)]
added `npm run test:quick` which aim at being fast rather than correct - great for git hooks

8 years agoupdated changelog for 2.3.7
dotnetCarpenter [Sat, 12 Nov 2016 23:36:13 +0000 (00:36 +0100)]
updated changelog for 2.3.7

8 years agoadded code coverage
dotnetCarpenter [Sat, 12 Nov 2016 23:20:28 +0000 (00:20 +0100)]
added code coverage

8 years agoupdate changelog with PR #549
dotnetCarpenter [Sat, 12 Nov 2016 22:55:25 +0000 (23:55 +0100)]
update changelog with PR #549

8 years agoadded small paragraph about on how to prevent pushing failing commits
dotnetCarpenter [Sat, 12 Nov 2016 22:28:35 +0000 (23:28 +0100)]
added small paragraph about on how to prevent pushing failing commits

8 years agogentle optimization of PR #549
dotnetCarpenter [Sat, 12 Nov 2016 21:05:54 +0000 (22:05 +0100)]
gentle optimization of PR #549

8 years agoRevert "optimize loop performance"
dotnetCarpenter [Sat, 12 Nov 2016 20:27:36 +0000 (21:27 +0100)]
Revert "optimize loop performance"

This reverts commit 98fdf3202901017dcdf16cde910ddd896aab519d.

Signed-off-by: dotnetCarpenter <jon.ronnenberg@gmail.com>
8 years agooptimize loop performance
dotnetCarpenter [Sat, 12 Nov 2016 15:23:44 +0000 (16:23 +0100)]
optimize loop performance

8 years agoFix going down prototype chain 549/head
Preston Tighe [Fri, 11 Nov 2016 23:25:03 +0000 (17:25 -0600)]
Fix going down prototype chain

This fixed the a.undo is not a function error. The for loop was going down into  the array's prototype chain.

8 years agoMerge pull request #548 from RmiTtro/fix-transform-anim
Ulrich-Matthias Schäfer [Thu, 10 Nov 2016 14:15:58 +0000 (15:15 +0100)]
Merge pull request #548 from RmiTtro/fix-transform-anim

Make transform more consistent when animated. Fixes bug with animated matrices