| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
transforms, updated dependencies, finished tests, removed old es5 tests
|
|
|
|
|
|
| |
- fixed flatten and ungroup
- added position argument to ungroup, toParent and toRoot
- added tests for Container
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
### 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
|
|
|
|
| |
and SVGNumber on export to Array and Number
|
|
|
|
|
| |
- 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)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
steps() to generate easing functions
|
| |
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| | |
some tests
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| | |
too and added isRoot test
|
|/
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
Instead they are generated when requested (#559)
|
|
|
|
|
| |
it now accepts array as input and returns object when no argument given (#517)
also removed sub-pixel offset fix
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
# 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
|
| |
| |
| |
| |
| | |
This fix the bug that made calling flip without any argument (`element.flip()`)
not work.
|
| |
| |
| |
| | |
make test work in svg documents
|
| |
| |
| |
| | |
work with svgdom, image loading uses eveents now, can now run jasmine tessts with svgdom when jasmine globally available
|
| |
| |
| |
| |
| |
| | |
SVG.Image is now constructed with:
- container.image(src, callback)
- new SVG.Image().load(src, callback)
|
| | |
|
| | |
|
|\|
| |
| |
| |
| |
| |
| | |
Conflicts (all resolved):
dist/svg.js
dist/svg.min.js
spec/spec/boxes.js
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/ |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
added tests to increase code coverage
|
| |
|
| |
|