@juggle/resize-observer

  • Version 3.3.1
  • Published
  • 73.7 kB
  • No dependencies
  • Apache-2.0 license

Install

npm i @juggle/resize-observer
yarn add @juggle/resize-observer
pnpm add @juggle/resize-observer

Overview

Polyfills the ResizeObserver API and supports box size options from the latest spec

Index

Classes

class ResizeObserver

class ResizeObserver {}

    constructor

    constructor(callback: ResizeObserverCallback);

      method disconnect

      disconnect: () => void;

        method observe

        observe: (target: Element, options?: ResizeObserverOptions) => void;

          method toString

          static toString: () => string;

            method unobserve

            unobserve: (target: Element) => void;

              class ResizeObserverEntry

              class ResizeObserverEntry {}

                constructor

                constructor(target: Element);

                  property borderBoxSize

                  borderBoxSize: readonly ResizeObserverSize[];

                    property contentBoxSize

                    contentBoxSize: readonly ResizeObserverSize[];

                      property contentRect

                      contentRect: DOMRectReadOnly;

                        property devicePixelContentBoxSize

                        devicePixelContentBoxSize: readonly ResizeObserverSize[];

                          property target

                          target: Element;

                            class ResizeObserverSize

                            class ResizeObserverSize {}

                              constructor

                              constructor(inlineSize: number, blockSize: number);

                                property blockSize

                                readonly blockSize: number;

                                  property inlineSize

                                  readonly inlineSize: number;

                                    Package Files (4)

                                    Dependencies (0)

                                    No dependencies.

                                    Dev Dependencies (15)

                                    Peer Dependencies (0)

                                    No peer dependencies.

                                    Badge

                                    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@juggle/resize-observer.

                                    • Markdown
                                      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@juggle/resize-observer)
                                    • HTML
                                      <a href="https://www.jsdocs.io/package/@juggle/resize-observer"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>