版博士V2.0程序
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

123456789101112131415161718
  1. import Path, { PathProps } from '../Path';
  2. export declare class StarShape {
  3. cx: number;
  4. cy: number;
  5. n: number;
  6. r0: number;
  7. r: number;
  8. }
  9. export interface StarProps extends PathProps {
  10. shape?: Partial<StarShape>;
  11. }
  12. declare class Star extends Path<StarProps> {
  13. shape: StarShape;
  14. constructor(opts?: StarProps);
  15. getDefaultShape(): StarShape;
  16. buildPath(ctx: CanvasRenderingContext2D, shape: StarShape): void;
  17. }
  18. export default Star;