aboutsummaryrefslogtreecommitdiffstats
path: root/src/types
Commit message (Collapse)AuthorAgeFilesLines
* This is a big one...Ulrich-Matthias Schäfer2020-03-281-2/+2
| | | | | | | | | | | | | | | | | | | | ### Fixed - fixed `zoom()` method of runner which was passed a wrong parameter - fixed positioning methods of `TSpan` to position them by its bounding box - fixed `flip()` method which flips correctly by center by default now and accepts correct arguments - fixed a case in `rbox()` where not always all values of the box were updated - fixed `getOrigin()` function used by `transform()` so that all origin (#1085) popssibilities specified in the docs are working - fixed positioning of text by its baseline when using `amove()` - fixed tons of typings in the svg.d.ts file ### Added - added second Parameter to `SVG(el, isHTML)` which allows to explicitely create elements in the HTML namespace (#1058) - added `unlink()` and `linker()` to hyperlinked elements to remove or access the underling `<a>` element - added `wrap()` method to `Dom` which lets you wrap an element by another one - added `orient()` method to `Marker` - added `options` parameter to `dispatch()` and `fire()` to allow for more special needs - added `newLine()` constructor to `Text` to create a tspan marked as new line (#1088) - added lots of tests in es6 format
* Updated dependencies to newest version, new linter fixed stuffUlrich-Matthias Schäfer2019-11-017-41/+40
|
* Added tests for 0 value width/height wrong path scalingValentin2019-05-091-1/+1
|
* Fixed path transformation when box width or height is 0Valentin2019-05-061-0/+5
|
* Register classes explicitly instead of relying on `Function.name` because ↵Ulrich-Matthias Schäfer2019-02-273-3/+3
| | | | classes could be renamed
* speed up zoom function for non-FF BrowserUlrich-Matthias Schäfer2019-01-181-14/+16
|
* renamed unit() to `convert()` to avoid name collision3.0.9Ulrich-Matthias Schäfer2019-01-141-2/+1
|
* added back `to()` as `unit()` of `SVG.Number` which was removed accidentally3.0.8Ulrich-Matthias Schäfer2019-01-131-0/+5
|
* minor bugfix in bbox and performance changes3.0.7Ulrich-Matthias Schäfer2019-01-132-12/+17
|
* Fix move and size of groups, removed setting of a default font so we dont ↵Ulrich-Matthias Schäfer2019-01-123-7/+22
| | | | act against user intention, fixed bug in `font()`
* Avoid for..of loopErik Demaine2018-12-141-1/+2
|
* Bug fixErik Demaine2018-12-141-3/+5
|
* Fix missing comma, lintErik Demaine2018-12-141-2/+2
|
* Add PointArray.transform by analogy to Point.transformErik Demaine2018-12-131-0/+14
|
* Release 3.0.43.0.4Ulrich-Matthias Schäfer2018-12-071-0/+32
|
* Release 3.0.23.0.2Ulrich-Matthias Schäfer2018-12-035-5/+15
|
* fixed methods not returning this and missing methods on ListUlrich-Matthias Schäfer2018-12-031-0/+9
|
* Merge branch '790-color-spaces' into 791-random-colorsUlrich-Matthias Schäfer2018-12-013-291/+56
|\
| * 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-303-280/+19
| |\
| | * plumber differences between node and browser so that tests run on bothUlrich-Matthias Schäfer2018-11-281-10/+16
| | |
| | * Get rid of HTMLNode and Bare in favor of DomUlrich-Matthias Schäfer2018-11-241-246/+0
| | | | | | | | | | | | | | | - 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)
| * | 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-261-10/+20
| | | | | | | | | | | | | | | | | | | | | - 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-2611-985/+475
| | | | | | | | | | | | | | | | | | 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-2511-506/+1022
|/ | | | | | | | | | | | | | 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
* cleanup a few filesUlrich-Matthias Schäfer2018-11-171-12/+12
|
* remove native() methods, add methods of types directly to elemenetUlrich-Matthias Schäfer2018-11-123-75/+30
|
* ticking off the last checkbox of (#645). return List whenever possibleUlrich-Matthias Schäfer2018-11-121-3/+0
|
* make List return new lists on method calls, add map to array polyfill so ↵Ulrich-Matthias Schäfer2018-11-123-4/+15
| | | | 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-122-18/+38
|
* evaluate window and document on access and not on importUlrich-Matthias Schäfer2018-11-121-8/+6
|
* make window and document exchangeable in case they are not globals alreay, ↵Ulrich-Matthias Schäfer2018-11-117-0/+17
| | | | make sure that init functions are chaninable
* added possibility to pass attribues into a constructor like: `new ↵Ulrich-Matthias Schäfer2018-11-081-2/+10
| | | | SVG.Rect({width:100})`
* get rid of the fixmes and todosUlrich-Matthias Schäfer2018-11-081-3/+2
|
* added insertAfter/Before, introduce attrHooks, move few methods, ↵Ulrich-Matthias Schäfer2018-11-081-32/+0
| | | | SVG.Text.textPath returns first textPath child now
* clone() does not insert the clone into the dom anymore, added beziere() and ↵Ulrich-Matthias Schäfer2018-11-071-1/+1
| | | | steps() to generate easing functions
* reordered modules, add es6 buildUlrich-Matthias Schäfer2018-11-0613-0/+1852