summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordotnetCarpenter <jon.ronnenberg@gmail.com>2017-01-14 06:25:33 +0100
committerdotnetCarpenter <jon.ronnenberg@gmail.com>2017-01-14 06:25:33 +0100
commitc8dc14292c257608ea890cd93a75d8a9921d8d46 (patch)
tree0c5f9375beee97cfe187e503a697f8797b71724e
parent5f2a84fd218b06c100d64bba76308b866f197709 (diff)
downloadsvg.js-c8dc14292c257608ea890cd93a75d8a9921d8d46.tar.gz
svg.js-c8dc14292c257608ea890cd93a75d8a9921d8d46.zip
Wrapping up for 2.3.7 release
-rw-r--r--.documentup.json1
-rw-r--r--CHANGELOG.md2
-rw-r--r--component.json2
-rw-r--r--dist/svg.js6
-rw-r--r--gulpfile.js21
-rw-r--r--package.json3
-rw-r--r--spec/spec/boxes.js6
-rw-r--r--spec/spec/element.js10
-rw-r--r--spec/spec/set.js2
-rw-r--r--spec/spec/text.js2
10 files changed, 17 insertions, 38 deletions
diff --git a/.documentup.json b/.documentup.json
index 22d8325..b307380 100644
--- a/.documentup.json
+++ b/.documentup.json
@@ -2,7 +2,6 @@
"twitter": [
"svg_js"
],
- "travis": true,
"issues": true,
"theme": "v1"
} \ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0277856..9dc5d16 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,7 +6,7 @@
- added `precision()` method to round numeric element attributes -> __TODO!__
- added specs for `SVG.FX` -> __TODO!__
-# 2.3.7
+# 2.3.7 (14/01/2017)
- moved project to [svgdotjs](https://github.com/svgdotjs)
- made matrixify work with transformation chain separated by commas (#543)
- fixed `SVG.Matrix.skew()` (#545)
diff --git a/component.json b/component.json
index 9d65082..64622e7 100644
--- a/component.json
+++ b/component.json
@@ -2,7 +2,7 @@
"name": "svg.js",
"repo": "svgdotjs/svg.js",
"description": "A lightweight library for manipulating and animating SVG",
- "version": "2.3.6",
+ "version": "2.3.7",
"keywords": ["svg"],
"author": "Wout Fierens <wout@mick-wout.com>",
"main": "dist/svg.js",
diff --git a/dist/svg.js b/dist/svg.js
index 64b79aa..6fcb165 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -1,12 +1,12 @@
/*!
* svg.js - A lightweight library for manipulating and animating SVG.
* @version 2.3.6
-* http://www.svgjs.com
+* https://svgdotjs.github.io/
*
-* @copyright Wout Fierens <wout@mick-wout.com.com>
+* @copyright Wout Fierens <wout@mick-wout.com>
* @license MIT
*
-* BUILT: Sun Nov 13 2016 14:06:31 GMT+0100 (CET)
+* BUILT: Sat Jan 14 2017 05:53:26 GMT+0100 (CET)
*/;
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
diff --git a/gulpfile.js b/gulpfile.js
index 9d7c4de..2bf1c09 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -121,24 +121,5 @@ gulp.task('minify', ['unify'], function() {
.pipe(size({ showFiles: true, gzip: true, title: 'Gzipped' }))
})
-/**
- ‎* rebuild documentation using documentup
- */
-
-gulp.task('docs', function() {
- fs.readFile('README.md', 'utf8', function (err, data) {
- request.post(
- 'http://documentup.com/compiled'
- , { form: { content: data, name: 'SVG.js', theme: 'v1' } }
- , function (error, response, body) {
- // Replace stylesheet
- body = body.replace('//documentup.com/stylesheets/themes/v1.css', 'svgjs.css')
-
- // Write file
- fs.writeFile('docs/index.html', body, function(err) {})
- }
- )
- })
-})
-gulp.task('default', ['clean', 'unify', 'minify']) \ No newline at end of file
+gulp.task('default', ['clean', 'unify', 'minify'])
diff --git a/package.json b/package.json
index 637de54..c1a8198 100644
--- a/package.json
+++ b/package.json
@@ -57,8 +57,7 @@
"build": "gulp",
"build:test": "gulp unify",
"test": "karma start .config/karma.conf.js --single-run",
- "test:quick": "karma start .config/karma.quick.js",
- "docs": "gulp docs"
+ "test:quick": "karma start .config/karma.quick.js"
},
"devDependencies": {
"coveralls": "^2.11.15",
diff --git a/spec/spec/boxes.js b/spec/spec/boxes.js
index 5b5777e..6b49633 100644
--- a/spec/spec/boxes.js
+++ b/spec/spec/boxes.js
@@ -195,15 +195,15 @@ describe('Boxes', function() {
it('matches the size of the target element, including transformations', function() {
var box = rect.rbox()
expect(box.x).toBeCloseTo(60)
- expect(box.y).toBeCloseTo(281)
+ expect(box.y).toBeCloseTo(281, 0)
expect(box.cx).toBeCloseTo(110)
- expect(box.cy).toBeCloseTo(551)
+ expect(box.cy).toBeCloseTo(551, 0)
expect(box.width).toBe(100)
expect(box.height).toBe(540)
expect(box.w).toBe(100)
expect(box.h).toBe(540)
expect(box.x2).toBeCloseTo(160)
- expect(box.y2).toBeCloseTo(821)
+ expect(box.y2).toBeCloseTo(821, 0)
})
})
diff --git a/spec/spec/element.js b/spec/spec/element.js
index a53da99..0dc9124 100644
--- a/spec/spec/element.js
+++ b/spec/spec/element.js
@@ -406,10 +406,10 @@ describe('Element', function() {
it('returns the correct rectangular box', function() {
var rect = draw.size(200, 150).viewbox(0, 0, 200, 150).rect(105, 210).move(2, 12)
var box = rect.rbox()
- expect(box.x).toBeCloseTo(2,0)
- expect(box.y).toBeCloseTo(12)
+ expect(box.x).toBeCloseTo(2, 0)
+ expect(box.y).toBeCloseTo(12, 0)
expect(box.cx).toBeCloseTo(54.5)
- expect(box.cy).toBeCloseTo(117)
+ expect(box.cy).toBeCloseTo(117, 0)
expect(box.width).toBe(105)
expect(box.height).toBe(210)
})
@@ -417,9 +417,9 @@ describe('Element', function() {
var rect = draw.size(200,150).viewbox(0,0,100,75).rect(105,210).move(2,12)
var box = rect.rbox()
expect(box.x).toBeCloseTo(4)
- expect(box.y).toBeCloseTo(24)
+ expect(box.y).toBeCloseTo(24, 0)
expect(box.cx).toBeCloseTo(56.5)
- expect(box.cy).toBeCloseTo(129)
+ expect(box.cy).toBeCloseTo(129, 0)
expect(box.width).toBe(105)
expect(box.height).toBe(210)
})
diff --git a/spec/spec/set.js b/spec/spec/set.js
index a2abfb5..0fe7f43 100644
--- a/spec/spec/set.js
+++ b/spec/spec/set.js
@@ -140,7 +140,7 @@ describe('Set', function() {
var box = set.bbox()
expect(box.x).toBeCloseTo(0)
- expect(box.y).toBeCloseTo(0)
+ expect(box.y).toBeCloseTo(0, 0)
expect(box.width).toBeCloseTo(300)
expect(box.height).toBeCloseTo(350)
})
diff --git a/spec/spec/text.js b/spec/spec/text.js
index c937ea2..1e3a6cc 100644
--- a/spec/spec/text.js
+++ b/spec/spec/text.js
@@ -98,7 +98,7 @@ describe('Text', function() {
it('sets the cx and cy position', function() {
text.center(321, 567)
var box = text.bbox()
- expect(+text.node.getAttribute('x') + box.width / 2).toBeCloseTo(321)
+ expect(+text.node.getAttribute('x') + box.width / 2).toBeCloseTo(321, 1)
expect(text.y() + box.height / 2).toBeCloseTo(567)
})
})