summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a few more specifications regarding the new transformsSaivan2018-03-021-1/+1
|
* Merge branch '3.0.0' of github.com:svgdotjs/svg.js into 786-new-transformationsSaivan2018-03-021-1/+21
|\
| * make ungroup working on groups and nested for one depthsUlrich-Matthias Schäfer2018-03-011-1/+21
| |
* | Fixed some tests involving transforms and elementsSaivan2018-03-0211-123/+112
|\|
| * fixed all that errors which come along when removing an object. Fixed tests, ↵Ulrich-Matthias Schäfer2018-03-019-42/+38
| | | | | | | | too and added isRoot test
| * return explicit null if there is no rootUlrich-Matthias Schäfer2018-03-011-1/+3
| |
| * merge SVG.Doc and SVG.Nested. Add isRoot() method, update doc methods to ↵Ulrich-Matthias Schäfer2018-03-014-31/+28
| | | | | | | | decide between doc and nested
| * search and replace replaced to muchUlrich-Matthias Schäfer2018-02-271-2/+2
| |
| * found the error whereelse. go back to version before with applied fixUlrich-Matthias Schäfer2018-02-271-13/+9
| |
| * fixed error that listener was strangely defined even if function was called ↵Ulrich-Matthias Schäfer2018-02-271-8/+13
| | | | | | | | without
| * fix errors found by linter (jeah it works!)Ulrich-Matthias Schäfer2018-02-272-12/+12
| |
| * proposal for #807, includes #550, allow multiple events for `SVG.off()` and ↵Ulrich-Matthias Schäfer2018-02-273-80/+73
| | | | | | | | add option argument
* | Implemented new transformationsSaivan2018-03-027-190/+187
| | | | | | | | | | | | 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-274-434/+207
| | | | | | | | | | | | | | 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-2753-1712/+2055
|\| | | | | | | | | I added the linter here to make programming and running the tests easier throughout the programming process.
| * Fixed a few hanging issues with the linterSaivan2018-02-275-13/+51
| | | | | | | | | | This commit fixes a few typesetting issues that probably resulted from the automated linting process
| * So the standard linter is operational and our code is compliantSaivan2018-02-2710-45/+52
| | | | | | | | | | | | This commit completes the compliance of our code with the standard linter. It is now building correctly and error messages are displayed when somebody tries to build bad code!
| * Actually added the linter to gulp and fixed most errorsSaivan2018-02-2721-18/+47
| | | | | | | | | | | | 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
| * All files now loosely abide by standard lintingSaivan2018-02-2721-599/+606
| | | | | | | | | | | | This commit completes the rest of the files, making sure they are in the standard linting format. Next we will add the linter to the build process of our application.
| * The first half of the library complies with Standard lintingSaivan2018-02-2731-1191/+1182
| | | | | | | | | | | | 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-263-140/+62
| | | | | | | | | | 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-262-9/+81
| | | | | | | | | | | | 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-255-367/+462
|/ | | | | | | | | | | 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
* make sure to remove event handlers from temporary image (#805)Ulrich-Matthias Schäfer2018-02-071-2/+6
|
* remove `SVG.A.show()` to resolve nameclash (fix #802)Ulrich-Matthias Schäfer2018-02-061-4/+0
|
* improved SVG.on and el.on (#727)Ulrich-Matthias Schäfer2017-07-281-23/+25
| | | | | - `SVG.on()` calls the listener in the context of the passed object. el.on always uses the svg.js object as context - `SVG.on()` and `el.on()` now accepts multiple comma or space seperated events e.g. "mousedown, foo bar" (#727)
* The dom is checked for an svgjs:data attribute which is imported when ↵Ulrich-Matthias Schäfer2017-07-282-8/+8
| | | | creating an element
* fix bug where defs returns nothingUlrich-Matthias Schäfer2017-07-251-1/+1
|
* add new default constructor (#714)Ulrich-Matthias Schäfer2017-07-2510-39/+21
|
* Lots of breaking changes. Read below! (#646, #716)Ulrich-Matthias Schäfer2017-07-2513-109/+133
| | | | | | | | | | - 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-106-22/+20
|
* renamed `fill()` method on `SVG.Gradient` and `SVG.Pattern` to `url()` (#708)Ulrich-Matthias Schäfer2017-07-072-4/+4
|
* renamed `SVG.Stop` constructor `at()` on `SVG.Gradient` to `stop()` (#707)Ulrich-Matthias Schäfer2017-07-071-1/+1
|
* reworked textPath (see #705)Ulrich-Matthias Schäfer2017-07-073-37/+56
|
* Merge branch 'master' into 3.0.0Ulrich-Matthias Schäfer2017-07-063-16/+49
|\ | | | | | | | | | | | | | | Conflicts (All resolved): dist/svg.js dist/svg.min.js package.json src/doc.js
| * fix array values which were not animated (#698)Ulrich-Matthias Schäfer2017-07-061-0/+2
| |
| * Removed unused parameter spof of function spof()Malte Fastrup Lyngsø2017-06-061-1/+1
| |
| * Merge pull request #676 from jcorentin/fix-height-width-animationRémi Tétreault2017-05-261-0/+8
| |\ | | | | | | Make width() and height() setters animatable
| | * Add animatable width & heightCorentin J2017-05-111-0/+8
| | |
| * | fixed `SVG.FX.step` so that the animation doesn't stop if an afterAll ↵Rémi Tétreault2017-05-141-2/+6
| |/ | | | | | | callback call animate (#677)
| * 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
| |
| * Adds the intended functionality to call animate functions with multiple ↵Ulrich-Matthias Schäfer2017-04-302-10/+29
| | | | | | | | | | parameter (#671) e.g. `el.animate().zoom(level, point)`
| * fixed `SVG.FX.once` so that it add its callback on the last situation ↵Rémi Tétreault2017-04-301-3/+3
| | | | | | | | instead of the current one
| * fixed a bug in path parser which made it stop parsing when hitting z command ↵Ulrich-Matthias Schäfer2017-04-251-1/+1
| | | | | | | | (#665)
* | `SVG.extend` now expects exactly one module or an array of modulesUlrich-Matthias Schäfer2017-04-259-20/+16
| | | | | | | | | | | | Conflicts: dist/svg.js dist/svg.min.js
* | fixed a bug in path parser which made it stop parsing when hitting z command ↵Ulrich-Matthias Schäfer2017-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | (#665) Conflicts: bench/runner.html dist/svg.js dist/svg.min.js package.json
* | ids are not generated upon creation anymoreUlrich-Matthias Schäfer2017-04-235-18/+22
| | | | | | | | Instead they are generated when requested (#559)
* | changed `style()` to `css()`Ulrich-Matthias Schäfer2017-04-226-34/+41
| | | | | | | | | | it now accepts array as input and returns object when no argument given (#517) also removed sub-pixel offset fix
* | rename style to cssUlrich-Matthias Schäfer2017-04-221-0/+0
| |