github lynx-family/lynx-stack @lynx-js/react@0.115.4

latest releases: @lynx-js/web-elements@0.11.0, @lynx-js/web-constants@0.19.5, @lynx-js/web-worker-runtime@0.19.5...
12 hours ago

Patch Changes

  • fix: unable to access MainThreadRef in some scenarios (#1996)

  • Add getComputedStyleProperty for MainThread.Element to retrieve computed style values synchronously. (#2005)

    Requires Lynx SDK >= 3.5

    function getStyle(ele: MainThread.Element) {
      'main thread';
      const width = ele.getComputedStyleProperty('width'); // Returns 300px
      const transformMatrix = ele.getComputedStyleProperty('transform'); // Returns matrix(2, 0, 0, 2, 200, 400)
    }

Don't miss a new lynx-stack release

NewReleases is sending notifications on new releases.