Skip to content

Instantly share code, notes, and snippets.

@anithegregorian
Created November 20, 2021 09:17
Show Gist options
  • Save anithegregorian/7ea8f229da8652a23694548b1855ef50 to your computer and use it in GitHub Desktop.
Save anithegregorian/7ea8f229da8652a23694548b1855ef50 to your computer and use it in GitHub Desktop.
/**
* Creates the required containers.
*/
EditorUi.prototype.createUi = function () {
// Creates menubar
// this.menubar = (this.editor.chromeless) ? null : this.menus.createMenubar(this.createDiv('geMenubar'));
//
// if (this.menubar != null)
// {
// this.menubarContainer.appendChild(this.menubar.container);
// }
//
// // Adds status bar in menubar
// if (this.menubar != null)
// {
// this.statusContainer = this.createStatusContainer();
//
// // Connects the status bar to the editor status
// this.editor.addListener('statusChanged', mxUtils.bind(this, function()
// {
// this.setStatusText(this.editor.getStatus());
// }));
//
// this.setStatusText(this.editor.getStatus());
// this.menubar.container.appendChild(this.statusContainer);
//
// // Inserts into DOM
// this.container.appendChild(this.menubarContainer);
// }
// Creates the sidebar
this.sidebar = (this.editor.chromeless) ? null : this.createSidebar(this.sidebarContainer);
if (this.sidebar != null) {
this.container.appendChild(this.sidebarContainer);
}
// Creates the format sidebar
this.format = (this.editor.chromeless || !this.formatEnabled) ? null : this.createFormat(this.formatContainer);
if (this.format != null) {
this.container.appendChild(this.formatContainer);
}
// Creates the footer
// var footer = (this.editor.chromeless) ? null : this.createFooter();
//
// if (footer != null)
// {
// this.footerContainer.appendChild(footer);
// this.container.appendChild(this.footerContainer);
// }
if (this.sidebar != null && this.sidebarFooterContainer) {
this.container.appendChild(this.sidebarFooterContainer);
}
this.container.appendChild(this.diagramContainer);
if (this.container != null && this.tabContainer != null) {
this.container.appendChild(this.tabContainer);
}
// Creates toolbar
// this.toolbar = (this.editor.chromeless) ? null : this.createToolbar(this.createDiv('geToolbar'));
//
// if (this.toolbar != null)
// {
// this.toolbarContainer.appendChild(this.toolbar.container);
// this.container.appendChild(this.toolbarContainer);
// }
// HSplit
if (this.sidebar != null) {
// this.container.appendChild(this.hsplit);
//
// this.addSplitHandler(this.hsplit, true, 0, mxUtils.bind(this, function(value)
// {
// this.hsplitPosition = value;
// this.refresh();
// }));
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment