]> source.dussan.org Git - svg.js.git/log
svg.js.git
5 years agofix playgrounds, delete unneeded files
Ulrich-Matthias Schäfer [Sat, 1 Dec 2018 16:24:04 +0000 (17:24 +0100)]
fix playgrounds, delete unneeded files

5 years agoMerge branch '790-color-spaces' into 3.0.0
Ulrich-Matthias Schäfer [Sat, 1 Dec 2018 14:57:06 +0000 (15:57 +0100)]
Merge branch '790-color-spaces' into 3.0.0

5 years agoMerge pull request #939 from svgdotjs/791-random-colors
Ulrich-Matthias Schäfer [Sat, 1 Dec 2018 14:33:20 +0000 (15:33 +0100)]
Merge pull request #939 from svgdotjs/791-random-colors

Implemented random colors and added back the playgrounds

5 years agoMerge branch '790-color-spaces' into 791-random-colors 939/head
Ulrich-Matthias Schäfer [Sat, 1 Dec 2018 14:29:12 +0000 (15:29 +0100)]
Merge branch '790-color-spaces' into 791-random-colors

5 years agoadd back move and dmove for groups
Ulrich-Matthias Schäfer [Sat, 1 Dec 2018 13:57:30 +0000 (14:57 +0100)]
add back move and dmove for groups

5 years agoclamp values in toHex, tests, replace for of with for in
Ulrich-Matthias Schäfer [Sat, 1 Dec 2018 13:53:05 +0000 (14:53 +0100)]
clamp values in toHex, tests, replace for of with for in

5 years agoImplemented random colors and added back the playgrounds
Saivan [Sat, 1 Dec 2018 13:38:23 +0000 (00:38 +1100)]
Implemented random colors and added back the playgrounds

This commit adds back the playgrounds and the npm demo. We also implemented a few
methods to generate pretty random colors.

Changes
=======
- Added back the playgrounds and the npm demos
- Implemented a few random color generators

5 years agoadd scripts to automatically upload to bower repo when publishing
Ulrich-Matthias Schäfer [Sat, 1 Dec 2018 12:50:17 +0000 (13:50 +0100)]
add scripts to automatically upload to bower repo when publishing

5 years agodont generate esm bundle anymore and link to src/main.js directly. Move bower to...
Ulrich-Matthias Schäfer [Sat, 1 Dec 2018 12:32:23 +0000 (13:32 +0100)]
dont generate esm bundle anymore and link to src/main.js directly. Move bower to its own repo

rename makeNode back to create

5 years agodelete dist files from repo.
Ulrich-Matthias Schäfer [Sat, 1 Dec 2018 12:22:11 +0000 (13:22 +0100)]
delete dist files from repo.

5 years agoMerge branch '3.0.0' into 790-color-spaces
Ulrich-Matthias Schäfer [Fri, 30 Nov 2018 12:19:58 +0000 (13:19 +0100)]
Merge branch '3.0.0' into 790-color-spaces

5 years agofix testing with svgdom
Ulrich-Matthias Schäfer [Wed, 28 Nov 2018 14:26:03 +0000 (15:26 +0100)]
fix testing with svgdom

5 years agoMerge branch 'es6-tests' into 3.0.0
Ulrich-Matthias Schäfer [Wed, 28 Nov 2018 13:08:37 +0000 (14:08 +0100)]
Merge branch 'es6-tests' into 3.0.0

5 years agomerge karma configurations
Ulrich-Matthias Schäfer [Wed, 28 Nov 2018 13:07:22 +0000 (14:07 +0100)]
merge karma configurations

5 years agorun build
Ulrich-Matthias Schäfer [Wed, 28 Nov 2018 12:51:28 +0000 (13:51 +0100)]
run build

5 years agoinclude adopter tests in test bundle
Ulrich-Matthias Schäfer [Tue, 20 Nov 2018 15:45:16 +0000 (16:45 +0100)]
include adopter tests in test bundle

5 years agoadd tests for all exports of adopter
Ulrich-Matthias Schäfer [Sun, 18 Nov 2018 18:13:28 +0000 (19:13 +0100)]
add tests for all exports of adopter

5 years agomake es5 tests
Ulrich-Matthias Schäfer [Tue, 13 Nov 2018 10:19:05 +0000 (11:19 +0100)]
make es5 tests

5 years agoadd config for karma to run es6 tests
Ulrich-Matthias Schäfer [Tue, 13 Nov 2018 09:10:32 +0000 (10:10 +0100)]
add config for karma to run es6 tests

5 years agoplumber differences between node and browser so that tests run on both
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 22:09:25 +0000 (23:09 +0100)]
plumber differences between node and browser so that tests run on both

5 years agomake tests work in node and browser
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 18:45:29 +0000 (19:45 +0100)]
make tests work in node and browser

5 years agostarted to add es6 tests using svgdom as fallback in case no dom is found
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 08:36:48 +0000 (09:36 +0100)]
started to add es6 tests using svgdom as fallback in case no dom is found

5 years agoFix build chain so that we now have multiple builds. Details below:
Ulrich-Matthias Schäfer [Wed, 28 Nov 2018 11:57:52 +0000 (12:57 +0100)]
Fix build chain so that we now have multiple builds. Details below:

- svg.js: The esm bundle
- svg.min.js: The bundle for all browsers for maximum support
- svg.node.js: The bundle for node
- polyfill.js: Using svg.min.js requires this polyfill in case the Browser does not understand all of ./config/polyfillList.js
- polyfillIE.js: This is required when you use IE11 (polyfill.js still required)

Please note, that not all test pass for IE11 due to its rounding issues and wrong calculation of bbox.
Also note, that `defaultPrevented` is not working for CustomEvents in IE11.

5 years agoMerge branch 'feature/tests2' into 3.0.0
Ulrich-Matthias Schäfer [Tue, 27 Nov 2018 11:39:10 +0000 (12:39 +0100)]
Merge branch 'feature/tests2' into 3.0.0

5 years agofix bugs in runner, fix imports
Ulrich-Matthias Schäfer [Mon, 26 Nov 2018 21:47:27 +0000 (22:47 +0100)]
fix bugs in runner, fix imports

5 years agoFix bug when converting black to cymk space
Ulrich-Matthias Schäfer [Mon, 26 Nov 2018 13:15:55 +0000 (14:15 +0100)]
Fix bug when converting black to cymk space

5 years agoMake color-animation work in all spaces (conversion bugs still there)
Ulrich-Matthias Schäfer [Mon, 26 Nov 2018 13:02:02 +0000 (14:02 +0100)]
Make color-animation work in all spaces (conversion bugs still there)

- Make sure _d is always defined
- Clean up object before init
- Check space in array
- Use passed space instead of space in object if available

5 years agofix Morphable so that it works with color spaces. It prefers the `to` space over...
Ulrich-Matthias Schäfer [Sun, 25 Nov 2018 12:04:42 +0000 (13:04 +0100)]
fix Morphable so that it works with color spaces. It prefers the `to` space over the `from` space

- _d is initialized to 0 so toArray does not give you undefined
- fix tests

5 years agoFinished off the color spaces, we are all green!
Saivan [Sun, 25 Nov 2018 11:18:19 +0000 (00:18 +1300)]
Finished off the color spaces, we are all green!

We now have tested and working color spaces, isn't that nice!

Changes
=======
- All color spaces are working

5 years agoReverted some of the lint rules after chatting with fuzzy
Saivan [Sun, 25 Nov 2018 11:17:41 +0000 (00:17 +1300)]
Reverted some of the lint rules after chatting with fuzzy

This commit reverts some of the rules we added on the linter, it changed a lot of
code again... but these won't happen too often.

Changes
=======
- Modified the linter again

5 years agoUpdated all of the color modules and old tests are passing again
Saivan [Sun, 25 Nov 2018 03:23:35 +0000 (16:23 +1300)]
Updated all of the color modules and old tests are passing again

This commit updates the color modules, so that the old tests pass, we just need to
modify the tests to test some of the new functionality (Since there was a lot of
copy and paste work done haha)

Changes
=======
- Updated the color module to support a number of color spaces
- Made sure all of the old tests are working again

5 years agoChanged the esLint rules to avoid silly ternary operators, and to let code breathe!
Saivan [Sun, 25 Nov 2018 03:21:53 +0000 (16:21 +1300)]
Changed the esLint rules to avoid silly ternary operators, and to let code breathe!

This commit modifies some of the eslint rules, to allow our code to be a little bit more
readable. This came about because we had a particularly pesky problem, where the code
was indenting ternary operators. This fixes that, and makes it easy to add new rules
to eslint as we please in the future.

Changes
=======
- Rebuilt the library with new eslint rules
- Changed the eslintrc file to a yaml file by default

5 years agoadd polyfill for CustomEvent
Ulrich-Matthias Schäfer [Sat, 24 Nov 2018 20:21:29 +0000 (21:21 +0100)]
add polyfill for CustomEvent

5 years agoMake package json ready for npm org
Ulrich-Matthias Schäfer [Sat, 24 Nov 2018 15:06:51 +0000 (16:06 +0100)]
Make package json ready for npm org

5 years agoMoved utils, namespaces, regex... to a subobject of SVG. Renamed SVGArray and SVGNumb...
Ulrich-Matthias Schäfer [Sat, 24 Nov 2018 13:35:14 +0000 (14:35 +0100)]
Moved utils, namespaces, regex... to a subobject of SVG. Renamed SVGArray and SVGNumber on export to Array and Number

5 years agoGet rid of HTMLNode and Bare in favor of Dom
Ulrich-Matthias Schäfer [Sat, 24 Nov 2018 10:17:13 +0000 (11:17 +0100)]
Get rid of HTMLNode and Bare in favor of Dom

- words() and element() added to Dom
- svg() now returns the _parent_ of the imported element, when outerHTML is true (which means an element gets replaces)

5 years agofixed lots of bugs in the timeline. Its now working as expected in all cases.
Ulrich-Matthias Schäfer [Fri, 23 Nov 2018 14:06:37 +0000 (15:06 +0100)]
fixed lots of bugs in the timeline. Its now working as expected in all cases.

- refactor code into functions
- handle timeSource correctly
- allow for immediate updates
- Runners dont know about their delay anymore. Thats far more simple.
- Timeline is paused on creation

5 years agofix Timeline so that play, pause, stop, reverse... work correctly. Update runners...
Ulrich-Matthias Schäfer [Thu, 22 Nov 2018 14:56:39 +0000 (15:56 +0100)]
fix Timeline so that play, pause, stop, reverse... work correctly. Update runners accordingly

5 years agorewrite few lines of adopter
Ulrich-Matthias Schäfer [Wed, 21 Nov 2018 21:06:38 +0000 (22:06 +0100)]
rewrite few lines of adopter

5 years agoadd default parameter for timeSource
Ulrich-Matthias Schäfer [Wed, 21 Nov 2018 20:33:03 +0000 (21:33 +0100)]
add default parameter for timeSource

5 years agoadd register for insertBefore and insertAfter
Ulrich-Matthias Schäfer [Tue, 20 Nov 2018 16:40:17 +0000 (17:40 +0100)]
add register for insertBefore and insertAfter

5 years agorename `doc()` to `root()` and `toDoc()` to `toRoot()` as dicussed in (#932)
Ulrich-Matthias Schäfer [Mon, 19 Nov 2018 20:49:21 +0000 (21:49 +0100)]
rename `doc()` to `root()` and `toDoc()` to `toRoot()` as dicussed in (#932)

5 years agorenamed `Doc` to `Svg` according to (#932)
Ulrich-Matthias Schäfer [Mon, 19 Nov 2018 19:45:07 +0000 (20:45 +0100)]
renamed `Doc` to `Svg` according to (#932)

5 years agochanged image callback according to (#931)
Ulrich-Matthias Schäfer [Sat, 17 Nov 2018 10:09:39 +0000 (11:09 +0100)]
changed image callback according to (#931)

5 years agocleanup a few files
Ulrich-Matthias Schäfer [Sat, 17 Nov 2018 09:42:19 +0000 (10:42 +0100)]
cleanup a few files

5 years agoupdated karma-jasmine to 2.0 - fixing https://github.com/karma-runner/karma-chrome...
dotnetCarpenter [Thu, 15 Nov 2018 19:53:07 +0000 (20:53 +0100)]
updated karma-jasmine to 2.0 - fixing https://github.com/karma-runner/karma-chrome-launcher/issues/190

5 years agocleanup
dotnetCarpenter [Wed, 14 Nov 2018 11:55:30 +0000 (12:55 +0100)]
cleanup

5 years agoadd rollup config to build polyfills
Ulrich-Matthias Schäfer [Tue, 13 Nov 2018 22:01:42 +0000 (23:01 +0100)]
add rollup config to build polyfills

5 years agoMerge branch '3.0.0' into feature/tests2
dotnetCarpenter [Tue, 13 Nov 2018 21:44:44 +0000 (22:44 +0100)]
Merge branch '3.0.0' into feature/tests2

5 years agocommitting so @fuzzyma can continue the work
dotnetCarpenter [Tue, 13 Nov 2018 21:36:14 +0000 (22:36 +0100)]
committing so @fuzzyma can continue the work

5 years agodo not send codecoverage + start some more browsers at saucelabs
dotnetCarpenter [Mon, 12 Nov 2018 20:52:42 +0000 (21:52 +0100)]
do not send codecoverage + start some more browsers at saucelabs

5 years agosaucelabs testing with chrome 70 works - locally
dotnetCarpenter [Mon, 12 Nov 2018 20:46:14 +0000 (21:46 +0100)]
saucelabs testing with chrome 70 works - locally

5 years agofixed with eslint
dotnetCarpenter [Mon, 12 Nov 2018 20:44:09 +0000 (21:44 +0100)]
fixed with eslint

5 years agoadded missing saucelabs npm packages
dotnetCarpenter [Mon, 12 Nov 2018 15:34:46 +0000 (16:34 +0100)]
added missing saucelabs npm packages

5 years agotell travis to run saucelabs tests
dotnetCarpenter [Mon, 12 Nov 2018 15:23:47 +0000 (16:23 +0100)]
tell travis to run saucelabs tests

5 years agotesting saucelabs
dotnetCarpenter [Mon, 12 Nov 2018 15:13:58 +0000 (16:13 +0100)]
testing saucelabs

5 years agoremove native() methods, add methods of types directly to elemenet
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 13:51:34 +0000 (14:51 +0100)]
remove native() methods, add methods of types directly to elemenet

5 years agoreworked parents so that it is useful now, changelog
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 12:59:07 +0000 (13:59 +0100)]
reworked parents so that it is useful now, changelog

5 years agoticking off the last checkbox of (#645). return List whenever possible
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 12:29:15 +0000 (13:29 +0100)]
ticking off the last checkbox of (#645). return List whenever possible

5 years agoMerge pull request #925 from svgdotjs/645-svg-set-is-back
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 12:08:39 +0000 (13:08 +0100)]
Merge pull request #925 from svgdotjs/645-svg-set-is-back

svg set is back (#645)

5 years agomake List return new lists on method calls, add map to array polyfill so that this... 925/head
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 11:00:03 +0000 (12:00 +0100)]
make List return new lists on method calls, add map to array polyfill so that this works, fix runner

5 years agochange method name, make strings more pleasing to read
Ulrich-Matthias Schäfer [Sat, 10 Nov 2018 19:24:57 +0000 (20:24 +0100)]
change method name, make strings more pleasing to read

5 years agoadds `List` which does bring back `SVG.Set` in an elegant way (#645)
Ulrich-Matthias Schäfer [Fri, 9 Nov 2018 10:17:18 +0000 (11:17 +0100)]
adds `List` which does bring back `SVG.Set` in an elegant way (#645)

5 years agoevaluate window and document on access and not on import
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 08:35:37 +0000 (09:35 +0100)]
evaluate window and document on access and not on import

5 years agocleanup and use chromium on linux
dotnetCarpenter [Sun, 11 Nov 2018 16:53:44 +0000 (17:53 +0100)]
cleanup and use chromium on linux

5 years agomake window and document exchangeable in case they are not globals alreay, make sure...
Ulrich-Matthias Schäfer [Sun, 11 Nov 2018 16:37:06 +0000 (17:37 +0100)]
make window and document exchangeable in case they are not globals alreay, make sure that init functions are chaninable

5 years agoadd registering for forgotten classes
Ulrich-Matthias Schäfer [Fri, 9 Nov 2018 16:15:38 +0000 (17:15 +0100)]
add registering for forgotten classes

5 years agoMerge pull request #924 from svgdotjs/796-add-attribute-syntax
Ulrich-Matthias Schäfer [Fri, 9 Nov 2018 13:53:27 +0000 (14:53 +0100)]
Merge pull request #924 from svgdotjs/796-add-attribute-syntax

added possibility to pass in additional attribues to element creators (#796)

5 years agoadded possibility to pass in additional attribues to element creators (#796) 924/head
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 18:49:49 +0000 (19:49 +0100)]
added possibility to pass in additional attribues to element creators (#796)

e.g.
- `canvas.rect({x:100})` or
- `canvas.rect(100, 100, {x:100})`

5 years agoadded possibility to pass attribues into a constructor like: `new SVG.Rect({width...
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 15:06:39 +0000 (16:06 +0100)]
added possibility to pass attribues into a constructor like: `new SVG.Rect({width:100})`

5 years ago`fill()` and `stroke()` return the fill and stroke attribute when called as getter...
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 13:14:05 +0000 (14:14 +0100)]
`fill()` and `stroke()` return the fill and stroke attribute when called as getter (#789)

5 years agoadded `ax(), ay(), amove()` to change texts x and y values directly (#787)
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 12:58:52 +0000 (13:58 +0100)]
added `ax(), ay(), amove()` to change texts x and y values directly (#787)

5 years ago`SVG.Text.rebuild()` now takes every font-size into account (#512)
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 12:53:14 +0000 (13:53 +0100)]
`SVG.Text.rebuild()` now takes every font-size into account (#512)

5 years agoimplements `round()` (#916)
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 11:59:03 +0000 (12:59 +0100)]
implements `round()` (#916)

5 years agoadd test for array getter of attr
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 11:34:31 +0000 (12:34 +0100)]
add test for array getter of attr

5 years agosize function of circle now only accepts one argument (#788)
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 11:04:13 +0000 (12:04 +0100)]
size function of circle now only accepts one argument (#788)

5 years agoadd styletags
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 10:31:28 +0000 (11:31 +0100)]
add styletags

5 years agoget rid of the fixmes and todos
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 10:12:26 +0000 (11:12 +0100)]
get rid of the fixmes and todos

5 years agoadded insertAfter/Before, introduce attrHooks, move few methods, SVG.Text.textPath...
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 09:05:28 +0000 (10:05 +0100)]
added insertAfter/Before, introduce attrHooks, move few methods, SVG.Text.textPath returns first textPath child now

5 years agoclone() does not insert the clone into the dom anymore, added beziere() and steps...
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 21:42:38 +0000 (22:42 +0100)]
clone() does not insert the clone into the dom anymore, added beziere() and steps() to generate easing functions

5 years agoupdate changelow
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 19:39:28 +0000 (20:39 +0100)]
update changelow

5 years agofix mistake in test
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 18:41:56 +0000 (19:41 +0100)]
fix mistake in test

5 years agofix travis yml
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 18:20:37 +0000 (19:20 +0100)]
fix travis yml

5 years agoadd chrome to travis
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 16:57:06 +0000 (17:57 +0100)]
add chrome to travis

5 years agofix the export/import function and enhance it
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 16:09:52 +0000 (17:09 +0100)]
fix the export/import function and enhance it

5 years agoMerge branch '875-es6' into 3.0.0
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 14:08:41 +0000 (15:08 +0100)]
Merge branch '875-es6' into 3.0.0

5 years agoremove other builds because of bloat for now until fixed
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 13:05:27 +0000 (14:05 +0100)]
remove other builds because of bloat for now until fixed

5 years agoreordered modules, add es6 build
Ulrich-Matthias Schäfer [Tue, 6 Nov 2018 12:48:05 +0000 (13:48 +0100)]
reordered modules, add es6 build

5 years agoremoved unused comments and files
Ulrich-Matthias Schäfer [Mon, 5 Nov 2018 20:53:40 +0000 (21:53 +0100)]
removed unused comments and files

5 years agomake one test pass in travis
Ulrich-Matthias Schäfer [Mon, 5 Nov 2018 18:11:45 +0000 (19:11 +0100)]
make one test pass in travis

5 years agoLinted all files, upgraded all dependencies
Ulrich-Matthias Schäfer [Mon, 5 Nov 2018 18:02:35 +0000 (19:02 +0100)]
Linted all files, upgraded all dependencies

5 years agorework of classes, make events on every object possible
Ulrich-Matthias Schäfer [Mon, 5 Nov 2018 14:12:58 +0000 (15:12 +0100)]
rework of classes, make events on every object possible

5 years agoforgot about memory tests
Ulrich-Matthias Schäfer [Sun, 4 Nov 2018 21:04:54 +0000 (22:04 +0100)]
forgot about memory tests

5 years agoRevert back to classes, fix remaining tests
Ulrich-Matthias Schäfer [Sun, 4 Nov 2018 20:46:33 +0000 (21:46 +0100)]
Revert back to classes, fix remaining tests

5 years agofix even more tests
Ulrich-Matthias Schäfer [Sun, 4 Nov 2018 16:04:11 +0000 (17:04 +0100)]
fix even more tests

5 years agoimplement registerMethods(), introduce real arrays for modern browsers, fix some...
Ulrich-Matthias Schäfer [Sun, 4 Nov 2018 14:59:57 +0000 (15:59 +0100)]
implement registerMethods(), introduce real arrays for modern browsers, fix some tests

5 years agofix a few mistakes. Make sugar work. Roll back to childNodes because children is...
Ulrich-Matthias Schäfer [Thu, 1 Nov 2018 15:59:51 +0000 (16:59 +0100)]
fix a few mistakes. Make sugar work. Roll back to childNodes because children is 10x slower

5 years agointroduce register and registerMethod method to get rid of dependency problems
Ulrich-Matthias Schäfer [Thu, 1 Nov 2018 14:04:55 +0000 (15:04 +0100)]
introduce register and registerMethod method to get rid of dependency problems

5 years agosetup rollup to build minimized file and report stats
Ulrich-Matthias Schäfer [Sun, 28 Oct 2018 10:19:26 +0000 (11:19 +0100)]
setup rollup to build minimized file and report stats

5 years agoresolve last circular dependencies, make rollup work
Ulrich-Matthias Schäfer [Sat, 27 Oct 2018 20:43:30 +0000 (22:43 +0200)]
resolve last circular dependencies, make rollup work