SketchAPI icon indicating copy to clipboard operation
SketchAPI copied to clipboard

Wrong parent for nested Symbol Instances

Open yevheniyJ opened this issue 5 years ago • 0 comments

Example:

We have 2 Symbols. And one (lets call it child symbol) is included into another (lets call it parent symbol). Symbol Masters are located in separate page "Symbols" (default logic). And we have 2 Symbols Instances of parent symbol in one page but in different artboards.

Problem: Each child symbol instance will have parent field pointing to parent symbol master (instead of parent symbol instance) and therefore it is not possible (for example) to determine exact location (frame) of each child symbol relative to artboard.

Hope you understand the problem and maybe it's not a bug and I missed something in API.

UPDATE Interesting finding. When I executing dom.find('SymbolInstance', wholeDocument) ref it will return all symbols with nested symbols but execution of dom.find('SymbolInstance', specificArtboard)will return only parent symbols (without nested symbols). I guess it's not correct behaviour.

yevheniyJ avatar Dec 19 '19 17:12 yevheniyJ