@lightningjs/blits
Advanced tools
Comparing version 0.6.12 to 0.6.13
# Changelog | ||
# v0.6.13 | ||
_16 feb 2024_ | ||
- Upgraded to 0.7.2 of the renderer | ||
- Introduced new `maxheight` attribute (besided the existing `maxlines` attribute) for the `<Text />` component | ||
- Fixed issue with order of lifecycle event emits | ||
- Fixed logic to not unfoces a parent when it passes focus to a child | ||
- Removed temporary fix for renderer issue [#123](https://github.com/lightning-js/renderer/issues/123) | ||
# v0.6.12 | ||
@@ -4,0 +14,0 @@ |
{ | ||
"name": "@lightningjs/blits", | ||
"version": "0.6.12", | ||
"version": "0.6.13", | ||
"description": "Blits: The Lightning 3 App Development Framework", | ||
@@ -48,3 +48,3 @@ "bin": "bin/index.js", | ||
"dependencies": { | ||
"@lightningjs/renderer": "^0.7.1", | ||
"@lightningjs/renderer": "^0.7.2", | ||
"@lightningjs/vite-plugin-import-chunk-url": "^0.3.0", | ||
@@ -51,0 +51,0 @@ "execa": "^8.0.1", |
@@ -100,6 +100,5 @@ /* | ||
if (states.indexOf(v) > -1 && v !== this.current) { | ||
Log.debug( | ||
`Setting lifecycle state from ${this.previous} to ${v} for ${scope.componentId}` | ||
) | ||
Log.debug(`Setting lifecycle state from ${this.current} to ${v} for ${scope.componentId}`) | ||
this.previous = this.current | ||
this.current = v | ||
// emit 'private' hook | ||
@@ -109,3 +108,2 @@ privateEmit(v, name, scope) | ||
emit(v, name, scope) | ||
this.current = v | ||
} | ||
@@ -112,0 +110,0 @@ }, |
@@ -22,4 +22,2 @@ /* | ||
console.log(fps_sprite) | ||
export default () => | ||
@@ -26,0 +24,0 @@ Component('FPScounter', { |
@@ -22,4 +22,2 @@ /* | ||
console.log(fps_sprite) | ||
export default () => | ||
@@ -26,0 +24,0 @@ Component('FPScounter', { |
@@ -71,2 +71,5 @@ /* | ||
function anonymous(component, elms, context) { | ||
elms[0].set('h', component.maxheight) | ||
}, | ||
function anonymous(component, elms, context) { | ||
elms[0].set('textAlign', component.align) | ||
@@ -99,2 +102,3 @@ }, | ||
'maxlines', | ||
'maxheight', | ||
'lineheight', | ||
@@ -110,3 +114,3 @@ 'contain', | ||
this.contain || | ||
(this.wordwrap && this.maxlines ? 'both' : this.wordwrap ? 'width' : 'none') | ||
(this.maxheight && this.wordwrap ? 'both' : this.wordwrap ? 'width' : 'none') | ||
) | ||
@@ -113,0 +117,0 @@ }, |
@@ -38,2 +38,3 @@ /* | ||
:maxLines="$maxlines" | ||
:h="$maxheight" | ||
:textAlign="$align" | ||
@@ -63,2 +64,3 @@ :overflowSuffix="$textoverflow" | ||
'maxlines', | ||
'maxheight', | ||
'lineheight', | ||
@@ -74,3 +76,3 @@ 'contain', | ||
this.contain || | ||
(this.wordwrap && this.maxlines ? 'both' : this.wordwrap ? 'width' : 'none') | ||
(this.maxheight && this.wordwrap ? 'both' : this.wordwrap ? 'width' : 'none') | ||
) | ||
@@ -77,0 +79,0 @@ }, |
@@ -54,4 +54,2 @@ /* | ||
let firstNode = false | ||
const Props = { | ||
@@ -205,3 +203,3 @@ set parent(v) { | ||
set maxLines(v) { | ||
this.height = v * this.element.node.lineHeight | ||
this._props.maxLines = v | ||
}, | ||
@@ -252,9 +250,2 @@ set overflowSuffix(v) { | ||
// temporary workaround for renderer issue https://github.com/lightning-js/renderer/issues/123 | ||
if (!firstNode) { | ||
this.props._props.src = | ||
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=' | ||
firstNode = true | ||
} | ||
this.node = props.__textnode | ||
@@ -261,0 +252,0 @@ ? renderer.createTextNode(this.props._props) |
@@ -38,3 +38,3 @@ /* | ||
clearTimeout(setFocusTimeout) | ||
focusedComponent && focusedComponent.unfocus() | ||
focusedComponent && focusedComponent !== component.parent && focusedComponent.unfocus() | ||
focusChain.reverse().forEach((cmp) => cmp.unfocus()) | ||
@@ -41,0 +41,0 @@ if (component !== focusedComponent) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1030480
24997
Updated@lightningjs/renderer@^0.7.2