diff options
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/dist/svg.js b/dist/svg.js index 2a2b22f..55a6e96 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -1,4 +1,4 @@ -/* svg.js v0.36 - svg regex default color array number viewbox bbox rbox element parent container fx event defs group arrange mask clip gradient doc shape use rect ellipse line poly path image text textpath nested hyperlink sugar set memory loader - svgjs.com/license */ +/* svg.js v0.37 - svg regex default color array pointarray number viewbox bbox rbox element parent container fx event defs group arrange mask clip gradient doc shape use rect ellipse line poly path image text textpath nested hyperlink sugar set memory loader - svgjs.com/license */ ;(function() { this.SVG = function(element) { @@ -327,7 +327,8 @@ }) - // Poly points array + + SVG.PointArray = function() { this.constructor.apply(this, arguments) } @@ -433,22 +434,6 @@ } }) - - - - - - - - - - - - - - - - SVG.Number = function(value) { @@ -3030,6 +3015,14 @@ return this } + // Checks if a given element is present in set + , has: function(element) { + return this.members.indexOf(element) >= 0 + } + // Get member at given index + , get: function(i) { + return this.members[i] + } // Default value , valueOf: function() { return this.members |