UNPKG

@carbon/charts

Version:
19 lines (18 loc) 769 B
import { Component } from '..'; import { RenderTypes } from '../../interfaces/enums'; export declare class GeoProjection extends Component { type: string; renderType: RenderTypes; render(): void; /** * Retrieves the D3 geographic projection based on the options provided. * * This method selects a geographic projection from the available D3 projections * based on the `projection` property in the `thematic` options. If the projection * is not supported or is missing, an error is thrown. * * @returns {d3.GeoProjection} - The D3 geographic projection corresponding to the selected option. * @throws {Error} If the projection is not supported or is missing. */ getProjection(): any; }