node-spritesheet icon indicating copy to clipboard operation
node-spritesheet copied to clipboard

Impossible to set vpadding/hpadding using grunt

Open stalniy opened this issue 11 years ago • 2 comments

Currently it's impossible to specify vpadding/hpadding options for sprite image. As I see from source code this.options for SpriteSheetConfiguration class is not set but then inside method layoutImages you passes this options into Layout constructor:

//builder.coffee L: 187
      layout = new Layout()
      @layout = layout.layout @images, @options

stalniy avatar Nov 06 '13 15:11 stalniy

+1

rubenstolk avatar Dec 09 '13 04:12 rubenstolk

+1. This padding is very useful getting sprite images not to overflow into one another when the browser is zoomed.

stevenyxu avatar Jun 19 '14 19:06 stevenyxu