enhance: bitmapping log more descriptive

This commit is contained in:
ful1e5
2021-11-12 10:43:19 +05:30
parent cb80d2d154
commit eb1716d157
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- sponsor with liberapay - sponsor with liberapay
- builder module renamed to `src` - builder module renamed to `src`
- bitmapping log more descriptive
### Added ### Added
+3 -3
View File
@@ -8,7 +8,7 @@ const svgDir = path.resolve(root, "svg");
const main = async () => { const main = async () => {
for (const { themeName, color } of config) { for (const { themeName, color } of config) {
console.log("=>", themeName); console.log("Generating bitmaps for", themeName);
const bitmapsDir = path.resolve(root, "bitmaps", themeName); const bitmapsDir = path.resolve(root, "bitmaps", themeName);
const svg = new SVGHandler.SvgDirectoryParser(svgDir); const svg = new SVGHandler.SvgDirectoryParser(svgDir);
@@ -17,14 +17,14 @@ const main = async () => {
const browser = await png.getBrowser(); const browser = await png.getBrowser();
for (let { key, content } of svg.getStatic()) { for (let { key, content } of svg.getStatic()) {
console.log(" -> Saving", key, "..."); console.log(" ==> Saving", key, "...");
content = SVGHandler.colorSvg(content, color); content = SVGHandler.colorSvg(content, color);
await png.generateStatic(browser, content, key); await png.generateStatic(browser, content, key);
} }
for (let { key, content } of svg.getAnimated()) { for (let { key, content } of svg.getAnimated()) {
console.log(" -> Saving", key, "..."); console.log(" ==> Saving", key, "...");
content = SVGHandler.colorSvg(content, color); content = SVGHandler.colorSvg(content, color);
await png.generateAnimated(browser, content, key, { playbackRate: 0.3 }); await png.generateAnimated(browser, content, key, { playbackRate: 0.3 });