summaryrefslogtreecommitdiffstats
path: root/src/matrix.js
Commit message (Collapse)AuthorAgeFilesLines
* Rename files so that they reflect their exported classes (see next commit)Ulrich-Matthias Schäfer2018-10-251-472/+0
|
* add babel, satisfy linter, build distUlrich-Matthias Schäfer2018-10-171-7/+4
|
* Cant see the forest with all these trees...Ulrich-Matthias Schäfer2018-10-081-4/+2
|
* Optimized the matrix functions so that the transform function is a multitude ↵Ulrich-Matthias Schäfer2018-10-081-45/+77
| | | | faster for parameterized input
* adding optimized transformation function to speed up things a tiny bitUlrich-Matthias Schäfer2018-09-201-39/+96
|
* get rid of that unnecessary bbox call on every frameUlrich-Matthias Schäfer2018-09-201-4/+1
|
* Fixed the transformation code to use the bbox properlySaivan2018-07-051-12/+12
| | | | | This commit fixes the transformations and allows single animated transformations to properly work.
* Fixed an issue that occurred when we applied more than one transformSaivan2018-07-031-2/+1
| | | | | This commit allows us to apply more than one transform to an element, and have them correctly applied to the element.
* Added a potential fix for the problemSaivan2018-06-291-0/+1
|
* satisfy linter, fix global varUlrich-Matthias Schäfer2018-06-281-1/+1
|
* fix origin bugUlrich-Matthias Schäfer2018-06-281-10/+16
|
* Add a few debugging statementsSaivan2018-06-281-8/+18
|
* Modified the behaviour of absolute transformsSaivan2018-06-281-5/+8
| | | | | This commit slightly modifies the behaviour of absolute transforms, we will get them working soon :D
* first tries to make transformations workUlrich-Matthias Schäfer2018-06-021-0/+11
|
* fixed declaritive again, fromArray now works on all object instancesUlrich-Matthias Schäfer2018-05-301-4/+0
|
* satisfy linterUlrich-Matthias Schäfer2018-05-271-18/+5
|
* Most of the animations are workingSaivan2018-05-171-6/+17
|
* make morphing work, fix inheritance, animations now workUlrich-Matthias Schäfer2018-05-011-1/+9
|
* The animations work with the .queue methodSaivan2018-05-011-1/+1
|
* Another collaboration session with @FuzzymaSaivan2018-04-301-46/+39
|
* Added some timeline and Morphing functionsSaivan2018-04-231-1/+5
|
* Initial planning for the Timeline ModuleSaivan2018-04-181-0/+7
| | | | | | This commit just includes a few plans and a massive derrangement of the fx module before it is to be refactored into the Timeline module. The basic methods are included, but everything is broken
* Removed gbox and fixed a few typosSaivan2018-03-051-1/+1
| | | | | Since gbox is completely replaced by rbox, we don't need it anymore. There were also a few small errors to fix.
* Fixed recommendations by @Fuzzyma regarding transformsSaivan2018-03-051-21/+25
| | | | | | | | | | | | 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
* Fixed most of the tests relating to transformationsSaivan2018-03-041-9/+9
|
* Added matrix composition and decompositionsSaivan2018-03-031-16/+85
| | | | | | | | 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.
* Fixed some tests involving transforms and elementsSaivan2018-03-021-1/+1
|\
| * fixed all that errors which come along when removing an object. Fixed tests, ↵Ulrich-Matthias Schäfer2018-03-011-1/+1
| | | | | | | | too and added isRoot test
* | Implemented new transformationsSaivan2018-03-021-129/+103
| | | | | | | | | | | | 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.
* | Made developing a little more enjoyableSaivan2018-02-271-124/+94
| | | | | | | | | | | | | | This commit adds playgrounds and a build:dev mode. Now you can call npm run build:dev to make the linter warn you about errors without breaking. Also, we now have playgrounds, where you can use a built version of svg.js to run your own tests.
* | Merged the 3.0.0 branch to add the linterSaivan2018-02-271-61/+82
|\| | | | | | | | | 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-5/+6
| | | | | | | | | | | | 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-88/+85
| | | | | | | | | | | | 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
* | Matrix operations now apply to the current matrixSaivan2018-02-261-10/+28
| | | | | | | | | | This commit applies matrix operations to the current matrix, so calling mat.rotate will rotate the current matrix directly
* | We can form a compound matrix in the matrix moduleSaivan2018-02-261-2/+50
| | | | | | | | | | | | This commit allows us to form a compounded matrix by setting parameters like scale, translate, rotate etc directly in a single call by asserting a particular matrix order.
* | Identified transformation code to retireSaivan2018-02-251-20/+72
|/ | | | | | | | | | | 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
* Lots of breaking changes. Read below! (#646, #716)Ulrich-Matthias Schäfer2017-07-251-1/+1
| | | | | | | | | | - 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
* revert the previous commitRémi Tétreault2017-05-021-7/+4
| | | | remove the typeof check in the initialisation of SVG.Matrix
* allow SVG.Matrix to be passed SVG.NumberRémi Tétreault2017-05-011-4/+7
|
* Fix the flip transform on both axisRémi Tétreault2017-04-151-2/+1
| | | | | This fix the bug that made calling flip without any argument (`element.flip()`) not work.
* move most regexe to SVG.regex, fix matrix constructor for string argumentUlrich-Matthias Schäfer2017-03-141-1/+1
|
* added SVG.Box, added transform method to boxes, fix rbox (#626)Ulrich-Matthias Schäfer2017-03-081-0/+10
| | | | | | | | 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
* make flip working with both axis when no parameter / only offset is passedUlrich-Matthias Schäfer2017-03-061-1/+6
|
* added tests to increase code coverageUlrich-Matthias Schäfer2017-02-281-0/+2
|
* removed old fx code which is unused (#605)Ulrich-Matthias Schäfer2017-02-281-20/+0
|
* 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.
* doublecheck SVG.parser, use svg element which is not in the dom (#471)Ulrich-Matthias Schäfer2016-04-021-1/+1
|
* Implementation new fx moduleUlrich-Matthias Schäfer2016-03-231-1/+4
|
* added SVG.Point class as wrapper for SVGPoint, added `el.point()` method ↵Ulrich-Matthias Schäfer2016-01-111-1/+1
| | | | (#403 / #437)
* transform() returnw a-f now, too, double newlines create blank linesUlrich-Matthias Schäfer2015-12-041-0/+6
|