Skip to content

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

Open
@f2d

Description

@f2d

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions