Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update common type for compatibility #2448

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
release-notes:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

if: github.repository_owner == 'visgl'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
test-node:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
check_branch:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
should_deploy: ${{ endsWith(github.ref, steps.get_version.outputs.latest) }}

Expand All @@ -21,7 +21,7 @@ jobs:
echo "latest=${LATEST}-release" >> "$GITHUB_OUTPUT"

deploy:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: check_branch

permissions:
Expand Down
12 changes: 12 additions & 0 deletions src/types/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ export interface MapInstance extends Evented {

triggerRepaint(): void;

getCenter(): LngLat;

getZoom(): number;

getBearing(): number;

getPitch(): number;

getPadding(): PaddingOptions;

getRenderWorldCopies(): boolean;

setPadding(padding: PaddingOptions);

fitBounds(bounds: any, options?: any);
Expand Down
Loading