Fix setCoords for negative width and/or height

Change-Id: I8ddb8ad49325e593bff15396f76623351e2c5de4
Update pattern.class.js

Added hack to support repeat and offset to svg export.
Merge pull request #1786 from asturur/fix-for-pattern-ToSvg

Add some functions to pattern.ToSVG()
Update text.js
Merge pull request #1785 from asturur/fix-filter-box-for-shadows

Fix filter box dimensions for shadows svg export
Update text.js
Merge pull request #1788 from asturur/Some-text-goodies

Some text goodies
Merge pull request #1691 from vamo89/setCoordsBug

Fix setCoords for negative width and/or height
Merge upstream/master