mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
📝 Document pane location methods in Workspace
This commit is contained in:
parent
c34061a52e
commit
55a0fcb3f2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user