@highcharts/dashboards
Version:
Highcharts Dashboards framework
101 lines (100 loc) • 2.8 kB
TypeScript
import type { Chart, Highcharts as H } from './HighchartsTypes';
import type Cell from '../Layout/Cell';
import type { Options } from './NavigatorComponentOptions';
import type Sync from '../Components/Sync/Sync';
import type SidebarPopup from '../EditMode/SidebarPopup';
import Component from '../Components/Component.js';
/**
* Setup a component with data navigation.
*/
declare class NavigatorComponent extends Component {
/** @private */
static charter: H;
/**
* Default options of the Navigator component.
*/
static defaultOptions: Partial<Options>;
/**
* Creates component from JSON.
*
* @param json
* Set of component options, used for creating the Highcharts component.
*
* @returns
* Highcharts component based on config from JSON.
*
* @private
*/
static fromJSON(json: Component.JSON, cell: Cell): NavigatorComponent;
constructor(cell: Cell, options: Options);
/**
* Reference to the navigator chart.
*/
chart: Chart;
/**
* HTML element where the navigator is created.
*/
chartContainer: HTMLElement;
/**
* Options for the navigator component
*/
options: Options;
/**
* Reference to the sync system that allow to sync i.e tooltips.
* @private
*/
sync: Sync;
/**
* The content of the navigator is of type string.
* @private
*/
private stringData?;
/**
* An array of virtual x-axis categories. Index is value on the x-axis.
* @private
*/
private categories?;
/** @private */
private adjustNavigator;
/**
* Returns the first column of columnAssignments to use for navigator data.
* @private
*
* @return
* Navigator column assignment.
*/
getColumnAssignment(): [string, string];
/**
* Gets the component's options.
* @internal
*/
getOptions(): Partial<Options>;
/**
* Gets the extremes of the navigator's x-axis.
*/
getAxisExtremes(): [number, number] | [string, string];
/** @private */
load(): Promise<this>;
onTableChanged(): void;
/** @private */
private redrawNavigator;
/** @private */
render(): this;
/** @private */
private renderNavigator;
/**
* Generates the data for the crossfilter navigator.
*/
private generateCrossfilterData;
/** @private */
resize(width?: (number | string | null), height?: (number | string | null)): this;
/**
* Handles updating via options.
*
* @param options
* The options to apply.
*/
update(options: Partial<Options>, shouldRerender?: boolean): Promise<void>;
getOptionsOnDrop(sidebar: SidebarPopup): Partial<Options>;
}
export default NavigatorComponent;