@lightningjs/blits 2.8.6 → 2.8.8
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 +16 -0
- package/package.json +2 -2
- package/src/component/base/methods.js +3 -2
- package/src/component.js +1 -1
- package/src/components/Circle.js +1 -0
- package/src/components/FPScounter.js +1 -0
- package/src/components/RouterView.js +1 -0
- package/src/engines/L3/element.js +3 -0
- package/vscode/data/template-attributes.json +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.8.8
|
|
4
|
+
|
|
5
|
+
_11 aug 2026_
|
|
6
|
+
|
|
7
|
+
- Bumped renderer to 3.3.1
|
|
8
|
+
|
|
9
|
+
## 2.8.7
|
|
10
|
+
|
|
11
|
+
_07 aug 2026_
|
|
12
|
+
|
|
13
|
+
- Added `clipradius` attribute for rounded-corner clipping
|
|
14
|
+
- Fixed memory leak in delete children method
|
|
15
|
+
- Early cleanup of effects in destroy sequence
|
|
16
|
+
- Added `framecount` to fpsUpdate emit
|
|
17
|
+
- Bumped renderer to 3.1.6
|
|
18
|
+
|
|
3
19
|
## 2.8.6
|
|
4
20
|
|
|
5
21
|
_30 jul 2026_
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightningjs/blits",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.8",
|
|
4
4
|
"description": "Blits: The Lightning 3 App Development Framework",
|
|
5
5
|
"bin": "bin/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"tape": "^5.5.0"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@lightningjs/renderer": "
|
|
90
|
+
"@lightningjs/renderer": "3.3.1",
|
|
91
91
|
"magic-string": "^0.30.21"
|
|
92
92
|
},
|
|
93
93
|
"repository": {
|
|
@@ -104,6 +104,8 @@ export default {
|
|
|
104
104
|
// pass focus to the parent so we don't get lost in focus limbo
|
|
105
105
|
if (this.$hasFocus === true) this[symbols.parent].$focus()
|
|
106
106
|
|
|
107
|
+
removeEffects(this[symbols.effects])
|
|
108
|
+
|
|
107
109
|
// @todo - is this really necessary?
|
|
108
110
|
// This cause an issue with auto sizing of parent (and required an extra eol check there)
|
|
109
111
|
for (let key in this[symbols.state]) {
|
|
@@ -130,7 +132,6 @@ export default {
|
|
|
130
132
|
|
|
131
133
|
deleteChildren(this[symbols.children])
|
|
132
134
|
this[symbols.children].length = 0
|
|
133
|
-
removeEffects(this[symbols.effects])
|
|
134
135
|
|
|
135
136
|
this[symbols.state] = {}
|
|
136
137
|
|
|
@@ -239,7 +240,7 @@ export default {
|
|
|
239
240
|
*/
|
|
240
241
|
const deleteChildren = function (children) {
|
|
241
242
|
for (let i = 0; i < children.length; i++) {
|
|
242
|
-
if (!children[i])
|
|
243
|
+
if (!children[i]) continue
|
|
243
244
|
// call destroy when method is available on child
|
|
244
245
|
if (children[i].destroy && typeof children[i].destroy === 'function') {
|
|
245
246
|
children[i].destroy()
|
package/src/component.js
CHANGED
|
@@ -338,7 +338,7 @@ const Component = (name = required('name'), config = required('config')) => {
|
|
|
338
338
|
// fpsUpdate event
|
|
339
339
|
if (config.hooks.fpsUpdate) {
|
|
340
340
|
const cb = (_r, data) => {
|
|
341
|
-
emit('fpsUpdate', this[symbols.identifier], this, [data.fps])
|
|
341
|
+
emit('fpsUpdate', this[symbols.identifier], this, [data.fps, data.frameCount])
|
|
342
342
|
}
|
|
343
343
|
renderer.on('fpsUpdate', cb)
|
|
344
344
|
this[symbols.rendererEventListeners].push({ event: 'fpsUpdate', cb })
|
package/src/components/Circle.js
CHANGED
|
@@ -394,6 +394,20 @@
|
|
|
394
394
|
"RouterView"
|
|
395
395
|
]
|
|
396
396
|
},
|
|
397
|
+
"clipradius": {
|
|
398
|
+
"attrType": "regular",
|
|
399
|
+
"types": [
|
|
400
|
+
"number"
|
|
401
|
+
],
|
|
402
|
+
"defaultValue": 0,
|
|
403
|
+
"reactive": true,
|
|
404
|
+
"description": "Rounds the corners of the clip area when `clipping` is enabled, instead of clipping to a sharp rectangle. Has no effect when `clipping` is `false`. WebGL only.",
|
|
405
|
+
"usedIn": [
|
|
406
|
+
"Element",
|
|
407
|
+
"Text",
|
|
408
|
+
"RouterView"
|
|
409
|
+
]
|
|
410
|
+
},
|
|
397
411
|
"overflow": {
|
|
398
412
|
"attrType": "regular",
|
|
399
413
|
"types": [
|