Skip to content

Gifa11y 2.0.4

Latest
Compare
Choose a tag to compare
@adamchaboryk adamchaboryk released this 20 Nov 21:32
  • Ensure Gifa11y buttons are added before elements with [role="link"] and [role="button"] attributes.
  • Added a new prop, useDevicePixelRatio, to support scaling on high-resolution displays using window.devicePixelRatio.
  • Added a resize event listener to the canvas element to ensure it always matches the size of the original image.
  • Disabled the alpha channel, e.g., canvas.getContext("2d", { alpha: false }).
  • Performed minor code cleanup and reorganization.