mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Solve without using node.children
This commit is contained in:
parent
9b353ba41d
commit
d64edfcf8a
1 changed files with 3 additions and 2 deletions
|
@ -316,8 +316,9 @@ new function() {
|
|||
// Does not support x/y attribute or tspan positioning beyond left justified.
|
||||
var lines = [];
|
||||
var spacing = 1.2;
|
||||
for (var i = 0; i < node.children.length; i++) {
|
||||
var child = node.children[i];
|
||||
for (var i = 0; i < node.childNodes.length; i++) {
|
||||
var child = node.childNodes[i];
|
||||
if (!child.getAttribute) continue;
|
||||
lines.push(child.textContent);
|
||||
var dyString = child.getAttribute('dy');
|
||||
if (dyString) {
|
||||
|
|
Loading…
Reference in a new issue