Skip to content

Commit fbd9cae

Browse files
author
Don McCurdy
committed
chore(release): v0.4.0-alpha.1
1 parent 56712b8 commit fbd9cae

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ Decodes an string into an index. Inverse of `bigIntToHex()`.
4444
## getResolution
4545

4646
```javascript
47-
function getResolution(quadbin: bigint): bigint
47+
function getResolution(quadbin: bigint): bigint
4848
```
4949

5050
Calculates the resolution of a quadbin cell.
5151

5252
## function cellToParent
5353

5454
```javascript
55-
function cellToParent(quadbin: bigint): bigint
55+
function cellToParent(quadbin: bigint): bigint
5656
```
5757

5858
Calculates the parent cell.
@@ -63,8 +63,7 @@ Calculates the parent cell.
6363
function cellToChildren(quadbin: bigint, resolution: bigint): bigint[]
6464
```
6565

66-
Calculates the child cells at given resolution. Results returned in
67-
row-major order starting from NW and ending at SE.
66+
Calculates the child cells at given resolution.
6867

6968
## tileToCell
7069

@@ -77,21 +76,21 @@ Converts a xyz tile into a quadbin cell.
7776
## cellToTile
7877

7978
```javascript
80-
function cellToTile(quadbin: bigint): Tile
79+
function cellToTile(quadbin: bigint): Tile
8180
```
8281

8382
Converts quadbin cell into a xyz tile.
8483

8584
## geometryToCells
8685

8786
```javascript
88-
function geometryToCells(geometry: GeoJSONGeometry, resolution: bigint): bigint
87+
function geometryToCells(geometry: GeoJSONGeometry, resolution: bigint): bigint
8988
```
9089

9190
## cellToBoundary
9291

9392
```javascript
94-
function cellToBoundary(quadbin: Quadbin): Polygon
93+
function cellToBoundary(quadbin: Quadbin): Polygon
9594
```
9695

9796
Converts a Quadbin cell identifier into a geographical boundary represented as a polygon

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quadbin",
3-
"version": "0.2.0",
3+
"version": "0.4.0-alpha.1",
44
"description": "Utility functions for working with Quadbins",
55
"license": "MIT",
66
"type": "module",
@@ -27,7 +27,7 @@
2727
"url": "https://github.com/CartoDB/quadbin-js.git"
2828
},
2929
"scripts": {
30-
"clean": "rm -rf \"dist/*\"",
30+
"clean": "rm -rf dist/* || true",
3131
"build": "microbundle --name quadbin --format cjs,modern,umd --no-compress",
3232
"build:watch": "microbundle watch --name quadbin --format cjs,modern,umd --no-compress",
3333
"lint": "prettier --check src",
@@ -66,8 +66,5 @@
6666
"@math.gl/web-mercator": "^4.1.0"
6767
},
6868
"packageManager": "yarn@4.3.1",
69-
"volta": {
70-
"node": "20.18.2",
71-
"yarn": "4.3.1"
72-
}
69+
"stableVersion": "0.3.0"
7370
}

scripts/postversion-commit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ if (!valid(version)) {
1515
throw new Error(`Invalid version, "${version}"`);
1616
}
1717

18-
// Check out a branch if cutting a version from 'main'.
18+
// Check out a branch if cutting a version from 'master'.
1919
const branch = execSync('git rev-parse --abbrev-ref HEAD').toString().trim();
20-
if (branch === 'main') {
20+
if (branch === 'master') {
2121
execSync(`git checkout -b 'release/${version}'`);
2222
}
2323

src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ export function cellToParent(quadbin: Quadbin): Quadbin {
108108
}
109109

110110
/**
111-
* Returns the children of a cell, in row-major order starting from NW and ending at SE.
111+
* Returns the children of a cell.
112+
*
113+
* @privateRemarks Order of the child cells would, preferably, be
114+
* row-major starting from NW and ending at SE.
112115
*/
113116
export function cellToChildren(quadbin: Quadbin, resolution: bigint): Quadbin[] {
114117
if (resolution < 0 || resolution > 26 || resolution < getResolution(quadbin)) {

0 commit comments

Comments
 (0)