Skip to content

Releases: rdkcentral/Lightning

Lightning 2.11.0

28 Jul 12:09
4a3ecc1

Choose a tag to compare

v2.11.0

  • Updated typings of Element so flexItem can be false 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 of Element.
  • Added webgl2 as the fallback context option if webgl or experimental-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

01 May 09:54
2e4c829

Choose a tag to compare

2.10.0

  • Integrated Vite to replace rollup bundler and integrated Vitest 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 21:19

Choose a tag to compare

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

Lightning 2.9.0

16 Feb 12:47
59d6cee

Choose a tag to compare

2.9.0

  • Fixed issues related to package.json exports (#434)
  • Added a warning about strictNullChecks option to the TypeScript docs (#433)
  • Fixed an issue occurring while using maxLinesSuffix when advancedRender is set to true (#429)
  • Fixed an alignment issue occurring when the advanced text renderer is used (#428)
  • Added an example of basic subclassing to the TypeScript docs (#446)
  • Fixed an issue related to an inconsistency in the handling of default fonts
  • Added instant freeing up of text textures to prevent memory building up when text is being changed
  • Updated docs to add letterSpacing property to Text texture

Lightning 2.8.1

31 Oct 14:18
3d2d7e3

Choose a tag to compare

2.8.1

  • Fixed Lightning inspector (#427)

Lightning 2.8.0

21 Oct 10:24
35dc085

Choose a tag to compare

2.8.0

  • Added support to track vram usage (#395)
  • Added texture compression support (#391)
  • Updated patching.md file (#422)
  • Minor documentation updates (#405)

Lightning 2.7.0

15 Aug 11:18
1cd88a2

Choose a tag to compare

2.7.0

Features

  • Added TypeScript Support (#407)
  • Enabled RAF idle usage with stage option 'pauseRafLoopOnIdle' (#402)
  • Added glReadPixels support after rendering (#388)
  • Improved support for vertical alignment on advanced text renderer. (#378)
  • Added listener for visibility change to redraw when visible( #396)
  • Added revised Documentation related to Lightning Core
  • Added option to force canvas element as tx source (#393)

Fixes

  • Fixed regression on Ziggo platforms (#364)
  • Updated Readme file with correct LightningJs Documentation URL.(#383)
  • Removed regex named capture groups from text parser (#394)

Lightning 2.6.0

28 Dec 12:35
6690951

Choose a tag to compare

2.6.0

Features

Fixes

  • Fixed issue where canvas would not fully initialize before the inspector, resulting in invalid width and height of the root inspector element (#355)

Lightning 2.5.1

04 Nov 13:43
fcc92aa

Choose a tag to compare

2.5.1

Fixes

  • Mouse hover/unhover properly affects entire branch instead of single component. See examples/mouse-pointer/hover-tree.html. (#334)
  • Fixed text rendering problems present on some versions of Tizen platforms (#344)
  • Fixed issue where inspector would not show falsy text values e.g. 0 in element's attributes (#341)
  • Fixed issue in advancedTextRenderer, where maxLines would break for one word lines (#350)

Lightning 2.5.0

13 Sep 11:13
d42e3ee

Choose a tag to compare

2.5.0

Features

  • Added new text renderer that enables i.a. bold, italics and color using html-like tags. Check examples/text/advanced-renderer.html for more information (#318)
  • Introduced options textRenderSharpFontSize and textRenderSharpPrecision stage options for text texture scaling. Those options are useful for reducing blur effect on only selected text textures (#321, #320)

Fixes

  • Fixed ChildList's setAt boundary check (#314)
  • Fixed inaccurate collision check for mouse pointer when precision is different than 1 (#329)