diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-03-28 13:52:57 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-03-28 13:52:57 +1000 |
commit | ba2948bfad00906ffa3ba5ea7ff15ac0be517445 (patch) | |
tree | 953b7ebfef53b8a3e594632d9d2b7458028c7170 /.config | |
parent | 9beddac36db60c0e4097e01272b6faa04bdb1065 (diff) | |
download | svg.js-ba2948bfad00906ffa3ba5ea7ff15ac0be517445.tar.gz svg.js-ba2948bfad00906ffa3ba5ea7ff15ac0be517445.zip |
This is a big one...
### 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
Diffstat (limited to '.config')
-rw-r--r-- | .config/karma.conf.common.js | 2 | ||||
-rw-r--r-- | .config/karma.conf.js | 2 | ||||
-rw-r--r-- | .config/karma.es6.js | 22 |
3 files changed, 22 insertions, 4 deletions
diff --git a/.config/karma.conf.common.js b/.config/karma.conf.common.js index a89c8e6..62005bf 100644 --- a/.config/karma.conf.common.js +++ b/.config/karma.conf.common.js @@ -31,7 +31,7 @@ module.exports = function (config) { included: false, served: true }, - 'dist/svg.min.js', + 'dist/svg.js', 'spec/spec/*.js' ], diff --git a/.config/karma.conf.js b/.config/karma.conf.js index ccda070..660c1d2 100644 --- a/.config/karma.conf.js +++ b/.config/karma.conf.js @@ -23,7 +23,7 @@ module.exports = function (config) { // preprocess matching files before serving them to the browser // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor preprocessors: { - 'dist/svg.min.js': ['coverage'] + 'dist/svg.js': ['coverage'] }, // this specifies which plugins karma should load diff --git a/.config/karma.es6.js b/.config/karma.es6.js index 81605cf..8802c2d 100644 --- a/.config/karma.es6.js +++ b/.config/karma.es6.js @@ -33,13 +33,31 @@ module.exports = function (config) { type: 'module' }, { - pattern: 'spec/spec/*/*.js', + pattern: 'spec/spec/*/**/*.js', included: true, type: 'module' } ], - reporters: ['progress'], + preprocessors: { + 'src/**/*.js': ['coverage'] + }, + + reporters: ['progress', 'coverage'], + coverageReporter: { + // Specify a reporter type. + type: 'lcov', + dir: 'coverage/', + subdir: function (browser) { + // normalization process to keep a consistent browser name accross different OS + return browser.toLowerCase().split(/[ /-]/)[0] // output the results into: './coverage/firefox/' + }, + instrumenterOptions: { + istanbul: { + esModules: true + } + } + }, browsers: ['ChromeHeadless', 'FirefoxHeadless'], singleRun: false, concurrency: Infinity |