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

SVG Sprite CSS generation issue #77

Closed
yamsoft opened this issue Sep 2, 2016 · 1 comment
Closed

SVG Sprite CSS generation issue #77

yamsoft opened this issue Sep 2, 2016 · 1 comment

Comments

@yamsoft
Copy link

yamsoft commented Sep 2, 2016

Hi...
Just wanted to ask if it is possible to get the pixel position of an individual svg icon from the generated sprite?

@jkphl
Copy link
Collaborator

jkphl commented Sep 3, 2016

Please specify what you mean with "get" the pixel position. At which stage, using which technology? During the generation of the sprite (Mustache template rendering) the absolute positions are available as template variables (please see the templating documentation for details). After the sprite is generated, it is up to you to parse / examine the sprite and extract the positions with a technology of your choice. It's out of svg-sprite's scope then.

@jkphl jkphl closed this as completed Sep 3, 2016
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

2 participants