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

Multiple mappings in one mapping file #89

Closed
edemaine opened this issue Aug 31, 2022 · 0 comments
Closed

Multiple mappings in one mapping file #89

edemaine opened this issue Aug 31, 2022 · 0 comments

Comments

@edemaine
Copy link
Owner

edemaine commented Aug 31, 2022

Especially when we have combining mappings (#83), may want to return multiple things from one mapping file.

Most naturally, we could export an array of things, as long as each one is distinguished as to its type (instead of or as alternative to named exports).

Update: Exporting an array of things now has a specific meaning, which is essentially combining mappings of #83: apply everything in the array and stack them on top of each other. This is great for combining mappings, but we still lack a convenient way to say "apply this mapping, and if it doesn't find anything, apply this mapping".

Alternatively, we could use callbacks like svgtiler.mapping(...).

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

No branches or pull requests

1 participant