UNPKG

@obliczeniowo/elementary

Version:
21 lines (20 loc) 574 B
import { DrawingContextInterface, Rect } from '@obliczeniowo/elementary/drawing'; import { PieColorsFu, ValueKeyFormat } from '../types/types'; export declare class FlatPieDiagram { dc: DrawingContextInterface; areaRect: Rect; keyValues: { [key: string]: number; }; dr: number; ray: number; valueKeyFormat: ValueKeyFormat; colors: PieColorsFu; constructor(dc: DrawingContextInterface, area: Rect); sum(): number; minMax(): { min: number; max: number; }; draw(dc?: DrawingContextInterface): void; }