Skip to content

psd.tree().children() result wrongly equals psd.layers #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
f2d opened this issue Nov 2, 2018 · 0 comments
Open

psd.tree().children() result wrongly equals psd.layers #152

f2d opened this issue Nov 2, 2018 · 0 comments

Comments

@f2d
Copy link

f2d commented Nov 2, 2018

With latest master version or 3.2.0 release, I try the following code in browser:

var PSD = require('psd');
PSD.fromDroppedFile(file).then(
    (psd) => {
        console.log(psd.tree().children());
        console.log(psd.layers);
    }
);

Both lines give the same - flat array of all layers in the PSD file.

With patched version from #150, psd.tree().children() gives the expected - array of layers only at the root of tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant