mirror of https://github.com/ANL-CEEESA/RELOG.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
934 B
28 lines
934 B
import { pointer } from 'd3-selection';
|
|
import type { CoordinateExtent, PanZoomInstance, Transform } from '../types';
|
|
export type XYMinimapInstance = {
|
|
update: (params: XYMinimapUpdate) => void;
|
|
destroy: () => void;
|
|
pointer: typeof pointer;
|
|
};
|
|
export type XYMinimapParams = {
|
|
panZoom: PanZoomInstance;
|
|
domNode: Element;
|
|
getTransform: () => Transform;
|
|
getViewScale: () => number;
|
|
};
|
|
export type XYMinimapUpdate = {
|
|
translateExtent: CoordinateExtent;
|
|
width: number;
|
|
height: number;
|
|
inversePan?: boolean;
|
|
zoomStep?: number;
|
|
pannable?: boolean;
|
|
zoomable?: boolean;
|
|
};
|
|
export declare function XYMinimap({ domNode, panZoom, getTransform, getViewScale }: XYMinimapParams): {
|
|
update: ({ translateExtent, width, height, zoomStep, pannable, zoomable, inversePan, }: XYMinimapUpdate) => void;
|
|
destroy: () => void;
|
|
pointer: typeof pointer;
|
|
};
|
|
//# sourceMappingURL=index.d.ts.map
|