@lightningjs/blits 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/package.json +2 -3
- package/src/element.js +3 -0
- package/src/lib/colors/colors.js +50 -40
- package/src/lib/colors/colors.test.js +149 -49
- package/src/lib/colors/htmlColors.js +149 -149
- package/src/lib/setup/base.js +10 -10
- package/src/lib/templateparser/parser.js +50 -12
- package/src/lib/templateparser/parser.test.js +378 -71
- package/src/router/router.js +6 -6
- package/vite/msdfGenerator.js +1 -1
package/src/router/router.js
CHANGED
|
@@ -236,12 +236,12 @@ const removeView = async (route, view, transition) => {
|
|
|
236
236
|
cacheMap.set(route, { view: view, focus: previousFocus })
|
|
237
237
|
} else {
|
|
238
238
|
// remove and cleanup
|
|
239
|
-
for (let i = 0; i < view[symbols.children].length; i++) {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
239
|
+
// for (let i = 0; i < view[symbols.children].length; i++) {
|
|
240
|
+
// if (view[symbols.children][i] && view[symbols.children][i].destroy) {
|
|
241
|
+
// view[symbols.children][i].destroy()
|
|
242
|
+
// view[symbols.children][i] = null
|
|
243
|
+
// }
|
|
244
|
+
// }
|
|
245
245
|
view.destroy()
|
|
246
246
|
view = null
|
|
247
247
|
}
|
package/vite/msdfGenerator.js
CHANGED
|
@@ -43,7 +43,7 @@ export default function () {
|
|
|
43
43
|
const mimeType = ext === 'png' ? 'image/png' : 'application/json'
|
|
44
44
|
|
|
45
45
|
if (!fs.existsSync(generatedFontFile)) {
|
|
46
|
-
console.log(
|
|
46
|
+
console.log(`\nGenerating ${targetDir}/${fontName}.msdf.${ext}`)
|
|
47
47
|
await generateFont(fontFile, targetDir, fontName)
|
|
48
48
|
}
|
|
49
49
|
|