dataliterate / data-populator

A plugin for Sketch and Adobe XD to populate your design mockups with meaningful data. Goodbye Lorem Ipsum. Hello JSON.
MIT License
1.67k stars 113 forks source link

Bug - The data is populating in an unusual way. #285

Open sefacndmr01 opened 8 months ago

sefacndmr01 commented 8 months ago

Which version of the plugin are you using? [X] Data Populator for Sketch [✓] Data Populator for Adobe XD

Describe the bug The data is populating in an unusual way. During iteration, it jumps between objects and reads the properties of the object it skipped. Even though Shuffle Items is not enabled, it exhibits this behavior. The order is not random, but it seems to read by skipping, which is unexpected.

To Reproduce Steps to reproduce the behavior:

  1. Added data source
  2. Added placeholders the texts (they are in group named tokens)
  3. Clicked Populate

Expected behavior My expectation is for it to iterate through the array sequentially and read the properties of objects accordingly.

Screenshots

Layers

image

Placeholders

image

Result

image

Environment (please complete the following information):

Additional context JSON File: tokens.json

sefacndmr01 commented 8 months ago

Layer hierarchy cause this. When the layer hierarchy is structured in this way, I got the expected result;

image