Commit 5e92fef8 by Lin

Merge branch 'saas+v5.8.3' of http://192.168.3.233:8090/glsx/gl_tape into saas+v5.8.3

2 parents 24a4c4aa c143bd7c
...@@ -13,7 +13,7 @@ const spritesmithFunction = data => { ...@@ -13,7 +13,7 @@ const spritesmithFunction = data => {
;((width = toRpx(width)), (height = toRpx(height)), (offset_x = toRpx(offset_x)), (offset_y = toRpx(offset_y))) ;((width = toRpx(width)), (height = toRpx(height)), (offset_x = toRpx(offset_x)), (offset_y = toRpx(offset_y)))
return `.icon-${name} { width: ${width}; height: ${height};background-position: ${offset_x} ${offset_y};}` return `.icon-${name} { width: ${width}; height: ${height};background-position: ${offset_x} ${offset_y};}`
}) })
.join('\n') // .join('\n')
// let shared = `.sprite-icon { background-image: url(${ // let shared = `.sprite-icon { background-image: url(${
// data.sprites[0].image // data.sprites[0].image
// });background-size: ${spritesheet.width / 2}rpx ${ // });background-size: ${spritesheet.width / 2}rpx ${
...@@ -27,7 +27,7 @@ const spritesmithFunction = data => { ...@@ -27,7 +27,7 @@ const spritesmithFunction = data => {
// }rpx; background-position: ${offset_x / 2}rpx ${offset_y / 2}rpx;}`; // }rpx; background-position: ${offset_x / 2}rpx ${offset_y / 2}rpx;}`;
// }) // })
// .join("\n"); // .join("\n");
return `${shared}\n${perSprite}` return `${shared}${perSprite}`
} }
const path = require('path') const path = require('path')
const { domain, djDomain, evaluationDomain, merchantDomain } = require('./env.js') const { domain, djDomain, evaluationDomain, merchantDomain } = require('./env.js')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!