UNPKG

@visactor/vrender-core

Version:
15 lines (14 loc) 470 B
import type { IGraphicAttribute, IGraphic } from '../graphic'; import type { ICustomPath2D } from '../path'; export type IRectAttribute = { width: number; height: number; x1: number; y1: number; cornerRadius: number | number[]; cornerType: 'round' | 'bevel'; }; export type IRectGraphicAttribute = Partial<IGraphicAttribute> & Partial<IRectAttribute>; export interface IRect extends IGraphic<IRectGraphicAttribute> { cache?: ICustomPath2D; }