@babylonjs/inspector 5.15.0 → 5.17.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.
@@ -57997,7 +57997,7 @@ class LoadAnimationComponent extends react__WEBPACK_IMPORTED_MODULE_2__.Componen
57997
57997
  loadFromSnippetServer() {
57998
57998
  const context = this.props.context;
57999
57999
  const snippetId = this._textInput.current.value;
58000
- core_Misc_tools__WEBPACK_IMPORTED_MODULE_1__.Animation.CreateFromSnippetAsync(snippetId)
58000
+ core_Misc_tools__WEBPACK_IMPORTED_MODULE_1__.Animation.ParseFromSnippetAsync(snippetId)
58001
58001
  .then((animations) => {
58002
58002
  context.snippetId = snippetId;
58003
58003
  if (animations.length !== undefined) {
@@ -62925,7 +62925,7 @@ class ParticleSystemPropertyGridComponent extends react__WEBPACK_IMPORTED_MODULE
62925
62925
  }
62926
62926
  system.dispose();
62927
62927
  this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
62928
- core_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__.ParticleHelper.CreateFromSnippetAsync(snippedId, scene, isGpu)
62928
+ core_Particles_particleSystem__WEBPACK_IMPORTED_MODULE_9__.ParticleHelper.ParseFromSnippetAsync(snippedId, scene, isGpu)
62929
62929
  .then((newSystem) => {
62930
62930
  this.props.globalState.onSelectionChangedObservable.notifyObservers(newSystem);
62931
62931
  })
@@ -62953,8 +62953,8 @@ class ParticleSystemPropertyGridComponent extends react__WEBPACK_IMPORTED_MODULE
62953
62953
  const windowAsAny = window;
62954
62954
  if (windowAsAny.Playground && oldId) {
62955
62955
  windowAsAny.Playground.onRequestCodeChangeObservable.notifyObservers({
62956
- regex: new RegExp(`ParticleHelper.CreateFromSnippetAsync\\("${oldId}`, "g"),
62957
- replace: `ParticleHelper.CreateFromSnippetAsync("${system.snippetId}`,
62956
+ regex: new RegExp(`ParticleHelper.ParseFromSnippetAsync\\("${oldId}`, "g"),
62957
+ replace: `ParticleHelper.ParseFromSnippetAsync("${system.snippetId}`,
62958
62958
  });
62959
62959
  }
62960
62960
  alert("Particle system saved with ID: " + system.snippetId + " (please note that the id was also saved to your clipboard)");
@@ -63948,7 +63948,7 @@ class SpriteManagerPropertyGridComponent extends react__WEBPACK_IMPORTED_MODULE_
63948
63948
  }
63949
63949
  spriteManager.dispose();
63950
63950
  this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
63951
- core_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__.SpriteManager.CreateFromSnippetAsync(snippedId, scene)
63951
+ core_Sprites_spriteManager__WEBPACK_IMPORTED_MODULE_3__.SpriteManager.ParseFromSnippetAsync(snippedId, scene)
63952
63952
  .then((newManager) => {
63953
63953
  this.props.globalState.onSelectionChangedObservable.notifyObservers(newManager);
63954
63954
  })
@@ -63976,8 +63976,8 @@ class SpriteManagerPropertyGridComponent extends react__WEBPACK_IMPORTED_MODULE_
63976
63976
  const windowAsAny = window;
63977
63977
  if (windowAsAny.Playground && oldId) {
63978
63978
  windowAsAny.Playground.onRequestCodeChangeObservable.notifyObservers({
63979
- regex: new RegExp(`SpriteManager.CreateFromSnippetAsync\\("${oldId}`, "g"),
63980
- replace: `SpriteManager.CreateFromSnippetAsync("${spriteManager.snippetId}`,
63979
+ regex: new RegExp(`SpriteManager.ParseFromSnippetAsync\\("${oldId}`, "g"),
63980
+ replace: `SpriteManager.ParseFromSnippetAsync("${spriteManager.snippetId}`,
63981
63981
  });
63982
63982
  }
63983
63983
  alert("Sprite manager saved with ID: " + spriteManager.snippetId + " (please note that the id was also saved to your clipboard)");
@@ -67288,6 +67288,7 @@ class SceneTreeItemComponent extends react__WEBPACK_IMPORTED_MODULE_5__.Componen
67288
67288
  }
67289
67289
  if (!scene.reservedDataStore.gizmoManager) {
67290
67290
  scene.reservedDataStore.gizmoManager = new core_Events_pointerEvents__WEBPACK_IMPORTED_MODULE_1__.GizmoManager(scene);
67291
+ scene.reservedDataStore.gizmoManager.utilityLayer.setRenderCamera(scene.activeCamera);
67291
67292
  }
67292
67293
  const manager = scene.reservedDataStore.gizmoManager;
67293
67294
  // Allow picking of light gizmo when a gizmo mode is selected
@@ -69981,10 +69982,8 @@ __webpack_require__.r(__webpack_exports__);
69981
69982
  /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../../../node_modules/@fortawesome/react-fontawesome/index.es.js");
69982
69983
  /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
69983
69984
  /* harmony import */ var _colorPickerComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./colorPickerComponent */ "../../../dev/sharedUiComponents/dist/lines/colorPickerComponent.js");
69984
- /* harmony import */ var _textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./textInputLineComponent */ "../../../dev/sharedUiComponents/dist/lines/textInputLineComponent.js");
69985
- /* harmony import */ var _targetsProxy__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./targetsProxy */ "../../../dev/sharedUiComponents/dist/lines/targetsProxy.js");
69986
- /* harmony import */ var _copy_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./copy.svg */ "../../../dev/sharedUiComponents/dist/lines/copy.svg");
69987
-
69985
+ /* harmony import */ var _targetsProxy__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./targetsProxy */ "../../../dev/sharedUiComponents/dist/lines/targetsProxy.js");
69986
+ /* harmony import */ var _copy_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./copy.svg */ "../../../dev/sharedUiComponents/dist/lines/copy.svg");
69988
69987
 
69989
69988
 
69990
69989
 
@@ -70024,7 +70023,7 @@ class ColorLineComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
70024
70023
  if (!property)
70025
70024
  return emptyColor;
70026
70025
  if (typeof property === "string") {
70027
- if (property === _targetsProxy__WEBPACK_IMPORTED_MODULE_8__.conflictingValuesPlaceholder) {
70026
+ if (property === _targetsProxy__WEBPACK_IMPORTED_MODULE_7__.conflictingValuesPlaceholder) {
70028
70027
  return emptyColor;
70029
70028
  }
70030
70029
  return this._convertToColor(property);
@@ -70126,9 +70125,7 @@ class ColorLineComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
70126
70125
  const chevron = this.state.isExpanded ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__.FontAwesomeIcon, { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__.faMinus }) : (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__.FontAwesomeIcon, { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__.faPlus });
70127
70126
  return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", Object.assign({ className: "color3Line" }, { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", Object.assign({ className: "firstLine" }, { children: [this.props.icon && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("img", { src: this.props.icon, title: this.props.iconLabel, alt: this.props.iconLabel, className: "icon" }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", Object.assign({ className: "label", title: this.props.label }, { children: this.props.label })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", Object.assign({ className: "color3" }, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_colorPickerComponent__WEBPACK_IMPORTED_MODULE_6__.ColorPickerLineComponent, { lockObject: this.props.lockObject, linearHint: this.props.isLinear, value: this.props.disableAlpha ? this._toColor3(this.state.color) : this.state.color, onColorChanged: (colorString) => {
70128
70127
  this.setColorFromString(colorString);
70129
- } }) })), this.props.lockObject && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_textInputLineComponent__WEBPACK_IMPORTED_MODULE_7__.TextInputLineComponent, { lockObject: this.props.lockObject, label: "", value: this.state.color.toHexString(), onChange: (newValue) => {
70130
- this.setColorFromString(newValue);
70131
- }, onPropertyChangedObservable: this.props.onPropertyChangedObservable })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", Object.assign({ className: "copy hoverIcon", onClick: () => this.copyToClipboard(), title: "Copy to clipboard" }, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("img", { src: _copy_svg__WEBPACK_IMPORTED_MODULE_9__, alt: "Copy" }) })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", Object.assign({ className: "expand hoverIcon", onClick: () => this.switchExpandState(), title: "Expand" }, { children: chevron }))] })), this.state.isExpanded && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", Object.assign({ className: "secondLine" }, { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__.NumericInputComponent, { lockObject: this.props.lockObject, label: "r", value: this.state.color.r, onChange: (value) => this.updateStateR(value) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__.NumericInputComponent, { lockObject: this.props.lockObject, label: "g", value: this.state.color.g, onChange: (value) => this.updateStateG(value) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__.NumericInputComponent, { lockObject: this.props.lockObject, label: "b", value: this.state.color.b, onChange: (value) => this.updateStateB(value) }), this.props.disableAlpha || ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__.NumericInputComponent, { lockObject: this.props.lockObject, label: "a", value: this.state.color.a, onChange: (value) => this.updateStateA(value) }))] })))] })));
70128
+ } }) })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", Object.assign({ className: "copy hoverIcon", onClick: () => this.copyToClipboard(), title: "Copy to clipboard" }, { children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("img", { src: _copy_svg__WEBPACK_IMPORTED_MODULE_8__, alt: "Copy" }) })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", Object.assign({ className: "expand hoverIcon", onClick: () => this.switchExpandState(), title: "Expand" }, { children: chevron }))] })), this.state.isExpanded && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", Object.assign({ className: "secondLine" }, { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__.NumericInputComponent, { lockObject: this.props.lockObject, label: "r", value: this.state.color.r, onChange: (value) => this.updateStateR(value) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__.NumericInputComponent, { lockObject: this.props.lockObject, label: "g", value: this.state.color.g, onChange: (value) => this.updateStateG(value) }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__.NumericInputComponent, { lockObject: this.props.lockObject, label: "b", value: this.state.color.b, onChange: (value) => this.updateStateB(value) }), this.props.disableAlpha || ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__.NumericInputComponent, { lockObject: this.props.lockObject, label: "a", value: this.state.color.a, onChange: (value) => this.updateStateA(value) }))] })))] })));
70132
70129
  }
70133
70130
  }
70134
70131