fis-spriter-csssprites
Advanced tools
Comparing version
@@ -115,3 +115,3 @@ /* | ||
}, | ||
after: function (image, arr_selector, direct, scale) { | ||
after: function (image, arr_selector, direct, scale, list) { | ||
var ext = '_' + direct + '.png'; | ||
@@ -133,7 +133,5 @@ var size = image.size(); | ||
// 记录这些图片已经被打包到其他文件上了。 | ||
var images = this.images; | ||
images && Object.keys(images).forEach(function(key) { | ||
var image = images[key]; | ||
var map = image.map = image.map || {}; | ||
map.pkg = image_file.getId(); | ||
list.forEach(function(image) { | ||
var map = image.map = image.map || {}; | ||
map.cssspritePkg = image_file.getId(); | ||
}); | ||
@@ -257,3 +255,3 @@ | ||
this.after(image, cls, direct); | ||
this.after(image, cls, direct, null, list); | ||
}, | ||
@@ -400,4 +398,4 @@ zFill: function(list, scale) { | ||
} | ||
this.after(image, cls, 'z', scale); | ||
this.after(image, cls, 'z', scale, list); | ||
} | ||
}; |
{ | ||
"name": "fis-spriter-csssprites", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"description": "基于fis的csssprite,支持repeat-x,repeat-x,background-position", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
32321
-0.17%702
-0.28%