| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Rename the method haveSameCommands to equalCommands and
replace undefined by null.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Also add methods to SVG.Point that allow to perform operations
between two points.
|
| |
|
|
|
|
|
|
| |
This reverts commit 98fdf3202901017dcdf16cde910ddd896aab519d.
Signed-off-by: dotnetCarpenter <jon.ronnenberg@gmail.com>
|
| |
|
|
|
| |
This fixed the a.undo is not a function error. The for loop was going down into the array's prototype chain.
|
|
|
|
| |
Also, add the possibility to make uniform skew transform.
|
|
|
|
|
| |
Fix the bug where animating a scale transform also caused a translation
when there was already a transform in place.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 broken animations, if using polyfills for es6/7 proposals
|
| |
| |
| |
| | |
String.at())
|
| |
| |
| |
| |
| | |
Also fix a bug where when calling scale with 3 parameters, cx was not set
with the right value.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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!
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
This change is to follow the convention already put forward by the _target
attribute.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | | |
a nop when no argument given
|
| | | |
|
| | | |
|
|/ /
| |
| |
| | |
seperated by comma and or by space - we count the shape coordinates until (and including) the maximum even number
|
| | |
|
| |
| |
| |
| |
| | |
- removed `SVG.Text.clone()` which is inherited by `SVG.Element.clone()`
- make element visible when call bbox on a clone
|
|/ |
|
|\
| |
| | |
Fix groups animation
|
| | |
|
| |
| |
| |
| |
| | |
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.
|
| |
| |
| | |
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.
|
| |
| |
| |
| | |
added spec for mentioned issue
|
| | |
|
| | |
|
|/
|
|
| |
`S` and `T` (#485)
|
| |
|
| |
|
| |
|
| |
|
| |
|