resize-observer

Polyfills the ResizeObserver API.

APACHE-2.0 License

Downloads
15.7M
Stars
961
Committers
6

Bot releases are visible (Hide)

resize-observer - v2.4.0

Published by TremayneChrist almost 5 years ago

  • Removes RAF overrides
  • Uses micro tasks to schedule recalculations
resize-observer - v2.3.0

Published by TremayneChrist about 5 years ago

  • Adds safe global object
  • Removes window references
  • Supports loading of library in non-browser environments
resize-observer - v2.2.1

Published by TremayneChrist about 5 years ago

  • Remove IE transpilation wording from readme
resize-observer - v2.2.0

Published by TremayneChrist over 5 years ago

This version includes fixes for many of the Web Platform Tests and pre-transpiles code so that no polyfills or conversion is needed for IE11 and other older browsers.

  • No longer observes non-replaced inline elements (#57).
  • Supports different writing modes and returns correct values for inline/block sizes (#59).
  • Scope change: observer.callback.this = observer (#58).
  • Library is now pre-transpiled to ES5. Modules are still ESM (#39).
resize-observer - v2.2.0-pre.0

Published by TremayneChrist over 5 years ago

resize-observer - v2.0.3

Published by TremayneChrist over 5 years ago

  • Add module field to package.json
resize-observer - v2.0.2

Published by TremayneChrist over 5 years ago

  • Republished version to npm as lib folder was missing.
    Thanks to @mvsde for spotting this!
resize-observer - v2.0.0

Published by TremayneChrist over 5 years ago

Update the shape of the ResizeObserverEntry to match the latest version of the spec.

entry = {
  target: <element>,
  contentRect: { /* v1 backwards compat */ },
  borderBoxSize: { inlineSize, blockSize },
  contentBoxSize: { inlineSize, blockSize }
}
  • Removes support for scroll-box.
  • Removes support for device-pixel-border-box. This will be added when/if defined in the spec.
  • Updates contentSize to contentBoxSize.
resize-observer - v1.3.0

Published by TremayneChrist over 5 years ago

Fixes issues where animations/transitions were not initially being noticed.

resize-observer - v1.2.0

Published by TremayneChrist over 5 years ago

resize-observer - v1.1.2

Published by TremayneChrist over 5 years ago

  • Update box demo link in docs.
resize-observer - v1.1.1

Published by TremayneChrist over 5 years ago

  • Fixes an issue that was introduced in v1.1.0 where calculations couldn't initially be scheduled if a requestAnimationFrame loop was being used.
resize-observer - v1.1.0

Published by TremayneChrist over 5 years ago

This version improves animation and transition event performance, by removing listeners during processing and calculation checks.

resize-observer - v1.0.1

Published by TremayneChrist over 5 years ago

  • Updated docs to include box demo
  • Description and keywords updated for npm
resize-observer - v1.0.0

Published by TremayneChrist over 5 years ago

Stable Release

resize-observer - v1.0.0-rc.2

Published by TremayneChrist over 5 years ago

  • Fixes issue with resize loop errors on element removal.
  • Adds scrollbar width support, enabling correct size information when element has scrollbars.
  • Improves function names for debugging.
resize-observer - v1.0.0-rc.1

Published by TremayneChrist over 5 years ago

  • Removes inline default exports
resize-observer - v0.10.1

Published by TremayneChrist over 5 years ago

Fixes #26

resize-observer - v1.0.0-rc.0

Published by TremayneChrist over 5 years ago

  • Throws type errors for arguments.
  • Modifies requestAnimationFrame to fire observations at the correct time.
  • Fixes #6, #16 and #28
resize-observer - v0.10.0

Published by TremayneChrist over 5 years ago

Package Rankings
Top 1.22% on Npmjs.org
Top 20.56% on Repo1.maven.org
Top 6.7% on Proxy.golang.org