SVG: Some renaming omitted in previous commit.

This commit is contained in:
Jürg Lehni 2016-02-01 12:52:50 +01:00
parent af5984747f
commit 1c4ff31e6c
3 changed files with 4 additions and 4 deletions

View file

@ -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');

View file

@ -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 {