@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.
29 lines (28 loc) • 836 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;
initialized: boolean;
zoom: d3.ZoomBehavior<Element, any>;
componentDidMount(): void;
componentDidUpdate(prevProps: any): void;
zoomTo(xy: any): void;
getSelection(): d3.Selection<any, any, null, undefined>;
render(): React.JSX.Element;
}
import * as d3 from 'd3';