Commit Graph

202 Commits (c0b0b5805ecb231ff5624ea6351d7e45e5497b8f)

Author SHA1 Message Date
Sam Breed ae835b9f63 explicitly pass the global scope to the SVG iffe
Conflicts:
	src/svg.js
2014-09-16 10:40:44 -05:00
Sam Breed bc7b84b162 adding CommonJS / Browserify support to amd banner 2014-09-16 10:10:09 -05:00
Dmitry Baranovskiy 3dcca7c330 Merge pull request #287 from voithos/transform-animate-bug
Fix regression from v0.2.0 when animating transforms
2014-08-25 16:54:39 +10:00
baranovs 1c608e67da Fix for pattern methods 2014-08-25 16:52:37 +10:00
Zaven Muradyan 383aa9a621 Fix regression from v0.2.0 when animating transforms 2014-08-24 19:28:07 -07:00
baranovs 59e4a15cda Added toDataURL() methods to paper and element. Extracted element methods as module. 2014-08-13 22:46:40 +10:00
baranovs 28b7a7a753 Fixed #196 2014-08-05 10:12:05 +10:00
baranovs 70916007ae Fixed issue with parse in IE 2014-08-05 09:52:27 +10:00
baranovs 5c2f9a6aa7 Fix for Paper.use and new method Paper.symbol 2014-08-04 21:22:04 +10:00
baranovs 1ccc381f32 Fixed bug with clipPath having id and paper.use 2014-08-04 08:59:28 +10:00
baranovs 9ff4c3f0df Merge remote-tracking branch 'origin/dev' into dev 2014-07-31 18:39:33 +10:00
baranovs 728fc208f2 Fixed #280 2014-07-31 18:37:34 +10:00
Dmitry Baranovskiy dae5337e7f Moved class methods in to separate module and added docs for them 2014-06-13 13:48:24 +10:00
Dmitry Baranovskiy e2a8156f34 Typo in dr.js comments 2014-06-05 21:56:10 +10:00
Carles Codony 542c41aaa2 Element.transform().toString() fix attempt
Sometimes calling .transform().toString() returns an object, instead of a string.

elproto._.transform gets assigned to the toString() property of the transform() return value,
but this value is an object.

Sample case:
http://jsfiddle.net/bitblitter/hUWT7/3/
2014-05-31 13:35:25 +02:00
Dmitry Baranovskiy 25fdc9f477 Fix for #88 2014-05-29 08:58:58 -07:00
Dmitry Baranovskiy 2a4a76e016 Fix for bug #252 2014-05-28 13:29:35 -07:00
Dmitry Baranovskiy 5850f162d9 Fix for getScroll 2014-05-27 06:57:03 -07:00
Dmitry Baranovskiy 499193a51f Fixed bug in mouse handler and update tests 2014-05-25 17:52:40 +10:00
Dmitry Baranovskiy ddcb2a3430 Playing with precision in path intersection. 2014-05-23 21:36:04 +10:00
Dmitry Baranovskiy fb9c60849c Avoid referencing document absolutely 2014-05-23 21:35:35 +10:00
Dmitry Baranovskiy 8d75bb4881 Added new method `Snap.matrix()` 2014-05-23 21:04:33 +10:00
Dmitry Baranovskiy 73ec9f0b53 Upgrade eve. 2014-05-23 21:04:33 +10:00
Dmitry Baranovskiy 28119905a5 Merge pull request #245 from dcjones/dev
Correctly check for undefined in getScroll. Fixes #219
2014-05-23 21:01:02 +10:00
Dmitry Baranovskiy 71ad308027 Fix for #248 2014-05-22 12:23:30 +10:00
Dmitry Baranovskiy b92dcb5af5 unit2px and getBBox fix
Fix for Firefox bug when getBBox throws an exception.
2014-05-21 12:38:18 +10:00
Dmitry Baranovskiy c1e8a98db9 Fix for use getBBox() 2014-05-20 18:22:26 +10:00
Daniel Jones 78bf554eb2 Correctly check for undefined in getScroll. Fixes #219 2014-05-15 22:48:22 -07:00
Dmitry Baranovskiy 8c0a7dc0a4 Fix for mask being passed to `.attr()` method. 2014-05-16 12:30:49 +10:00
Dmitry Baranovskiy 20adda5829 Fix for prepend of set. Keeping order intact. 2014-05-16 11:15:29 +10:00
Dmitry Baranovskiy d1f8db5f6e Fix for error when getting attribute "points" 🔨
bug #239
2014-05-15 17:08:19 +10:00
Dmitry Baranovskiy d7e1f819bb Prepend accepts set 🔨
Fix for #244
2014-05-15 17:04:05 +10:00
Dmitry Baranovskiy 5296fa16a0 Mistype in pattern code fix 2014-05-15 16:58:29 +10:00
Dmitry Baranovskiy d2b729cd16 Prefixed values
Added ability to specify attributes as `"+=10"` or `"-=1em"` or `"*=2"`
Bug #243.
2014-05-15 16:58:04 +10:00
Dmitry Baranovskiy 48a5f6ae79 Added docs to `animateEach` 2014-05-13 00:10:07 +10:00
Dmitry Baranovskiy c96be4e66a Fix for missed `gradient` reference. 2014-05-12 16:47:29 +10:00
Dmitry Baranovskiy f39b99ee06 Added garbage collector to clear the hub.
Fix for bug #241
2014-05-08 14:21:19 +10:00
Dmitry Baranovskiy f5d9ff5bb7 Formatting clean up after merging pull request. 2014-05-08 10:33:20 +10:00
Michael Tiller 985d3dec10 Adding a way to specify how attributes are bound on Set objects
This commit is backward compatible with previous versions but adds a new option for handling
attribute applications on Set objects.  The normal behavior (of applying the attribute
to all elements in the set) is preserved unless the developer explicitly defines how
the attribute should be treated.  This relatively simply change allows three useful
cases.  First, the user can specify that an attribute to applied to a specific element.
Second, it allows pseudo-attributes to be defined and applied to a specific element.  Finally,
and most powerfully, it allows the user to specify a function to be called when a given
attribute is set.  That function can, of course, apply the attribute to a number of
different elements.

This commit includes test cases for all these cases.
2014-05-07 08:38:26 -04:00
Dmitry Baranovskiy 88f214e918 Decouple all the things and bug fixes
• extract matrix, attar & paper.js
• fix for transform for sag element
• add Fragment to plugin call
2014-05-07 18:37:05 +10:00
Dmitry Baranovskiy 83100d6f71 Merge pull request #235 from tomconroy/patch-cors
Patch Snap.ajax to allow CORS GET requests
2014-05-06 10:25:44 +10:00
Dmitry Baranovskiy c55f03745d Big commit:
→ Added Paper.mask(), Paper.svg(), Paper.ptrn()
→ getBBox() fix
→ Added Set.animate() and Set.animateEach()
→ mask & pattern are sharing paper methods
→ Added to tranform output total and totalMatrix
→ Added reference of mina in inAnim() method
→ Initial support for <object> tag
2014-05-06 10:13:22 +10:00
Tom Conroy c9c743ab99 Patch Snap.ajax to allow CORS GET requests 2014-04-29 15:33:00 -04:00
Dmitry Baranovskiy 0f466e855d Added new method paper.use() 2014-04-22 19:09:21 +10:00
Dmitry Baranovskiy 3469abf423 Added paper.svg() method 2014-04-22 17:12:11 +10:00
Dmitry Baranovskiy 2b8bcc1be7 Oops, forgotten console.log() 2014-04-22 14:05:04 +10:00
Dmitry Baranovskiy 51afce7824 Fixed tests. Added new tests for class methods. Fix for bug #227 2014-04-22 13:56:47 +10:00
Dmitry Baranovskiy bbc1d4d7f8 Fix for #229 and #207 2014-04-18 10:31:07 +10:00
Dmitry Baranovskiy c58fc82583 Merge pull request #216 from tshinnic/dedupe_group_make
cleanup duplicate code on group Element creation  (not a bug)
2014-03-25 16:02:10 +11:00
Thomas Shinnick 0ed59d7b92 cleanup duplicate code on group Element creation 2014-03-16 21:10:39 -05:00