aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Merge branch 'master' into 3.0.0Ulrich-Matthias Schäfer2017-04-2211-118/+164
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts - all resolved: # dist/svg.js # dist/svg.min.js # package.json # spec/SpecRunner.html # spec/spec/boxes.js # spec/spec/element.js # spec/spec/image.js # spec/spec/svg.js # src/boxes.js # src/flatten.js # src/image.js # src/polyfill.js # src/style.js # src/svg.js
| * added `options` to `on()`, back to sloppy mode2.6.0Ulrich-Matthias Schäfer2017-04-211-3/+1
| | | | | | | | | | - added `options` object to `SVG.on()` and `el.on()` (#661) - back to sloppy mode because of problems with plugins (#660)
| * add options arguments to `on()`Ulrich-Matthias Schäfer2017-04-201-4/+4
| |
| * Fix the flip transform on both axisRémi Tétreault2017-04-152-12/+29
| | | | | | | | | | This fix the bug that made calling flip without any argument (`element.flip()`) not work.
| * use strict removed from umd wrapper by virtue of being ugly and assuring ↵dotnetCarpenter2017-04-121-1/+0
| | | | | | | | fuzzyma's sleep at night
| * skip coverage for UMDdotnetCarpenter2017-04-111-0/+2
| |
| * clean up and added changes to CHANGELOGdotnetCarpenter2017-04-111-1/+2
| |
| * namespace not declared in the Event moduledotnetCarpenter2017-04-111-1/+1
| |
| * fixed bbox not declared in SVG.Box.transformdotnetCarpenter2017-04-111-4/+3
| |
| * fixed len being undeclareddotnetCarpenter2017-04-111-1/+1
| |
| * changing to strict mode - some failures occurdotnetCarpenter2017-04-112-2/+4
| |
| * make last test passing in svg docsUlrich-Matthias Schäfer2017-04-091-2/+2
| |
| * clear does not remove parser anymoreUlrich-Matthias Schäfer2017-03-294-4/+18
| | | | | | | | make test work in svg documents