Skip to content

Commit 36fb1b9

Browse files
committed
feat(geo-layers): New geo-layers module, unbreak website
1 parent 657765b commit 36fb1b9

File tree

87 files changed

+383
-62
lines changed

Some content is hidden

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

87 files changed

+383
-62
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ body:
2626
value: |
2727
Tips: Before filing a new bug:
2828
Check [existing issues](https://github.com/visgl/deck.gl-community/issues)to avoid filing duplicate bugs.
29-
You may find answers faster by searching in [the documentation](https://deck.gl-community/search).
29+
You may find answers faster by searching in the documentation.
3030
- type: checkboxes
3131
id: flavor
3232
attributes:

.github/workflows/test.yaml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,33 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22-
- uses: volta-cli/action@5c175f92dea6f48441c436471e6479dbc192e194 # v4.2.1
22+
- uses: volta-cli/action@2d68418f32546fd191eb666e232b321d5726484d # v4.1.1
2323
with:
24+
node-version: ${{ matrix.node-version }}
2425
cache: 'yarn'
2526

2627
- name: Install dependencies
2728
run: |
28-
yarn
29-
yarn bootstrap
29+
yarn install
30+
env:
31+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
3032

31-
- name: Build packages
32-
run: yarn build
33+
- name: Build code
34+
run: |
35+
yarn build
36+
37+
- name: Run tests in Puppeteer and generage Coverage
38+
run: |
39+
yarn test cover
3340
34-
- name: Run tests
41+
- name: Run tests on Node
42+
run: |
43+
yarn test node
44+
45+
- name: Run lint
3546
run: |
3647
yarn lint
37-
yarn test
48+
49+
- name: Test website build
50+
run: |
51+
yarn test-website

docs/modules/geo-layers/README.md

Lines changed: 20 additions & 0 deletions

docs/modules/layers/api-reference/global-grid-layer.md renamed to docs/modules/geo-layers/api-reference/global-grid-layer.md

Lines changed: 9 additions & 5 deletions

docs/modules/geo-layers/sidebar.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "category",
3+
"label": "@deck.gl-community/geo-layers",
4+
"items": [
5+
"modules/layers/README",
6+
"modules/geo-layers/api-reference/global-grid-layer",
7+
"modules/geo-layers/api-reference/tile-source-layer"
8+
]
9+
}

docs/modules/infovis-layers/README.md

Lines changed: 20 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "category",
3+
"label": "@deck.gl-community/layers",
4+
"items": [
5+
"modules/infovis-layers/README"
6+
]
7+
}

docs/modules/layers/sidebar.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"items": [
55
"modules/layers/README",
66
"modules/layers/api-reference/path-marker-layer",
7-
"modules/layers/api-reference/path-outline-layer",
8-
"modules/layers/api-reference/tile-source-layer"
7+
"modules/layers/api-reference/path-outline-layer"
98
]
109
}

docs/upgrade-guide.md

Lines changed: 1 addition & 6 deletions

docs/whats-new.md

Lines changed: 1 addition & 6 deletions
File renamed without changes.
File renamed without changes.

modules/geo-layers/LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2015 - 2021 Uber Technologies, Inc.
2+
Copyright (c) 2022 - 2023 vis.gl contributors
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
THE SOFTWARE.

modules/geo-layers/README.md

Lines changed: 5 additions & 0 deletions

modules/geo-layers/package.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "@deck.gl-community/geo-layers",
3+
"version": "9.1.0-beta.5",
4+
"description": "Add-0n geospatial layers for deck.gl",
5+
"license": "MIT",
6+
"keywords": [
7+
"layers",
8+
"visualization",
9+
"gpu",
10+
"deck.gl"
11+
],
12+
"type": "module",
13+
"sideEffects": false,
14+
"types": "./dist/index.d.ts",
15+
"main": "./dist/index.cjs",
16+
"module": "./dist/index.js",
17+
"exports": {
18+
".": {
19+
"types": "./dist/index.d.ts",
20+
"require": "./dist/index.cjs",
21+
"import": "./dist/index.js"
22+
}
23+
},
24+
"files": [
25+
"dist",
26+
"src"
27+
],
28+
"scripts": {
29+
"test": "vitest run",
30+
"test-watch": "vitest"
31+
},
32+
"dependencies": {
33+
"@deck.gl/core": "^9.1.12",
34+
"@deck.gl/extensions": "^9.1.0",
35+
"@deck.gl/geo-layers": "^9.1.0",
36+
"@deck.gl/layers": "^9.1.0",
37+
"@deck.gl/mesh-layers": "^9.1.0",
38+
"@deck.gl/react": "^9.1.0",
39+
"@loaders.gl/core": "^4.2.0",
40+
"@loaders.gl/i3s": "^4.2.0",
41+
"@loaders.gl/loader-utils": "^4.2.0",
42+
"@loaders.gl/schema": "^4.2.0",
43+
"@loaders.gl/tiles": "^4.2.0",
44+
"@luma.gl/constants": "^9.1.9",
45+
"@luma.gl/core": "^9.1.9",
46+
"@luma.gl/engine": "^9.1.9",
47+
"@math.gl/core": "^4.0.0",
48+
"a5-js": "^0.1.4",
49+
"h3-js": "^4.2.1"
50+
},
51+
"devDependencies": {
52+
"@deck.gl/test-utils": "^9.1.12",
53+
"@luma.gl/webgpu": "^9.1.9"
54+
}
55+
}

modules/geo-layers/src/index.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// deck.gl-community
2+
// SPDX-License-Identifier: MIT
3+
// Copyright (c) vis.gl contributors
4+
5+
export type {TileSourceLayerProps} from './tile-source-layer/tile-source-layer';
6+
export {TileSourceLayer} from './tile-source-layer/tile-source-layer';
7+
8+
export {GlobalGridLayer, type GlobalGridLayerProps} from './global-grid-layer/global-grid-layer';
9+
10+
export {type GlobalGrid} from './global-grid-systems/grids/global-grid';
11+
export {A5Grid} from './global-grid-systems/grids/a5-grid';
12+
export {H3Grid} from './global-grid-systems/grids/h3-grid';
13+
export {S2Grid} from './global-grid-systems/grids/s2-grid';
14+
export {GeohashGrid} from './global-grid-systems/grids/geohash-grid';
15+
export {QuadkeyGrid} from './global-grid-systems/grids/quadkey-grid';

modules/geo-layers/tsconfig.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "../../tsconfig.json",
3+
"include": ["src/**/*"],
4+
"exclude": ["node_modules"],
5+
"compilerOptions": {
6+
"composite": true,
7+
"rootDir": "src",
8+
"outDir": "dist",
9+
"noEmit": false
10+
}
11+
}

modules/infovis-layers/LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2015 - 2021 Uber Technologies, Inc.
2+
Copyright (c) 2022 - 2023 vis.gl contributors
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
THE SOFTWARE.

modules/infovis-layers/README.md

Lines changed: 5 additions & 0 deletions

modules/infovis-layers/package.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"private": true,
3+
"name": "@deck.gl-community/infovis-layers",
4+
"version": "9.1.0-beta.5",
5+
"description": "Infovis layers (non-geospatial) for deck.gl",
6+
"license": "MIT",
7+
"keywords": [
8+
"layers",
9+
"visualization",
10+
"gpu",
11+
"deck.gl"
12+
],
13+
"type": "module",
14+
"sideEffects": false,
15+
"types": "./dist/index.d.ts",
16+
"main": "./dist/index.cjs",
17+
"module": "./dist/index.js",
18+
"exports": {
19+
".": {
20+
"types": "./dist/index.d.ts",
21+
"require": "./dist/index.cjs",
22+
"import": "./dist/index.js"
23+
}
24+
},
25+
"files": [
26+
"dist",
27+
"src"
28+
],
29+
"scripts": {
30+
"test": "vitest run",
31+
"test-watch": "vitest"
32+
},
33+
"dependencies": {
34+
"@deck.gl/core": "^9.1.12",
35+
"@deck.gl/extensions": "^9.1.0",
36+
"@deck.gl/layers": "^9.1.0",
37+
"@deck.gl/mesh-layers": "^9.1.0",
38+
"@deck.gl/react": "^9.1.0",
39+
"@loaders.gl/core": "^4.2.0",
40+
"@loaders.gl/i3s": "^4.2.0",
41+
"@loaders.gl/loader-utils": "^4.2.0",
42+
"@loaders.gl/schema": "^4.2.0",
43+
"@luma.gl/constants": "^9.1.9",
44+
"@luma.gl/core": "^9.1.9",
45+
"@luma.gl/engine": "^9.1.9",
46+
"@math.gl/core": "^4.0.0",
47+
"a5-js": "^0.1.4",
48+
"h3-js": "^4.2.1"
49+
},
50+
"devDependencies": {
51+
"@deck.gl/test-utils": "^9.1.12",
52+
"@luma.gl/webgpu": "^9.1.9"
53+
}
54+
}

modules/infovis-layers/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// deck.gl-community
2+
// SPDX-License-Identifier: MIT
3+
// Copyright (c) vis.gl contributors
4+
5+
// TBA
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import {describe, it, expect} from 'vitest';
2+
3+
describe('Dummy Test', () => {
4+
it('is empty', () => {
5+
expect(true).toBeTruthy();
6+
});
7+
});

0 commit comments

Comments
 (0)