UNPKG

@visactor/vrender-core

Version:

```typescript import { xxx } from '@visactor/vrender-core'; ```

16 lines (15 loc) 505 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'; drawStrokeWhenZeroWH: boolean; }; export type IRectGraphicAttribute = Partial<IGraphicAttribute> & Partial<IRectAttribute>; export interface IRect extends IGraphic<IRectGraphicAttribute> { cache?: ICustomPath2D; }