Access the core viewer instance from the embedded viewer.
This commit is contained in:
parent
9c3e6fa3ec
commit
18e35701be
@ -91,7 +91,6 @@
|
||||
let parentDiv = document.getElementById ('viewer');
|
||||
|
||||
// initialize the viewer with the parent element and some parameters
|
||||
// the canvas will be resized according to the size of the parent
|
||||
let viewer = new OV.EmbeddedViewer (parentDiv, {
|
||||
camera : new OV.Camera (
|
||||
new OV.Coord3D (-1.5, -3.0, 2.0),
|
||||
|
||||
@ -101,6 +101,11 @@ OV.EmbeddedViewer = class
|
||||
});
|
||||
}
|
||||
|
||||
GetViewer ()
|
||||
{
|
||||
return this.viewer;
|
||||
}
|
||||
|
||||
Resize ()
|
||||
{
|
||||
let width = this.parentElement.clientWidth;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user