v3.1.0
New Features
- Rich Text support in Canvas/MSDF text renderers: https://github.com/lightning-js/renderer/blob/main/docs/rich-text.md
- Rounded corner clipping using
clipRadius: <number>
What's Changed
- fix(platform): add loadFontFace to platform abstraction by @wouterlucas in #805
- Fix LinearGradient shader for mediump by @eXecutable in #808
- feat(rich-text): add BB-code parser by @wouterlucas in #809
- fix(webgl): correctly handle premultiplied-alpha for ImageBitmap by @wouterlucas in #807
- feat(rich-text): add richText boolean prop to TrProps and CoreTextNode by @wouterlucas in #810
- feat(rich-text): wire BB-code parsing into Canvas text renderer by @wouterlucas in #811
- feat(rich-text): add underline and strikethrough decoration to Canvas text renderer by @wouterlucas in #812
- feat(rich-text): SDF per-span color, underline, strikethrough (PR 5/7) by @wouterlucas in #813
- feat(rich-text): SDF bold and italic (PR 6/7) by @wouterlucas in #814
- docs(rich-text): syntax reference and TrProps.richText JSDoc (PR 7/7) by @wouterlucas in #815
- docs(agent): add Mali 400 / OpenGL ES 2.0 GPU target instructions by @wouterlucas in #816
- feat(clipping): add clipRadius prop for rounded corner clipping by @wouterlucas in #820
- fix(shaders): replace ternary branches in roundedBox/shadowBox with step+mix by @wouterlucas in #821
- fix(shaders): remove branches and fix missing return in LinearGradient by @wouterlucas in #822
- fix(shaders): remove branches in RadialGradient getGradientColor by @wouterlucas in #823
- fix(shaders): replace if/else branch in SdfShader fragment main() with arithmetic mask by @wouterlucas in #824
- fix(shaders): remove if/early-return branches in RoundedWithBorder by @wouterlucas in #825
- fix(shaders): remove all branches in RoundedWithBorderAndShadow by @wouterlucas in #826
- fix(shaders): remove sampler array GLSL ES 1.0 undefined behavior in DefaultBatched by @wouterlucas in #827
- Add
TextureOptionsexport by @guilhermesimoes in #817
New Contributors
- @eXecutable made their first contribution in #808
Full Changelog: v3.0.5...v3.1.0