Commit Graph

25 Commits

Author SHA1 Message Date
Denis
727c305d5e Added more methods to Turf (#11558)
* Added more methods to Turf
- circle
- geojsonType
- propReduce
- coordAll
- tesselate

* Replace Object with GeoJSON
2016-09-29 00:11:29 +09:00
Denis
80e5c9b45b Define Turf 3.5.2 definition (#11123)
* Define Turf 3.5.2 definition
Update all methods with newest JSDocs & tests based on the latest TurfJS library.

AGGREGATION
- [x] collect
MEASUREMENT
- [ ] along
- [ ] area
- [ ] bboxPolygon
- [ ] bearing
- [ ] center
- [ ] centroid
- [ ] destination
- [ ] distance
- [ ] envelope
- [ ] lineDistance
- [ ] midpoint
- [ ] pointOnSurface
- [ ] square
TRANSFORMATION
- [ ] bezier
- [ ] buffer
- [ ] concave
- [ ] convex
- [ ] difference
- [ ] intersect
- [ ] simplify
- [ ] union
MISC
- [ ] combine
- [ ] explode
- [ ] flip
- [ ] kinks
- [ ] lineSlice
- [ ] pointOnLine
HELPER
- [x] featureCollection
- [x] feature
- [x] lineString
- [x] multiLineString
- [x] point
- [x] multiPoint
- [x] polygon
- [x] multiPolygon
- [x] geometryCollection
DATA
- [x] random
- [x] sample
INTERPOLATION
- [ ] isolines
- [ ] planepoint
- [ ] tin
JOINS
- [ ] inside
- [ ] tag
GRIDS
- [ ] hexGrid
- [ ] pointGrid
- [ ] squareGrid
- [ ] triangleGrid
- [ ] within
CLASSIFICATION
- [ ] nearest
META
- [ ] propEach
- [ ] coordEach
- [ ] coordReduce
- [ ] featureEach
- [ ] getCoord
ASSERTIONS
- [ ] featureOf
- [ ] collectionOf
- [ ] bbox
- [ ] circle
- [ ] geojsonType
- [ ] propReduce
- [ ] coordAll
- [ ] tesselate

* Added Turf Grids functions
- Added more variables to data initialisation.
- Remove excess feature points.
- Add URL in `@name` in function JSDocs

GRIDS
- [x] hexGrid
- [x] pointGrid
- [x] squareGrid
- [x] triangleGrid

* Use the latest Turf import
- Added in test case how to import individal functions
npm install in Node.js
```
npm install @turf/turf
```
https://github.com/Turfjs/turf

* Change Turf functions into interfaces

* Added Turf typeof units
`units` is an optional parameter for all Turf functions with the following options `'miles' | 'nauticalmiles' | 'degrees' | 'radians' | 'inches' | 'yards' | 'meters' | 'metres' | 'kilometers' | 'kilometres'`

* Update Turf `inside` & `tag`
Add JSDocs & validate both methods

* Add imports to Turf submodules

* Add Author to Turf
@vvakame followed the same syntax as Lodash

* Simplify Turf `intersect` interface
Turf only officially supports `poly,poly`, all other geometry input/outputs are valid, however can't control the outputs.
https://github.com/Turfjs/turf/pull/479

* Comment Turf export default module
Next release of Turf will have this implemented

* Remove default export turf
Was meant to be a comment instead, removed it for now to be safe, it will become available next release

* Added Turf.bbox function
2016-09-19 15:50:52 +09:00
Mohamed Hegazy
1c60d94f29 Merge pull request #9059 from gcroteau/master
Changed "declare namespace turf" to "declare module turf"
2016-06-26 15:10:44 -07:00
Max Battcher
ccf227b5a8 Add explicit string types to GeoJson definition (#9333)
* Add explicit string types to GeoJson definition

The type names for each interface are explicit in the GeoJson spec and this uses recent TypeScript support for string valued types to make this much more obvious and to check this for us.

* Add explicit type hints to turf tests

Shape-based inferencing in Typescript does not currently appear to support string literal types in TS 1.8.
2016-05-15 02:42:38 +09:00
Riccardo Volonterio
c8714d2d2b Update turf.d.ts (#9035)
Exported as module, so can be used like a module.
2016-04-23 15:24:30 +09:00
gcroteau
2fa4349bcc Changed declare namespace turf to declare module turf 2016-04-20 16:11:22 -04:00
Yukiya Nakagawa
25a296c2e9 Add type definitions for turf 2016-03-20 01:08:31 +09:00
vvakame
7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
gcroteau
8888d55a20 Renamed turf/turf-test.ts to turf/turf-tests.ts 2015-12-01 10:04:25 -05:00
gcroteau
25f513d3bf Cleaned up the definition file. 2015-11-30 10:17:44 -05:00
gcroteau
36b68a0023 Added Aggregation definitions to turf.d.ts. 2015-11-26 23:28:51 -05:00
gcroteau
77365e3b15 Added Classification definitions to turf.d.ts. 2015-11-25 20:11:13 -05:00
gcroteau
1c55a61177 Added Joins definitions to turf.d.ts. 2015-11-25 19:56:27 -05:00
gcroteau
ab3aa41ff7 Added Interpolation definitions to turf.d.ts. 2015-11-25 19:47:29 -05:00
gcroteau
9ce1cff36f Completed Data definitions. 2015-11-25 17:08:37 -05:00
gcroteau
b5b7ec2ce0 Added filter definition. 2015-11-24 23:44:45 -05:00
gcroteau
4d5969f17c Completed the Helper definitions. 2015-11-24 22:47:30 -05:00
gcroteau
bd95f700d1 Completed the Misc definitions. 2015-11-24 21:57:25 -05:00
gcroteau
bbc2af3a3f Completed the Transformation definitions. 2015-11-24 20:22:20 -05:00
gcroteau
848b9d8467 Completed the Measurement definitions. 2015-11-24 19:52:59 -05:00
gcroteau
9488d2229f Added along and area definition. Added related tests. 2015-11-24 16:53:35 -05:00
gcroteau
8ccfe0dd01 Added definition for distance and pointOnLine. Added related tests. 2015-11-24 14:54:21 -05:00
gcroteau
97d7377cf8 Initial commit. Created turf.d.ts and turf-test.ts files. 2015-11-23 22:57:19 -05:00