@obliczeniowo/elementary
Version:
Library made in Angular version 19
21 lines (20 loc) • 574 B
TypeScript
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;
}