diff --git a/src/paper.js b/src/paper.js index 51c10259..3aa69efb 100644 --- a/src/paper.js +++ b/src/paper.js @@ -111,7 +111,7 @@ var paper = function(window, undefined) { /*#*/ } /*#*/ if (__options.svg) { -/*#*/ include('svg/SvgNode.js'); +/*#*/ include('svg/SvgElement.js'); /*#*/ include('svg/SvgStyles.js'); /*#*/ include('svg/SvgExport.js'); /*#*/ include('svg/SvgImport.js'); diff --git a/src/svg/SvgNode.js b/src/svg/SvgElement.js similarity index 100% rename from src/svg/SvgNode.js rename to src/svg/SvgElement.js diff --git a/src/svg/SvgExport.js b/src/svg/SvgExport.js index 5d81af6f..953c986e 100644 --- a/src/svg/SvgExport.js +++ b/src/svg/SvgExport.js @@ -61,16 +61,16 @@ new function() { function exportGroup(item, options) { var attrs = getTransform(item._matrix), children = item._children; - var node = SvgNode.create('g', attrs, formatter); + var node = SvgElement.create('g', attrs, formatter); for (var i = 0, l = children.length; i < l; i++) { var child = children[i]; var childNode = exportSVG(child, options); if (childNode) { if (child.isClipMask()) { - var clip = SvgNode.create('clipPath'); + var clip = SvgElement.create('clipPath'); clip.appendChild(childNode); setDefinition(child, clip, 'clip'); - SvgNode.set(node, { + SvgElement.set(node, { 'clip-path': 'url(#' + clip.id + ')' }); } else {