@babylonjs/inspector 5.19.0 → 5.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58694,7 +58694,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
58694
58694
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "../../../../node_modules/react/jsx-runtime.js");
|
58695
58695
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../../../node_modules/react/index.js");
|
58696
58696
|
/* harmony import */ var shared_ui_components_lines_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! shared-ui-components/lines/color3LineComponent */ "../../../dev/sharedUiComponents/dist/lines/color3LineComponent.js");
|
58697
|
-
/* harmony import */ var core_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core/Misc/
|
58697
|
+
/* harmony import */ var core_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core/Misc/logger */ "core/Misc/observable");
|
58698
58698
|
/* harmony import */ var core_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__);
|
58699
58699
|
/* harmony import */ var shared_ui_components_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! shared-ui-components/lines/checkBoxLineComponent */ "../../../dev/sharedUiComponents/dist/lines/checkBoxLineComponent.js");
|
58700
58700
|
/* harmony import */ var shared_ui_components_lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! shared-ui-components/lines/sliderLineComponent */ "../../../dev/sharedUiComponents/dist/lines/sliderLineComponent.js");
|
@@ -58705,6 +58705,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
58705
58705
|
/* harmony import */ var shared_ui_components_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! shared-ui-components/lines/buttonLineComponent */ "../../../dev/sharedUiComponents/dist/lines/buttonLineComponent.js");
|
58706
58706
|
/* harmony import */ var shared_ui_components_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! shared-ui-components/lines/optionsLineComponent */ "../../../dev/sharedUiComponents/dist/lines/optionsLineComponent.js");
|
58707
58707
|
/* harmony import */ var shared_ui_components_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! shared-ui-components/lines/textLineComponent */ "../../../dev/sharedUiComponents/dist/lines/textLineComponent.js");
|
58708
|
+
/* harmony import */ var shared_ui_components_lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! shared-ui-components/lines/fileButtonLineComponent */ "../../../dev/sharedUiComponents/dist/lines/fileButtonLineComponent.js");
|
58709
|
+
|
58710
|
+
|
58708
58711
|
|
58709
58712
|
|
58710
58713
|
|
@@ -58749,6 +58752,11 @@ class CustomPropertyGridComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Com
|
|
58749
58752
|
} }, inspectable.label));
|
58750
58753
|
case core_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__.InspectableType.Tab:
|
58751
58754
|
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_textLineComponent__WEBPACK_IMPORTED_MODULE_12__.TextLineComponent, { label: inspectable.label, value: " " }, inspectable.label);
|
58755
|
+
case core_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__.InspectableType.FileButton:
|
58756
|
+
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(shared_ui_components_lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_13__.FileButtonLineComponent, { label: inspectable.label, onClick: inspectable.callback ||
|
58757
|
+
function () {
|
58758
|
+
core_Misc_iInspectable__WEBPACK_IMPORTED_MODULE_3__.Logger.Warn("no callback function added");
|
58759
|
+
}, accept: inspectable.accept || "*" }, inspectable.label));
|
58752
58760
|
}
|
58753
58761
|
return null;
|
58754
58762
|
}
|
@@ -66724,7 +66732,7 @@ class AdvancedDynamicTextureTreeItemComponent extends react__WEBPACK_IMPORTED_MO
|
|
66724
66732
|
this.setState({ isInPickingMode: !this.state.isInPickingMode });
|
66725
66733
|
}
|
66726
66734
|
render() {
|
66727
|
-
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", Object.assign({ className: "adtextureTools" }, { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__.TreeItemLabelComponent, { label: this.props.texture.name, onClick: () => this.props.onClick(), icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__.faImage, color: "mediumpurple" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", Object.assign({ className: "icon edit", onClick: () => (0,_guiTools__WEBPACK_IMPORTED_MODULE_6__.EditAdvancedDynamicTexture)(this.props.texture), title: "Edit" }, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__.FontAwesomeIcon, { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__.faPen }) })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", Object.assign({ className: this.state.isInPickingMode ? "pickingMode selected icon" : "pickingMode icon", onClick: () => this.onPickingMode(), title: "Turn picking mode on/off" }, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__.FontAwesomeIcon, { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__.faCrosshairs }) })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__.ExtensionsComponent, { target: this.props.texture, extensibilityGroups: this.props.extensibilityGroups })] })));
|
66735
|
+
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", Object.assign({ className: "adtextureTools" }, { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_treeItemLabelComponent__WEBPACK_IMPORTED_MODULE_2__.TreeItemLabelComponent, { label: this.props.texture.name, onClick: () => this.props.onClick(), icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__.faImage, color: "mediumpurple" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", Object.assign({ className: "icon edit", onClick: () => (0,_guiTools__WEBPACK_IMPORTED_MODULE_6__.EditAdvancedDynamicTexture)(this.props.texture, true), title: "Edit" }, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__.FontAwesomeIcon, { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__.faPen }) })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", Object.assign({ className: this.state.isInPickingMode ? "pickingMode selected icon" : "pickingMode icon", onClick: () => this.onPickingMode(), title: "Turn picking mode on/off" }, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_5__.FontAwesomeIcon, { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_1__.faCrosshairs }) })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_extensionsComponent__WEBPACK_IMPORTED_MODULE_3__.ExtensionsComponent, { target: this.props.texture, extensibilityGroups: this.props.extensibilityGroups })] })));
|
66728
66736
|
}
|
66729
66737
|
}
|
66730
66738
|
|
@@ -66837,8 +66845,9 @@ function SetGUIEditorURL(guiEditorURL) {
|
|
66837
66845
|
* if you are in an ES6 environment, you must first call InjectGUIEditor to provide the gui-editor package
|
66838
66846
|
* If you are in a UMD environment, it will load the package from a URL
|
66839
66847
|
* @param adt
|
66848
|
+
* @param embed defines whether editor is being opened from the Playground
|
66840
66849
|
*/
|
66841
|
-
async function EditAdvancedDynamicTexture(adt) {
|
66850
|
+
async function EditAdvancedDynamicTexture(adt, embed) {
|
66842
66851
|
guiEditorContainer = guiEditorContainer || _getGlobalGUIEditor();
|
66843
66852
|
if (!guiEditorContainer) {
|
66844
66853
|
if (typeof BABYLON !== "undefined") {
|
@@ -66859,7 +66868,7 @@ async function EditAdvancedDynamicTexture(adt) {
|
|
66859
66868
|
throw `Tried to call EditAdvancedDynamicTexture without first injecting the GUI editor. You need to call InjectGUIEditor() with a reference to @babylonjs/gui-editor. It can be imported at runtime using await import("@babylonjs/gui-editor").`;
|
66860
66869
|
}
|
66861
66870
|
}
|
66862
|
-
guiEditorContainer.GUIEditor.Show({ liveGuiTexture: adt });
|
66871
|
+
guiEditorContainer.GUIEditor.Show({ liveGuiTexture: adt }, embed);
|
66863
66872
|
}
|
66864
66873
|
|
66865
66874
|
|