summaryrefslogtreecommitdiffstats
path: root/src/element.js
Commit message (Collapse)AuthorAgeFilesLines
* Rename files so that they reflect their exported classes (see next commit)Ulrich-Matthias Schäfer2018-10-251-316/+0
|
* Allowed the origin to stay fixed as we animate transformsSaivan2018-06-261-1/+3
| | | | | | | | | | | This commit start to remove the expensive bbox calculation by assuming that the origin stays at a fixed point during an animation. This is a good assumption as transforms don't change the bbox of the element. Changes ======= - Refactor the Element.transform function - Make a getOrigin function to call the bbox only one time
* implemented EventTarget + runner does not loop forever anymoreUlrich-Matthias Schäfer2018-05-291-0/+5
|
* 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
* merge SVG.Doc and SVG.Nested. Add isRoot() method, update doc methods to ↵Ulrich-Matthias Schäfer2018-03-011-1/+1
| | | | decide between doc and nested
* fix errors found by linter (jeah it works!)Ulrich-Matthias Schäfer2018-02-271-1/+1
|
* proposal for #807, includes #550, allow multiple events for `SVG.off()` and ↵Ulrich-Matthias Schäfer2018-02-271-3/+4
| | | | add option argument
* Fixed a few hanging issues with the linterSaivan2018-02-271-7/+40
| | | | | This commit fixes a few typesetting issues that probably resulted from the automated linting process
* Actually added the linter to gulp and fixed most errorsSaivan2018-02-271-0/+1
| | | | | | This commit fixes most of the errors raised by standard. There is still a strange call error, but that will be the focus of the next commit
* The first half of the library complies with Standard lintingSaivan2018-02-271-104/+103
| | | | | | This commit reformats the code so that it complies with the standard linting style. Its currently a work in progress, but it is meant to pave the way for linting in the build process
* The dom is checked for an svgjs:data attribute which is imported when ↵Ulrich-Matthias Schäfer2017-07-281-2/+7
| | | | creating an element
* Lots of breaking changes. Read below! (#646, #716)Ulrich-Matthias Schäfer2017-07-251-2/+9
| | | | | | | | | | - 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
* use `children` instead of `childNodes` (#710), renamed `previous()` to `prev()`Ulrich-Matthias Schäfer2017-07-101-5/+3
|
* ids are not generated upon creation anymoreUlrich-Matthias Schäfer2017-04-231-2/+8
| | | | Instead they are generated when requested (#559)
* changed `style()` to `css()`Ulrich-Matthias Schäfer2017-04-221-3/+3
| | | | | it now accepts array as input and returns object when no argument given (#517) also removed sub-pixel offset fix
* 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-3/+2
|
* rework import/export method to be more straight forward and without regex magicUlrich-Matthias Schäfer2017-03-161-16/+11
|
* Merge branch 'master' into 3.0.0Ulrich-Matthias Schäfer2017-03-161-1/+1
|\ | | | | | | | | | | | | Conflicts (all resolved): dist/svg.js dist/svg.min.js spec/spec/boxes.js
| * move most regexe to SVG.regex, fix matrix constructor for string argumentUlrich-Matthias Schäfer2017-03-141-1/+1
| |
* | Making initial changes for svg.js v3.0Ulrich-Matthias Schäfer2017-03-101-5/+1
|/ | | | | | | | | | | | - removed `SVG.Array.split()` function (#604) - removed workaround for browser bug with stroke-width (#560) - removed polyfills - removed `ungroup()` in favour of `flatten()` - gradients now have their corresponding nodename as type and not only radial/linear (#606) - `SVG.Path.pointAt()` correctly returns an `SVG.Point` now (#607) - replaced static reference to `masker` in `SVG.Mask` with the `masker()` method - replaced static reference to `clipper` in `SVG.ClipPath` with the `clipper()` method - replaced static reference to `targets` in `SVG.Mask` and `SVG.ClipPath` with the `targets()` method (all three #563)
* fixed a bug with clone which didnt copy over dom data (#621)Ulrich-Matthias Schäfer2017-03-091-1/+4
|
* make events cancelable by default (#550) - version 5Ulrich-Matthias Schäfer2017-03-091-0/+1
|
* Speed improvements on parent elementwout2016-08-041-1/+1
|
* fixed bbox when element is not in the dom (#480), added parameter to `clone`Ulrich-Matthias Schäfer2016-05-131-3/+4
|
* Implementation new fx moduleUlrich-Matthias Schäfer2016-03-231-0/+3
|
* Update element.jsMilovan Zogovic2016-01-221-1/+1
| | | I've encountered situation where SVG.adopt (line 176) returns null, which leads to `Uncaught TypeError: Cannot read property 'node' of null`. Checking whether parent exists fixes it.
* fixed `svgjs:data` attribute which was not set properly in all browsers (#428)Ulrich-Matthias Schäfer2016-01-211-1/+1
| | | | | added specs for `writeDataToDom()` and `setData()` added toJSON in SVG.Number
* dom data was not cleaned up properly (fixes #398)Ulrich-Matthias Schäfer2015-11-181-1/+4
|
* svgjs now saves crucial data in the dom (fixes #369 again)Ulrich-Matthias Schäfer2015-11-061-0/+28
|
* add `parents()` method, added specs, fixed specsUlrich-Matthias Schäfer2015-10-261-8/+28
|
* added support for css selectors with the `parent()` methodUlrich-Matthias Schäfer2015-10-251-3/+3
|
* Fixes #360Ulrich-Matthias Schäfer2015-07-051-4/+4
|
* remove useless executable permissionPeter Dave Hello2015-06-231-0/+0
|
* Removed scale consideration in `move()`Ulrich-Matthias Schäfer2015-06-211-8/+0
| | | | It wasn't compatible to the other move-functions e.g. for the PointArray
* Fixed bug with doc() which should always return the root SVGUlrich-Matthias Schäfer2015-06-151-1/+1
| | | | Replaced split-function with an easier and faster one
* Fixed bug in clone() methodwout2014-09-021-8/+16
|
* Added SVG.Bare for creation of non-described elementswout2014-08-011-4/+4
|
* Added svg import / export functionaltywout2014-08-011-0/+28
|
* Further debugging matrix new implementationwout2014-07-121-2/+2
|
* Completely reworked transform systemwout2014-07-111-134/+12
|
* Added new SVG.Line class and working on SVG.Matrixwout2014-06-281-77/+9
|
* Complete new clone() methodwout2014-06-261-30/+1
|
* Added SVG.Circle, removed structural internal referenceswout2014-06-251-14/+15
|
* Removed all structural referenceswout2014-06-211-45/+40
|
* Added marker, symbol and dynamic referencingwout2014-06-171-4/+11
|
* Bumped to version 1.0.0-rc.7wout2014-06-111-2/+2
| | | | Look at change log for full overview of changes.
* toggleClass returns the svg instancePatrick Klingemann2014-06-091-0/+1
|
* trim class attribute whitespacePatrick Klingemann2014-06-091-1/+1
|
* avoid unintentional global variablesPatrick Klingemann2014-06-091-1/+3
|