github lynx-family/lynx-stack @lynx-js/web-elements@0.12.21

latest releases: @lynx-js/genui@0.9.1, @lynx-js/react-rsbuild-plugin@0.22.6, @lynx-js/react-alias-rsbuild-plugin@0.22.6...
one hour ago

Patch Changes

  • Send a plain JSON object as the detail of the x-text layout event. (#4453)

    The detail used to be a Proxy measuring the text on demand, which cannot be posted to the background thread. Now all the displayed lines are measured before the event is dispatched, and detail is { lineCount, lines: { start, end, ellipsisCount }[] }. The lines exceeding text-maxline or hidden by the truncation are not included. The measurement only happens when the layout event is bound.

    Also fix the wrong line count for texts starting with a multi-line text node and for texts with padding.

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.