mapbox / spritezero

small opinionated sprites
Other
173 stars 62 forks source link

Update svg analysis to support placeholder text id's #90

Closed dereklieu closed 3 years ago

dereklieu commented 3 years ago

We are implementing a new id called mapbox-text-placeholder to support highway shield work.

This id supports identical functionality to what mapbox-content does, which is cause us to return a bounding box for the path that has this id. Implementing this id separately from 9-part stretchable icon metadata allows us to re-use some existing code paths while supporting a semantically accurate/distinct id that is separate from stretchable icons.