UNPKG

605 BTypeScriptView Raw
1declare type IdType = string | number;
2export interface ViewFitOptions {
3 nodes: IdType[];
4 minZoomLevel: number;
5 maxZoomLevel: number;
6}
7/**
8 * Validate the fit options, replace missing optional values by defaults etc.
9 *
10 * @param rawOptions - The raw options.
11 * @param allNodeIds - All node ids that will be used if nodes are omitted in
12 * the raw options.
13 *
14 * @returns Options with everything filled in and validated.
15 */
16export declare function normalizeFitOptions(rawOptions: Partial<ViewFitOptions>, allNodeIds: IdType[]): ViewFitOptions;
17export {};
18//# sourceMappingURL=index.d.ts.map
\No newline at end of file