chart-0714
Version:
Professional trading chart library with advanced customization for trading journal apps
21 lines (20 loc) • 697 B
TypeScript
import { ChartPoint } from '../../types';
export declare class DrawingMeasureManager {
private measureMode;
private measureStartPoint;
private measureEndPoint;
private measureFixed;
private onMeasureChange?;
setMeasureChangeCallback(callback: (start: ChartPoint | null, end: ChartPoint | null, fixed: boolean) => void): void;
startMeasure(point: ChartPoint): void;
updateMeasure(endPoint: ChartPoint): void;
fixMeasure(endPoint: ChartPoint): void;
cancelMeasure(): void;
isMeasureMode(): boolean;
getMeasurePoints(): {
start: ChartPoint | null;
end: ChartPoint | null;
fixed: boolean;
};
isMeasureFixed(): boolean;
}