mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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) {
|
/*#*/ if (__options.svg) {
|
||||||
/*#*/ include('svg/SvgNode.js');
|
/*#*/ include('svg/SvgElement.js');
|
||||||
/*#*/ include('svg/SvgStyles.js');
|
/*#*/ include('svg/SvgStyles.js');
|
||||||
/*#*/ include('svg/SvgExport.js');
|
/*#*/ include('svg/SvgExport.js');
|
||||||
/*#*/ include('svg/SvgImport.js');
|
/*#*/ include('svg/SvgImport.js');
|
||||||
|
|
|
@ -61,16 +61,16 @@ new function() {
|
||||||
function exportGroup(item, options) {
|
function exportGroup(item, options) {
|
||||||
var attrs = getTransform(item._matrix),
|
var attrs = getTransform(item._matrix),
|
||||||
children = item._children;
|
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++) {
|
for (var i = 0, l = children.length; i < l; i++) {
|
||||||
var child = children[i];
|
var child = children[i];
|
||||||
var childNode = exportSVG(child, options);
|
var childNode = exportSVG(child, options);
|
||||||
if (childNode) {
|
if (childNode) {
|
||||||
if (child.isClipMask()) {
|
if (child.isClipMask()) {
|
||||||
var clip = SvgNode.create('clipPath');
|
var clip = SvgElement.create('clipPath');
|
||||||
clip.appendChild(childNode);
|
clip.appendChild(childNode);
|
||||||
setDefinition(child, clip, 'clip');
|
setDefinition(child, clip, 'clip');
|
||||||
SvgNode.set(node, {
|
SvgElement.set(node, {
|
||||||
'clip-path': 'url(#' + clip.id + ')'
|
'clip-path': 'url(#' + clip.id + ')'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue