aboutsummaryrefslogtreecommitdiffstats
path: root/src/svg.js
Commit message (Collapse)AuthorAgeFilesLines
* dependency updates, easier formattingUlrich-Matthias Schäfer2023-06-131-1/+1
|
* 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
* fix bugs in runner, fix importsUlrich-Matthias Schäfer2018-11-261-1/+1
|
* Moved utils, namespaces, regex... to a subobject of SVG. Renamed SVGArray ↵Ulrich-Matthias Schäfer2018-11-241-5/+0
| | | | and SVGNumber on export to Array and Number
* reordered modules, add es6 buildUlrich-Matthias Schäfer2018-11-061-94/+7
|
* Linted all files, upgraded all dependenciesUlrich-Matthias Schäfer2018-11-051-21/+16
|
* rework of classes, make events on every object possibleUlrich-Matthias Schäfer2018-11-051-10/+3
|
* forgot about memory testsUlrich-Matthias Schäfer2018-11-041-1/+1
|
* Revert back to classes, fix remaining testsUlrich-Matthias Schäfer2018-11-041-20/+10
|
* fix even more testsUlrich-Matthias Schäfer2018-11-041-1/+12
|
* implement registerMethods(), introduce real arrays for modern browsers, fix ↵Ulrich-Matthias Schäfer2018-11-041-1/+33
| | | | some tests
* fix a few mistakes. Make sugar work. Roll back to childNodes because ↵Ulrich-Matthias Schäfer2018-11-011-0/+8
| | | | children is 10x slower
* introduce register and registerMethod method to get rid of dependency problemsUlrich-Matthias Schäfer2018-11-011-84/+32
|
* resolve last circular dependencies, make rollup workUlrich-Matthias Schäfer2018-10-271-3/+31
|
* resolve circular references and make example working againUlrich-Matthias Schäfer2018-10-271-1/+86
|
* convert everything to es6 classes and importsUlrich-Matthias Schäfer2018-10-251-98/+7
|
* add babel, satisfy linter, build distUlrich-Matthias Schäfer2018-10-171-1/+1
|
* implemented EventTarget + runner does not loop forever anymoreUlrich-Matthias Schäfer2018-05-291-1/+1
|
* make morphing work, fix inheritance, animations now workUlrich-Matthias Schäfer2018-05-011-1/+2
|
* fixed all that errors which come along when removing an object. Fixed tests, ↵Ulrich-Matthias Schäfer2018-03-011-3/+5
| | | | too and added isRoot test
* merge SVG.Doc and SVG.Nested. Add isRoot() method, update doc methods to ↵Ulrich-Matthias Schäfer2018-03-011-3/+3
| | | | decide between doc and nested
* proposal for #807, includes #550, allow multiple events for `SVG.off()` and ↵Ulrich-Matthias Schäfer2018-02-271-1/+1
| | | | add option argument
* Fixed a few hanging issues with the linterSaivan2018-02-271-2/+2
| | | | | This commit fixes a few typesetting issues that probably resulted from the automated linting process
* So the standard linter is operational and our code is compliantSaivan2018-02-271-36/+34
| | | | | | This commit completes the compliance of our code with the standard linter. It is now building correctly and error messages are displayed when somebody tries to build bad code!
* All files now loosely abide by standard lintingSaivan2018-02-271-2/+3
| | | | | | This commit completes the rest of the files, making sure they are in the standard linting format. Next we will add the linter to the build process of our application.
* The dom is checked for an svgjs:data attribute which is imported when ↵Ulrich-Matthias Schäfer2017-07-281-6/+1
| | | | creating an element
* add new default constructor (#714)Ulrich-Matthias Schäfer2017-07-251-15/+6
|
* Lots of breaking changes. Read below! (#646, #716)Ulrich-Matthias Schäfer2017-07-251-37/+6
| | | | | | | | | | - added `SVG.HTMLNode` which is the object wrapped around html nodes to put something in them - moved `defs()` method from `SVG.Parent` to `SVG.Element` - `SVG()` can be called with css selector, node or svg string, now. Without an argument it creates a new `SVG.Doc()` (#646) - `add()`, `put()`, `addTo()`, `putIn()` now excepts all arguments accepted by `SVG()` - `SVG.Nested` is not `overflow:visible` by default - all `SVG.*` objects now can have a node as parameter when constructing - `SVG()` does not set a default size anymore
* `SVG.extend` now expects exactly one module or an array of modulesUlrich-Matthias Schäfer2017-04-251-7/+3
| | | | | | Conflicts: dist/svg.js dist/svg.min.js
* ids are not generated upon creation anymoreUlrich-Matthias Schäfer2017-04-231-6/+1
| | | | Instead they are generated when requested (#559)
* changed `style()` to `css()`Ulrich-Matthias Schäfer2017-04-221-1/+1
| | | | | it now accepts array as input and returns object when no argument given (#517) also removed sub-pixel offset fix
* Merge branch 'master' into 3.0.0Ulrich-Matthias Schäfer2017-04-221-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts - all resolved: # dist/svg.js # dist/svg.min.js # package.json # spec/SpecRunner.html # spec/spec/boxes.js # spec/spec/element.js # spec/spec/image.js # spec/spec/svg.js # src/boxes.js # src/flatten.js # src/image.js # src/polyfill.js # src/style.js # src/svg.js
| * added `options` to `on()`, back to sloppy mode2.6.0Ulrich-Matthias Schäfer2017-04-211-3/+1
| | | | | | | | | | - added `options` object to `SVG.on()` and `el.on()` (#661) - back to sloppy mode because of problems with plugins (#660)
| * changing to strict mode - some failures occurdotnetCarpenter2017-04-111-1/+3
| |
| * clear does not remove parser anymoreUlrich-Matthias Schäfer2017-03-291-2/+2
| | | | | | | | make test work in svg documents
| * onclick events are now bound with SVG.on, prefixed globals, relax tests to ↵Ulrich-Matthias Schäfer2017-03-211-1/+1
| | | | | | | | work with svgdom, image loading uses eveents now, can now run jasmine tessts with svgdom when jasmine globally available
| * prefix globals with window so window can be injected properlyUlrich-Matthias Schäfer2017-03-181-1/+1
| |
* | prefix globals with window so window can be injected properlyUlrich-Matthias Schäfer2017-03-181-1/+1
| |
* | removing SVG.Set completelyUlrich-Matthias Schäfer2017-03-161-4/+0
| |
* | remove feature to set style with css stringUlrich-Matthias Schäfer2017-03-161-1/+7
|/
* Fix offset produced by svg parser (#553)Ulrich-Matthias Schäfer2017-03-081-1/+1
|
* doublecheck SVG.parser, use svg element which is not in the dom (#471)Ulrich-Matthias Schäfer2016-04-021-2/+12
|
* fix parser error (#471) and small bug in SVG.Color with new fxUlrich-Matthias Schäfer2016-04-011-14/+10
|
* added check for existence of node (fix #431)Ulrich-Matthias Schäfer2015-12-231-0/+3
|
* svgjs now saves crucial data in the dom (fixes #369 again)Ulrich-Matthias Schäfer2015-11-061-0/+4
|
* fixed return value of `text()` after import/clone (#393)Ulrich-Matthias Schäfer2015-11-041-6/+6
|
* fix typo (finally)dhardtke2015-09-061-3/+3
|
* remove useless executable permissionPeter Dave Hello2015-06-231-0/+0
|
* Merged all changes and fixes from SVG 1.1 into this branchUlrich-Matthias Schäfer2015-06-111-1/+1
|
* Typo'swout2014-08-191-2/+2
|