aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Element.js
Commit message (Collapse)AuthorAgeFilesLines
* doscontinue use of svgjs:data in favor of data-svgUlrich-Matthias Schäfer2023-09-031-2/+6
|
* fix import of leading, dont write data to dom if not neccessaryUlrich-Matthias Schäfer2023-09-031-8/+2
|
* dependency updates, easier formattingUlrich-Matthias Schäfer2023-06-131-29/+32
|
* Return null if `until` not in parent chainMorgan Harris2021-11-231-7/+8
|
* Fix broken parents() functionMorgan Harris2021-11-231-1/+10
|
* sorted method namesUlrich-Matthias Schäfer2020-05-191-6/+6
|
* fix defs and reference, tests for ElementUlrich-Matthias Schäfer2020-04-081-14/+5
|
* - fixed `put()` which correctly creates an svgjs object from the passed ↵Ulrich-Matthias Schäfer2020-04-031-1/+6
| | | | | | | | 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-7/+8
| | | | | | | | | | | | | | | | | | | | ### 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
* bump version3.0.15Ulrich-Matthias Schäfer2019-11-081-2/+2
| | | | | | | | ### Fixed - allow object input of `when` and `delay` to `animate()` ### Added - added missing dmove function to runner
* Updated dependencies to newest version, new linter fixed stuffUlrich-Matthias Schäfer2019-11-011-4/+4
|
* Register classes explicitly instead of relying on `Function.name` because ↵Ulrich-Matthias Schäfer2019-02-271-1/+1
| | | | classes could be renamed
* fixed move and center commands for textUlrich-Matthias Schäfer2019-01-221-0/+5
| | | | | - fixed move commands (x, y, move) of text so that it moves text always by the upper left edge. - fixed center commands (cx, cy, center) of text so that it moves text always by the center.
* fixed `root()`, `textPath()`, `text.path()` and `path.text()` and removed ↵3.0.10Ulrich-Matthias Schäfer2019-01-141-3/+1
| | | | font-family and size from the defaults list
* Release 3.0.53.0.5Ulrich-Matthias Schäfer2018-12-121-0/+10
|
* Reverted some of the lint rules after chatting with fuzzySaivan2018-11-261-87/+43
| | | | | | | | | 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-49/+93
| | | | | | | | | | | | | | 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-3/+3
|
* renamed `Doc` to `Svg` according to (#932)Ulrich-Matthias Schäfer2018-11-191-2/+2
|
* remove native() methods, add methods of types directly to elemenetUlrich-Matthias Schäfer2018-11-121-1/+14
|
* reworked parents so that it is useful now, changelogUlrich-Matthias Schäfer2018-11-121-7/+11
|
* make window and document exchangeable in case they are not globals alreay, ↵Ulrich-Matthias Schäfer2018-11-111-1/+0
| | | | make sure that init functions are chaninable
* add registering for forgotten classesUlrich-Matthias Schäfer2018-11-091-1/+4
|
* added possibility to pass attribues into a constructor like: `new ↵Ulrich-Matthias Schäfer2018-11-081-2/+2
| | | | SVG.Rect({width:100})`
* reordered modules, add es6 buildUlrich-Matthias Schäfer2018-11-061-0/+142