layout.d.ts 1.7 KB

123456789101112131415161718192021222324252627
  1. /** given a list of set objects, and their corresponding overlaps.
  2. updates the (x, y, radius) attribute on each set such that their positions
  3. roughly correspond to the desired overlaps */
  4. export declare function venn(areas: any, parameters?: any): any;
  5. /** Returns the distance necessary for two circles of radius r1 + r2 to
  6. have the overlap area 'overlap' */
  7. export declare function distanceFromIntersectArea(r1: any, r2: any, overlap: any): any;
  8. export declare function getDistanceMatrices(areas: any, sets: any, setids: any): {
  9. distances: any;
  10. constraints: any;
  11. };
  12. export declare function bestInitialLayout(areas: any, params: any): {};
  13. export declare function constrainedMDSLayout(areas: any, params: any): {};
  14. /** Lays out a Venn diagram greedily, going from most overlapped sets to
  15. least overlapped, attempting to position each new set such that the
  16. overlapping areas to already positioned sets are basically right */
  17. export declare function greedyLayout(areas: any, params: any): {};
  18. /** Given a bunch of sets, and the desired overlaps between these sets - computes
  19. the distance from the actual overlaps to the desired overlaps. Note that
  20. this method ignores overlaps of more than 2 circles */
  21. export declare function lossFunction(sets: any, overlaps: any): number;
  22. export declare function disjointCluster(circles: any): any[];
  23. export declare function normalizeSolution(solution: any, orientation: any, orientationOrder: any): {};
  24. /** Scales a solution from venn.venn or venn.greedyLayout such that it fits in
  25. a rectangle of width/height - with padding around the borders. also
  26. centers the diagram in the available space at the same time */
  27. export declare function scaleSolution(solution: any, width: any, height: any, padding: any): any;