UNPKG

svader

Version:

Create GPU-rendered Svelte components

19 lines (18 loc) 550 B
/** * Observe all changes to the device-pixel-content-box of a node. * * @param {Element} node * @returns {ActionReturn<void, Attributes>} */ export function devicePixelResizeObserver(node: Element): ActionReturn<void, Attributes>; /** * <T, A> */ export type ActionReturn<T, A extends Record<string, any>> = import("svelte/action").ActionReturn<T, A>; export type DevicePixelResizeEvent = CustomEvent<{ width: number; height: number; }>; export type Attributes = { "on:devicepixelresize"?: (e: DevicePixelResizeEvent) => void; };