Skip to content

Commit

Permalink
Update common type for compatibility (#2448)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress authored and chrisgervang committed Dec 19, 2024
1 parent d746ad7 commit fecfe70
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
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

env:
VITE_MAPBOX_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN_CI }}
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

0 comments on commit fecfe70

Please sign in to comment.