Releases: rdkcentral/Lightning
Releases · rdkcentral/Lightning
2.14.1
Lightning 2.14.0
v2.14.0
- Adds
onIdle
event whenpauseRafLoopOnIdle
is enabled.
Lightning 2.13.2
Lightning 2.13.1
v2.13.1
- Hotfix - Typescript types were not properly published
Lightning 2.13.0
v2.13.0
- Fixed an issue causing not including TypeScript types in the build. (#527)
- Enhanced handling of bidirectional text in TextTexture by setting canvas context direction to correct display of text blocks in RTL configurations.
Lightning 2.12.1
v2.12.1
- Fixed examples that were not working due to incorrect imports.
- Fixed build issues on non-*nix systems.
- Fixed some typos in the documentation.
- Fixed an issue in RoundedRectangleShader where setting a stroke value resulted in incorrect clipping, especially noticeable when the radius is half the height.
Lightning 2.12.0
v2.12.0
- Introduced a named export for Lightning in the ESM build to support direct module augmentation with
@lightningjs/core
, resolving issues with default export augmentation. (#480) - Modified the export structure to support tree-shaking. Lightning's ES modules can now be selectively imported /tree-shaken. (#490)
- Enabled development in both TypeScript and JavaScript. Migrated specific files and ensured all source module files are appropriately managed in the
dist
directory. - Separated the Lightning Inspector with types as its own export.
- Resolved an inconsistency in the zSorting algorithm where elements with the same zIndex were not correctly sorted by updateTreeOrder. (#443)
- Addressed an exception causing infinite loops when accessing the texture.source property after text updates. This fix streamlines access to the renderInfo property without triggering a maximum call stack exception. (#447 and #348)
- Resolved an issue where adding an already existing element to childList would throw an error. (#311 and #509)
- Fixed an issue where SVG
txError
events were not being triggered due to missed error captures. - Fixed an issue where
txLoaded
event in elements over-fired due to incorrect texture change identification.
Lightning 2.11.0
v2.11.0
- Updated typings of Element so
flexItem
can befalse
as referred to in the documentation. - Fixed an issue related to applying vertex-specific color to the hole punch fragment.
- Fixed the regression related to TextTextureRenderer word wrapping. (#488)
- An unnecessary conditional in the default shader code was removed.
- Fixed alpha channel detection when using in-process image handling. (#493)
- Fixed a typo referencing the
renderOffscreen
method ofElement
. - Added
webgl2
as the fallback context option ifwebgl
orexperimental-webgl
is unavailable. (#496) - Added event bubbling support for pointer events. (#485)
- Added support for getting local coordinates with pointer events (#484)
Lightning 2.10.0
2.10.0
- Integrated
Vite
to replacerollup
bundler and integratedVitest
for unit testing - Implemented word wrapping support on zero-width breaking spaces (#450) (docs: Word Wrap in Non-Latin Based Languages )
- Added support for device pixel ratio with an option
devicePixelRatio
(docs: Global Stage Scaling, Handling high pixel density ) - Fixed issue with text rendering at high precision levels causing incorrect word wrapping (#470)
- Fixed issue with inability to override the id accessor of a Component with string accessor (#456)
- Added first/last getters to TypeScript definitions for ObjectList
- Fixed documentation and TypeScript definitions for TextTexture
fontFace
- Fixed TypeScript error with getByRef() when using generic type param as Ref value (#444)
- Implemented default loose type configs for TypeScript.
Lightning 2.9.1
21 apr 2023
- 🔥 Hotfix for memory leak when pauseRafLoopOnIdle is enabled (introduced in v2.7.0)
- Implemented additional cleanup of Lightning code that gets stuck on the heap after calling destroy