new Workspace(options)
Parameters:
| Name | Type | Description |
|---|---|---|
options |
bu.WorkspaceOptions | Workspace options. |
- Source:
- bu/workspace.js
Fires:
- ol.Object.Event#event:change:layout
- ol.Object.Event#event:change:size
- ol.Object.Event#event:change:target
Extends
- ol.Object
Members
-
actions :Array.<bu.action.Action>
-
Type:
- Array.<bu.action.Action>
- Source:
- bu/workspace.js
-
containers :Array.<Element>
-
Type:
- Array.<Element>
- Source:
- bu/workspace.js
-
controls :Array.<bu.control.Control>
-
Type:
- Array.<bu.control.Control>
- Source:
- bu/workspace.js
-
layout :bu.Layout
-
Type:
- Source:
- bu/workspace.js
-
subcontainers :Array.<Element>
-
Type:
- Array.<Element>
- Source:
- bu/workspace.js
-
viewers :Array.<bu.Viewer>
-
Type:
- Array.<bu.Viewer>
- Source:
- bu/workspace.js
Methods
-
changeLayout(column, row, visibility)
-
Changes the layout modifying the visibility of a viewer. The viewer is identified by its current column row position.
Parameters:
Name Type Description columnnumber The column number for the viewer to change.
rownumber The row number (rows are inside the previous column) for the viewer to change.
visibilityboolean If should be visible or not.
- Source:
- bu/workspace.js
-
getLayout()
-
Gets the layout.
- Source:
- bu/workspace.js
Returns:
The current layout.
- Type
- bu.Layout
-
getSize()
-
Get the size of this workspace.
- Source:
- bu/workspace.js
Returns:
The size in pixels of the workspace in the DOM.
- Type
- bu.Size | undefined
-
getTarget()
-
Gets the target in which the workspace is rendered. Note that this returns what is entered as an option or in setTarget: if that was an element, it returns an element; if a string, it returns that.
- Source:
- bu/workspace.js
Returns:
The Element or id of the Element that the workspace is rendered in.
- Type
- Element | string | undefined
-
getTargetElement()
-
Gets the DOM element into which this workspace is rendered. In contrast to
getTargetthis method always return anElement, ornullif the workspace has no target.- Source:
- bu/workspace.js
Returns:
The element that the workspace is rendered in.
- Type
- Element
-
setSize(size)
-
Set the size of this workspace.
Parameters:
Name Type Description sizebu.Size | undefined The size in pixels of the workspace in the DOM.
- Source:
- bu/workspace.js
-
setTarget(target)
-
Sets the target element to render this workspace into.
Parameters:
Name Type Description targetElement | string | undefined The Element or id of the Element that the workspace is rendered in.
- Source:
- bu/workspace.js
-
updateSize()
-
Force a recalculation of the workspace viewport size. This should be called when third-party code changes the size of the workspace viewport.
- Source:
- bu/workspace.js
Javascript API 7.x