aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* fix playgrounds, delete unneeded filesUlrich-Matthias Schäfer2018-12-012-12/+18
|
* Merge branch '790-color-spaces' into 3.0.0Ulrich-Matthias Schäfer2018-12-0129-230/+567
|\
| * Merge branch '790-color-spaces' into 791-random-colorsUlrich-Matthias Schäfer2018-12-0119-208/+368
| |\
| | * clamp values in toHex, tests, replace for of with for inUlrich-Matthias Schäfer2018-12-011-8/+11
| | |
| | * Merge branch '3.0.0' into 790-color-spacesUlrich-Matthias Schäfer2018-11-3018-186/+320
| | |\
| | * | Fix bug when converting black to cymk spaceUlrich-Matthias Schäfer2018-11-261-0/+6
| | | |
| | * | Make color-animation work in all spaces (conversion bugs still there)Ulrich-Matthias Schäfer2018-11-264-13/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
| | * | fix Morphable so that it works with color spaces. It prefers the `to` space ↵Ulrich-Matthias Schäfer2018-11-252-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | over the `from` space - _d is initialized to 0 so toArray does not give you undefined - fix tests
| * | | Implemented random colors and added back the playgroundsSaivan2018-12-021-9/+64
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Finished off the color spaces, we are all green!Saivan2018-11-261-204/+131
| | | | | | | | | | | | | | | | | | | | | | | | We now have tested and working color spaces, isn't that nice! Changes ======= - All color spaces are working
| * | Reverted some of the lint rules after chatting with fuzzySaivan2018-11-2668-3994/+1994
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Updated all of the color modules and old tests are passing againSaivan2018-11-251-109/+412
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Changed the esLint rules to avoid silly ternary operators, and to let code ↵Saivan2018-11-2568-2039/+4079
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | add back move and dmove for groupsUlrich-Matthias Schäfer2018-12-011-0/+26
| | |
* | | dont generate esm bundle anymore and link to src/main.js directly. Move ↵Ulrich-Matthias Schäfer2018-12-012-5/+5
| |/ |/| | | | | | | | | bower to its own repo rename makeNode back to create
* | run buildUlrich-Matthias Schäfer2018-11-281-1/+1
| |
* | add tests for all exports of adopterUlrich-Matthias Schäfer2018-11-281-6/+12
| |
* | plumber differences between node and browser so that tests run on bothUlrich-Matthias Schäfer2018-11-283-12/+41
| |
* | Fix build chain so that we now have multiple builds. Details below:Ulrich-Matthias Schäfer2018-11-286-13/+115
| | | | | | | | | | | | | | | | | | | | | | - 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.
* | fix bugs in runner, fix importsUlrich-Matthias Schäfer2018-11-263-7/+7
| |
* | Moved utils, namespaces, regex... to a subobject of SVG. Renamed SVGArray ↵Ulrich-Matthias Schäfer2018-11-242-11/+8
| | | | | | | | and SVGNumber on export to Array and Number
* | Get rid of HTMLNode and Bare in favor of DomUlrich-Matthias Schäfer2018-11-248-57/+28
| | | | | | | | | | - 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)
* | fixed lots of bugs in the timeline. Its now working as expected in all cases.Ulrich-Matthias Schäfer2018-11-232-30/+37
| | | | | | | | | | | | | | | | - 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
* | fix Timeline so that play, pause, stop, reverse... work correctly. Update ↵Ulrich-Matthias Schäfer2018-11-223-21/+51
| | | | | | | | runners accordingly
* | rewrite few lines of adopterUlrich-Matthias Schäfer2018-11-211-12/+9
| |
* | add default parameter for timeSourceUlrich-Matthias Schäfer2018-11-211-5/+7
| |
* | add register for insertBefore and insertAfterUlrich-Matthias Schäfer2018-11-202-8/+15
|/
* rename `doc()` to `root()` and `toDoc()` to `toRoot()` as dicussed in (#932)Ulrich-Matthias Schäfer2018-11-195-13/+13
|
* renamed `Doc` to `Svg` according to (#932)Ulrich-Matthias Schäfer2018-11-195-20/+17
|
* changed image callback according to (#931)Ulrich-Matthias Schäfer2018-11-173-8/+2
|
* cleanup a few filesUlrich-Matthias Schäfer2018-11-174-16/+15
|
* remove native() methods, add methods of types directly to elemenetUlrich-Matthias Schäfer2018-11-126-83/+46
|
* reworked parents so that it is useful now, changelogUlrich-Matthias Schäfer2018-11-121-7/+11
|
* ticking off the last checkbox of (#645). return List whenever possibleUlrich-Matthias Schäfer2018-11-123-9/+8
|
* make List return new lists on method calls, add map to array polyfill so ↵Ulrich-Matthias Schäfer2018-11-126-21/+52
| | | | that this works, fix runner
* change method name, make strings more pleasing to readUlrich-Matthias Schäfer2018-11-122-10/+10
|
* adds `List` which does bring back `SVG.Set` in an elegant way (#645)Ulrich-Matthias Schäfer2018-11-125-26/+64
|
* evaluate window and document on access and not on importUlrich-Matthias Schäfer2018-11-1215-140/+46
|
* make window and document exchangeable in case they are not globals alreay, ↵Ulrich-Matthias Schäfer2018-11-1124-4/+64
| | | | make sure that init functions are chaninable
* add registering for forgotten classesUlrich-Matthias Schäfer2018-11-095-3/+19
|
* added possibility to pass in additional attribues to element creators (#796)Ulrich-Matthias Schäfer2018-11-0824-87/+138
| | | | | | e.g. - `canvas.rect({x:100})` or - `canvas.rect(100, 100, {x:100})`
* added possibility to pass attribues into a constructor like: `new ↵Ulrich-Matthias Schäfer2018-11-0830-40/+68
| | | | SVG.Rect({width:100})`
* `fill()` and `stroke()` return the fill and stroke attribute when called as ↵Ulrich-Matthias Schäfer2018-11-081-1/+1
| | | | getter (#789)
* added `ax(), ay(), amove()` to change texts x and y values directly (#787)Ulrich-Matthias Schäfer2018-11-081-0/+12
|
* `SVG.Text.rebuild()` now takes every font-size into account (#512)Ulrich-Matthias Schäfer2018-11-081-1/+5
|
* implements `round()` (#916)Ulrich-Matthias Schäfer2018-11-081-0/+19
|
* size function of circle now only accepts one argument (#788)Ulrich-Matthias Schäfer2018-11-083-13/+17
|
* add styletagsUlrich-Matthias Schäfer2018-11-083-0/+59
|
* get rid of the fixmes and todosUlrich-Matthias Schäfer2018-11-0810-36/+20
|
* added insertAfter/Before, introduce attrHooks, move few methods, ↵Ulrich-Matthias Schäfer2018-11-087-59/+88
| | | | SVG.Text.textPath returns first textPath child now