]> source.dussan.org Git - svg.js.git/log
svg.js.git
8 years agoMerge pull request #490 from snydesc/master
Ulrich-Matthias Schäfer [Thu, 26 May 2016 07:07:56 +0000 (09:07 +0200)]
Merge pull request #490 from snydesc/master

Changed document.contains to document.documentElement.contains

8 years agoChanged to document.documentElement.contains 490/head
snydesc [Wed, 25 May 2016 13:52:52 +0000 (09:52 -0400)]
Changed to document.documentElement.contains

document.contains will not work in IE.
document.body.contains will work in IE, Chrome, and Firefox however will not work on SVG only documents.
document.documentElement.contains appears to work for all variations.

8 years agoChanged document.contains to document.body.contains
snydesc [Tue, 24 May 2016 21:52:44 +0000 (17:52 -0400)]
Changed document.contains to document.body.contains

 The document object in IE does not have the contains function  as a method.  This can cause a stack overflow as you can get stuck in an endless try catch loop.   document.body.contains will work in IE, Firefox, and Chrome and will resolve this issue.

8 years agofix donate button
Ulrich-Matthias Schäfer [Mon, 16 May 2016 18:31:35 +0000 (20:31 +0200)]
fix donate button

8 years agoadded donate button
Ulrich-Matthias Schäfer [Mon, 16 May 2016 18:19:49 +0000 (20:19 +0200)]
added donate button

8 years agofixed line constructor which doesn't work with Array as input (#487)
Ulrich-Matthias Schäfer [Mon, 16 May 2016 15:00:02 +0000 (17:00 +0200)]
fixed line constructor which doesn't work with Array as input (#487)

added spec for mentioned issue

8 years agofixed bbox when element is not in the dom (#480), added parameter to `clone`
Ulrich-Matthias Schäfer [Fri, 13 May 2016 12:03:10 +0000 (14:03 +0200)]
fixed bbox when element is not in the dom (#480), added parameter to `clone`

8 years agochangelog
Ulrich-Matthias Schäfer [Fri, 13 May 2016 11:37:19 +0000 (13:37 +0200)]
changelog

8 years agofixed string parsing in viewbox (#483), specs `SVG.ViewBox`
Ulrich-Matthias Schäfer [Fri, 13 May 2016 11:32:48 +0000 (13:32 +0200)]
fixed string parsing in viewbox (#483), specs `SVG.ViewBox`

8 years agobump 2.3.1 2.3.1
Ulrich-Matthias Schäfer [Thu, 5 May 2016 13:39:39 +0000 (15:39 +0200)]
bump 2.3.1

8 years agofixed bug in `parse()` from `SVG.PathArray` which does not correctly handled `S`...
Ulrich-Matthias Schäfer [Thu, 5 May 2016 13:38:21 +0000 (15:38 +0200)]
fixed bug in `parse()` from `SVG.PathArray` which does not correctly handled `S` and `T` (#485)

8 years agofixed bug in `add()` and `SVG.Doc().create()`
Ulrich-Matthias Schäfer [Fri, 15 Apr 2016 17:53:58 +0000 (19:53 +0200)]
fixed bug in `add()` and `SVG.Doc().create()`

8 years agoMerge pull request #470 from rdfriedl/master
Ulrich-Matthias Schäfer [Sat, 9 Apr 2016 22:41:39 +0000 (00:41 +0200)]
Merge pull request #470 from rdfriedl/master

added svg.js.d.ts

8 years agofixed bug where `stop(true)` throws an error when element is not animated (#475)
Ulrich-Matthias Schäfer [Sat, 9 Apr 2016 16:30:27 +0000 (18:30 +0200)]
fixed bug where `stop(true)` throws an error when element is not animated (#475)

8 years agofixed old target references
Ulrich-Matthias Schäfer [Sat, 9 Apr 2016 16:06:24 +0000 (18:06 +0200)]
fixed old target references

8 years agofixed `SVG.morph()` (#473)
Ulrich-Matthias Schäfer [Sun, 3 Apr 2016 11:11:41 +0000 (13:11 +0200)]
fixed `SVG.morph()` (#473)

8 years agodoublecheck SVG.parser, use svg element which is not in the dom (#471)
Ulrich-Matthias Schäfer [Fri, 1 Apr 2016 22:38:27 +0000 (00:38 +0200)]
doublecheck SVG.parser, use svg element which is not in the dom (#471)

8 years agofix parser error (#471) and small bug in SVG.Color with new fx
Ulrich-Matthias Schäfer [Fri, 1 Apr 2016 21:57:02 +0000 (23:57 +0200)]
fix parser error (#471) and small bug in SVG.Color with new fx

8 years agoadded definition for SVG.prepare 470/head
rdfriedl [Fri, 1 Apr 2016 17:31:07 +0000 (12:31 -0500)]
added definition for SVG.prepare

8 years agoadded svg.js.d.ts
rdfriedl [Fri, 1 Apr 2016 01:57:05 +0000 (20:57 -0500)]
added svg.js.d.ts

8 years agobump 2.3.0 2.3.0
Ulrich-Matthias Schäfer [Tue, 29 Mar 2016 23:19:27 +0000 (01:19 +0200)]
bump 2.3.0

8 years agoreadme update, clean up
Ulrich-Matthias Schäfer [Tue, 29 Mar 2016 10:19:05 +0000 (12:19 +0200)]
readme update, clean up

8 years agotidy up
Ulrich-Matthias Schäfer [Mon, 28 Mar 2016 15:50:19 +0000 (17:50 +0200)]
tidy up

8 years agofix finishing up correctly with even loops, readme
Ulrich-Matthias Schäfer [Mon, 28 Mar 2016 15:49:08 +0000 (17:49 +0200)]
fix finishing up correctly with even loops, readme

8 years agoEmail address fix
wout [Mon, 28 Mar 2016 16:53:57 +0000 (18:53 +0200)]
Email address fix

8 years agodiscard totalProgress for now
Ulrich-Matthias Schäfer [Mon, 28 Mar 2016 15:25:15 +0000 (17:25 +0200)]
discard totalProgress for now

8 years agorevert multiple breaking changes introduced by the last commits
Ulrich-Matthias Schäfer [Mon, 28 Mar 2016 15:18:40 +0000 (17:18 +0200)]
revert multiple breaking changes introduced by the last commits

8 years agoUpdate Readme, still not done
Ulrich-Matthias Schäfer [Thu, 24 Mar 2016 23:27:11 +0000 (00:27 +0100)]
Update Readme, still not done

8 years agofixed bug where loop wasnt correctly reversed if specified
Ulrich-Matthias Schäfer [Thu, 24 Mar 2016 23:03:31 +0000 (00:03 +0100)]
fixed bug where loop wasnt correctly reversed if specified

8 years agoMerge branch '3.0.0' introducing several changes:
Ulrich-Matthias Schäfer [Thu, 24 Mar 2016 22:44:59 +0000 (23:44 +0100)]
Merge branch '3.0.0' introducing several changes:

 - textpath now is a parent element, the lines method of text will return the tspans inside the textpath (#450)
 - fx module rewritten to support animation chaining and several other stuff (see docs when commited)
 - fixed absolute transformation animations (not perfect but better)
 - fixed event listeners which didnt work correctly when identic funtions used
 - added `element.is()` which helps to check for the object instance faster (instanceof check)
 - added more fx specs

8 years agoMerge branch 'master' into 3.0.0
Ulrich-Matthias Schäfer [Thu, 24 Mar 2016 22:14:30 +0000 (23:14 +0100)]
Merge branch 'master' into 3.0.0

8 years agofix lines function for textpath and make textpath a parent element
Ulrich-Matthias Schäfer [Wed, 23 Mar 2016 21:50:58 +0000 (22:50 +0100)]
fix lines function for textpath and make textpath a parent element

8 years agoImplementation new fx module
Ulrich-Matthias Schäfer [Wed, 23 Mar 2016 21:50:30 +0000 (22:50 +0100)]
Implementation new fx module

8 years agoupdated jasmine and specs
Ulrich-Matthias Schäfer [Wed, 23 Mar 2016 21:49:18 +0000 (22:49 +0100)]
updated jasmine and specs

8 years agoRemoved references to old test page
wout [Mon, 14 Mar 2016 07:38:57 +0000 (08:38 +0100)]
Removed references to old test page

8 years agomake the animate method compatible to v2 again
Ulrich-Matthias Schäfer [Mon, 15 Feb 2016 22:11:50 +0000 (23:11 +0100)]
make the animate method compatible to v2 again

8 years agoMerge branch 'master' into 3.0.0
Ulrich-Matthias Schäfer [Wed, 10 Feb 2016 20:23:48 +0000 (21:23 +0100)]
Merge branch 'master' into 3.0.0

8 years agofixed error where a parent node is not found when loading an image but the canvas...
Ulrich-Matthias Schäfer [Wed, 10 Feb 2016 20:17:58 +0000 (21:17 +0100)]
fixed error where a parent node is not found when loading an image but the canvas was cleared (#447)

8 years agoMerge pull request #447 from assembler/patch-1
Ulrich-Matthias Schäfer [Wed, 10 Feb 2016 20:12:36 +0000 (21:12 +0100)]
Merge pull request #447 from assembler/patch-1

Uncaught TypeError: Cannot read property 'node' of null

8 years agochangelog for last commit
Ulrich-Matthias Schäfer [Fri, 22 Jan 2016 23:35:20 +0000 (00:35 +0100)]
changelog for last commit

8 years agofixed unit unit regex and renamed it to numberAndUnit, added specs (fix #443)
Ulrich-Matthias Schäfer [Fri, 22 Jan 2016 23:24:57 +0000 (00:24 +0100)]
fixed unit unit regex and renamed it to numberAndUnit, added specs (fix #443)

8 years agoUpdate element.js 447/head
Milovan Zogovic [Fri, 22 Jan 2016 13:32:51 +0000 (14:32 +0100)]
Update element.js

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.

8 years agofixed `svgjs:data` attribute which was not set properly in all browsers (#428)
Ulrich-Matthias Schäfer [Thu, 21 Jan 2016 16:40:13 +0000 (17:40 +0100)]
fixed `svgjs:data` attribute which was not set properly in all browsers (#428)

added specs for `writeDataToDom()` and `setData()`
added toJSON in SVG.Number

8 years agoadded `point()` to readme
Ulrich-Matthias Schäfer [Tue, 19 Jan 2016 21:57:47 +0000 (22:57 +0100)]
added `point()` to readme

8 years agoadded specs for `isNumber()` and compile svg.js
Ulrich-Matthias Schäfer [Sun, 17 Jan 2016 23:40:16 +0000 (00:40 +0100)]
added specs for `isNumber()` and compile svg.js

8 years agoMerge pull request #444 from snowyplover/patch-1
Ulrich-Matthias Schäfer [Sun, 17 Jan 2016 18:14:17 +0000 (19:14 +0100)]
Merge pull request #444 from snowyplover/patch-1

Fix regex for isNumber

8 years agoMerge pull request #442 from akauppi/readme-fix
Ulrich-Matthias Schäfer [Sun, 17 Jan 2016 18:00:27 +0000 (19:00 +0100)]
Merge pull request #442 from akauppi/readme-fix

commentary fix; circle and ellipse sample code referred to 'rect'

8 years agoFix regex for isNumber 444/head
snowyplover [Sun, 17 Jan 2016 09:40:56 +0000 (01:40 -0800)]
Fix regex for isNumber

Description of necessary functionality for a regex that matches Javascript numbers found in Eloquent Javascript, (Ch 9, last exercise). See: http://eloquentjavascript.net/09_regexp.html#h_izldJoT3uv

8 years agocommentary fix; circle and ellipse sample code 442/head
Asko Kauppi [Sat, 16 Jan 2016 20:27:59 +0000 (22:27 +0200)]
commentary fix; circle and ellipse sample code

8 years agoadded SVG.Point class as wrapper for SVGPoint, added `el.point()` method (#403 /...
Ulrich-Matthias Schäfer [Mon, 11 Jan 2016 22:39:49 +0000 (23:39 +0100)]
added SVG.Point class as wrapper for SVGPoint, added `el.point()` method (#403 / #437)

8 years agobump 2.2.5 2.2.5
Ulrich-Matthias Schäfer [Tue, 29 Dec 2015 12:17:32 +0000 (13:17 +0100)]
bump 2.2.5

8 years ago`matrixify()` will not apply the calculated matrix to the node anymore
Ulrich-Matthias Schäfer [Tue, 29 Dec 2015 12:16:05 +0000 (13:16 +0100)]
`matrixify()` will not apply the calculated matrix to the node anymore

8 years agoMerge pull request #434 from makarti/x-and-y-methods-string-parameter-issue
Ulrich-Matthias Schäfer [Tue, 29 Dec 2015 11:49:35 +0000 (12:49 +0100)]
Merge pull request #434 from makarti/x-and-y-methods-string-parameter-issue

fix #433

8 years agofix #433 434/head
Denis Mosolov [Tue, 29 Dec 2015 11:19:54 +0000 (14:19 +0300)]
fix #433

8 years agoMerge branch 'master' into 3.0.0
Ulrich-Matthias Schäfer [Wed, 23 Dec 2015 18:10:17 +0000 (19:10 +0100)]
Merge branch 'master' into 3.0.0

8 years agoadded check for existence of node (fix #431)
Ulrich-Matthias Schäfer [Wed, 23 Dec 2015 18:06:46 +0000 (19:06 +0100)]
added check for existence of node (fix #431)

8 years agorelative movements, delayed (queued) start of animation
Ulrich-Matthias Schäfer [Wed, 23 Dec 2015 18:02:05 +0000 (19:02 +0100)]
relative movements, delayed (queued) start of animation

8 years agotransformation with correct rotation, fixed Color animation
Ulrich-Matthias Schäfer [Mon, 21 Dec 2015 17:37:10 +0000 (18:37 +0100)]
transformation with correct rotation, fixed Color animation

8 years agonew specs, reverse, initAnimation, after, during, comments
Ulrich-Matthias Schäfer [Sun, 20 Dec 2015 14:43:40 +0000 (15:43 +0100)]
new specs, reverse, initAnimation, after, during, comments

8 years agoadded all fx methods, styles and attrs
Ulrich-Matthias Schäfer [Wed, 16 Dec 2015 00:54:53 +0000 (01:54 +0100)]
added all fx methods, styles and attrs

8 years agoadded once and during
Ulrich-Matthias Schäfer [Sun, 13 Dec 2015 20:41:13 +0000 (21:41 +0100)]
added once and during

8 years agonew fx with enqueue method and dedicated SVG.Situation
Ulrich-Matthias Schäfer [Sat, 12 Dec 2015 23:51:44 +0000 (00:51 +0100)]
new fx with enqueue method and dedicated SVG.Situation

8 years agosmall change in fx specs
Ulrich-Matthias Schäfer [Wed, 18 Nov 2015 13:35:01 +0000 (14:35 +0100)]
small change in fx specs

8 years agoadded new provisionally specs for fx
Ulrich-Matthias Schäfer [Sun, 15 Nov 2015 20:57:31 +0000 (21:57 +0100)]
added new provisionally specs for fx

8 years agobump 2.2.4 2.2.4
Ulrich-Matthias Schäfer [Fri, 11 Dec 2015 23:53:47 +0000 (00:53 +0100)]
bump 2.2.4

8 years agoupdated changelog, fixed typo in doc and removed semicolon
Ulrich-Matthias Schäfer [Fri, 11 Dec 2015 23:52:26 +0000 (00:52 +0100)]
updated changelog, fixed typo in doc and removed semicolon

8 years agoMerge pull request #430 from rdfriedl/master
Ulrich-Matthias Schäfer [Fri, 11 Dec 2015 15:30:37 +0000 (16:30 +0100)]
Merge pull request #430 from rdfriedl/master

fixes for issue #429

8 years agofixes for issue #429 430/head
rdfriedl [Fri, 11 Dec 2015 15:21:58 +0000 (09:21 -0600)]
fixes for issue #429

8 years agoMerge pull request #426 from jcvandan/master
Ulrich-Matthias Schäfer [Thu, 10 Dec 2015 17:05:05 +0000 (18:05 +0100)]
Merge pull request #426 from jcvandan/master

Replaced usage of window.scrollX with window.pageXOffset

8 years agoreplaced usage of window.scrollX and window.scrollY with standard window.pageXOffset... 426/head
Dan Ormisher [Tue, 8 Dec 2015 13:54:12 +0000 (13:54 +0000)]
replaced usage of window.scrollX and window.scrollY with standard window.pageXOffset and window.pageYOffset in rbox() to stop NaN bug in IE

8 years agotransform() returnw a-f now, too, double newlines create blank lines
Ulrich-Matthias Schäfer [Fri, 4 Dec 2015 17:05:22 +0000 (18:05 +0100)]
transform() returnw a-f now, too, double newlines create blank lines

8 years agobump 2.2.3 2.2.3
Ulrich-Matthias Schäfer [Mon, 30 Nov 2015 21:47:13 +0000 (22:47 +0100)]
bump 2.2.3

8 years agofix amd loader (see #412)
Ulrich-Matthias Schäfer [Mon, 30 Nov 2015 21:43:23 +0000 (22:43 +0100)]
fix amd loader (see #412)

8 years agofixed bug related to the new path parser, text-method of tspan is a getter now, too
Ulrich-Matthias Schäfer [Mon, 30 Nov 2015 21:20:07 +0000 (22:20 +0100)]
fixed bug related to the new path parser, text-method of tspan is a getter now, too

8 years agofixes the null check fix from last commit (fixes #417)
Ulrich-Matthias Schäfer [Sat, 28 Nov 2015 23:25:20 +0000 (00:25 +0100)]
fixes the null check fix from last commit (fixes #417)

8 years agobump 2.2.2 2.2.2
Ulrich-Matthias Schäfer [Sat, 28 Nov 2015 10:38:26 +0000 (11:38 +0100)]
bump 2.2.2

8 years agoadded null check in image onload callback (fixes #415)
Ulrich-Matthias Schäfer [Sat, 28 Nov 2015 10:28:28 +0000 (11:28 +0100)]
added null check in image onload callback (fixes #415)

8 years agofix leading point bug in path parsing (#416)
Ulrich-Matthias Schäfer [Sat, 28 Nov 2015 10:21:07 +0000 (11:21 +0100)]
fix leading point bug in path parsing (#416)

9 years agoMerge pull request #407 from snowyplover/patch-1
Ulrich-Matthias Schäfer [Mon, 23 Nov 2015 14:37:14 +0000 (15:37 +0100)]
Merge pull request #407 from snowyplover/patch-1

Reorganize and clarify documentation

9 years agoREADME.md - category edits 407/head
snowyplover [Fri, 20 Nov 2015 12:42:21 +0000 (04:42 -0800)]
README.md - category edits

The note for "Size and position" has been edited for consistency.

The category "Altering the element tree" has been renamed "Document tree manipulations".

The `transform()`, `rotate()`, `skew()`, `scale()`, and `translate()` methods have been given their own category: "Transforms".

9 years agogulp 2.2.1
Ulrich-Matthias Schäfer [Wed, 18 Nov 2015 13:43:17 +0000 (14:43 +0100)]
gulp

9 years agobump 2.2.1
Ulrich-Matthias Schäfer [Wed, 18 Nov 2015 13:41:37 +0000 (14:41 +0100)]
bump 2.2.1

9 years agoadded `gbox()` to group to get bbox with translation included (fixes #405)
Ulrich-Matthias Schäfer [Wed, 18 Nov 2015 13:38:33 +0000 (14:38 +0100)]
added `gbox()` to group to get bbox with translation included (fixes #405)

9 years agoupdated changelog
Ulrich-Matthias Schäfer [Wed, 18 Nov 2015 00:20:36 +0000 (01:20 +0100)]
updated changelog

9 years agodom data was not cleaned up properly (fixes #398)
Ulrich-Matthias Schäfer [Wed, 18 Nov 2015 00:18:35 +0000 (01:18 +0100)]
dom data was not cleaned up properly (fixes #398)

9 years ago`SvgPathSeg` is removed in Chrome 48. Added workaround (fixes #409)
Ulrich-Matthias Schäfer [Wed, 18 Nov 2015 00:16:41 +0000 (01:16 +0100)]
`SvgPathSeg` is removed in Chrome 48. Added workaround (fixes #409)

9 years agoMove "Syntax sugar", transform() methods
snowyplover [Tue, 17 Nov 2015 10:47:13 +0000 (02:47 -0800)]
Move "Syntax sugar", transform() methods

The "Transforming elements" section has been renamed "Size and position".

The `transform()` method has been moved to the "Geometry" section.

The "Syntax sugar" section has been broken up and removed:
* `radius()` has been moved to "Size and position" (and has been edited for completeness and clarity)
* `fill()`, `stroke()`, and `opacity()` have been moved to "Attributes and styles"
* `rotate()`, `skew()`, `scale()`, and `translate()` have been grouped with `transform()` under "Geometry"

9 years agoFix description of toParent()
snowyplover [Sun, 15 Nov 2015 13:58:06 +0000 (05:58 -0800)]
Fix description of toParent()

9 years agoReorganize and clarify documentation
snowyplover [Sun, 15 Nov 2015 13:54:36 +0000 (05:54 -0800)]
Reorganize and clarify documentation

The 'Manipulating elements, 'Attribute references', and 'Inserting elements' sections of the documentation are reorganized. 'Manipulating elements' has been broken up into 4 sections:

* Attributes and styles
* Classes
* Transforming elements
* Altering the element tree

The 'Attribute references' section is folded into 'Attributes and styles', and the 'Inserting elements' section is folded into 'Altering the element tree'.

Some general information about positioning methods has been added/moved to a note at the beginning of the 'Transforming elements' section.

Many of the method descriptions in these sections have been edited for clarity, and a few typos have been fixed.

9 years agoFix formatting mistake
snowyplover [Thu, 12 Nov 2015 07:49:10 +0000 (23:49 -0800)]
Fix formatting mistake

9 years agoUpdate center, cx, cy; add usage notes for invent
snowyplover [Thu, 12 Nov 2015 07:18:52 +0000 (23:18 -0800)]
Update center, cx, cy; add usage notes for invent

Warnings are added to the center, cx, and cy method descriptions noting that these methods only work on elements defined in user coordinates.

More details are added to the description of SVG.invent, and the terminology of its configuration object is clarified.

9 years agoMerge pull request #404 from Unihedro/patch-2
Ulrich-Matthias Schäfer [Wed, 11 Nov 2015 22:34:39 +0000 (23:34 +0100)]
Merge pull request #404 from Unihedro/patch-2

Annotate double quotes as double quotes

9 years agoAnnotate double quotes as double quotes 404/head
Unihedron [Tue, 10 Nov 2015 17:21:11 +0000 (01:21 +0800)]
Annotate double quotes as double quotes

9 years agoadded screenbox plugin to readme
Ulrich-Matthias Schäfer [Sat, 7 Nov 2015 02:06:09 +0000 (03:06 +0100)]
added screenbox plugin to readme

9 years agoBump to 2.2.0 2.2.0
Ulrich-Matthias Schäfer [Fri, 6 Nov 2015 22:08:57 +0000 (23:08 +0100)]
Bump to 2.2.0

9 years agotab to space, block comments to line comments
Ulrich-Matthias Schäfer [Fri, 6 Nov 2015 21:28:20 +0000 (22:28 +0100)]
tab to space, block comments to line comments

9 years agosvgjs now saves crucial data in the dom (fixes #369 again)
Ulrich-Matthias Schäfer [Fri, 6 Nov 2015 21:08:38 +0000 (22:08 +0100)]
svgjs now saves crucial data in the dom (fixes #369 again)

9 years agoreadme
Ulrich-Matthias Schäfer [Fri, 6 Nov 2015 13:19:58 +0000 (14:19 +0100)]
readme

9 years agofixes #396
Ulrich-Matthias Schäfer [Wed, 4 Nov 2015 09:51:18 +0000 (10:51 +0100)]
fixes #396

9 years agofixed return value of `text()` after import/clone (#393)
Ulrich-Matthias Schäfer [Wed, 4 Nov 2015 01:43:53 +0000 (02:43 +0100)]
fixed return value of `text()` after import/clone (#393)