mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Rearrange exporter sequence.
This commit is contained in:
parent
7c1e10e35e
commit
6e91d2ac9b
1 changed files with 8 additions and 8 deletions
|
@ -197,12 +197,6 @@ new function() {
|
|||
return createElement('image', attrs);
|
||||
}
|
||||
|
||||
function exportText(item) {
|
||||
var node = createElement('text', getTransform(item, true));
|
||||
node.textContent = item._content;
|
||||
return node;
|
||||
}
|
||||
|
||||
function exportPath(item) {
|
||||
var segments = item._segments,
|
||||
center = item.getPosition(true),
|
||||
|
@ -387,14 +381,20 @@ new function() {
|
|||
return 'url(#' + gradientNode.id + ')';
|
||||
}
|
||||
|
||||
function exportText(item) {
|
||||
var node = createElement('text', getTransform(item, true));
|
||||
node.textContent = item._content;
|
||||
return node;
|
||||
}
|
||||
|
||||
var exporters = {
|
||||
group: exportGroup,
|
||||
layer: exportGroup,
|
||||
raster: exportRaster,
|
||||
path: exportPath,
|
||||
'point-text': exportText,
|
||||
'compound-path': exportCompoundPath,
|
||||
'placed-symbol': exportPlacedSymbol,
|
||||
'compound-path': exportCompoundPath
|
||||
'point-text': exportText
|
||||
};
|
||||
|
||||
function applyStyle(item, node) {
|
||||
|
|
Loading…
Reference in a new issue