DWilliames / google-sheets-sync-figma

82 stars 8 forks source link

Image fill behavior is being overridden #122

Open chewlian opened 2 years ago

chewlian commented 2 years ago

Describe the bug Fetched images don't respect the component's fill behavior (fill, fit, crop, tile) when populating the component's instances for the first time, it's behavior is always set to "fill." However, they do respect the set fill behavior once it is set as an override in a component's instance.

To Reproduce

  1. Create a component with a vector that has an image of which the fill behavior is set to "fit".
  2. Place instances of that component on a frame.
  3. Fetch & sync images from a sheet
  4. Bug: Image fill behavior is overridden to be "fill".

Expected behavior When fetching and synching with a sheet for the first time, the component's image fill behavior should be respected. In this example: it should be "fit".