Skip to content

Commit ae3dd9f

Browse files
ibesoragithub-actions[bot]
authored andcommitted
Remove unused dependency @types/mapbox__point-geometry
GitOrigin-RevId: 002bd5b03931cff0af03aa74be2c311ee7350f0f
0 parents  commit ae3dd9f

File tree

8,930 files changed

+709503
-0
lines changed

Some content is hidden

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

8,930 files changed

+709503
-0
lines changed

.browserslistrc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Mapbox GL JS - Supported Browsers
2+
# ==================================
3+
# Static list based on required features:
4+
# - WebGL 2
5+
# - Worker type:'module'
6+
# - Promise.allSettled
7+
# - async/await
8+
#
9+
# Browser | Limiting Feature | Min
10+
# ---------------|-----------------------|----
11+
# Chrome | Worker type:'module' | 80
12+
# Safari | WebGL 2 | 15
13+
# Firefox | Worker type:'module' | 114
14+
# Edge | Worker type:'module' | 80
15+
# Chrome Android | Worker type:'module' | 80
16+
# iOS Safari | WebGL 2 | 15
17+
18+
chrome >= 80
19+
safari >= 15
20+
firefox >= 114
21+
edge >= 80
22+
and_chr >= 80
23+
ios_saf >= 15

.claude/settings.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"env": {
3+
"ENABLE_BACKGROUND_TASKS": "1",
4+
"CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR": "1"
5+
},
6+
"permissions": {
7+
"allow": [
8+
"Bash(rg:*)",
9+
"Bash(ls:*)",
10+
"Bash(cp:*)",
11+
"Bash(find:*)",
12+
"Bash(grep:*)",
13+
"Bash(npm run:*)",
14+
"Bash(npm test:*)",
15+
"WebFetch(domain:docs.mapbox.com)",
16+
"WebFetch(domain:developer.mozilla.org)"
17+
],
18+
"deny": [],
19+
"defaultMode": "plan"
20+
}
21+
}

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
end_of_line = lf
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
charset = utf-8
9+
10+
[*.{js,html,css}]
11+
indent_style = space
12+
indent_size = 4
13+
14+
[*.{json,yml}]
15+
indent_style = space
16+
indent_size = 2

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @mapbox/gl-js
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
name: Feature request
3+
about: Suggest a feature or enhancement
4+
5+
---
6+
7+
## Motivation
8+
9+
<!--
10+
What problem are we trying to solve? Please link any relevant issues.
11+
What use cases are we trying to accommodate?
12+
13+
Focus on the problem and save design ideas for the next section.
14+
-->
15+
16+
## Design Alternatives
17+
18+
<!--
19+
How could we accommodate the use cases above?
20+
Is "do nothing" an option?
21+
-->
22+
23+
## Design
24+
25+
<!--
26+
Which design should we implement?
27+
What are the advantages of this design?
28+
What are some potential drawbacks of this design?
29+
-->
30+
31+
### Mock-Up
32+
33+
<!--
34+
What will this design look like to developers?
35+
What will this design look like to end users?
36+
-->
37+
38+
### Concepts
39+
40+
<!--
41+
How will we teach this design?
42+
What terminology will work best for the new concepts introduced by this design?
43+
What existing precedents support the new concepts?
44+
Where do the concepts set new precedents?
45+
-->
46+
47+
### Implementation
48+
49+
<!--
50+
How you would implement the design in Javascript?
51+
How you would implement the design in C++?
52+
What parts of the Mapbox GL ecosystem will need to change to accommodate this design?
53+
Are there any important edge cases?
54+
-->

.github/ISSUE_TEMPLATE/Question.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Question
3+
about: Report a question that isn't answered in our docs
4+
5+
---
6+
7+
<!--
8+
Hello! Thanks for contributing.
9+
10+
The answers to many "how do I...?" questions can be found in our [help documentation](https://mapbox.com/help). If you can't find the answer there, the best place to ask is either [Stack Overflow](https://stackoverflow.com/questions/tagged/mapbox-gl-js) or [Mapbox support](https://mapbox.com/contact/).
11+
12+
However, if you have a question that isn't addressed in the documentation but should be, please do let us know by filling out the template below! As a general rule, if a question is about _how Mapbox GL JS works_ rather than your specific use case, we will try to address it here or by improving the documentation. Otherwise, we might close the issue here and instead recommend asking on Stack Overflow or contacting support.
13+
14+
-->
15+
16+
**mapbox-gl-js version**:
17+
18+
### Question
19+
20+
21+
22+
### Links to related documentation
23+
24+
<!-- Include links to the specific section(s) of the documentation where you would have expected to find an answer to this question. -->
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Bug report
2+
description: Report a bug
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Hello! Thanks for contributing. For the fastest response and resolution, please:
8+
- Make the issue title a succinct but specific description of the unexpected behavior. Bad: "Map rotation is broken". Good: "map.setBearing(...) throws a TypeError for negative values"
9+
- Include a link to a minimal demonstration of the bug. We recommend using https://jsbin.com.
10+
- Ensure you can reproduce the bug using the latest release.
11+
- Check the console for relevant errors and warnings
12+
- Only post to report a bug. For feature requests, please use https://github.com/mapbox/mapbox-gl-js/issues/new?template=Feature_request.md instead. Direct all other questions to https://stackoverflow.com/questions/tagged/mapbox-gl-js
13+
- type: input
14+
id: version
15+
attributes:
16+
label: mapbox-gl-js version
17+
description: Which Mapbox GL JS version are you using?
18+
placeholder: ex. v3.13.0
19+
validations:
20+
required: false
21+
- type: input
22+
id: browser
23+
attributes:
24+
label: Browser and version
25+
description: Which browser and version are you using?
26+
placeholder: ex. Chrome 137.0.7151.104
27+
validations:
28+
required: false
29+
- type: textarea
30+
id: expected
31+
attributes:
32+
label: Expected behavior
33+
placeholder: Tell us what you think should happen
34+
validations:
35+
required: false
36+
- type: textarea
37+
id: actual
38+
attributes:
39+
label: Actual behavior
40+
placeholder: Tell us what happens instead
41+
validations:
42+
required: false
43+
- type: input
44+
id: link
45+
attributes:
46+
label: Link to the demonstration
47+
description: Please provide a link to a minimal demonstration of the bug. We recommend using https://jsbin.com.
48+
Providing a minimal, complete, verifiable demonstration *dramatically* improves maintainers' and other community members' ability to understand and address the problem you're reporting. (See https://stackoverflow.com/help/mcve for guidelines on creating an effective example.)
49+
placeholder: ex. https://jsbin.com/...
50+
validations:
51+
required: false
52+
- type: textarea
53+
id: steps
54+
attributes:
55+
label: Steps to trigger the unexpected behavior
56+
placeholder: Tell us how to reproduce the bug
57+
validations:
58+
required: false
59+
- type: textarea
60+
id: logs
61+
attributes:
62+
label: Relevant log output
63+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
64+
render: shell

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Launch Checklist
2+
3+
- [ ] Make sure the PR title is descriptive and preferably reflects the change from the user's perspective.
4+
- [ ] Add additional detail and context in the PR description (with screenshots/videos if there are visual changes).
5+
- [ ] Manually test the debug page.
6+
- [ ] Write tests for all new functionality and make sure the CI checks pass.
7+
- [ ] Document any changes to public APIs.
8+
- [ ] Post benchmark scores if the change could affect performance.
9+
- [ ] Tag `@mapbox/map-design-team` `@mapbox/static-apis` if this PR includes style spec API or visual changes.
10+
- [ ] Tag `@mapbox/gl-native` if this PR includes shader changes or needs a native port.
11+
- [ ] Tag `@mapbox/gl-native` if this PR disables any test because it also needs to be disabled on their side.
12+
- [ ] Create a ticket for `gl-native` to groom in the [MAPSNAT JIRA queue](https://mapbox.atlassian.net/jira/software/c/projects/MAPSNAT/list) if this PR includes shader changes or features not present in the native side or if it disables a test that's not disabled there.

.github/workflows/ci.yml

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'debug/**'
7+
- '**.md'
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version-file: '.nvmrc'
21+
cache: npm
22+
cache-dependency-path: 'package-lock.json'
23+
- run: npm ci --no-audit --no-fund
24+
- run: |
25+
npm run codegen
26+
git add -A && git diff --staged --exit-code
27+
- run: npm run tsc
28+
- run: npm run test-style-spec
29+
- run: npm run test-expressions
30+
- run: npm run lint
31+
- run: npm run lint-css
32+
33+
test-build:
34+
runs-on: ubuntu-latest
35+
permissions:
36+
contents: read
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: actions/setup-node@v4
40+
with:
41+
node-version-file: '.nvmrc'
42+
cache: npm
43+
cache-dependency-path: 'package-lock.json'
44+
- run: npm ci --no-audit --no-fund
45+
- run: npx playwright install chromium --with-deps --no-shell
46+
- run: npm run build-dev
47+
- run: npm run build-prod
48+
- run: npm run build-prod-min
49+
- run: npm run build-esm-prod-min
50+
- run: npm run build-style-spec
51+
- run: npm run build-csp
52+
- run: npm run build-css
53+
- run: npm run test-build
54+
- run: xvfb-run -a npm run test-csp
55+
- run: xvfb-run -a npm run test-esm
56+
- run: npm run build-token
57+
- run: npm run build -w vite-build-test
58+
- run: npm run build -w webpack-build-test
59+
- run: npm run size
60+
- run: npm run prepare-release-pages
61+
if: ${{ always() }}
62+
63+
test-typings:
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v4
67+
- uses: actions/setup-node@v4
68+
with:
69+
cache: npm
70+
node-version-file: '.nvmrc'
71+
cache-dependency-path: 'package-lock.json'
72+
- run: npm ci --no-audit --no-fund
73+
- run: npm test --workspace test/build/typings
74+
75+
test-unit:
76+
runs-on: ubuntu-latest
77+
timeout-minutes: 5
78+
permissions:
79+
contents: read
80+
steps:
81+
- uses: actions/checkout@v4
82+
- uses: actions/setup-node@v4
83+
with:
84+
node-version-file: '.nvmrc'
85+
cache: npm
86+
cache-dependency-path: 'package-lock.json'
87+
- run: npm ci --no-audit --no-fund
88+
- run: npx playwright install chrome --with-deps
89+
- run: xvfb-run -a npm run test-unit
90+
91+
report:
92+
runs-on: ubuntu-latest
93+
if: ${{ !cancelled() }}
94+
permissions:
95+
pull-requests: write
96+
needs: [
97+
check,
98+
test-build,
99+
test-typings,
100+
test-unit
101+
]
102+
steps:
103+
- id: report
104+
run: |
105+
status_emoji() {
106+
case "$1" in
107+
success) echo "✅" ;;
108+
failure) echo "❌" ;;
109+
cancelled) echo "🚫" ;;
110+
skipped) echo "⏭️" ;;
111+
*) echo "❓" ;;
112+
esac
113+
}
114+
115+
overall_status="✅ All Passed"
116+
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then
117+
overall_status="❌ Some Failed"
118+
elif [[ "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
119+
overall_status="🚫 Some Cancelled"
120+
fi
121+
122+
cat >> $GITHUB_STEP_SUMMARY << EOF
123+
## $overall_status
124+
125+
| Job | Status |
126+
|-----|--------|
127+
| check | $(status_emoji "${{ needs.check.result }}") |
128+
| test-build | $(status_emoji "${{ needs.test-build.result }}") |
129+
| test-typings | $(status_emoji "${{ needs.test-typings.result }}") |
130+
| test-unit | $(status_emoji "${{ needs.test-unit.result }}") |
131+
EOF

0 commit comments

Comments
 (0)