@xweather/mapsgl 1.8.1 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mapsgl.css +1 -1
- package/dist/mapsgl.d.ts +9 -0
- package/dist/mapsgl.js +4 -4
- package/package.json +1 -1
package/dist/mapsgl.css
CHANGED
package/dist/mapsgl.d.ts
CHANGED
|
@@ -3533,6 +3533,7 @@ get container(): HTMLElement;
|
|
|
3533
3533
|
getSize(): Size;
|
|
3534
3534
|
setSize(size: NumericalOrStringSize): void;
|
|
3535
3535
|
getCenter(): Coordinate;
|
|
3536
|
+
getNonPaddedCenter(): Coordinate;
|
|
3536
3537
|
setCenter(center: Coordinate): void;
|
|
3537
3538
|
getBounds(): CoordinateBounds;
|
|
3538
3539
|
getZoom(): number;
|
|
@@ -3670,6 +3671,7 @@ get needsViewportUpdate(): boolean;
|
|
|
3670
3671
|
* Returns the map's geographical center coordinate.
|
|
3671
3672
|
*/
|
|
3672
3673
|
getCenter(): Coordinate;
|
|
3674
|
+
|
|
3673
3675
|
/**
|
|
3674
3676
|
* Sets the map's geographical center coordinate.
|
|
3675
3677
|
* @param center -
|
|
@@ -4307,6 +4309,7 @@ export declare interface MapViewState {
|
|
|
4307
4309
|
id: string;
|
|
4308
4310
|
size: Size;
|
|
4309
4311
|
center: Coordinate;
|
|
4312
|
+
nonPaddedCenter?: Coordinate;
|
|
4310
4313
|
zoom: number;
|
|
4311
4314
|
bounds: CoordinateBounds;
|
|
4312
4315
|
pitch: number;
|
|
@@ -4315,6 +4318,12 @@ export declare interface MapViewState {
|
|
|
4315
4318
|
fov: number;
|
|
4316
4319
|
farZ?: number;
|
|
4317
4320
|
nearZ?: number;
|
|
4321
|
+
padding?: {
|
|
4322
|
+
top: number;
|
|
4323
|
+
bottom: number;
|
|
4324
|
+
left: number;
|
|
4325
|
+
right: number;
|
|
4326
|
+
};
|
|
4318
4327
|
/**
|
|
4319
4328
|
* Scaler for the far plane, 1 unit equals to the distance from the camera to the edge of the screen. Default
|
|
4320
4329
|
* `1.01`.
|