|
@@ -69,6 +69,7 @@ export class Inspector {
|
|
embedMode: options.embedMode,
|
|
embedMode: options.embedMode,
|
|
handleResize: options.handleResize,
|
|
handleResize: options.handleResize,
|
|
enablePopup: options.enablePopup,
|
|
enablePopup: options.enablePopup,
|
|
|
|
+ enableClose: options.enablePopup,
|
|
explorerExtensibility: options.explorerExtensibility
|
|
explorerExtensibility: options.explorerExtensibility
|
|
};
|
|
};
|
|
}
|
|
}
|
|
@@ -98,6 +99,7 @@ export class Inspector {
|
|
const sceneExplorerElement = React.createElement(SceneExplorerComponent, {
|
|
const sceneExplorerElement = React.createElement(SceneExplorerComponent, {
|
|
scene, globalState: this._GlobalState,
|
|
scene, globalState: this._GlobalState,
|
|
extensibilityGroups: options.explorerExtensibility,
|
|
extensibilityGroups: options.explorerExtensibility,
|
|
|
|
+ noClose: !options.enableClose,
|
|
noExpand: !options.enablePopup, popupMode: options.popup, onPopup: () => {
|
|
noExpand: !options.enablePopup, popupMode: options.popup, onPopup: () => {
|
|
ReactDOM.unmountComponentAtNode(this._SceneExplorerHost!);
|
|
ReactDOM.unmountComponentAtNode(this._SceneExplorerHost!);
|
|
|
|
|
|
@@ -152,7 +154,9 @@ export class Inspector {
|
|
if (this._ActionTabsHost) {
|
|
if (this._ActionTabsHost) {
|
|
this._OpenedPane++;
|
|
this._OpenedPane++;
|
|
const actionTabsElement = React.createElement(ActionTabsComponent, {
|
|
const actionTabsElement = React.createElement(ActionTabsComponent, {
|
|
- globalState: this._GlobalState, scene: scene, noExpand: !options.enablePopup, popupMode: options.popup, onPopup: () => {
|
|
|
|
|
|
+ globalState: this._GlobalState, scene: scene,
|
|
|
|
+ noClose: !options.enableClose,
|
|
|
|
+ noExpand: !options.enablePopup, popupMode: options.popup, onPopup: () => {
|
|
ReactDOM.unmountComponentAtNode(this._ActionTabsHost!);
|
|
ReactDOM.unmountComponentAtNode(this._ActionTabsHost!);
|
|
|
|
|
|
this._RemoveElementFromDOM(this._ActionTabsHost);
|
|
this._RemoveElementFromDOM(this._ActionTabsHost);
|
|
@@ -205,7 +209,10 @@ export class Inspector {
|
|
if (this._EmbedHost) {
|
|
if (this._EmbedHost) {
|
|
this._OpenedPane++;
|
|
this._OpenedPane++;
|
|
const embedHostElement = React.createElement(EmbedHostComponent, {
|
|
const embedHostElement = React.createElement(EmbedHostComponent, {
|
|
- globalState: this._GlobalState, scene: scene, popupMode: options.popup, onPopup: () => {
|
|
|
|
|
|
+ globalState: this._GlobalState, scene: scene,
|
|
|
|
+ noExpand: !options.enablePopup,
|
|
|
|
+ noClose: !options.enableClose,
|
|
|
|
+ popupMode: options.popup, onPopup: () => {
|
|
ReactDOM.unmountComponentAtNode(this._EmbedHost!);
|
|
ReactDOM.unmountComponentAtNode(this._EmbedHost!);
|
|
|
|
|
|
if (options.popup) {
|
|
if (options.popup) {
|
|
@@ -300,6 +307,7 @@ export class Inspector {
|
|
showExplorer: true,
|
|
showExplorer: true,
|
|
showInspector: true,
|
|
showInspector: true,
|
|
embedMode: false,
|
|
embedMode: false,
|
|
|
|
+ enableClose: true,
|
|
handleResize: true,
|
|
handleResize: true,
|
|
enablePopup: true,
|
|
enablePopup: true,
|
|
...userOptions
|
|
...userOptions
|