close.d.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { Line } from '../line';
  2. import { Segment } from './segment';
  3. import { Point } from '../point';
  4. export declare class Close extends Segment {
  5. get end(): Point;
  6. get type(): string;
  7. get line(): Line;
  8. bbox(): import("..").Rectangle;
  9. closestPoint(p: Point.PointLike | Point.PointData): Point;
  10. closestPointLength(p: Point.PointLike | Point.PointData): number;
  11. closestPointNormalizedLength(p: Point.PointLike | Point.PointData): number;
  12. closestPointTangent(p: Point.PointLike | Point.PointData): Line | null;
  13. length(): number;
  14. divideAt(ratio: number): [Segment, Segment];
  15. divideAtLength(length: number): [Segment, Segment];
  16. getSubdivisions(): never[];
  17. pointAt(ratio: number): Point;
  18. pointAtLength(length: number): Point;
  19. tangentAt(ratio: number): Line | null;
  20. tangentAtLength(length: number): Line | null;
  21. isDifferentiable(): boolean;
  22. scale(): this;
  23. rotate(): this;
  24. translate(): this;
  25. equals(s: Segment): boolean;
  26. clone(): Close;
  27. toJSON(): {
  28. type: string;
  29. start: {
  30. x: number;
  31. y: number;
  32. };
  33. end: {
  34. x: number;
  35. y: number;
  36. };
  37. };
  38. serialize(): string;
  39. }
  40. export declare namespace Close {
  41. function create(): Close;
  42. }