Skip to content

Commit 5abe426

Browse files
Update common type for compatibility (#2448)
1 parent 5f773a4 commit 5abe426

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
release-notes:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111

1212
if: github.repository_owner == 'visgl'
1313

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
test-node:
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-22.04
1313

1414
steps:
1515
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

.github/workflows/website.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
check_branch:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
outputs:
1212
should_deploy: ${{ endsWith(github.ref, steps.get_version.outputs.latest) }}
1313

@@ -21,7 +21,7 @@ jobs:
2121
echo "latest=${LATEST}-release" >> "$GITHUB_OUTPUT"
2222
2323
deploy:
24-
runs-on: ubuntu-latest
24+
runs-on: ubuntu-22.04
2525
needs: check_branch
2626

2727
permissions:

src/types/lib.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ export interface MapInstance extends Evented {
8181

8282
triggerRepaint(): void;
8383

84+
getCenter(): LngLat;
85+
86+
getZoom(): number;
87+
88+
getBearing(): number;
89+
90+
getPitch(): number;
91+
92+
getPadding(): PaddingOptions;
93+
94+
getRenderWorldCopies(): boolean;
95+
8496
setPadding(padding: PaddingOptions);
8597

8698
fitBounds(bounds: any, options?: any);

0 commit comments

Comments
 (0)