aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Dom.js
Commit message (Collapse)AuthorAgeFilesLines
* Spelling correctionsalbert-github2023-04-151-1/+1
|
* Clone without assigning new IDsUlrich-Matthias Schäfer2022-12-131-3/+8
|\
| * New paremeter assignNewIds for Dom.clone()Philippe Bernard2020-10-141-3/+8
| |
* | update dependencies, apply new linter fixesUlrich-Matthias Schäfer2021-01-131-8/+6
| |
* | typos (#1179)ordago2020-12-171-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * typos in 1000-accesses.js * typos in transforms.js * typos in Controller.js * typos in Runner.js * typos in Timeline.js * typos in Dom.js * typos in Marker.js * typos in Mask.js * typos in Tspan.js * typos in containerGeometry.js * typos in event.js * typos in css.js * typos in data.js * typos in sugar.js * typos in EventTarget.js * typos in List.js * typos in Matrix.js * typos in SVGArray.js * typos in utils.js * typos in RAFPlugin.js * typos in Runner.js * typos in Timeline.js * typos in Dom.js * typos in Pattern.js * typos in arrange.js * typos in Box.js * typos in SVGNumber.js * typos in utils.js * typos in CONTRIBUTING.md
* fix `clone()` to return the correct instance (#1154)Ulrich-Matthias Schäfer2020-09-271-1/+1
|
* Fixed IE Polyfills, got rid of ArrayPolyfill in favour of babels own ↵Ulrich-Matthias Schäfer2020-05-041-3/+4
| | | | transforms, updated dependencies, finished tests, removed old es5 tests
* renamed svg namespace to svgUlrich-Matthias Schäfer2020-04-231-47/+56
|
* tests for EventTargetUlrich-Matthias Schäfer2020-04-081-1/+1
|
* added Fragment, completed Dom Tests, fixed `matches()` for document fragmentsUlrich-Matthias Schäfer2020-04-081-9/+15
|
* added second parameter to `addTo` and `putIn`. Added deep clone parameter to ↵Ulrich-Matthias Schäfer2020-04-051-14/+14
| | | | `clone`. Tests for Dom
* renamed removeNamespace()Ulrich-Matthias Schäfer2020-04-041-2/+2
|
* - fixed `put()` which correctly creates an svgjs object from the passed ↵Ulrich-Matthias Schäfer2020-04-031-0/+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
* fixed put and adopter, added tests to cover itUlrich-Matthias Schäfer2020-03-291-1/+2
|
* This is a big one...Ulrich-Matthias Schäfer2020-03-281-12/+16
| | | | | | | | | | | | | | | | | | | | ### 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-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 `root()`, `textPath()`, `text.path()` and `path.text()` and removed ↵3.0.10Ulrich-Matthias Schäfer2019-01-141-2/+2
| | | | font-family and size from the defaults list
* Release 3.0.43.0.4Ulrich-Matthias Schäfer2018-12-071-3/+0
|
* Release 3.0.03.0.0Ulrich-Matthias Schäfer2018-12-011-1/+1
|
* applied fixes from 2.x branchUlrich-Matthias Schäfer2018-12-011-1/+2
|
* Merge branch '790-color-spaces' into 3.0.0Ulrich-Matthias Schäfer2018-12-011-2/+2
|\
| * Merge branch '3.0.0' into 790-color-spacesUlrich-Matthias Schäfer2018-11-301-1/+14
| |\
| * | Make color-animation work in all spaces (conversion bugs still there)Ulrich-Matthias Schäfer2018-11-261-1/+1
| | | | | | | | | | | | | | | | | | | | | - 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
| * | Reverted some of the lint rules after chatting with fuzzySaivan2018-11-261-181/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-86/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | dont generate esm bundle anymore and link to src/main.js directly. Move ↵Ulrich-Matthias Schäfer2018-12-011-2/+2
| |/ |/| | | | | | | | | bower to its own repo rename makeNode back to create
* | fix bugs in runner, fix importsUlrich-Matthias Schäfer2018-11-261-1/+1
| |
* | Get rid of HTMLNode and Bare in favor of DomUlrich-Matthias Schäfer2018-11-241-1/+14
|/ | | | | - 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)
* changed image callback according to (#931)Ulrich-Matthias Schäfer2018-11-171-1/+1
|
* cleanup a few filesUlrich-Matthias Schäfer2018-11-171-1/+2
|
* remove native() methods, add methods of types directly to elemenetUlrich-Matthias Schäfer2018-11-121-5/+0
|
* ticking off the last checkbox of (#645). return List whenever possibleUlrich-Matthias Schäfer2018-11-121-3/+4
|
* evaluate window and document on access and not on importUlrich-Matthias Schäfer2018-11-121-6/+4
|
* make window and document exchangeable in case they are not globals alreay, ↵Ulrich-Matthias Schäfer2018-11-111-1/+3
| | | | 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-1/+5
| | | | SVG.Rect({width:100})`
* implements `round()` (#916)Ulrich-Matthias Schäfer2018-11-081-0/+19
|
* clone() does not insert the clone into the dom anymore, added beziere() and ↵Ulrich-Matthias Schäfer2018-11-071-9/+2
| | | | steps() to generate easing functions
* fix the export/import function and enhance itUlrich-Matthias Schäfer2018-11-071-22/+70
|
* reordered modules, add es6 buildUlrich-Matthias Schäfer2018-11-061-0/+242