📝 Document pane location methods in Workspace

This commit is contained in:
Wliu 2017-06-06 23:33:46 -04:00
parent c34061a52e
commit 55a0fcb3f2

View File

@ -1548,22 +1548,27 @@ module.exports = class Workspace extends Model {
Section: Pane Locations
*/
// Essential: Get the {WorkspaceCenter} at the center of the editor window.
getCenter () {
return this.paneContainers.center
}
// Essential: Get the {Dock} to the left of the editor window.
getLeftDock () {
return this.paneContainers.left
}
// Essential: Get the {Dock} to the right of the editor window.
getRightDock () {
return this.paneContainers.right
}
// Essential: Get the {Dock} below the editor window.
getBottomDock () {
return this.paneContainers.bottom
}
// Essential: Get an {Array} of the current {WorkspaceCenter} and {Dock}s.
getPaneContainers () {
return [
this.paneContainers.center,