版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
468 B

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