@hpcc-js/react
Version:
hpcc-js - Viz React
41 lines (40 loc) • 1.29 kB
TypeScript
import * as PReact from "./preact-shim.ts";
interface CircleProps {
radius?: number;
fill?: string;
stroke?: string;
strokeWidth?: number;
shapeRendering?: "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision";
}
export declare const Circle: PReact.FunctionComponent<CircleProps>;
interface SquareProps {
radius?: number;
cornerRadius?: number;
fill?: string;
stroke?: string;
strokeWidth?: number;
shapeRendering?: "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision";
}
export declare const Square: PReact.FunctionComponent<SquareProps>;
interface RectangleProps {
width?: number;
height?: number;
cornerRadius?: number;
fill?: string;
stroke?: string;
strokeWidth?: number;
shapeRendering?: "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision";
}
export declare const Rectangle: PReact.FunctionComponent<RectangleProps>;
interface ShapeProps {
shape?: "circle" | "square" | "rectangle";
height?: number;
width?: number;
fill?: string;
stroke?: string;
strokeWidth?: number;
shapeRendering?: "auto" | "optimizeSpeed" | "crispEdges" | "geometricPrecision";
cornerRadius?: number;
}
export declare const Shape: PReact.FunctionComponent<ShapeProps>;
export {};