@equinor/videx-wellog
Version:
Visualisation components for wellbore log data
30 lines (29 loc) • 973 B
TypeScript
import { D3Selection, Scale } from '../../common/interfaces';
import { LegendConfig } from '../../utils/legend-helper';
export interface LabelBounds {
offsetX: number;
offsetY: number;
size: number;
rotateText: boolean;
length: number;
}
/**
* Renders scale ticks to selection
*/
export declare function renderTicks(selection: D3Selection, x: Scale, lb: LabelBounds, max: number): void;
/**
* Renders scale ticks to selection horizontally
*/
export declare function renderHorizontalTicks(selection: D3Selection, x: Scale, lb: LabelBounds, max: number): void;
/**
* Computes the label bounds at a given scale
*/
export declare function computeLabelBounds(xscale: Scale): LabelBounds;
/**
* Computes the label bounds at a given scale
*/
export declare function computeLabelBoundsHorizontal(yscale: Scale): LabelBounds;
/**
* Config object required for track config in order to add legend
*/
export declare const scaleLegendConfig: LegendConfig;