index.d.ts 714 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import {
  2. FeatureCollection,
  3. Feature,
  4. Position,
  5. Polygon,
  6. Properties,
  7. Point,
  8. } from "@turf/helpers";
  9. /**
  10. * http://turfjs.org/docs/#standarddeviational-ellipse
  11. */
  12. export interface SDEProps {
  13. meanCenterCoordinates: Position;
  14. semiMajorAxis: number;
  15. semiMinorAxis: number;
  16. numberOfFeatures: number;
  17. angle: number;
  18. percentageWithinEllipse: number;
  19. }
  20. export interface StandardDeviationalEllipse extends Feature<Polygon> {
  21. properties: {
  22. standardDeviationalEllipse: SDEProps;
  23. [key: string]: any;
  24. };
  25. }
  26. export default function (
  27. points: FeatureCollection<Point>,
  28. options?: {
  29. properties?: Properties;
  30. weight?: string;
  31. steps?: number;
  32. }
  33. ): StandardDeviationalEllipse;