版博士V2.0程序
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

20 rader
511 B

  1. import Path, { PathProps } from '../Path';
  2. export declare class RectShape {
  3. r?: number | number[];
  4. x: number;
  5. y: number;
  6. width: number;
  7. height: number;
  8. }
  9. export interface RectProps extends PathProps {
  10. shape?: Partial<RectShape>;
  11. }
  12. declare class Rect extends Path<RectProps> {
  13. shape: RectShape;
  14. constructor(opts?: RectProps);
  15. getDefaultShape(): RectShape;
  16. buildPath(ctx: CanvasRenderingContext2D, shape: RectShape): void;
  17. isZeroArea(): boolean;
  18. }
  19. export default Rect;