Skip to content
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

add --hash support for vector / image assets #50

Merged
merged 1 commit into from
Oct 9, 2021
Merged

Conversation

softmarshmallow
Copy link
Member

Hash

Hash is a unique id indicator just like --id, but for a asset such as vector & images

Allowed on

  • layer with single image fill (a image)
  • a vector layer

Use with --main

vector layer 1 --hash=my-brand-logo
vector layer 2 --hash=my-brand-logo --main

Now vector 1 & 2 will use the same svg data, based on vector 2's svg data (since it's marked with --main).

  • do - set one layer as main
  • don't - set multiple layer with same hash with main (will show warning)
  • don't - no main layer specified - will use the first hit item.

See also

@vercel
Copy link

vercel bot commented Oct 8, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/grida/designto-codes/DZuiDfpe9yNWLUdU3vfDvvJ3GZzY
✅ Preview: https://designto-codes-git-hash-support-grida.vercel.app

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

Successfully merging this pull request may close these issues.

None yet

1 participant