@devgateway/dvz-ui-react
Version:
A modular, embeddable React component library for data visualization and UI, built with TypeScript. Provides reusable components for charts, maps, dashboards, and more, with built-in support for internationalization and Redux integration.
28 lines (27 loc) • 817 B
TypeScript
import { default as React } from 'react';
export default ZoomControl;
declare class ZoomControl extends React.Component<any, any, any> {
constructor(props: any);
zoomRef: React.RefObject<any>;
lastInternalZoom: {
x: number;
y: number;
k: number;
} | null;
lastUserTransform: any;
zoomed(event: any): void;
zoomEnd(event: any): void;
zoomIn(): void;
zoomOut(): void;
reset(): void;
fullView(): void;
transition2fullView(): void;
_fullView(transition?: boolean): void;
zoom: d3.ZoomBehavior<Element, any>;
componentDidMount(): void;
componentDidUpdate(prevProps: any): void;
zoomTo(xy: any): void;
getSelection(): d3.Selection<any, any, null, undefined> | null;
render(): React.JSX.Element;
}
import * as d3 from 'd3';