Commit Graph

269 Commits (b54624a11b5eb9c174c9d2c0cb7632f76e48a096)

Author SHA1 Message Date
Michael Tiller b54624a11b 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-03-23 08:59:50 -04:00
cjgammon f94872941f banner ad demo added 2014-02-12 10:33:52 -08:00
Dmitry Baranovskiy 4d9fd5ef7a Merge 2013-12-23 12:27:58 +11:00
Dmitry Baranovskiy b591b3b0a7 Merge branch 'dev' of https://github.com/adobe-webplatform/Snap.svg into dev 2013-12-23 12:27:10 +11:00
Dmitry Baranovskiy 5ff0d9bd4d Added support for text path 2013-12-23 12:26:40 +11:00
Dmitry Baranovskiy eb6a978ab1 Merge pull request #130 from throrin19/patch-data
elem.data() return all data if no params were bounds
2013-12-19 17:02:33 -08:00
Dmitry Baranovskiy 57dbdddf73 Merge pull request #146 from throrin19/patch-node
fix null error if element defs not exist.
2013-12-19 17:01:46 -08:00
Dmitry Baranovskiy f7acae905f Merge pull request #150 from herschel666/ek-fluent-interface
enabling fluent-interface for `group.add`
2013-12-17 03:30:01 -08:00
Emanuel Kluge 4d02d7c1a1 enabling fluent-interface for `group.add` 2013-12-17 11:42:57 +01:00
Benjamin Besse 2538ee19b1 fix null error if element defs not exist. 2013-12-12 14:05:36 +01:00
Benjamin Besse ea53281607 Merge pull request #1 from adobe-webplatform/dev
Dev
2013-11-28 02:03:03 -08:00
Dmitry Baranovskiy c3134f596b Merge pull request #98 from jakeswenson/dev
fix issues with transformation parsing and issues with touch items when ...
2013-11-26 22:09:32 -08:00
Dmitry Baranovskiy aa6be97f60 Added line to getbbox primitives 2013-11-27 13:20:50 +11:00
Dmitry Baranovskiy e2fdaaf12e Fix for marker and pattern values treating. Fix for #102 & #133 2013-11-27 12:53:33 +11:00
Dmitry Baranovskiy d6fc9070c5 A bit more precise handling of group array-like possibilities. #94 2013-11-26 18:46:13 +11:00
Benjamin Besse 46899ad251 + elem.data() return all data if no params were bounds 2013-11-25 11:02:19 +01:00
Dmitry Baranovskiy 9fa23f0f95 Animation of SVG transformations, matrices and polygon points 2013-11-25 12:00:34 +11:00
Dmitry Baranovskiy 19f9b2d561 Merge pull request #129 from throrin19/patch-1
@ fix bug for transform="translate(x)"
2013-11-21 03:19:08 -08:00
Dmitry Baranovskiy 5784381a9f Added outerSVG as an alias toString 2013-11-21 22:18:25 +11:00
Benjamin Besse 03319cedd4 @ fix bug for transform="translate(x)"
if element has transform="translate(5)", snap.svg ignore that but it works and it's possible on transform attribute.
2013-11-21 11:15:09 +01:00
Dmitry Baranovskiy 8302edf2a1 Fix for #97 2013-11-21 11:39:33 +11:00
Dmitry Baranovskiy 1ae1f20d48 Fix for bug #111 2013-11-20 18:07:47 +11:00
Dmitry Baranovskiy 74cbaf763b Fix for #117 2013-11-20 12:29:50 +11:00
Dmitry Baranovskiy 913d1d578b Fix for #122 and added Set.remove() method 2013-11-20 11:42:25 +11:00
Dmitry Baranovskiy 4396f201bd Accidently reverted ast pull request merge 2013-11-19 18:31:04 +11:00
Dmitry Baranovskiy b324696ef0 Fix for #123 2013-11-19 18:03:38 +11:00
Dmitry Baranovskiy c2a42eef50 Merge branch 'dev' of https://github.com/adobe-webplatform/Snap.svg into dev 2013-11-18 23:02:22 +11:00
Dmitry Baranovskiy 3c81659909 Fix for bug #25 & #110 2013-11-18 23:02:11 +11:00
Dmitry Baranovskiy 5d66163ef5 Merge pull request #119 from sbking/sbking
Added Element.appendTo() and Element.prependTo()
2013-11-18 03:55:31 -08:00
Stephen King 38af3ec9f1 Added Element.appendTo() and Element.prependTo() 2013-11-18 01:03:26 -08:00
Dmitry Baranovskiy 12e519f2e2 Fix for bugs #95, #116, #103 2013-11-18 14:44:45 +11:00
Dmitry Baranovskiy c60429c1b7 Restore elemental removal. For attr() moved from white list to black list strategy 2013-11-18 11:17:17 +11:00
Dmitry Baranovskiy 4e1abf8714 Updated to the new version of dr.js. Now with templates 2013-11-18 11:16:23 +11:00
Jake Swenson 01c9adc5bf fix issues with transformation parsing and issues with touch items when touch is applied to a parent element 2013-11-06 22:19:52 -08:00
Dmitry Baranovskiy e217a1ee83 Merge pull request #96 from oslego/fix-docs
fix typos and tenses in tutorial
2013-11-05 16:13:22 -08:00
Razvan Caliman 79162b126b fix typos and tenses in tutorial 2013-11-05 13:45:43 +00:00
Dmitry Baranovskiy a5d8368e6b Fix for bug #78 2013-10-30 11:18:42 +11:00
Dmitry Baranovskiy 99f10966ea Moved docs from dist/ to doc/ 2013-10-29 12:13:58 +11:00
Dmitry Baranovskiy 5c9b7fd7b2 Bumped up version 2013-10-25 15:53:28 -07:00
Dmitry Baranovskiy 6f4f847659 Fix for bug #67 2013-10-25 15:53:09 -07:00
Dmitry Baranovskiy b8c2751557 Added json files for Bower and Component. Published on NPM and Bower. bug #51 2013-10-25 15:42:35 -07:00
Dmitry Baranovskiy d865bf0810 Getting rid of elemental.js. Fix for issue #50 2013-10-25 13:59:41 -07:00
Dmitry Baranovskiy 36958d25c2 Added statement regarding DEV branch into README 2013-10-25 13:54:02 -07:00
Dmitry Baranovskiy 6b92046ebd Merge pull request #68 from subzey/feature/is-finite
Use native isFinite method to detect NaN and Infinities
2013-10-25 13:37:35 -07:00
Dmitry Baranovskiy f596064e26 Merge pull request #59 from subzey/feature/date-now
Use Date.now when possible
2013-10-25 13:22:06 -07:00
Anton Khlynovskiy 013c92fc0f Use native isFinite method to detect NaN and Infinities 2013-10-25 17:24:59 +04:00
Dmitry Baranovskiy c367ff2d19 Merge pull request #56 from vmx/readme-typo-fix
Fixed typo in README
2013-10-24 14:31:16 -07:00
Anton Khlynovskiy 3e4318395b Use Date.now when possible 2013-10-24 11:45:23 +04:00
Volker Mische 9cd2b0325a Fixed typo in README 2013-10-23 18:01:42 -07:00
Christian Cantrell d487c73ce8 Fixed CLA link 2013-10-23 13:53:23 -07:00