We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 828f0e4 commit 9ae47c9Copy full SHA for 9ae47c9
src/core.js
@@ -61,7 +61,7 @@ export const defaults = {
61
shape: {
62
id: {
63
generator(name, file) {
64
- return file.path;
+ return new Buffer(file.path).toString('base64');
65
}
66
67
},
src/factories/vector.js
@@ -31,8 +31,9 @@ export default function run(opts, images) {
31
height: data.css.spriteHeight
32
};
33
34
+
35
data.css.shapes.forEach((shape) => {
- spritesheet.coordinates[shape.name] = {
36
+ spritesheet.coordinates[new Buffer(shape.name, 'base64').toString()] = {
37
width: shape.width.outer,
38
height: shape.height.outer,
39
x: shape.position.absolute.x,
0 commit comments