aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec/element.js
Commit message (Collapse)AuthorAgeFilesLines
* Fixed IE Polyfills, got rid of ArrayPolyfill in favour of babels own ↵Ulrich-Matthias Schäfer2020-05-041-1090/+0
| | | | transforms, updated dependencies, finished tests, removed old es5 tests
* fixes and testsUlrich-Matthias Schäfer2020-04-091-1/+1
| | | | | | - fixed flatten and ungroup - added position argument to ungroup, toParent and toRoot - added tests for Container
* This is a big one...Ulrich-Matthias Schäfer2020-03-281-333/+340
| | | | | | | | | | | | | | | | | | | | ### 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
* Moved utils, namespaces, regex... to a subobject of SVG. Renamed SVGArray ↵Ulrich-Matthias Schäfer2018-11-241-3/+3
| | | | and SVGNumber on export to Array and Number
* Get rid of HTMLNode and Bare in favor of DomUlrich-Matthias Schäfer2018-11-241-0/+35
| | | | | - 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)
* rename `doc()` to `root()` and `toDoc()` to `toRoot()` as dicussed in (#932)Ulrich-Matthias Schäfer2018-11-191-8/+8
|
* renamed `Doc` to `Svg` according to (#932)Ulrich-Matthias Schäfer2018-11-191-1/+1
|
* remove native() methods, add methods of types directly to elemenetUlrich-Matthias Schäfer2018-11-121-7/+0
|
* reworked parents so that it is useful now, changelogUlrich-Matthias Schäfer2018-11-121-6/+7
|
* implements `round()` (#916)Ulrich-Matthias Schäfer2018-11-081-0/+18
|
* add test for array getter of attrUlrich-Matthias Schäfer2018-11-081-0/+13
|
* clone() does not insert the clone into the dom anymore, added beziere() and ↵Ulrich-Matthias Schäfer2018-11-071-9/+0
| | | | steps() to generate easing functions
* fix mistake in testUlrich-Matthias Schäfer2018-11-071-6/+6
|
* Merge branch '875-es6' into 3.0.0Ulrich-Matthias Schäfer2018-11-071-85/+75
|\
| * Revert back to classes, fix remaining testsUlrich-Matthias Schäfer2018-11-041-10/+0
| |
| * fix even more testsUlrich-Matthias Schäfer2018-11-041-68/+68
| |
| * implement registerMethods(), introduce real arrays for modern browsers, fix ↵Ulrich-Matthias Schäfer2018-11-041-7/+7
| | | | | | | | some tests
* | Fix specsnobuti2018-10-271-17/+30
| |
* | Added some testsnobuti2018-10-261-0/+38
|/
* Fixed recommendations by @Fuzzyma regarding transformsSaivan2018-03-051-9/+9
| | | | | | | | | | | | This commit fixes a number of issues with transformations: - Removed move/dmove/etc... on groups - Sugar was being passed origin instead of ox, oy - Updated the changelog - Removed parseMatrix in favor of new SVG.Matrix() - .matrix is the getter for a matrix, not .transform - added a [02:24:41] Using gulpfile ~/Desktop/svg/svg.js/gulpfile.js [02:24:41] Starting 'lint'... [02:24:43] Finished 'lint' after 2.32 s directive
* Fixed all transformation tests, the new transforms are readySaivan2018-03-041-14/+8
| | | | | | This commit fixes all of the tests to reflect all of the changes to our transform code. It also makes the default test output dots instead of anything else.
* Fixed most of the tests relating to transformationsSaivan2018-03-041-7/+7
|
* Fixed a few more specifications regarding the new transformsSaivan2018-03-021-7/+7
|
* Fixed some tests involving transforms and elementsSaivan2018-03-021-1/+2
|\
| * fixed all that errors which come along when removing an object. Fixed tests, ↵Ulrich-Matthias Schäfer2018-03-011-1/+2
| | | | | | | | too and added isRoot test
* | Implemented new transformationsSaivan2018-03-021-21/+30
|/ | | | | | This commit implements the new transformation model, but it also needs to modify a few tests to fit the new format. This is still a work in progress.
* Lots of breaking changes. Read below! (#646, #716)Ulrich-Matthias Schäfer2017-07-251-1/+8
| | | | | | | | | | - 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
* ids are not generated upon creation anymoreUlrich-Matthias Schäfer2017-04-231-9/+26
| | | | Instead they are generated when requested (#559)
* changed `style()` to `css()`Ulrich-Matthias Schäfer2017-04-221-20/+22
| | | | | 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-49/+59
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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
| * Fix the flip transform on both axisRémi Tétreault2017-04-151-1/+1
| | | | | | | | | | This fix the bug that made calling flip without any argument (`element.flip()`) not work.
| * clear does not remove parser anymoreUlrich-Matthias Schäfer2017-03-291-17/+32
| | | | | | | | 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-36/+31
| | | | | | | | work with svgdom, image loading uses eveents now, can now run jasmine tessts with svgdom when jasmine globally available
* | removed `loaded()` and `error()`/`changed load()`Ulrich-Matthias Schäfer2017-03-191-2/+2
| | | | | | | | | | | | SVG.Image is now constructed with: - container.image(src, callback) - new SVG.Image().load(src, callback)
* | removing SVG.Set completelyUlrich-Matthias Schäfer2017-03-161-14/+9
| |
* | remove feature to set style with css stringUlrich-Matthias Schäfer2017-03-161-6/+0
| |
* | Merge branch 'master' into 3.0.0Ulrich-Matthias Schäfer2017-03-161-25/+32
|\| | | | | | | | | | | | | Conflicts (all resolved): dist/svg.js dist/svg.min.js spec/spec/boxes.js
| * make more tests pass in IEUlrich-Matthias Schäfer2017-03-151-24/+25
| |
| * move most regexe to SVG.regex, fix matrix constructor for string argumentUlrich-Matthias Schäfer2017-03-141-1/+7
| |
* | unified all boxes (#634)Ulrich-Matthias Schäfer2017-03-161-2/+2
| | | | | | | | | | | | | | | | unified all boxes - SVG.Box for everything - bbox, rbox and viewbox as methods - boxes can be created with string, array, object, list... - added helper to simplify boxes code
* | update specs, fix mistakes, include flatten.js to distUlrich-Matthias Schäfer2017-03-101-14/+6
|/
* fixed a bug with clone which didnt copy over dom data (#621)Ulrich-Matthias Schäfer2017-03-091-1/+8
|
* added SVG.Box, added transform method to boxes, fix rbox (#626)Ulrich-Matthias Schäfer2017-03-081-11/+1
| | | | | | | | added SVG.Box, added transform method to boxes, fix rbox Also: - workaround for screenCTM with nested svg (FF bug) - remove unneeded workaround in toParent() - rbox accepts additional parameter to transform the box
* make flip working with both axis when no parameter / only offset is passedUlrich-Matthias Schäfer2017-03-061-2/+10
|
* added test cases to increase code coverageUlrich-Matthias Schäfer2017-03-011-0/+9
|
* added test cases to increase coverageUlrich-Matthias Schäfer2017-03-011-0/+12
|
* added test case for ungroup/flattenUlrich-Matthias Schäfer2017-03-011-9/+74
|
* fixed bug in SVG.Transformations when creating with array/argument list.Ulrich-Matthias Schäfer2017-02-281-0/+49
| | | | added tests to increase code coverage
* added tests to increase code coverageUlrich-Matthias Schäfer2017-02-281-1/+25
|
* added tests to increase code coverageUlrich-Matthias Schäfer2017-02-281-4/+17
|