@lightningjs/blits 1.13.0 → 1.13.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.13.1
|
|
4
|
+
|
|
5
|
+
_9 dec 2024_
|
|
6
|
+
|
|
7
|
+
- Fixed setting of correct color when turning off rtt on an element
|
|
8
|
+
- Added check for txManager in reactivity
|
|
9
|
+
- Fixed reference to correct `this`-scope in router before hook
|
|
10
|
+
|
|
3
11
|
## v1.13.0
|
|
4
12
|
|
|
5
13
|
_5 dec 2024_
|
package/package.json
CHANGED
|
@@ -251,8 +251,8 @@ const propsTransformer = {
|
|
|
251
251
|
},
|
|
252
252
|
set rtt(v) {
|
|
253
253
|
this.props['rtt'] = v
|
|
254
|
-
if (
|
|
255
|
-
this.props['color'] = 0xffffffff
|
|
254
|
+
if (this.raw['color'] === undefined) {
|
|
255
|
+
this.props['color'] = v === true ? 0xffffffff : 0x00000000
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
set mount(v) {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* SPDX-License-Identifier: Apache-2.0
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import { ImageTexture } from '@lightningjs/renderer'
|
|
18
|
+
import { ImageTexture, Texture } from '@lightningjs/renderer'
|
|
19
19
|
import { track, trigger, pauseTracking, resumeTracking } from './effect.js'
|
|
20
20
|
import symbols from '../symbols.js'
|
|
21
21
|
import deepEqualArray from '../../helpers/deepEqualArray.js'
|
|
@@ -35,6 +35,7 @@ const reactiveProxy = (original, _parent = null, _key, global) => {
|
|
|
35
35
|
if (typeof original === 'object') {
|
|
36
36
|
if (original[symbols.id] !== undefined) return original
|
|
37
37
|
if (original.constructor.name === ImageTexture.name) return original
|
|
38
|
+
if (original.txManager !== undefined) return original
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
// if original object is already a proxy, don't create a new one but return the existing one instead
|
package/src/router/router.js
CHANGED
|
@@ -119,7 +119,7 @@ export const navigate = async function () {
|
|
|
119
119
|
if (route) {
|
|
120
120
|
if (route.hooks) {
|
|
121
121
|
if (route.hooks.before) {
|
|
122
|
-
beforeHookOutput = await route.hooks.before(route, previousRoute)
|
|
122
|
+
beforeHookOutput = await route.hooks.before.call(this.parent, route, previousRoute)
|
|
123
123
|
if (isString(beforeHookOutput)) {
|
|
124
124
|
currentRoute = previousRoute
|
|
125
125
|
to(beforeHookOutput)
|