mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
📝 Document pane location methods in Workspace
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user