summaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
* added test cases to increase code coverageUlrich-Matthias Schäfer2017-03-011-8/+255
|
* Added test cases to increase code coverageUlrich-Matthias Schäfer2017-03-011-0/+143
|
* added test case for ungroup/flattenUlrich-Matthias Schäfer2017-03-011-9/+74
|
* fixed bug in SVG.Transformations when creating with array/argument list.Ulrich-Matthias Schäfer2017-02-283-0/+332
| | | | added tests to increase code coverage
* added tests to increase code coverageUlrich-Matthias Schäfer2017-02-288-6/+404
|
* added tests to increase code coverageUlrich-Matthias Schäfer2017-02-283-6/+21
|
* added test cases to increase coverageUlrich-Matthias Schäfer2017-02-275-23/+147
|
* Add tests for the animate method of the FX moduleRémi Tétreault2017-02-251-0/+44
|
* Add tests for when the user call stop/finish in during callbackRémi Tétreault2017-02-251-0/+12
|
* Add tests for the method atEnd of the FX moduleRémi Tétreault2017-02-251-4/+133
| | | | | | | | 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
* Correct some tests for the at_ methods of the FX moduleRémi Tétreault2017-02-251-4/+4
| | | | | In the first test of both the methods atStart and atEnd, `this` should instead be `fx`.
* added test cases to increase code coverageUlrich-Matthias Schäfer2017-02-253-10/+31
|
* viewbox now also accepts arrays and stringsUlrich-Matthias Schäfer2017-02-251-1/+9
|
* added test cases to increase code coverageUlrich-Matthias Schäfer2017-02-2513-16/+189
|
* added a few missing tests to increase coverageUlrich-Matthias Schäfer2017-02-246-2/+155
|
* Added SVG.Symbol so SVG.adopt can pick up symbols correctlyUlrich-Matthias Schäfer2017-02-243-16/+17
|
* slim down the SVG.TBox to SVG.RBox mapping (new SVG.TBox will not work)dotnetCarpenter2017-02-241-0/+26
|
* deprecate SVG.TBoxdotnetCarpenter2017-02-241-8/+0
|
* remove SVG.TBoxdotnetCarpenter2017-02-239-81/+26
|
* Allow 0 to be passed without unitRémi Tétreault2017-02-222-0/+97
| | | | | | | | 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-0/+40
|
* Make some change to the previous commitRémi Tétreault2017-02-175-13/+13
| | | | | | | | | | | | | 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-168-102/+557
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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étreault2017-01-141-5/+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-143-382/+25
| | | | | | 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-143-3/+458
| | | | | Also add methods to SVG.Point that allow to perform operations between two points.
* Wrapping up for 2.3.7 releasedotnetCarpenter2017-01-144-10/+10
|
* Fix the bug where relative matrix transforms are not animatedRémi Tétreault2016-11-092-5/+53
| | | | 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/+17
| | | | | 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-2/+58
| | | | | | | | | | | | 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.
* Fix the implementation of the skew transformRémi Tétreault2016-11-021-5/+93
| | | | | 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-210/+1106
| | | | | | | | | | | | | | | | | 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-0/+37
| | | | | | 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.
* added test for silently fixing wrong point parameters to SVG.PointArray + ↵dotnetCarpenter2016-10-201-1/+8
| | | | better descriptions for SVG.PointArray tests
* fix leading/trailing space test casedotnetCarpenter2016-10-201-3/+3
| | | | | odd number of points is invalid in SVG See https://svgwg.org/svg2-draft/shapes.html#DataTypePoints
* handle leading and trailing spacesdotnetCarpenter2016-10-201-0/+5
|
* correct naming of testUlrich-Matthias Schäfer2016-10-201-1/+1
|
* hotfix (#529)Ulrich-Matthias Schäfer2016-10-201-0/+5
|
* Change the SVG.FX attribute spd to _speedRémi Tétreault2016-10-171-10/+10
| | | | | This change is to follow the convention already put forward by the _target attribute.
* Make the tests of timeToPos() and posToTime() easier to understandRémi Tétreault2016-10-171-6/+6
|
* Make tests relating to speed easier to understandRémi Tétreault2016-10-171-42/+90
|
* Make speed(0) pause the animationRémi Tétreault2016-10-171-3/+8
|
* Make SVG.FX.speed act more like others animations librariesRémi Tétreault2016-10-161-4/+83
| | | | | | 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.
* Fix the test of SVG.FX.afterAllRémi Tétreault2016-10-151-1/+1
|
* Add tests for SVG.FX.loopRémi Tétreault2016-10-151-1/+153
|
* all tests pass - All your base are belong to usdotnetCarpenter2016-10-123-654/+14
|\
| * fixed id in test which is different in headless browserUlrich-Matthias Schäfer2016-10-121-2/+2
| |
| * Removed wrong tests in sugar.js, fixed remaining tests. Made fill and stroke ↵Ulrich-Matthias Schäfer2016-10-122-644/+12
| | | | | | | | a nop when no argument given
| * remove redundant testUlrich-Matthias Schäfer2016-10-121-8/+0
| |
* | changing implementation according to review by @FuzzymadotnetCarpenter2016-10-121-1/+1
| |