UNPKG

@tempots/dom

Version:

Fully-typed frontend framework alternative to React and Angular

14 lines (13 loc) 552 B
import { Prop } from '@tempots/core'; import { Renderable } from '../types/domain'; import { PinchZoomState, PinchZoomConfig } from '../dom/pinch-zoom'; /** * A Tempo renderable that attaches pinch-to-zoom touch handlers to the * parent element. The handlers are automatically removed on disposal. * * @param state - A `Prop` holding the current zoom/pan state. * @param config - Optional scale limits. * @returns A renderable. * @public */ export declare const PinchZoom: (state: Prop<PinchZoomState>, config?: PinchZoomConfig) => Renderable;