@lightningjs/blits
Advanced tools
Comparing version 0.3.13 to 0.3.14
@@ -34,4 +34,4 @@ { | ||
"dependencies": { | ||
"@lightningjs/blits": "^0.3.13" | ||
"@lightningjs/blits": "^0.3.14" | ||
} | ||
} |
# Changelog | ||
## v0.3.14 | ||
_19 oct 2023_ | ||
- Fixed error when `<Text />`-component doesn't have any content | ||
- Removed generic escape key handler that closed the App | ||
- Introduced `quit()`-method on the root Application component | ||
- Updated to v0.4.0 of the renderer | ||
## v0.3.13 | ||
@@ -10,3 +19,4 @@ | ||
- Fixed loading of web canvas2d fonts | ||
- Firex error when using `this`-reference in component state | ||
- Fixed error when using `this`-reference in component state | ||
- Added basic support for inline text (i.e. `<Text>My text with a {{$dynamic}} value</Text>`) | ||
@@ -13,0 +23,0 @@ ## v0.3.12 |
{ | ||
"name": "@lightningjs/blits", | ||
"version": "0.3.13", | ||
"version": "0.3.14", | ||
"description": "Blits: The Lightning 3 App Development Framework", | ||
@@ -44,5 +44,5 @@ "bin": "bin/index.cjs", | ||
"dependencies": { | ||
"@lightningjs/renderer": "^0.3.6", | ||
"@lightningjs/renderer": "^0.4.0", | ||
"@lightningjs/vite-plugin-import-chunk-url": "^0.3.0" | ||
} | ||
} |
@@ -32,2 +32,3 @@ /* | ||
Backspace: 'back', | ||
Escape: 'escape', | ||
} | ||
@@ -34,0 +35,0 @@ |
@@ -136,3 +136,3 @@ /* | ||
text(props) { | ||
props.text = props.text.toString() | ||
props.text = props.text !== undefined ? props.text.toString() : '' | ||
}, | ||
@@ -139,0 +139,0 @@ textureColor(props) { |
@@ -21,3 +21,3 @@ /* | ||
import Settings from './settings.js' | ||
import { initLog } from './lib/log.js' | ||
import { initLog, Log } from './lib/log.js' | ||
@@ -50,7 +50,6 @@ // import coreExtensionModule from './fontLoader.js?importChunkUrl' | ||
let app | ||
const handler = (e) => { | ||
if (e.key === 'Escape') { | ||
document.removeEventListener('keydown', handler) | ||
const initApp = () => { | ||
let app = App() | ||
app.quit = () => { | ||
Log.info('Closing App') | ||
app.destroy() | ||
@@ -62,5 +61,3 @@ app = null | ||
document.addEventListener('keydown', handler) | ||
renderer.init().then(() => (app = App())) | ||
renderer.init().then(() => initApp()) | ||
} |
881726
+ Added@lightningjs/renderer@0.4.2(transitive)
- Removed@lightningjs/renderer@0.3.6(transitive)
Updated@lightningjs/renderer@^0.4.0