mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
SVG: Some renaming omitted in previous commit.
This commit is contained in:
parent
af5984747f
commit
1c4ff31e6c
3 changed files with 4 additions and 4 deletions
|
@ -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');
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue