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

能否考虑扩展一下雪碧图的功能 #73

Open
leeenx opened this issue Jun 20, 2017 · 1 comment
Open

能否考虑扩展一下雪碧图的功能 #73

leeenx opened this issue Jun 20, 2017 · 1 comment
Assignees

Comments

@leeenx
Copy link

leeenx commented Jun 20, 2017

athena 的雪碧图片能否扩展一下或是出些新的API。目前有两个场景用不了:js(canvas)的素材雪碧图; css中非background的雪碧图(专指mask)

@luckyadam
Copy link
Member

luckyadam commented Jun 29, 2017

将提供纯粹雪碧图生成api以解决此问题

var sprite = generateSprite(['img1.png', 'img2.png', 'img3.png'])
/**
 * sprite =>
 *  [{
       name: 'img1.png',
       size: {
         width: 200,
         height: 100
       },
       position: {
         x: 10,
         y: 20
       }
     }...]
 **/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants