@@ -14,33 +14,33 @@ declare module 'polybooljs' {
1414 geopolys : Polygon [ ] ;
1515 }
1616
17- export default interface PolyBool {
18- /**
19- * Getter/setter for buildLog
20- */
21- buildLog : ( bl : boolean ) => object [ ] | boolean ,
22- /**
23- * Getter/setter for epsilon
24- */
25- epsilon : ( value : number ) => number ,
26- segments : ( poly : Polygon ) => Segment ,
27- combine : ( segment1 : Segment , segment2 : Segment ) => {
28- combined : object ;
29- inverted1 : boolean ;
30- inverted2 : boolean ;
31- } ,
32- selectUnion : ( combined : object ) => Segment ,
33- selectIntersect : ( combined : object ) => Segment ,
34- selectDifference : ( combined : object ) => Segment ,
35- selectDifferenceRev : ( combined : object ) => Segment ,
36- selectXor : ( combined : object ) => Segment ,
37- polygon : ( segments : Segment ) => Polygon ,
38- polygonFromGeoJSON : ( geojson : GeoJSON ) => Polygon ,
39- polygonToGeoJSON : ( poly : Polygon ) => GeoJSON ,
40- union : ( poly1 : Polygon , poly2 : Polygon ) => Polygon ,
41- intersect : ( poly1 : Polygon , poly2 : Polygon ) => Polygon ,
42- difference : ( poly1 : Polygon , poly2 : Polygon ) => Polygon ,
43- differenceRev : ( poly1 : Polygon , poly2 : Polygon ) => Polygon ,
44- xor : ( poly1 : Polygon , poly2 : Polygon ) => Polygon
45- }
46- }
17+ /**
18+ * Getter/setter for buildLog
19+ */
20+ export function buildLog ( bl : boolean ) : object [ ] | boolean ;
21+
22+ /**
23+ * Getter/setter for epsilon
24+ */
25+ export function epsilon ( value : number ) : number ;
26+
27+ export function segments ( poly : Polygon ) : Segment ;
28+ export function combine ( segment1 : Segment , segment2 : Segment ) : {
29+ combined : object ;
30+ inverted1 : boolean ;
31+ inverted2 : boolean ;
32+ } ;
33+ export function selectUnion ( combined : object ) : Segment ;
34+ export function selectIntersect ( combined : object ) : Segment ;
35+ export function selectDifference ( combined : object ) : Segment ;
36+ export function selectDifferenceRev ( combined : object ) : Segment ;
37+ export function selectXor ( combined : object ) : Segment ;
38+ export function polygon ( segments : Segment ) : Polygon ;
39+ export function polygonFromGeoJSON ( geojson : GeoJSON ) : Polygon ;
40+ export function polygonToGeoJSON ( poly : Polygon ) : GeoJSON ;
41+ export function union ( poly1 : Polygon , poly2 : Polygon ) : Polygon ;
42+ export function intersect ( poly1 : Polygon , poly2 : Polygon ) : Polygon ;
43+ export function difference ( poly1 : Polygon , poly2 : Polygon ) : Polygon ;
44+ export function differenceRev ( poly1 : Polygon , poly2 : Polygon ) : Polygon ;
45+ export function xor ( poly1 : Polygon , poly2 : Polygon ) : Polygon ;
46+ }
0 commit comments