mirror of
https://github.com/mapillary/mapillary-js.git
synced 2026-01-25 14:07:28 +00:00
feat: add api to get canvas container
This commit is contained in:
parent
d5098b3b03
commit
a320a2fe77
@ -449,6 +449,18 @@ export class Viewer extends EventEmitter {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the HTML element containing the viewer's <canvas> element.
|
||||
*
|
||||
* @description This is the element to which event bindings for viewer
|
||||
* interactivity (such as panning and zooming) are attached.
|
||||
*
|
||||
* @returns {HTMLElement} The container viewer's <canvas> element.
|
||||
*/
|
||||
public getCanvasContainer(): HTMLElement {
|
||||
return this._container.canvasContainer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the basic coordinates of the current image that is
|
||||
* at the center of the viewport.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user