]> source.dussan.org Git - svg.js.git/log
svg.js.git
6 years agoMerge pull request #827 from svgdotjs/826-ungroup-flatten
saivan [Fri, 2 Mar 2018 01:47:46 +0000 (12:47 +1100)]
Merge pull request #827 from svgdotjs/826-ungroup-flatten

make ungroup working on groups and nested for one depths

6 years agomake ungroup working on groups and nested for one depths 827/head
Ulrich-Matthias Schäfer [Thu, 1 Mar 2018 22:55:53 +0000 (23:55 +0100)]
make ungroup working on groups and nested for one depths

6 years agoupdate changelog
Ulrich-Matthias Schäfer [Thu, 1 Mar 2018 12:47:34 +0000 (13:47 +0100)]
update changelog

6 years agoMerge pull request #811 from svgdotjs/merge-doc-and-nested
Ulrich-Matthias Schäfer [Thu, 1 Mar 2018 11:52:23 +0000 (12:52 +0100)]
Merge pull request #811 from svgdotjs/merge-doc-and-nested

merge SVG.Doc and SVG.Nested. Add isRoot() method

6 years agofixed all that errors which come along when removing an object. Fixed tests, too... 811/head
Ulrich-Matthias Schäfer [Thu, 1 Mar 2018 11:42:16 +0000 (12:42 +0100)]
fixed all that errors which come along when removing an object. Fixed tests, too and added isRoot test

6 years agoreturn explicit null if there is no root
Ulrich-Matthias Schäfer [Mon, 12 Feb 2018 12:49:38 +0000 (13:49 +0100)]
return explicit null if there is no root

6 years agomerge SVG.Doc and SVG.Nested. Add isRoot() method, update doc methods to decide betwe...
Ulrich-Matthias Schäfer [Sun, 11 Feb 2018 14:29:23 +0000 (15:29 +0100)]
merge SVG.Doc and SVG.Nested. Add isRoot() method, update doc methods to decide between doc and nested

6 years agoMerge pull request #808 from svgdotjs/events-memory-leak
Ulrich-Matthias Schäfer [Wed, 28 Feb 2018 09:27:14 +0000 (10:27 +0100)]
Merge pull request #808 from svgdotjs/events-memory-leak

proposal for #807, includes #550, `SVG.off()` multiple events and option argument

6 years agoupdated changelog 808/head
Ulrich-Matthias Schäfer [Tue, 27 Feb 2018 11:25:12 +0000 (12:25 +0100)]
updated changelog

6 years agosearch and replace replaced to much
Ulrich-Matthias Schäfer [Tue, 27 Feb 2018 11:17:37 +0000 (12:17 +0100)]
search and replace replaced to much

6 years agofound the error whereelse. go back to version before with applied fix
Ulrich-Matthias Schäfer [Tue, 27 Feb 2018 11:16:31 +0000 (12:16 +0100)]
found the error whereelse. go back to version before with applied fix

6 years agofixed error that listener was strangely defined even if function was called without
Ulrich-Matthias Schäfer [Tue, 27 Feb 2018 11:12:19 +0000 (12:12 +0100)]
fixed error that listener was strangely defined even if function was called without

6 years agofix errors found by linter (jeah it works!)
Ulrich-Matthias Schäfer [Tue, 27 Feb 2018 09:07:56 +0000 (10:07 +0100)]
fix errors found by linter (jeah it works!)

6 years agoproposal for #807, includes #550, allow multiple events for `SVG.off()` and add optio...
Ulrich-Matthias Schäfer [Sun, 11 Feb 2018 12:11:31 +0000 (13:11 +0100)]
proposal for #807, includes #550, allow multiple events for `SVG.off()` and add option argument

6 years agoMerge pull request #823 from svgdotjs/800-add-linter
saivan [Mon, 26 Feb 2018 23:54:51 +0000 (10:54 +1100)]
Merge pull request #823 from svgdotjs/800-add-linter

Added the standard linter

6 years agoBuilt the final linted file 823/head
Saivan [Mon, 26 Feb 2018 16:38:34 +0000 (03:38 +1100)]
Built the final linted file

6 years agoFixed a few hanging issues with the linter
Saivan [Mon, 26 Feb 2018 16:37:31 +0000 (03:37 +1100)]
Fixed a few hanging issues with the linter

This commit fixes a few typesetting issues that probably resulted
from the automated linting process

6 years agoForgot to add standard to the package-json doh
Saivan [Mon, 26 Feb 2018 16:03:12 +0000 (03:03 +1100)]
Forgot to add standard to the package-json doh

6 years agoSo the standard linter is operational and our code is compliant
Saivan [Mon, 26 Feb 2018 15:52:25 +0000 (02:52 +1100)]
So the standard linter is operational and our code is compliant

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!

6 years agoActually added the linter to gulp and fixed most errors
Saivan [Mon, 26 Feb 2018 15:08:37 +0000 (02:08 +1100)]
Actually added the linter to gulp and fixed most errors

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

6 years agoAll files now loosely abide by standard linting
Saivan [Mon, 26 Feb 2018 14:14:06 +0000 (01:14 +1100)]
All files now loosely abide by standard linting

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.

6 years agoThe first half of the library complies with Standard linting
Saivan [Mon, 26 Feb 2018 13:48:11 +0000 (00:48 +1100)]
The first half of the library complies with Standard linting

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

6 years agomake sure to remove event handlers from temporary image (#805)
Ulrich-Matthias Schäfer [Wed, 7 Feb 2018 09:32:15 +0000 (10:32 +0100)]
make sure to remove event handlers from temporary image (#805)

6 years agoremove test for `show()`
Ulrich-Matthias Schäfer [Tue, 6 Feb 2018 22:17:43 +0000 (23:17 +0100)]
remove test for `show()`

6 years agoremove `SVG.A.show()` to resolve nameclash (fix #802)
Ulrich-Matthias Schäfer [Tue, 6 Feb 2018 22:12:35 +0000 (23:12 +0100)]
remove `SVG.A.show()` to resolve nameclash (fix #802)

7 years agoimproved SVG.on and el.on (#727)
Ulrich-Matthias Schäfer [Fri, 28 Jul 2017 13:07:36 +0000 (15:07 +0200)]
improved SVG.on and el.on (#727)

- `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)

7 years agoThe dom is checked for an svgjs:data attribute which is imported when creating an...
Ulrich-Matthias Schäfer [Fri, 28 Jul 2017 12:20:48 +0000 (14:20 +0200)]
The dom is checked for an svgjs:data attribute which is imported when creating an element

7 years agofix bug where defs returns nothing
Ulrich-Matthias Schäfer [Tue, 25 Jul 2017 12:52:13 +0000 (14:52 +0200)]
fix bug where defs returns nothing

7 years agoadd new default constructor (#714)
Ulrich-Matthias Schäfer [Tue, 25 Jul 2017 12:19:49 +0000 (14:19 +0200)]
add new default constructor (#714)

7 years agoLots of breaking changes. Read below! (#646, #716)
Ulrich-Matthias Schäfer [Tue, 25 Jul 2017 07:14:48 +0000 (09:14 +0200)]
Lots of breaking changes. Read below! (#646, #716)

- 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

7 years agouse `children` instead of `childNodes` (#710), renamed `previous()` to `prev()`
Ulrich-Matthias Schäfer [Mon, 10 Jul 2017 11:51:06 +0000 (13:51 +0200)]
use `children` instead of `childNodes` (#710), renamed `previous()` to `prev()`

7 years agorenamed `fill()` method on `SVG.Gradient` and `SVG.Pattern` to `url()` (#708)
Ulrich-Matthias Schäfer [Fri, 7 Jul 2017 12:02:39 +0000 (14:02 +0200)]
renamed `fill()` method on `SVG.Gradient` and `SVG.Pattern` to `url()` (#708)

7 years agorenamed `SVG.Stop` constructor `at()` on `SVG.Gradient` to `stop()` (#707)
Ulrich-Matthias Schäfer [Fri, 7 Jul 2017 09:24:24 +0000 (11:24 +0200)]
renamed `SVG.Stop` constructor `at()` on `SVG.Gradient` to `stop()` (#707)

7 years agoreworked textPath (see #705)
Ulrich-Matthias Schäfer [Fri, 7 Jul 2017 07:43:02 +0000 (09:43 +0200)]
reworked textPath (see #705)

7 years agoMerge branch 'master' into 3.0.0
Ulrich-Matthias Schäfer [Thu, 6 Jul 2017 09:07:29 +0000 (11:07 +0200)]
Merge branch 'master' into 3.0.0

Conflicts (All resolved):
dist/svg.js
dist/svg.min.js
package.json
src/doc.js

7 years agofix array values which were not animated (#698)
Ulrich-Matthias Schäfer [Thu, 6 Jul 2017 08:16:31 +0000 (10:16 +0200)]
fix array values which were not animated (#698)

7 years agoMerge pull request #686 from maltefl/typescript_fixes
Ulrich-Matthias Schäfer [Tue, 6 Jun 2017 10:59:39 +0000 (11:59 +0100)]
Merge pull request #686 from maltefl/typescript_fixes

TypeScript fixes and remove unused parameter

7 years agoSyntax fixes in TypeScript declaration file 686/head
Malte Fastrup Lyngsø [Tue, 6 Jun 2017 10:30:44 +0000 (12:30 +0200)]
Syntax fixes in TypeScript declaration file

7 years agoRemoved unused parameter spof of function spof()
Malte Fastrup Lyngsø [Tue, 6 Jun 2017 10:01:34 +0000 (12:01 +0200)]
Removed unused parameter spof of function spof()

7 years agobump 2.6.2 2.6.2
Ulrich-Matthias Schäfer [Mon, 5 Jun 2017 09:35:23 +0000 (11:35 +0200)]
bump 2.6.2

7 years agochangelog, gitignore
Ulrich-Matthias Schäfer [Sun, 4 Jun 2017 19:45:35 +0000 (21:45 +0200)]
changelog, gitignore

7 years agoUpdate CHANGELOG and rebuild the lib
Rémi Tétreault [Sat, 27 May 2017 05:14:42 +0000 (01:14 -0400)]
Update CHANGELOG and rebuild the lib

7 years agoFixed links to releases
Jon Ege Ronnenberg [Fri, 26 May 2017 23:04:31 +0000 (01:04 +0200)]
Fixed links to releases

7 years agoMerge pull request #676 from jcorentin/fix-height-width-animation
Rémi Tétreault [Fri, 26 May 2017 22:51:36 +0000 (18:51 -0400)]
Merge pull request #676 from jcorentin/fix-height-width-animation

Make width() and height() setters animatable

7 years agoAdd missing type definitions to svg.js.d.ts (#680)
Youngrok Kim [Sat, 20 May 2017 07:42:32 +0000 (16:42 +0900)]
Add missing type definitions to svg.js.d.ts (#680)

7 years agofixed `SVG.FX.step` so that the animation doesn't stop if an afterAll callback call...
Rémi Tétreault [Sun, 14 May 2017 17:21:50 +0000 (13:21 -0400)]
fixed `SVG.FX.step` so that the animation doesn't stop if an afterAll callback call animate (#677)

7 years agoAdd unit tests for width & height animation 676/head
Corentin J [Thu, 11 May 2017 12:49:52 +0000 (14:49 +0200)]
Add unit tests for width & height animation

7 years agoAdd animatable width & height
Corentin J [Thu, 11 May 2017 12:35:25 +0000 (14:35 +0200)]
Add animatable width & height

7 years agorevert the previous commit
Rémi Tétreault [Wed, 3 May 2017 01:52:46 +0000 (21:52 -0400)]
revert the previous commit
remove the typeof check in the initialisation of SVG.Matrix

7 years agoallow SVG.Matrix to be passed SVG.Number
Rémi Tétreault [Tue, 2 May 2017 00:39:24 +0000 (20:39 -0400)]
allow SVG.Matrix to be passed SVG.Number

7 years agoAdds the intended functionality to call animate functions with multiple parameter...
Ulrich-Matthias Schäfer [Sun, 30 Apr 2017 20:29:10 +0000 (22:29 +0200)]
Adds the intended functionality to call animate functions with multiple parameter (#671)

e.g. `el.animate().zoom(level, point)`

7 years agofixed `SVG.FX.once` so that it add its callback on the last situation instead of...
Rémi Tétreault [Sun, 30 Apr 2017 19:14:11 +0000 (15:14 -0400)]
fixed `SVG.FX.once` so that it add its callback on the last situation instead of the current one

7 years agoformat fixture svg and remove redundant css (use fixture.css instead)
dotnetCarpenter [Wed, 26 Apr 2017 23:39:57 +0000 (01:39 +0200)]
format fixture svg and remove redundant css (use fixture.css instead)

7 years agomove fixtures to the fixtures folder
dotnetCarpenter [Wed, 26 Apr 2017 23:00:51 +0000 (01:00 +0200)]
move fixtures to the fixtures folder

7 years agoupdated jasmine to 2.6.0 and added @RmiTtro as maintainer
dotnetCarpenter [Wed, 26 Apr 2017 16:33:10 +0000 (18:33 +0200)]
updated jasmine to 2.6.0 and added @RmiTtro as maintainer

7 years agofix testcases
Ulrich-Matthias Schäfer [Tue, 25 Apr 2017 13:15:39 +0000 (15:15 +0200)]
fix testcases

7 years ago`SVG.extend` now expects exactly one module or an array of modules
Ulrich-Matthias Schäfer [Mon, 24 Apr 2017 20:49:29 +0000 (22:49 +0200)]
`SVG.extend` now expects exactly one module or an array of modules

Conflicts:
dist/svg.js
dist/svg.min.js

7 years agofixed a bug in path parser which made it stop parsing when hitting z command (#665)
Ulrich-Matthias Schäfer [Tue, 25 Apr 2017 10:05:49 +0000 (12:05 +0200)]
fixed a bug in path parser which made it stop parsing when hitting z command (#665)

Conflicts:
bench/runner.html
dist/svg.js
dist/svg.min.js
package.json

7 years agoload correct benchmarks again 2.6.1
Ulrich-Matthias Schäfer [Tue, 25 Apr 2017 10:07:29 +0000 (12:07 +0200)]
load correct benchmarks again

7 years agofixed a bug in path parser which made it stop parsing when hitting z command (#665)
Ulrich-Matthias Schäfer [Tue, 25 Apr 2017 10:05:49 +0000 (12:05 +0200)]
fixed a bug in path parser which made it stop parsing when hitting z command (#665)

7 years agoids are not generated upon creation anymore
Ulrich-Matthias Schäfer [Sun, 23 Apr 2017 10:52:51 +0000 (12:52 +0200)]
ids are not generated upon creation anymore

Instead they are generated when requested (#559)

7 years agochanged `style()` to `css()`
Ulrich-Matthias Schäfer [Sat, 22 Apr 2017 20:16:36 +0000 (22:16 +0200)]
changed `style()` to `css()`

it now accepts array as input and returns object when no argument given (#517)
also removed sub-pixel offset fix

7 years agorename style to css
Ulrich-Matthias Schäfer [Sat, 22 Apr 2017 19:36:16 +0000 (21:36 +0200)]
rename style to css

7 years agoMerge branch 'master' into 3.0.0
Ulrich-Matthias Schäfer [Sat, 22 Apr 2017 18:31:58 +0000 (20:31 +0200)]
Merge branch 'master' into 3.0.0

# 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

7 years agoadded `options` to `on()`, back to sloppy mode 2.6.0
Ulrich-Matthias Schäfer [Fri, 21 Apr 2017 10:49:25 +0000 (12:49 +0200)]
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)

7 years agoMerge pull request #661 from svgdotjs/feature-options-for-events
Ulrich-Matthias Schäfer [Fri, 21 Apr 2017 10:00:19 +0000 (12:00 +0200)]
Merge pull request #661 from svgdotjs/feature-options-for-events

add options arguments to `on()`

7 years agoadd options arguments to `on()` 661/head
Ulrich-Matthias Schäfer [Thu, 20 Apr 2017 13:29:30 +0000 (15:29 +0200)]
add options arguments to `on()`

7 years agoupdate changelog
Ulrich-Matthias Schäfer [Mon, 17 Apr 2017 15:21:49 +0000 (17:21 +0200)]
update changelog

7 years agobump 2.5.3 2.5.3
Ulrich-Matthias Schäfer [Mon, 17 Apr 2017 15:13:50 +0000 (17:13 +0200)]
bump 2.5.3

7 years agoupdate readme
Ulrich-Matthias Schäfer [Mon, 17 Apr 2017 14:37:49 +0000 (16:37 +0200)]
update readme

7 years agoFix the flip transform on both axis
Rémi Tétreault [Sun, 16 Apr 2017 02:38:22 +0000 (22:38 -0400)]
Fix the flip transform on both axis

This fix the bug that made calling flip without any argument (`element.flip()`)
not work.

7 years agoupdate changelog
dotnetCarpenter [Fri, 14 Apr 2017 10:53:59 +0000 (12:53 +0200)]
update changelog

7 years agoMerge pull request #655 from gitter-badger/gitter-badge
Ulrich-Matthias Schäfer [Thu, 13 Apr 2017 11:46:29 +0000 (13:46 +0200)]
Merge pull request #655 from gitter-badger/gitter-badge

Add a Gitter chat badge to README.md

7 years agocorrect position of gitter badge 655/head
Ulrich-Matthias Schäfer [Thu, 13 Apr 2017 11:43:11 +0000 (13:43 +0200)]
correct position of gitter badge

7 years agoAdd Gitter badge
The Gitter Badger [Thu, 13 Apr 2017 10:46:28 +0000 (10:46 +0000)]
Add Gitter badge

7 years agouse strict removed from umd wrapper by virtue of being ugly and assuring fuzzyma...
dotnetCarpenter [Wed, 12 Apr 2017 12:27:48 +0000 (14:27 +0200)]
use strict removed from umd wrapper by virtue of being ugly and assuring fuzzyma's sleep at night

7 years agofix svg.js.d.ts (#644 #648)
Ulrich-Matthias Schäfer [Wed, 12 Apr 2017 11:44:00 +0000 (13:44 +0200)]
fix svg.js.d.ts (#644 #648)

7 years agofixed link style to tags and update about component.json
dotnetCarpenter [Tue, 11 Apr 2017 21:01:51 +0000 (23:01 +0200)]
fixed link style to tags and update about component.json

7 years agoremove component.json as the project it facilitate is abandon - close #652
dotnetCarpenter [Tue, 11 Apr 2017 20:56:46 +0000 (22:56 +0200)]
remove component.json as the project it facilitate is abandon - close #652

7 years agoupdate component to 2.5.2 too
dotnetCarpenter [Tue, 11 Apr 2017 18:59:43 +0000 (20:59 +0200)]
update component to 2.5.2 too

7 years agoskip coverage for UMD
dotnetCarpenter [Tue, 11 Apr 2017 18:02:35 +0000 (20:02 +0200)]
skip coverage for UMD

7 years agochange benchmark svg.js identifier to 2.5.2
dotnetCarpenter [Tue, 11 Apr 2017 16:57:32 +0000 (18:57 +0200)]
change benchmark svg.js identifier to 2.5.2

7 years agopatch release for strict mode 2.5.2
dotnetCarpenter [Tue, 11 Apr 2017 15:02:29 +0000 (17:02 +0200)]
patch release for strict mode

7 years agoclean up and added changes to CHANGELOG 651/head
dotnetCarpenter [Tue, 11 Apr 2017 14:46:49 +0000 (16:46 +0200)]
clean up and added changes to CHANGELOG

7 years agonamespace not declared in the Event module
dotnetCarpenter [Tue, 11 Apr 2017 14:44:24 +0000 (16:44 +0200)]
namespace not declared in the Event module

7 years agofixed bbox not declared in SVG.Box.transform
dotnetCarpenter [Tue, 11 Apr 2017 14:25:48 +0000 (16:25 +0200)]
fixed bbox not declared in SVG.Box.transform

7 years agofixed len being undeclared
dotnetCarpenter [Tue, 11 Apr 2017 13:37:22 +0000 (15:37 +0200)]
fixed len being undeclared

7 years agochanging to strict mode - some failures occur
dotnetCarpenter [Tue, 11 Apr 2017 13:23:17 +0000 (15:23 +0200)]
changing to strict mode - some failures occur

7 years agore-added all specs from the spec/spec/ folder
dotnetCarpenter [Tue, 11 Apr 2017 13:04:09 +0000 (15:04 +0200)]
re-added all specs from the spec/spec/ folder

7 years agofix pass
Ulrich-Matthias Schäfer [Sun, 9 Apr 2017 19:03:40 +0000 (21:03 +0200)]
fix pass

7 years agomake last test passing in svg docs
Ulrich-Matthias Schäfer [Sun, 9 Apr 2017 19:02:20 +0000 (21:02 +0200)]
make last test passing in svg docs

7 years agoUpdated CHANGELOG
wout [Fri, 7 Apr 2017 18:20:02 +0000 (20:20 +0200)]
Updated CHANGELOG

7 years agochange my email from gmail to svgjs.com
dotnetCarpenter [Fri, 31 Mar 2017 08:01:54 +0000 (10:01 +0200)]
change my email from gmail to svgjs.com

7 years agoclear does not remove parser anymore
Ulrich-Matthias Schäfer [Wed, 29 Mar 2017 14:10:36 +0000 (16:10 +0200)]
clear does not remove parser anymore

make test work in svg documents

7 years agomake path parsing even faster
Ulrich-Matthias Schäfer [Mon, 27 Mar 2017 17:19:38 +0000 (19:19 +0200)]
make path parsing even faster

7 years agobump 2.5.1 2.5.1
Ulrich-Matthias Schäfer [Mon, 27 Mar 2017 11:31:31 +0000 (13:31 +0200)]
bump 2.5.1

7 years agorelax test
Ulrich-Matthias Schäfer [Mon, 27 Mar 2017 11:29:24 +0000 (13:29 +0200)]
relax test

7 years agoSpeed improvements for plot() on path, polygon and poly line elements.
wout [Fri, 24 Mar 2017 14:17:31 +0000 (15:17 +0100)]
Speed improvements for plot() on path, polygon and poly line elements.

7 years agofixed `SVG.PathArray.parse` that did not correctly parsed flat arrays
Ulrich-Matthias Schäfer [Fri, 24 Mar 2017 09:58:19 +0000 (10:58 +0100)]
fixed `SVG.PathArray.parse` that did not correctly parsed flat arrays

7 years agoonclick events are now bound with SVG.on, prefixed globals, relax tests to work with...
Ulrich-Matthias Schäfer [Tue, 21 Mar 2017 17:16:13 +0000 (18:16 +0100)]
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