summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* deprecate SVG.TBoxdotnetCarpenter2017-02-241-3/+17
|
* remove SVG.TBoxdotnetCarpenter2017-02-231-35/+4
|
* Allow 0 to be passed without unitRémi Tétreault2017-02-221-4/+8
| | | | | | | | 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-204-13/+30
|
* Make some change to the previous commitRémi Tétreault2017-02-174-9/+9
| | | | | | | | | | | | | 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-167-67/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Make some fixes in SVG.PathArrayRémi Tétreault2016-12-231-9/+9
| | | | | Rename the method haveSameCommands to equalCommands and replace undefined by null.
* Implement a more basic morph method for SVG.PathArrayRémi Tétreault2016-12-203-608/+33
| | | | | | 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-203-9/+641
| | | | | Also add methods to SVG.Point that allow to perform operations between two points.
* gentle optimization of PR #549dotnetCarpenter2016-11-121-2/+2
|
* Revert "optimize loop performance"dotnetCarpenter2016-11-121-48/+48
| | | | | | This reverts commit 98fdf3202901017dcdf16cde910ddd896aab519d. Signed-off-by: dotnetCarpenter <jon.ronnenberg@gmail.com>
* optimize loop performancedotnetCarpenter2016-11-121-48/+48
|
* Fix going down prototype chainPreston Tighe2016-11-111-1/+1
| | | This fixed the a.undo is not a function error. The for loop was going down into the array's prototype chain.
* Fix the bug where relative matrix transforms are not animatedRémi Tétreault2016-11-093-8/+9
| | | | Also, add the possibility to make uniform skew transform.
* Fix a bug with the animation of a scale transformRémi Tétreault2016-11-081-0/+6
| | | | | 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-30/+24
| | | | | | | | | | | | 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.
* Merge pull request #504 from tkiss/animations_es6-7_fixUlrich-Matthias Schäfer2016-11-031-3/+3
|\ | | | | Fix broken animations, if using polyfills for es6/7 proposals
| * Fix broken animations, if using polyfills for es6/7 proposals (in this case ↵Tamás2016-06-231-3/+3
| | | | | | | | String.at())
* | Fix the implementation of the skew transformRémi Tétreault2016-11-021-6/+20
| | | | | | | | | | Also fix a bug where when calling scale with 3 parameters, cx was not set with the right value.
* | Make the code in the FX module simplerRémi Tétreault2016-11-011-35/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here are the changes that have been made: - The loop counter is now incrementing (from 0 to loops) - The loop counter increment even when loops is true - Add absPos, the absolute position of an animation which is its position in the context of its complete duration (including delay and loops) - Make the methods speed, pause/resume affect the delay - The method step no longer needs to recalculate the value of situation.start - Add a second parameter to the method at to allow it to receive an absolute position - Fix the bug where the method at invert the passed position while the animation is running backward Also, I modified the tests of the FX module that required timing to use Jasmine Clock, so now it takes less than 1 second to run all the tests!
* | Make matrixify work with transformation chain separated by commasRémi Tétreault2016-11-011-3/+3
| | | | | | | | | | | | According to the SVG spec, transformation chain can be separated by whitespace and/or commas. The method matrixify was not working with transformation chain separated by commas. This commit should fix that bug.
* | handle leading and trailing spacesdotnetCarpenter2016-10-201-1/+1
| |
* | replace call to filter function with better regexdotnetCarpenter2016-10-201-1/+1
| |
* | hotfix (#529)Ulrich-Matthias Schäfer2016-10-201-1/+1
| |
* | Change the SVG.FX attribute spd to _speedRémi Tétreault2016-10-171-14/+14
| | | | | | | | | | This change is to follow the convention already put forward by the _target attribute.
* | Add speed to SVG.Element and also add documentation to speedRémi Tétreault2016-10-171-2/+16
| |
* | Make speed(0) pause the animationRémi Tétreault2016-10-171-0/+2
| |
* | Make SVG.FX.speed act more like others animations librariesRémi Tétreault2016-10-161-11/+15
| | | | | | | | | | | | For example, a call .speed(2) would make the animation 2 times faster. If you then call .speed(4), this would make the animation 4 times faster. And a call .speed(1) would make it go back to normal speed.
* | Make SVG.FX.loop modify the last situation instead of the current oneRémi Tétreault2016-10-151-3/+5
| |
* | all tests pass - All your base are belong to usdotnetCarpenter2016-10-121-0/+2
|\ \
| * | Removed wrong tests in sugar.js, fixed remaining tests. Made fill and stroke ↵Ulrich-Matthias Schäfer2016-10-121-0/+2
| | | | | | | | | | | | a nop when no argument given
* | | sorry the last commit was nonsens. This one is proper tested.dotnetCarpenter2016-10-121-2/+2
| | |
* | | changing implementation according to review by @FuzzymadotnetCarpenter2016-10-121-15/+7
| | |
* | | fixes #525 by accepting/parsing coordianate strings where x and y is ↵dotnetCarpenter2016-10-121-14/+26
|/ / | | | | | | seperated by comma and or by space - we count the shape coordinates until (and including) the maximum even number
* | Speed improvements on parent elementwout2016-08-048-26/+42
| |
* | fixed #514 and #5162.3.3Ulrich-Matthias Schäfer2016-08-022-11/+2
| | | | | | | | | | - removed `SVG.Text.clone()` which is inherited by `SVG.Element.clone()` - make element visible when call bbox on a clone
* | add error callback on image loadingAlexandre Peyron2016-07-121-0/+11
|/
* Merge pull request #481 from mkorganashvili/patch-1Wout2016-06-121-0/+5
|\ | | | | Fix groups animation
| * Fix groups animationmkorganashvili2016-04-251-0/+5
| |
* | Changed to document.documentElement.containssnydesc2016-05-251-1/+1
| | | | | | | | | | document.contains will not work in IE. document.body.contains will work in IE, Chrome, and Firefox however will not work on SVG only documents. document.documentElement.contains appears to work for all variations.
* | Changed document.contains to document.body.containssnydesc2016-05-241-1/+1
| | | | | | The document object in IE does not have the contains function as a method. This can cause a stack overflow as you can get stuck in an endless try catch loop. document.body.contains will work in IE, Firefox, and Chrome and will resolve this issue.
* | fixed line constructor which doesn't work with Array as input (#487)Ulrich-Matthias Schäfer2016-05-161-1/+1
| | | | | | | | added spec for mentioned issue
* | fixed bbox when element is not in the dom (#480), added parameter to `clone`Ulrich-Matthias Schäfer2016-05-132-12/+17
| |
* | fixed string parsing in viewbox (#483), specs `SVG.ViewBox`Ulrich-Matthias Schäfer2016-05-133-30/+36
| |
* | fixed bug in `parse()` from `SVG.PathArray` which does not correctly handled ↵Ulrich-Matthias Schäfer2016-05-051-1/+1
|/ | | | `S` and `T` (#485)
* fixed bug in `add()` and `SVG.Doc().create()`Ulrich-Matthias Schäfer2016-04-152-7/+8
|
* fixed bug where `stop(true)` throws an error when element is not animated (#475)Ulrich-Matthias Schäfer2016-04-091-1/+1
|
* fixed old target referencesUlrich-Matthias Schäfer2016-04-092-4/+4
|
* fixed `SVG.morph()` (#473)Ulrich-Matthias Schäfer2016-04-031-4/+6
|
* doublecheck SVG.parser, use svg element which is not in the dom (#471)Ulrich-Matthias Schäfer2016-04-023-4/+14
|