chart-0714
Version:
Professional trading chart library with advanced customization for trading journal apps
32 lines (31 loc) • 887 B
TypeScript
import { Theme } from '../../types';
import { UnifiedCoordinateSystem } from '../../core/UnifiedCoordinateSystem';
import { WebGLLineHelper } from './WebGLLineHelper';
export interface SnapPoint {
index: number;
price: number;
type: 'open' | 'high' | 'low' | 'close';
}
export declare class SnapPointRenderer {
private theme;
private coordSystem;
private lineHelper;
constructor(theme: Theme, coordSystem: UnifiedCoordinateSystem, lineHelper: WebGLLineHelper);
/**
* Render snap point indicator
*/
render(snapPoint: SnapPoint | null): void;
/**
* Get color for snap point based on type
*/
private getSnapPointColor;
/**
* Draw crosshair lines from snap point
*/
private drawSnapCrosshair;
/**
* Draw snap point type label
*/
private drawSnapLabel;
updateTheme(theme: Theme): void;
}