Commit Graph

546 Commits

Author SHA1 Message Date
Ulrich-Matthias Schäfer
04e21b18c3 added options to on(), back to sloppy mode
- added `options` object to `SVG.on()` and `el.on()` (#661)
- back to sloppy mode because of problems with plugins (#660)
2017-04-21 12:49:25 +02:00
Ulrich-Matthias Schäfer
1a42cd3b05 add options arguments to on() 2017-04-20 15:29:30 +02:00
Ulrich-Matthias Schäfer
230d2a2fa4 bump 2.5.3 2017-04-17 17:13:50 +02:00
Rémi Tétreault
35ff6ba258 Fix the flip transform on both axis
This fix the bug that made calling flip without any argument (`element.flip()`)
not work.
2017-04-15 22:38:22 -04:00
dotnetCarpenter
aed9305152
skip coverage for UMD 2017-04-11 20:02:35 +02:00
dotnetCarpenter
117b7fbe8d
patch release for strict mode 2017-04-11 18:41:05 +02:00
dotnetCarpenter
1d9f1a7f8e
clean up and added changes to CHANGELOG 2017-04-11 16:46:49 +02:00
dotnetCarpenter
016720aec2
changing to strict mode - some failures occur 2017-04-11 15:23:17 +02:00
Ulrich-Matthias Schäfer
4dd7ce3388 make last test passing in svg docs 2017-04-09 21:02:20 +02:00
Ulrich-Matthias Schäfer
bb38273b6a clear does not remove parser anymore
make test work in svg documents
2017-03-29 16:10:36 +02:00
Ulrich-Matthias Schäfer
ebf7436261 make path parsing even faster 2017-03-27 19:19:38 +02:00
Ulrich-Matthias Schäfer
06c2f7b06e bump 2.5.1 2017-03-27 13:31:31 +02:00
wout
8324870a9b Speed improvements for plot() on path, polygon and poly line elements. 2017-03-24 15:17:31 +01:00
Ulrich-Matthias Schäfer
a749f7aa6e fixed SVG.PathArray.parse that did not correctly parsed flat arrays 2017-03-24 10:58:19 +01:00
Ulrich-Matthias Schäfer
459a56e40e onclick events are now bound with SVG.on, prefixed globals, relax tests to work with svgdom, image loading uses eveents now, can now run jasmine tessts with svgdom when jasmine globally available 2017-03-21 18:16:13 +01:00
Ulrich-Matthias Schäfer
60d3ad099f removed loaded() and error()/changed load()
SVG.Image is now constructed with:
- container.image(src, callback)
- new SVG.Image().load(src, callback)
2017-03-19 16:41:01 +01:00
Ulrich-Matthias Schäfer
c2ff36620b typescript definitions updated, minor fix in Transformations 2017-03-19 15:48:48 +01:00
Ulrich-Matthias Schäfer
dc846f3eea missed another one 2017-03-19 14:06:50 +01:00
Ulrich-Matthias Schäfer
77b20c72d0 missed another one 2017-03-19 14:05:16 +01:00
Ulrich-Matthias Schäfer
50ab9266a8 missed one 2017-03-18 13:18:18 +01:00
Ulrich-Matthias Schäfer
c482c60250 prefix globals with window so window can be injected properly 2017-03-18 13:13:54 +01:00
Ulrich-Matthias Schäfer
bc4542df03 prefix globals with window so window can be injected properly 2017-03-18 13:07:00 +01:00
Ulrich-Matthias Schäfer
60236e07f1 removing SVG.Set completely 2017-03-16 19:43:20 +01:00
Ulrich-Matthias Schäfer
4cf9fe96c6 rework import/export method to be more straight forward and without regex magic 2017-03-16 13:40:53 +01:00
Ulrich-Matthias Schäfer
dddf54fa85 remove feature to set style with css string 2017-03-16 13:35:35 +01:00
Ulrich-Matthias Schäfer
5c287c95a3 fixes bug in style when css string ends with ; 2017-03-16 13:15:04 +01:00
Ulrich-Matthias Schäfer
2e215f1bd2 Merge branch 'master' into 3.0.0
Conflicts (all resolved):
	dist/svg.js
	dist/svg.min.js
	spec/spec/boxes.js
2017-03-16 13:03:35 +01:00
Ulrich-Matthias Schäfer
9bfcbc184e unified all boxes (#634)
unified all boxes

- SVG.Box for everything
- bbox, rbox and viewbox as methods
- boxes can be created with string, array, object, list...
- added helper to simplify boxes code
2017-03-16 12:48:20 +01:00
Ulrich-Matthias Schäfer
a8202e5660 make more tests pass in IE 2017-03-15 11:33:09 +01:00
Ulrich-Matthias Schäfer
af45360b7b move most regexe to SVG.regex, fix matrix constructor for string argument 2017-03-14 18:43:22 +01:00
Ulrich-Matthias Schäfer
3409a21507 update specs, fix mistakes, include flatten.js to dist 2017-03-10 14:57:00 +01:00
Ulrich-Matthias Schäfer
1b8d97b266 Release 2.5.0
### 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)
2017-03-10 09:32:16 +01:00
Ulrich-Matthias Schäfer
1e6af7da2f fix bug in box when box with top and left is given which is 0 (#632) 2017-03-09 22:51:17 +01:00
Ulrich-Matthias Schäfer
1bcabca97d fixed a bug with clone which didnt copy over dom data (#621) 2017-03-09 12:30:02 +01:00
Ulrich-Matthias Schäfer
761623033b make events cancelable by default (#550) - version 5 2017-03-09 10:07:50 +01:00
Ulrich-Matthias Schäfer
4f4f098c80 start the animation when after(All)/during(All) is called (#583) 2017-03-09 09:47:23 +01:00
Ulrich-Matthias Schäfer
8a0a4d797f Fix offset produced by svg parser (#553) 2017-03-08 19:48:20 +01:00
Ulrich-Matthias Schäfer
5587dd76de add ability to use font() method like attr() method (#620) 2017-03-08 19:34:22 +01:00
Ulrich-Matthias Schäfer
7c4e225c01 fix documet.contains bug in IE (#612) 2017-03-08 14:44:45 +01:00
Ulrich-Matthias Schäfer
0534a6760a 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
2017-03-08 14:29:15 +01:00
Ulrich-Matthias Schäfer
2fc62c55b8 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
2017-03-08 14:02:13 +01:00
Rémi Tétreault
1f16a667e1 Fix Animating a flip transform does not work #624 2017-03-07 20:46:09 -05:00
Rémi Tétreault
9165ee80ec 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.
2017-03-07 20:44:58 -05:00
Ulrich-Matthias Schäfer
41b55427a7 make flip working with both axis when no parameter / only offset is passed 2017-03-06 18:52:28 +01:00
Ulrich-Matthias Schäfer
9ceaf63493 fix bug in rebuild, remove x adjusting in x method (#616) 2017-03-06 15:15:39 +01:00
Ulrich-Matthias Schäfer
083d4eb036 speed up path parsing for most cases
added test, added pathArray speed bench
2017-03-06 13:39:53 +01:00
Ulrich-Matthias Schäfer
250f97ff2c added font() method to SVG.Tspan (#599) 2017-03-05 15:42:11 +01:00
Ulrich-Matthias Schäfer
901de657bd dx()/dy() now accepts percentage values, too (#524)
but only if the value on the element is already percentage
2017-03-05 14:14:31 +01:00
Ulrich-Matthias Schäfer
020627905e fixed error in event which did not clean up SVG.handlerMap properly (#518) 2017-03-05 13:52:11 +01:00
Ulrich-Matthias Schäfer
7aea4fa6db removed at() helper which is not used anymore 2017-03-03 17:55:33 +01:00
Ulrich-Matthias Schäfer
49bdb2864c fixed bug in SVG.Transformations when creating with array/argument list.
added tests to increase code coverage
2017-02-28 18:55:27 +01:00
Ulrich-Matthias Schäfer
fa5b44bad0 added tests to increase code coverage 2017-02-28 13:50:08 +01:00
Ulrich-Matthias Schäfer
659fc06e7e removed old fx code which is unused (#605) 2017-02-28 12:03:38 +01:00
Rémi Tétreault
6327512f1a 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
2017-02-25 16:59:55 -05:00
Ulrich-Matthias Schäfer
dd0f06f9a1 viewbox now also accepts arrays and strings 2017-02-25 15:05:59 +01:00
Ulrich-Matthias Schäfer
5044f8ac28 SVG.Array now accepts a comma seperated string and returns array of numbers instead of strings 2017-02-24 21:48:27 +01:00
Ulrich-Matthias Schäfer
337145b839 Added SVG.Symbol so SVG.adopt can pick up symbols correctly 2017-02-24 20:07:01 +01:00
dotnetCarpenter
0a0bb10bc3
slim down the SVG.TBox to SVG.RBox mapping (new SVG.TBox will not work) 2017-02-24 16:26:15 +01:00
dotnetCarpenter
82da55b56e
deprecate SVG.TBox 2017-02-24 14:38:01 +01:00
dotnetCarpenter
d0ab36f7db
remove SVG.TBox 2017-02-23 21:15:52 +01:00
Rémi Tétreault
669c10a76e 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.
2017-02-22 00:20:09 -05:00
Ulrich-Matthias Schäfer
1144404e4b Added clone method to SVG.Array/PointArray/PathArray (#590) 2017-02-20 15:29:14 +01:00
Rémi Tétreault
a3c0018d96 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
2017-02-17 22:23:51 -05:00
Rémi Tétreault
0f21fd2aea 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)
2017-02-16 21:36:35 -05:00
dotnetCarpenter
31750133bd Merge branch 'master' of https://github.com/svgdotjs/svg.js 2017-02-05 04:38:12 +01:00
Rémi Tétreault
ad555fcaba Make some fixes in SVG.PathArray
Rename the method haveSameCommands to equalCommands and
replace undefined by null.
2017-01-14 07:23:20 +01:00
Rémi Tétreault
0a2b7d186a 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.
2017-01-14 07:23:07 +01:00
Rémi Tétreault
356657146a Implement the morph method of SVG.PathArray
Also add methods to SVG.Point that allow to perform operations
between two points.
2017-01-14 07:22:26 +01:00
dotnetCarpenter
c8dc14292c Wrapping up for 2.3.7 release 2017-01-14 06:25:33 +01:00
Rémi Tétreault
c8afde0760 Make some fixes in SVG.PathArray
Rename the method haveSameCommands to equalCommands and
replace undefined by null.
2016-12-23 15:27:38 -05:00
Rémi Tétreault
80acdb3d77 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.
2016-12-20 21:33:18 -05:00
Rémi Tétreault
1c4e6f093f Implement the morph method of SVG.PathArray
Also add methods to SVG.Point that allow to perform operations
between two points.
2016-12-20 04:09:22 -05:00
dotnetCarpenter
998265133f accidently removed dist/svg.min.js from repo 2016-11-13 14:07:04 +01:00
dotnetCarpenter
0c7e8917ca speedup build for tests 2016-11-13 11:39:22 +01:00
dotnetCarpenter
3e614d4fe9
added code coverage 2016-11-13 00:23:52 +01:00
dotnetCarpenter
8f63acccf2
gentle optimization of PR #549 2016-11-12 22:05:54 +01:00
dotnetCarpenter
7225e0955d
Revert "optimize loop performance"
This reverts commit 98fdf32029.

Signed-off-by: dotnetCarpenter <jon.ronnenberg@gmail.com>
2016-11-12 21:31:48 +01:00
Rémi Tétreault
1a32907588 Fix the bug where relative matrix transforms are not animated
Also, add the possibility to make uniform skew transform.
2016-11-09 21:32:48 -05:00
Rémi Tétreault
e3a9343891 Fix a bug with the animation of a scale transform
Fix the bug where animating a scale transform also caused a translation
when there was already a transform in place.
2016-11-08 02:00:33 -05:00
Rémi Tétreault
fb405bd64f Fix and improve the dequeue method of the FX module
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.
2016-11-03 18:30:48 -04:00
Ulrich-Matthias Schäfer
2b0263d913 changelog, run gulp cause of #504 2016-11-03 11:01:18 +01:00
Rémi Tétreault
7164e5617d Fix the implementation of the skew transform
Also fix a bug where when calling scale with 3 parameters, cx was not set
with the right value.
2016-11-02 18:25:35 -04:00
Rémi Tétreault
74040b3629 Make the code in the FX module simpler
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!
2016-11-01 20:05:16 -04:00
Rémi Tétreault
158fe9e5a4 Make matrixify work with transformation chain separated by commas
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.
2016-11-01 17:23:06 -04:00
dotnetCarpenter
a67f69cd52
bump 2.3.6 2016-10-21 13:43:35 -02:00
dotnetCarpenter
e4bff8c910
added test for silently fixing wrong point parameters to SVG.PointArray + better descriptions for SVG.PointArray tests 2016-10-20 17:47:40 -02:00
dotnetCarpenter
288662d0d9
fix leading/trailing space test case
odd number of points is invalid in SVG
See https://svgwg.org/svg2-draft/shapes.html#DataTypePoints
2016-10-20 17:45:17 -02:00
dotnetCarpenter
695f26a8df
handle leading and trailing spaces 2016-10-20 17:45:17 -02:00
dotnetCarpenter
d07a17de28
replace call to filter function with better regex 2016-10-20 17:45:17 -02:00
Ulrich-Matthias Schäfer
f1d9f6157d hotfix (#529) 2016-10-20 18:15:23 +02:00
Rémi Tétreault
2ce9170a5e Change the SVG.FX attribute spd to _speed
This change is to follow the convention already put forward by the _target
attribute.
2016-10-17 19:22:18 -04:00
Rémi Tétreault
5da860377e Add speed to SVG.Element and also add documentation to speed 2016-10-17 16:28:51 -04:00
Rémi Tétreault
91d4934ca6 Make speed(0) pause the animation 2016-10-17 14:15:18 -04:00
Rémi Tétreault
a6261cda9d Make SVG.FX.speed act more like others animations libraries
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.
2016-10-16 20:53:55 -04:00
Rémi Tétreault
1c98bc5869 Rebuild of the library 2016-10-15 19:46:40 -04:00
Ulrich-Matthias Schäfer
4e03d27537 bump 2.3.5 2016-10-13 17:33:14 +02:00
dotnetCarpenter
727d11ae3f
all tests pass - All your base are belong to us 2016-10-12 19:22:52 -02:00
Ulrich-Matthias Schäfer
42664efc08 Removed wrong tests in sugar.js, fixed remaining tests. Made fill and stroke a nop when no argument given 2016-10-12 18:18:36 +02:00
dotnetCarpenter
de154c33ab
re-include dist folder 2016-10-12 12:54:25 -02:00
dotnetCarpenter
b21ce1f270
remove dist folder from PR 2016-10-12 12:54:13 -02:00
dotnetCarpenter
770fc4d7a8
sorry the last commit was nonsens. This one is proper tested. 2016-10-12 12:53:54 -02:00
dotnetCarpenter
eed96bcf59
fixes #525 by accepting/parsing coordianate strings where x and y is seperated by comma and or by space - we count the shape coordinates until (and including) the maximum even number 2016-10-12 12:53:24 -02:00
dotnetCarpenter
5c18e89d27
halt dev of chrome base solution 2016-10-08 17:18:25 -02:00
dotnetCarpenter
cc1c484cff
using the dist version of svg.js for testing because the code is not meant to be executed individually (syntax errors) 2016-10-04 15:07:19 +02:00
dotnetCarpenter
b7061c65d5
try to run test with individual files instead of the concated version so it is easier to track down the source file 2016-10-04 14:59:20 +02:00
dotnetCarpenter
b60779c888
fixed gulp clean task not returning a Promise 2016-10-04 13:47:12 +02:00
dotnetCarpenter
b0637d22c3
update dependencies 2016-10-04 13:25:39 +02:00
wout
f25ba0e745 Version bump 2016-08-04 12:47:35 +02:00
wout
b0a8b25f38 Speed improvements on parent element 2016-08-04 08:58:29 +02:00
Ulrich-Matthias Schäfer
86c99607a3 fixed #514 and #516
- removed `SVG.Text.clone()` which is inherited by `SVG.Element.clone()`
- make element visible when call bbox on a clone
2016-08-02 18:44:48 +02:00
Ulrich-Matthias Schäfer
399dd4a2b4 bump 2.3.2 2016-06-21 10:03:18 +02:00
Ulrich-Matthias Schäfer
0a0a57218b fixed line constructor which doesn't work with Array as input (#487)
added spec for mentioned issue
2016-05-16 17:00:02 +02:00
Ulrich-Matthias Schäfer
3eb3209741 fixed bbox when element is not in the dom (#480), added parameter to clone 2016-05-13 14:03:10 +02:00
Ulrich-Matthias Schäfer
c0197097c4 fixed string parsing in viewbox (#483), specs SVG.ViewBox 2016-05-13 13:32:48 +02:00
Ulrich-Matthias Schäfer
cdf8e1467f bump 2.3.1 2016-05-05 15:39:39 +02:00
Ulrich-Matthias Schäfer
9e14ae8476 fixed bug in parse() from SVG.PathArray which does not correctly handled S and T (#485) 2016-05-05 15:38:21 +02:00
Ulrich-Matthias Schäfer
30df220d96 fixed bug in add() and SVG.Doc().create() 2016-04-15 19:53:58 +02:00
Ulrich-Matthias Schäfer
2d785535da fixed bug where stop(true) throws an error when element is not animated (#475) 2016-04-09 18:30:27 +02:00
Ulrich-Matthias Schäfer
700a77060f fixed old target references 2016-04-09 18:06:24 +02:00
Ulrich-Matthias Schäfer
8bdc17f571 fixed SVG.morph() (#473) 2016-04-03 13:11:41 +02:00
Ulrich-Matthias Schäfer
528637eb86 doublecheck SVG.parser, use svg element which is not in the dom (#471) 2016-04-02 00:38:27 +02:00
Ulrich-Matthias Schäfer
e059cf7f0a fix parser error (#471) and small bug in SVG.Color with new fx 2016-04-01 23:57:02 +02:00
Ulrich-Matthias Schäfer
b006c02b21 bump 2.3.0 2016-03-30 01:19:27 +02:00
Ulrich-Matthias Schäfer
8460b3b9fa readme update, clean up 2016-03-29 12:19:05 +02:00
Ulrich-Matthias Schäfer
1787f953b0 tidy up 2016-03-29 00:18:15 +02:00
Ulrich-Matthias Schäfer
541c6ecc81 fix finishing up correctly with even loops, readme 2016-03-29 00:18:14 +02:00
Ulrich-Matthias Schäfer
a14a3c5fdd discard totalProgress for now 2016-03-28 17:25:15 +02:00
Ulrich-Matthias Schäfer
d173ad16c5 revert multiple breaking changes introduced by the last commits 2016-03-28 17:18:40 +02:00
Ulrich-Matthias Schäfer
3af6480ec3 fixed bug where loop wasnt correctly reversed if specified 2016-03-25 00:03:31 +01:00
Ulrich-Matthias Schäfer
000b071d04 Merge branch '3.0.0' introducing several changes:
- textpath now is a parent element, the lines method of text will return the tspans inside the textpath (#450)
 - fx module rewritten to support animation chaining and several other stuff (see docs when commited)
 - fixed absolute transformation animations (not perfect but better)
 - fixed event listeners which didnt work correctly when identic funtions used
 - added `element.is()` which helps to check for the object instance faster (instanceof check)
 - added more fx specs
2016-03-24 23:44:59 +01:00
Ulrich-Matthias Schäfer
8205de6087 Implementation new fx module 2016-03-23 22:50:30 +01:00
wout
595777968f Removed references to old test page 2016-03-14 08:38:57 +01:00
Ulrich-Matthias Schäfer
2bf4788597 fixed error where a parent node is not found when loading an image but the canvas was cleared (#447) 2016-02-10 21:17:58 +01:00
Ulrich-Matthias Schäfer
0858bca9eb fixed unit unit regex and renamed it to numberAndUnit, added specs (fix #443) 2016-01-23 00:24:57 +01:00
Ulrich-Matthias Schäfer
d17bab6bcc fixed svgjs:data attribute which was not set properly in all browsers (#428)
added specs for `writeDataToDom()` and `setData()`
added toJSON in SVG.Number
2016-01-21 17:40:13 +01:00
Ulrich-Matthias Schäfer
bf0dd2a1cc added specs for isNumber() and compile svg.js 2016-01-18 00:40:16 +01:00
Ulrich-Matthias Schäfer
bda9f32dcd added SVG.Point class as wrapper for SVGPoint, added el.point() method (#403 / #437) 2016-01-11 23:39:49 +01:00
Ulrich-Matthias Schäfer
21be7b26b4 matrixify() will not apply the calculated matrix to the node anymore 2015-12-29 13:16:05 +01:00
Denis Mosolov
a7eaeb4b06 fix #433 2015-12-29 14:38:54 +03:00
Ulrich-Matthias Schäfer
a794401cda Merge branch 'master' into 3.0.0 2015-12-23 19:10:17 +01:00
Ulrich-Matthias Schäfer
2b97c7e419 added check for existence of node (fix #431) 2015-12-23 19:06:46 +01:00
Ulrich-Matthias Schäfer
2566a08d44 relative movements, delayed (queued) start of animation 2015-12-23 19:02:05 +01:00
Ulrich-Matthias Schäfer
14d36f8df7 transformation with correct rotation, fixed Color animation 2015-12-21 18:37:10 +01:00
Ulrich-Matthias Schäfer
b40238cdff new specs, reverse, initAnimation, after, during, comments 2015-12-20 15:43:40 +01:00
Ulrich-Matthias Schäfer
5cb2010246 added all fx methods, styles and attrs 2015-12-16 01:54:53 +01:00
Ulrich-Matthias Schäfer
3260b94a26 added once and during 2015-12-13 21:41:13 +01:00
Ulrich-Matthias Schäfer
f3e185674c new fx with enqueue method and dedicated SVG.Situation 2015-12-13 00:51:44 +01:00
Ulrich-Matthias Schäfer
13587eaf3c bump 2.2.4 2015-12-12 00:53:47 +01:00
Ulrich-Matthias Schäfer
7f5996c844 updated changelog, fixed typo in doc and removed semicolon 2015-12-12 00:52:26 +01:00
rdfriedl
291892690a fixes for issue #429 2015-12-11 09:21:58 -06:00