Skip to content

Commit c46ac28

Browse files
authored
Merge branch 'master' into master
2 parents b7874d2 + 3b5f94a commit c46ac28

File tree

135 files changed

+1189
-943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+1189
-943
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,14 @@ Before release:
212212

213213
Run the following release commands, replacing `7.0.0` with your version number:
214214

215-
- create a release branch, replacing `xx` with your initials to make it clear who created the branch.
216-
- `git checkout origin/master -b xx/release-7.0.0`
215+
- create a release branch and switch to it. All building, tagging and publishing will be done on the release branch, and then merged back into master in a later step.
216+
- `git checkout origin/master -b release-7.0.0`
217217

218218
- increment the version number of all packages, and create a local commit, without pushing to origin. This will also create a release tag.
219219
- `pnpm lerna version --no-commit-hooks --no-push 7.0.0`
220220

221221
- Push the release branch and the release tag.
222-
- `git push origin xx/release-7.0.0 --follow-tags`
222+
- `git push origin release-7.0.0 --follow-tags`
223223
- Pushing the tag will trigger the Github [release](https://github.com/Turfjs/turf/blob/master/.github/workflows/release.yml) action which you can view the status of at - https://github.com/Turfjs/turf/actions. If successful, a new [version](https://www.npmjs.com/package/@turf/turf?activeTab=versions) of all turf packages will have been published on NPM.
224224

225225
- If the release action was not successful
@@ -228,16 +228,17 @@ Run the following release commands, replacing `7.0.0` with your version number:
228228
- Then reset by deleting your tag and branch locally and remotely.
229229
- `git push --delete origin v7.1.0`
230230
- `git tag --delete v7.1.0`
231-
- `git push -d origin xx/release-7.0.0`
232-
- `git branch -d xx/release-7.0.0`
231+
- `git push -d origin release-7.0.0`
232+
- `git branch -d release-7.0.0`
233233
- Now redo the steps above starting with creating "A clean local copy of the Turf Github repository"
234234

235-
- If the release action was successful, now create a Pull Request for the release to update master.
235+
- If the release action was successful, now create a Pull Request for the release to merge back to master.
236236
- You may be given a link in the output of the branch/tag push command to create the PR.
237237
- If you don't get this message, just go to https://github.com/Turfjs/turf/pulls and you should be prompted at the top to create a PR for this new branch you just pushed.
238238
- If that prompt doesn't appear, then just create a new pull request from the PR page and make sure the title is the version number e.g. `v7.0.0` and that it is merging your release branch -> to master.
239239
- Here is an example PR - https://github.com/Turfjs/turf/pull/2615.
240-
- Get approval for the release PR and merge it!
240+
- Get approval for the release PR, then "Squash and merge" it.
241+
- Do not delete this branch in Github after merging, the release tag points to it. If you do, click "Restore branch" at the bottom of the merged PR.
241242

242243
#### Follow-on steps
243244
- As part of the release action, a draft Github release will have been created at https://github.com/Turfjs/turf/releases with an auto-generated changelog.

documentation.yml

Lines changed: 160 additions & 159 deletions
Original file line numberDiff line numberDiff line change
@@ -1,165 +1,166 @@
11
toc:
2-
- name: Measurement
3-
- along
4-
- area
5-
- bbox
6-
- bboxPolygon
7-
- bearing
8-
- center
9-
- centerOfMass
10-
- centroid
11-
- destination
12-
- distance
13-
- envelope
14-
- length
15-
- midpoint
16-
- pointOnFeature
17-
- polygonTangents
18-
- pointToLineDistance
19-
- rhumbBearing
20-
- rhumbDestination
21-
- rhumbDistance
22-
- square
23-
- greatCircle
24-
- name: Coordinate Mutation
25-
- cleanCoords
26-
- flip
27-
- rewind
28-
- round
29-
- truncate
30-
- name: Transformation
31-
- bboxClip
32-
- bezierSpline
33-
- buffer
34-
- circle
35-
- clone
36-
- concave
37-
- convex
38-
- difference
39-
- dissolve
40-
- intersect
41-
- lineOffset
42-
- polygonSmooth
43-
- simplify
44-
- tesselate
45-
- transformRotate
46-
- transformTranslate
47-
- transformScale
48-
- union
49-
- voronoi
50-
- name: Feature Conversion
51-
- combine
52-
- explode
53-
- flatten
54-
- lineToPolygon
55-
- polygonize
56-
- polygonToLine
57-
- name: Misc
58-
- kinks
59-
- lineArc
60-
- lineChunk
61-
- lineIntersect
62-
- lineOverlap
63-
- lineSegment
64-
- lineSlice
65-
- lineSliceAlong
66-
- lineSplit
67-
- mask
68-
- nearestPointOnLine
69-
- sector
70-
- shortestPath
71-
- unkinkPolygon
72-
- name: Helper
73-
- featureCollection
74-
- feature
75-
- geometryCollection
76-
- lineString
77-
- multiLineString
78-
- multiPoint
79-
- multiPolygon
80-
- point
81-
- polygon
82-
- name: Random
83-
- randomPosition
84-
- randomPoint
85-
- randomLineString
86-
- randomPolygon
87-
- name: Data
88-
- sample
89-
- name: Interpolation
90-
- interpolate
91-
- isobands
92-
- isolines
93-
- planepoint
94-
- tin
95-
- name: Joins
96-
- pointsWithinPolygon
97-
- tag
98-
- name: Grids
99-
- hexGrid
100-
- pointGrid
101-
- squareGrid
102-
- triangleGrid
103-
- name: Classification
104-
- nearestPoint
105-
- name: Aggregation
106-
- collect
107-
- clustersDbscan
108-
- clustersKmeans
109-
- name: Meta
110-
- coordAll
111-
- coordEach
112-
- coordReduce
113-
- featureEach
114-
- featureReduce
115-
- flattenEach
116-
- flattenReduce
117-
- getCoord
118-
- getCoords
119-
- getGeom
120-
- getType
121-
- geomEach
122-
- geomReduce
123-
- propEach
124-
- propReduce
125-
- segmentEach
126-
- segmentReduce
127-
- getCluster
128-
- clusterEach
129-
- clusterReduce
130-
- name: Assertions
131-
- collectionOf
132-
- containsNumber
133-
- geojsonType
134-
- featureOf
135-
- name: Booleans
136-
- booleanClockwise
137-
- booleanConcave
138-
- booleanContains
139-
- booleanCrosses
140-
- booleanDisjoint
141-
- booleanEqual
142-
- booleanIntersects
143-
- booleanOverlap
144-
- booleanParallel
145-
- booleanPointInPolygon
146-
- booleanPointOnLine
147-
- booleanTouches
148-
- booleanWithin
149-
- name: Unit Conversion
150-
- bearingToAzimuth
151-
- azimuthToBearing
152-
- convertArea
153-
- convertLength
154-
- degreesToRadians
155-
- lengthToRadians
156-
- lengthToDegrees
157-
- radiansToLength
158-
- radiansToDegrees
159-
- toMercator
160-
- toWgs84
2+
Measurement:
3+
- along
4+
- area
5+
- bbox
6+
- bboxPolygon
7+
- bearing
8+
- center
9+
- centerOfMass
10+
- centroid
11+
- destination
12+
- distance
13+
- envelope
14+
- length
15+
- midpoint
16+
- pointOnFeature
17+
- polygonTangents
18+
- pointToLineDistance
19+
- rhumbBearing
20+
- rhumbDestination
21+
- rhumbDistance
22+
- square
23+
- greatCircle
24+
Coordinate Mutation:
25+
- cleanCoords
26+
- flip
27+
- rewind
28+
- round
29+
- truncate
30+
Transformation:
31+
- bboxClip
32+
- bezierSpline
33+
- buffer
34+
- circle
35+
- clone
36+
- concave
37+
- convex
38+
- difference
39+
- dissolve
40+
- intersect
41+
- lineOffset
42+
- polygonSmooth
43+
- simplify
44+
- tesselate
45+
- transformRotate
46+
- transformTranslate
47+
- transformScale
48+
- union
49+
- voronoi
50+
Feature Conversion:
51+
- combine
52+
- explode
53+
- flatten
54+
- lineToPolygon
55+
- polygonize
56+
- polygonToLine
57+
Misc:
58+
- kinks
59+
- lineArc
60+
- lineChunk
61+
- lineIntersect
62+
- lineOverlap
63+
- lineSegment
64+
- lineSlice
65+
- lineSliceAlong
66+
- lineSplit
67+
- mask
68+
- nearestPointOnLine
69+
- sector
70+
- shortestPath
71+
- unkinkPolygon
72+
Helper:
73+
- featureCollection
74+
- feature
75+
- geometryCollection
76+
- lineString
77+
- multiLineString
78+
- multiPoint
79+
- multiPolygon
80+
- point
81+
- polygon
82+
Random:
83+
- randomPosition
84+
- randomPoint
85+
- randomLineString
86+
- randomPolygon
87+
Data:
88+
- sample
89+
Interpolation:
90+
- interpolate
91+
- isobands
92+
- isolines
93+
- planepoint
94+
- tin
95+
Joins:
96+
- pointsWithinPolygon
97+
- tag
98+
Grids:
99+
- hexGrid
100+
- pointGrid
101+
- squareGrid
102+
- triangleGrid
103+
Classification:
104+
- nearestPoint
105+
Aggregation:
106+
- collect
107+
- clustersDbscan
108+
- clustersKmeans
109+
Meta:
110+
- coordAll
111+
- coordEach
112+
- coordReduce
113+
- featureEach
114+
- featureReduce
115+
- flattenEach
116+
- flattenReduce
117+
- getCoord
118+
- getCoords
119+
- getGeom
120+
- getType
121+
- geomEach
122+
- geomReduce
123+
- propEach
124+
- propReduce
125+
- segmentEach
126+
- segmentReduce
127+
- getCluster
128+
- clusterEach
129+
- clusterReduce
130+
Assertions:
131+
- collectionOf
132+
- containsNumber
133+
- geojsonType
134+
- featureOf
135+
Booleans:
136+
- booleanClockwise
137+
- booleanConcave
138+
- booleanContains
139+
- booleanCrosses
140+
- booleanDisjoint
141+
- booleanEqual
142+
- booleanIntersects
143+
- booleanOverlap
144+
- booleanParallel
145+
- booleanPointInPolygon
146+
- booleanPointOnLine
147+
- booleanTouches
148+
- booleanWithin
149+
Unit Conversion:
150+
- bearingToAzimuth
151+
- azimuthToBearing
152+
- convertArea
153+
- convertLength
154+
- degreesToRadians
155+
- lengthToRadians
156+
- lengthToDegrees
157+
- radiansToLength
158+
- radiansToDegrees
159+
- toMercator
160+
- toWgs84
161161
paths:
162162
GeoJSON: "https://tools.ietf.org/html/rfc7946#section-3"
163+
GeoJsonProperties: "https://tools.ietf.org/html/rfc7946#section-3.2"
163164
GeometryCollection: "https://tools.ietf.org/html/rfc7946#section-3.1.8"
164165
Point: "https://tools.ietf.org/html/rfc7946#section-3.1.2"
165166
Points: "https://tools.ietf.org/html/rfc7946#section-3.1.2"

packages/turf-along/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Takes a [LineString][1] and returns a [Point][2] at a specified distance along t
88

99
### Parameters
1010

11-
* `line` **[Feature][3]<[LineString][1]>** input line
11+
* `line` **([Feature][3]<[LineString][1]> | [LineString][1])** input line
1212
* `distance` **[number][4]** distance along the line
13-
* `options` **[Object][5]?** Optional parameters
13+
* `options` **[Object][5]?** Optional parameters (optional, default `{}`)
1414

15-
* `options.units` **[string][6]** can be degrees, radians, miles, or kilometers (optional, default `"kilometers"`)
15+
* `options.units` **Units** can be degrees, radians, miles, or kilometers (optional, default `"kilometers"`)
1616

1717
### Examples
1818

@@ -38,8 +38,6 @@ Returns **[Feature][3]<[Point][2]>** Point `distance` `units` along the line
3838

3939
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
4040

41-
[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
42-
4341
<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run "yarn docs" from the root of the turf project. -->
4442

4543
---

0 commit comments

Comments
 (0)