Releases: rdkcentral/Lightning
Releases · rdkcentral/Lightning
Lightning 2.3.0
2.3.0
Features
- Multiple property bindings are now accepted by
bindPropmethod (#275) - Added Magnifier shader (check out
examples/shaders/magnifier) (#274) - Added customisable
data-testIdproperty in inspector that can be used by automated tests (#288)
Fixes
- Property bindings now work with shaders (#278)
- Property bindings now work with text objects (#283)
- Text texture's height will now match exactly line height if its
textBaselineproperty is set tobottom(#286)
2.2.0
Features
- Added FadeOut, Spinner2 shaders, updated RoundRectangle, RadialGradient, Vignette (see
examples/shaders) (#255) - Event emitter now supports
oncemethod (#271) - Component's
signalsmethod will now accept functions (seeexamples/signals) (#264)
Fixes
- Fixed issue where calling Event emitter's
offmethod inside callback it was registered with would not work (#271) - Multiple
\ntext line breaks are now rendered correctly (#277)
2.1.2
Fixes
- Fixed image path construction problem for URLS containing hash (#257)
- Fixed letter-spacing on text texture to be properly applied on different resolutions (#256)
2.1.1
Features
-
Component instance is now accessible in template method (#253)
static _template(instance) { return { w: instance.size, h: instance.size }; } _construct() { this.size = 50; }
Fixes
- Fixed possible ES5 compatibility issues with code not subject to transpilation (#242)
2.0.0 (Carbon)
Features
-
wpe-lightningpackage migrates to@lightningjs/core -
Logs from Lightning have now
[Lightning]prefix (#245) -
Added property bindings for Lightning templates via
bindPropmethod (seeexamples/property-bindings) (#251) -
Added
textIndentoption for text texture (#250){text: {text: 'hello', textIndent: 200}}
Fixes
- Fixed improperly handled GC case for
c2drenderer (#246)
1.11.0
Features
- [experimental] Added touch support (see
examples/touch) (#239)
Fixes
- Shaders will now use
precision highp floatif the platform supports it (#232) - Fixed RoundedRectangle shader unconverted uniforms that would cause errors on some of the platforms (#234)
- Fixed Hole shader to work with different resolutions (#233)
- Fixed CORS issues on images specific to PS4 platform (#226)
Lightning 1.10.0
1.10.0
Features
-
New shaders:
Vignette,Perspective,SpinnerandHole(example) -
RoundedRectangleshader can now be applied to each corner separately (example)shader: {type: lng.shaders.RoundedRectangle, radius: 50} // apply round corners to whole rectangle
shader: {type: lng.shaders.RoundedRectangle, radius: [50, 0, 25, 0]} // apply round corners separately
-
Binding multiple methods to same keycode is now possible
const keys = { ... 8: 'Back', 13: 'Enter', 219: ['Rewind', 'PreviousPage'], 221: ['FastForward', 'NextPage'], ... };
-
Added support for base64 encoded images. This may have worked or not depending on image format and Image Worker configuration, but after the change it should work in all configurations
Image: { x: 15, y: 15, src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAA...' }
Fixes
- Animation's
progressevent is called right beforefinish(#196) - No text on PS4 (#16)
- Broken
Dithering,OutlineandPixelateshaders (#199, #203)
1.9.0
Features
-
RoundedRectangleshader now hasfillColor,strokeandstrokeColorproperties (example)shader: { type: lng.shaders.RoundedRectangle, fillColor: 0xffff0000, // fill color strokeColor: 0xff00ffff, // stroke color stroke: 30, // stroke thickness }
-
Added
verticalAlignoption forTextTexture, which defines how text should be positioned if line height is greater than size of the font (example)text: { text: 'Hello', fontSize: 24, lineHeight: 40, verticalAlign: 'middle' }
Fixes
1.8.1
Fixes
- Vertical centering of text when line height is larger than font size (#164)
- Relative protocol urls for Image Worker (#143)
1.8.0
General
- Migration to rdkcentral
Fixes
- SVG images from foreign origins throwing errors (#185)
1.7.0
Features
-
Added
letterSpacingoption forTextTexture, which lets increase or decrease space between letters (example)text: { text: 'Hello', letterSpacing: 5 }
1.6.1
Fixes
getNonDefaults()ofElementclass (9096717)
1.6.0
Features
- Jest snapshot for Lightning template (1790cb3)
1.5.1
General
- Spark shader updates (#108)
1.5.0
General
- Integration with Spark platform (#108)
Fixes
resizeModeis not applied when texture uses source that is already loaded (#103)
1.4.1
General
- Rollup update (#102)
1.4.0
Features
- Lightning now contains ES5 compatible bundles (#97)
1.3.2
Fixes
- Fixed Image Worker to be ES5 compatible (aaed132)
Lightning 1.3.1
Fixes
- Fixed text highlight not rendering properly (#86)
Lightning 1.3.0
Features
- Since 1.2.1, Lightning is available on npm registry under
wpe-lightning(check here) - Added
RoundRectangleshader (#70). It allows to easily make round corners around the texture (example)
Lightning 1.2.0
Lightning 1.0.9
Fixes
- Fixed text rendering artifacts sometimes appearing on RPI platform (#41)