aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers.js
Commit message (Collapse)AuthorAgeFilesLines
* reordered modules, add es6 buildUlrich-Matthias Schäfer2018-11-061-206/+0
|
* Linted all files, upgraded all dependenciesUlrich-Matthias Schäfer2018-11-051-3/+3
|
* implement registerMethods(), introduce real arrays for modern browsers, fix ↵Ulrich-Matthias Schäfer2018-11-041-0/+1
| | | | some tests
* resolve last circular dependencies, make rollup workUlrich-Matthias Schäfer2018-10-271-81/+0
|
* resolve circular references and make example working againUlrich-Matthias Schäfer2018-10-271-26/+4
|
* convert everything to es6 classes and importsUlrich-Matthias Schäfer2018-10-251-43/+40
|
* add babel, satisfy linter, build distUlrich-Matthias Schäfer2018-10-171-14/+2
|
* Optimized the matrix functions so that the transform function is a multitude ↵Ulrich-Matthias Schäfer2018-10-081-0/+22
| | | | faster for parameterized input
* get rid of that unnecessary bbox call on every frameUlrich-Matthias Schäfer2018-09-201-0/+11
|
* finally solve transformations one and for all time!Ulrich-Matthias Schäfer2018-09-201-1/+1
| | | | This is great - we should party hard. I mean - it took like 4 month to get this done. That's way to much! I don't want anymore. Pease send help :D
* Refactored the getOrigin helper to help fix the relative affine animationsSaivan2018-09-171-4/+3
| | | | | | | | | | This commit refactors the getOrigin helper, in order to send the origin to the correct space. The origin should be expressed in the space of the last animation. Changes ======= - Refactored the getOrigin helper - Added a simple example to the dirty file to test multiple transformations
* Fixed the relative non-affine transform animationsSaivan2018-09-171-6/+16
| | | | | | | | | This commit uncovered an issue with the relative non-affine transformations. It is now correctly fixed and working. Next we should fix the affine transforms as well. Changes ======= - Fixed the relative non-affine transformation animations
* Fixed the transformation code to use the bbox properlySaivan2018-07-051-22/+6
| | | | | This commit fixes the transformations and allows single animated transformations to properly work.
* fix origin transformationUlrich-Matthias Schäfer2018-07-041-1/+0
|
* Worked towards setting the origin on each frame with linear algebraSaivan2018-07-041-17/+1
| | | | | This commit attempts to modify the origin on each frame, but it seems that we have some kind of bug that we need to fix first
* Fixed an issue that occurred when we applied more than one transformSaivan2018-07-031-3/+32
| | | | | This commit allows us to apply more than one transform to an element, and have them correctly applied to the element.
* satisfy linter, fix global varUlrich-Matthias Schäfer2018-06-281-2/+2
|
* fix origin for relative transformationsUlrich-Matthias Schäfer2018-06-271-2/+2
|
* Allowed the origin to stay fixed as we animate transformsSaivan2018-06-261-2/+26
| | | | | | | | | | | This commit start to remove the expensive bbox calculation by assuming that the origin stays at a fixed point during an animation. This is a good assumption as transforms don't change the bbox of the element. Changes ======= - Refactor the Element.transform function - Make a getOrigin function to call the bbox only one time
* first tries to make transformations workUlrich-Matthias Schäfer2018-06-021-1/+1
|
* satisfy linterUlrich-Matthias Schäfer2018-05-271-2/+1
|
* Most of the animations are workingSaivan2018-05-171-5/+4
|
* Another collaboration session with @FuzzymaSaivan2018-04-301-0/+58
|
* Fixed recommendations by @Fuzzyma regarding transformsSaivan2018-03-051-9/+0
| | | | | | | | | | | | This commit fixes a number of issues with transformations: - Removed move/dmove/etc... on groups - Sugar was being passed origin instead of ox, oy - Updated the changelog - Removed parseMatrix in favor of new SVG.Matrix() - .matrix is the getter for a matrix, not .transform - added a [02:24:41] Using gulpfile ~/Desktop/svg/svg.js/gulpfile.js [02:24:41] Starting 'lint'... [02:24:43] Finished 'lint' after 2.32 s directive
* Added matrix composition and decompositionsSaivan2018-03-031-16/+1
| | | | | | | | This commit adds matrix composition and decompositions (untested), it also adds another playground to test that this is working as expected in every case. We also fixed a few linting errors.
* Implemented new transformationsSaivan2018-03-021-5/+9
| | | | | | This commit implements the new transformation model, but it also needs to modify a few tests to fit the new format. This is still a work in progress.
* Merged the 3.0.0 branch to add the linterSaivan2018-02-271-54/+61
|\ | | | | | | | | I added the linter here to make programming and running the tests easier throughout the programming process.
| * Actually added the linter to gulp and fixed most errorsSaivan2018-02-271-0/+2
| | | | | | | | | | | | This commit fixes most of the errors raised by standard. There is still a strange call error, but that will be the focus of the next commit
| * The first half of the library complies with Standard lintingSaivan2018-02-271-54/+59
| | | | | | | | | | | | This commit reformats the code so that it complies with the standard linting style. Its currently a work in progress, but it is meant to pave the way for linting in the build process
* | Identified transformation code to retireSaivan2018-02-251-8/+15
|/ | | | | | | | | | | This commit simply identifies some of the code that we will be retiring in 3.0.0 related to transformations. I have commented and in some cases removed code that will not be required. Changes ======= - Added the new affine composition and decomposition functions - Commented out code that will be removed in coming commits
* add new default constructor (#714)Ulrich-Matthias Schäfer2017-07-251-6/+0
|
* Lots of breaking changes. Read below! (#646, #716)Ulrich-Matthias Schäfer2017-07-251-0/+29
| | | | | | | | | | - added `SVG.HTMLNode` which is the object wrapped around html nodes to put something in them - moved `defs()` method from `SVG.Parent` to `SVG.Element` - `SVG()` can be called with css selector, node or svg string, now. Without an argument it creates a new `SVG.Doc()` (#646) - `add()`, `put()`, `addTo()`, `putIn()` now excepts all arguments accepted by `SVG()` - `SVG.Nested` is not `overflow:visible` by default - all `SVG.*` objects now can have a node as parameter when constructing - `SVG()` does not set a default size anymore
* use `children` instead of `childNodes` (#710), renamed `previous()` to `prev()`Ulrich-Matthias Schäfer2017-07-101-3/+2
|
* ids are not generated upon creation anymoreUlrich-Matthias Schäfer2017-04-231-7/+10
| | | | Instead they are generated when requested (#559)
* prefix globals with window so window can be injected properlyUlrich-Matthias Schäfer2017-03-181-1/+1
|
* Merge branch 'master' into 3.0.0Ulrich-Matthias Schäfer2017-03-161-16/+0
|\ | | | | | | | | | | | | Conflicts (all resolved): dist/svg.js dist/svg.min.js spec/spec/boxes.js
| * move most regexe to SVG.regex, fix matrix constructor for string argumentUlrich-Matthias Schäfer2017-03-141-16/+0
| |
* | unified all boxes (#634)Ulrich-Matthias Schäfer2017-03-161-1/+15
| | | | | | | | | | | | | | | | 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
* | update specs, fix mistakes, include flatten.js to distUlrich-Matthias Schäfer2017-03-101-1/+1
|/
* speed up path parsing for most casesUlrich-Matthias Schäfer2017-03-061-0/+4
| | | | added test, added pathArray speed bench
* removed at() helper which is not used anymoreUlrich-Matthias Schäfer2017-03-031-13/+0
|
* Added clone method to SVG.Array/PointArray/PathArray (#590)Ulrich-Matthias Schäfer2017-02-201-0/+12
|
* Speed improvements on parent elementwout2016-08-041-5/+9
|
* Implementation new fx moduleUlrich-Matthias Schäfer2016-03-231-0/+4
|
* added support for css selectors with the `parent()` methodUlrich-Matthias Schäfer2015-10-251-0/+5
|
* Make parsing a <transform-list> more robust in the face of IE11Ray Glover2015-08-141-1/+1
| | | | | which doesn't use commas (',') to delimit matrix elements. see also: http://www.w3.org/TR/SVG11/coords.html#SVGGlobalTransformAttribute
* Merged all changes and fixes from SVG 1.1 into this branchUlrich-Matthias Schäfer2015-06-111-10/+1
|
* Added animated parametric transformationswout2014-08-301-0/+6
|
* Added SVG.TBox for transformed bounding boxeswout2014-08-291-102/+111
|
* Installed Jasmin 2.0.1wout2014-07-261-4/+28
|