Skip to content

@tmrw-realityos/charmDocs


@tmrw-realityos/charm / ResizeObserverHelper

Class: ResizeObserverHelper

Constructors

new ResizeObserverHelper()

new ResizeObserverHelper(element, callback): ResizeObserverHelper

Parameters

element: HTMLElement

callback

Returns

ResizeObserverHelper

Defined in

packages/charm/src/helpers/resizeObserverHelper.ts:26

Properties

callback()

callback: (logical, device) => void

Parameters

logical: Size

device: Size

Returns

void

Defined in

packages/charm/src/helpers/resizeObserverHelper.ts:24


resizeObserver

resizeObserver: undefined | ResizeObserver

Defined in

packages/charm/src/helpers/resizeObserverHelper.ts:25

Methods

disconnect()

disconnect(): void

Returns

void

Defined in

packages/charm/src/helpers/resizeObserverHelper.ts:77