Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v1.13.1

_9 dec 2024_

- Fixed setting of correct color when turning off rtt on an element
- Added check for txManager in reactivity
- Fixed reference to correct `this`-scope in router before hook

## v1.13.0

_5 dec 2024_
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lightningjs/blits",
"version": "1.13.0",
"version": "1.13.1",
"description": "Blits: The Lightning 3 App Development Framework",
"bin": "bin/index.js",
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions src/engines/L3/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ const propsTransformer = {
},
set rtt(v) {
this.props['rtt'] = v
if (v === true && this.raw['color'] === undefined) {
this.props['color'] = 0xffffffff
if (this.raw['color'] === undefined) {
this.props['color'] = v === true ? 0xffffffff : 0x00000000
}
},
set mount(v) {
Expand Down
3 changes: 2 additions & 1 deletion src/lib/reactivity/reactive.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { ImageTexture } from '@lightningjs/renderer'
import { ImageTexture, Texture } from '@lightningjs/renderer'
import { track, trigger, pauseTracking, resumeTracking } from './effect.js'
import symbols from '../symbols.js'
import deepEqualArray from '../../helpers/deepEqualArray.js'
Expand All @@ -35,6 +35,7 @@ const reactiveProxy = (original, _parent = null, _key, global) => {
if (typeof original === 'object') {
if (original[symbols.id] !== undefined) return original
if (original.constructor.name === ImageTexture.name) return original
if (original.txManager !== undefined) return original
}

// if original object is already a proxy, don't create a new one but return the existing one instead
Expand Down
2 changes: 1 addition & 1 deletion src/router/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const navigate = async function () {
if (route) {
if (route.hooks) {
if (route.hooks.before) {
beforeHookOutput = await route.hooks.before(route, previousRoute)
beforeHookOutput = await route.hooks.before.call(this.parent, route, previousRoute)
if (isString(beforeHookOutput)) {
currentRoute = previousRoute
to(beforeHookOutput)
Expand Down