UNPKG

@glodon-aiot/react-components

Version:

aiot react components

34 lines (33 loc) 830 B
import { DrawOptions } from './Drawable'; export { default as default } from './Drawable'; export type Identifier = string | number; export interface Point { x: number; y: number; } export interface Marker { id: Identifier; point: Point; } export interface Line { id: Identifier; start: Point; end: Point; } export interface Polygon { id: Identifier; points: Point[]; autoClose?: boolean; options?: PolygonOptions; } export interface PolygonOptions { hideBorder?: boolean; hideBackground?: boolean; borderColor?: string; backgroundColor?: string; } export declare function calAngle(p1: Point, p2: Point, p3?: Point): number; export interface IDrawableContext { options: DrawOptions; } export declare const DrawableContext: import('react').Context<IDrawableContext>;