summaryrefslogtreecommitdiffstats
path: root/src/elements/Svg.js
Commit message (Collapse)AuthorAgeFilesLines
* renamed svg namespace to svgUlrich-Matthias Schäfer2020-04-231-2/+2
|
* fixes and testsUlrich-Matthias Schäfer2020-04-091-2/+0
| | | | | | - fixed flatten and ungroup - added position argument to ungroup, toParent and toRoot - added tests for Container
* renamed removeNamespace()Ulrich-Matthias Schäfer2020-04-041-1/+1
|
* - fixed `put()` which correctly creates an svgjs object from the passed ↵Ulrich-Matthias Schäfer2020-04-031-35/+20
| | | | | | | | element now before returning - fixed `parent()` which correctly returns null if direct parent is the document or a document-fragment - fixed `add()` which correctly removes namespaces of non-root svg elements now when added to another svg element (#1086) - fixed `isRoot()` which correctly returns false, if the element is in a document-fragment
* 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
* minor bugfix in bbox and performance changes3.0.7Ulrich-Matthias Schäfer2019-01-131-1/+1
|
* Release 3.0.43.0.4Ulrich-Matthias Schäfer2018-12-071-0/+4
|
* Reverted some of the lint rules after chatting with fuzzySaivan2018-11-261-45/+23
| | | | | | | | | 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
* Changed the esLint rules to avoid silly ternary operators, and to let code ↵Saivan2018-11-251-25/+47
| | | | | | | | | | | | | | 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
* rename `doc()` to `root()` and `toDoc()` to `toRoot()` as dicussed in (#932)Ulrich-Matthias Schäfer2018-11-191-4/+4
|
* renamed `Doc` to `Svg` according to (#932)Ulrich-Matthias Schäfer2018-11-191-0/+78