globe.gl 2.39.6 → 2.40.0

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/README.md CHANGED
@@ -113,6 +113,7 @@ new Globe(<domElement>, { configOptions })
113
113
  | --- | --- | :--: |
114
114
  | <b>width</b>([<i>px</i>]) | Getter/setter for the canvas width. | *&lt;window width&gt;* |
115
115
  | <b>height</b>([<i>px</i>]) | Getter/setter for the canvas height. | *&lt;window height&gt;* |
116
+ | <b>globeOffset</b>([<i>[px, px]</i>]) | Getter/setter for the position offset of the globe relative to the canvas center. | `[0, 0]` |
116
117
  | <b>backgroundColor</b>([<i>str</i>]) | Getter/setter for the background color. | `#000011` |
117
118
  | <b>backgroundImageUrl</b>([<i>url</i>]) | Getter/setter for the URL of the equirectangular projection image to be used as background to the globe. If no image is provided, the background color is shown instead. | `null` |
118
119
 
@@ -40,6 +40,8 @@ interface GlobeGenericInstance<ChainableInstance>
40
40
  width(width: number): ChainableInstance;
41
41
  height(): number;
42
42
  height(height: number): ChainableInstance;
43
+ globeOffset(): [number, number];
44
+ globeOffset(offset: [number, number]): ChainableInstance;
43
45
  backgroundColor(): string;
44
46
  backgroundColor(color: string): ChainableInstance;
45
47
  backgroundImageUrl(): string | null;