@cyclomedia/streetsmart-api 26.3.1 → 26.4.0-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyclomedia/streetsmart-api",
3
- "version": "26.3.1",
3
+ "version": "26.4.0-rc.0",
4
4
  "description": "The Streetsmart API wrapped as an npm package",
5
5
  "scripts": {
6
6
  "build:prod": "scripts/build.prod.sh",
@@ -171,6 +171,17 @@ declare module '@cyclomedia/streetsmart-api' {
171
171
  */
172
172
  toggleOverlay(layer: Layer): void;
173
173
 
174
+ /**
175
+ * Returns the same payload as IMAGE_CHANGE for the currently shown image.
176
+ * Use this after StreetSmartApi.open() if the first IMAGE_CHANGE was missed.
177
+ */
178
+ getImageChangeDetails(): {
179
+ footprint: any;
180
+ footprintCentre: any;
181
+ rotation: number;
182
+ srs: string;
183
+ } | null;
184
+
174
185
  on<T extends ObliqueViewerEvents | SharedViewerEvents>(type: T, callback: ObliqueViewerEventCallback<T>): this;
175
186
 
176
187
  off<T extends ObliqueViewerEvents | SharedViewerEvents>(type: T, callback: ObliqueViewerEventCallback<T>): this;