@babylonjs/inspector 5.0.0-beta.9 → 5.0.0-rc.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.
@@ -7,7 +7,7 @@
7
7
  exports["babylonjs-inspector"] = factory(require("@babylonjs/core"), require("@babylonjs/gui"), require("@babylonjs/loaders"), require("@babylonjs/materials"), require("@babylonjs/serializers"));
8
8
  else
9
9
  root["INSPECTOR"] = factory(root["BABYLON"], root["BABYLON"]["GUI"], root["BABYLON"], root["BABYLON"]["MATERIALS"], root["BABYLON"]);
10
- })((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this), function(__WEBPACK_EXTERNAL_MODULE__babylonjs_core_Misc_observable__, __WEBPACK_EXTERNAL_MODULE__babylonjs_gui_2D_controls_image__, __WEBPACK_EXTERNAL_MODULE__babylonjs_loaders_glTF_index__, __WEBPACK_EXTERNAL_MODULE__babylonjs_materials_grid_gridMaterial__, __WEBPACK_EXTERNAL_MODULE__babylonjs_serializers_glTF_2_0_index__) {
10
+ })((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this), function(__WEBPACK_EXTERNAL_MODULE__babylonjs_core_Misc_observable__, __WEBPACK_EXTERNAL_MODULE__babylonjs_gui_2D_controls_control__, __WEBPACK_EXTERNAL_MODULE__babylonjs_loaders_glTF_index__, __WEBPACK_EXTERNAL_MODULE__babylonjs_materials_grid_gridMaterial__, __WEBPACK_EXTERNAL_MODULE__babylonjs_serializers_glTF_2_0_index__) {
11
11
  return /******/ (function(modules) { // webpackBootstrap
12
12
  /******/ // The module cache
13
13
  /******/ var installedModules = {};
@@ -45814,6 +45814,7 @@ __webpack_require__.r(__webpack_exports__);
45814
45814
 
45815
45815
 
45816
45816
 
45817
+
45817
45818
  var DebugTabComponent = /** @class */ (function (_super) {
45818
45819
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DebugTabComponent, _super);
45819
45820
  function DebugTabComponent(props) {
@@ -48023,8 +48024,9 @@ var RangeSelectorComponent = /** @class */ (function (_super) {
48023
48024
  "use strict";
48024
48025
  __webpack_require__.r(__webpack_exports__);
48025
48026
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Context", function() { return Context; });
48026
- /* harmony import */ var _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babylonjs/core/Misc/observable */ "@babylonjs/core/Misc/observable");
48027
- /* harmony import */ var _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
48027
+ /* harmony import */ var _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babylonjs/core/Animations/animation */ "@babylonjs/core/Misc/observable");
48028
+ /* harmony import */ var _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__);
48029
+
48028
48030
 
48029
48031
  ;
48030
48032
  var Context = /** @class */ (function () {
@@ -48036,43 +48038,43 @@ var Context = /** @class */ (function () {
48036
48038
  this.referenceMinFrame = 0;
48037
48039
  this.referenceMaxFrame = 100;
48038
48040
  this.focusedInput = false;
48039
- this.onActiveAnimationChanged = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48040
- this.onActiveKeyPointChanged = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48041
- this.onHostWindowResized = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48042
- this.onSelectAllKeys = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48043
- this.onActiveKeyFrameChanged = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48044
- this.onFrameSet = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48045
- this.onFrameManuallyEntered = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48046
- this.onMainKeyPointSet = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48047
- this.onMainKeyPointMoved = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48048
- this.onValueSet = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48049
- this.onValueManuallyEntered = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48050
- this.onFrameRequired = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48051
- this.onCreateOrUpdateKeyPointRequired = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48052
- this.onFlattenTangentRequired = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48053
- this.onLinearTangentRequired = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48054
- this.onBreakTangentRequired = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48055
- this.onUnifyTangentRequired = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48056
- this.onStepTangentRequired = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48057
- this.onDeleteAnimation = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48058
- this.onGraphMoved = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48059
- this.onGraphScaled = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48060
- this.onRangeUpdated = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48061
- this.onMoveToFrameRequired = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48062
- this.onAnimationStateChanged = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48063
- this.onDeleteKeyActiveKeyPoints = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48064
- this.onSelectionRectangleMoved = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48065
- this.onAnimationsLoaded = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48066
- this.onEditAnimationRequired = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48067
- this.onEditAnimationUIClosed = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48068
- this.onClipLengthIncreased = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48069
- this.onClipLengthDecreased = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48070
- this.onInterpolationModeSet = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48071
- this.onSelectToActivated = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48041
+ this.onActiveAnimationChanged = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48042
+ this.onActiveKeyPointChanged = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48043
+ this.onHostWindowResized = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48044
+ this.onSelectAllKeys = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48045
+ this.onActiveKeyFrameChanged = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48046
+ this.onFrameSet = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48047
+ this.onFrameManuallyEntered = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48048
+ this.onMainKeyPointSet = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48049
+ this.onMainKeyPointMoved = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48050
+ this.onValueSet = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48051
+ this.onValueManuallyEntered = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48052
+ this.onFrameRequired = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48053
+ this.onCreateOrUpdateKeyPointRequired = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48054
+ this.onFlattenTangentRequired = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48055
+ this.onLinearTangentRequired = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48056
+ this.onBreakTangentRequired = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48057
+ this.onUnifyTangentRequired = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48058
+ this.onStepTangentRequired = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48059
+ this.onDeleteAnimation = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48060
+ this.onGraphMoved = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48061
+ this.onGraphScaled = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48062
+ this.onRangeUpdated = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48063
+ this.onMoveToFrameRequired = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48064
+ this.onAnimationStateChanged = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48065
+ this.onDeleteKeyActiveKeyPoints = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48066
+ this.onSelectionRectangleMoved = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48067
+ this.onAnimationsLoaded = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48068
+ this.onEditAnimationRequired = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48069
+ this.onEditAnimationUIClosed = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48070
+ this.onClipLengthIncreased = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48071
+ this.onClipLengthDecreased = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48072
+ this.onInterpolationModeSet = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48073
+ this.onSelectToActivated = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48072
48074
  this.lockLastFrameValue = false;
48073
48075
  this.lockLastFrameFrame = false;
48074
48076
  // value frame inTangent outTangent
48075
- this.onActiveKeyDataChanged = new _babylonjs_core_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48077
+ this.onActiveKeyDataChanged = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48076
48078
  }
48077
48079
  Context.prototype.prepare = function () {
48078
48080
  this.isPlaying = false;
@@ -48265,6 +48267,13 @@ var Context = /** @class */ (function () {
48265
48267
  }
48266
48268
  return null;
48267
48269
  };
48270
+ Context.prototype.hasActiveQuaternionAnimationKeyPoints = function () {
48271
+ var _a;
48272
+ var activeAnimData = (_a = this.activeKeyPoints) === null || _a === void 0 ? void 0 : _a.map(function (keyPointComponent) { return keyPointComponent.props.curve.animation.dataType; });
48273
+ var quaternionAnimData = activeAnimData === null || activeAnimData === void 0 ? void 0 : activeAnimData.filter(function (type) { return (type === _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Animation"].ANIMATIONTYPE_QUATERNION); });
48274
+ var hasActiveQuaternionAnimation = ((quaternionAnimData === null || quaternionAnimData === void 0 ? void 0 : quaternionAnimData.length) || 0) > 0;
48275
+ return hasActiveQuaternionAnimation;
48276
+ };
48268
48277
  return Context;
48269
48278
  }());
48270
48279
 
@@ -48491,14 +48500,15 @@ var CanvasComponent = /** @class */ (function (_super) {
48491
48500
  "use strict";
48492
48501
  __webpack_require__.r(__webpack_exports__);
48493
48502
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Curve", function() { return Curve; });
48494
- /* harmony import */ var _babylonjs_core_Animations_animationKey__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babylonjs/core/Animations/animationKey */ "@babylonjs/core/Misc/observable");
48495
- /* harmony import */ var _babylonjs_core_Animations_animationKey__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_core_Animations_animationKey__WEBPACK_IMPORTED_MODULE_0__);
48503
+ /* harmony import */ var _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babylonjs/core/Animations/animation */ "@babylonjs/core/Misc/observable");
48504
+ /* harmony import */ var _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__);
48505
+
48496
48506
 
48497
48507
 
48498
48508
  var Curve = /** @class */ (function () {
48499
48509
  function Curve(color, animation, property, tangentBuilder, setDefaultInTangent, setDefaultOutTangent) {
48500
48510
  this.keys = new Array();
48501
- this.onDataUpdatedObservable = new _babylonjs_core_Animations_animationKey__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48511
+ this.onDataUpdatedObservable = new _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
48502
48512
  this.color = color;
48503
48513
  this.animation = animation;
48504
48514
  this.property = property;
@@ -48512,6 +48522,7 @@ var Curve = /** @class */ (function () {
48512
48522
  return "";
48513
48523
  }
48514
48524
  var pathData = "M".concat(convertX(keys[0].frame), " ").concat(convertY(keys[0].value));
48525
+ var dataType = this.animation.dataType;
48515
48526
  for (var keyIndex = 1; keyIndex < keys.length; keyIndex++) {
48516
48527
  var outTangent = keys[keyIndex - 1].outTangent;
48517
48528
  var inTangent = keys[keyIndex].inTangent;
@@ -48521,12 +48532,12 @@ var Curve = /** @class */ (function () {
48521
48532
  var prevValue = keys[keyIndex - 1].value;
48522
48533
  var frameDist = currentFrame - prevFrame;
48523
48534
  var prevInterpolation = keys[keyIndex - 1].interpolation;
48524
- if (prevInterpolation === _babylonjs_core_Animations_animationKey__WEBPACK_IMPORTED_MODULE_0__["AnimationKeyInterpolation"].STEP) { // Draw a stepped curve
48535
+ if (prevInterpolation === _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["AnimationKeyInterpolation"].STEP) { // Draw a stepped curve
48525
48536
  pathData += "L ".concat(convertX(currentFrame), " ").concat(convertY(prevValue));
48526
48537
  pathData += "L ".concat(convertX(currentFrame), " ").concat(convertY(currentValue));
48527
48538
  continue;
48528
48539
  }
48529
- if (outTangent === undefined && inTangent === undefined) { // Draw a straight line
48540
+ if (outTangent === undefined && inTangent === undefined && dataType !== _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_0__["Animation"].ANIMATIONTYPE_QUATERNION) { // Draw a straight line
48530
48541
  pathData += " L".concat(convertX(currentFrame), " ").concat(convertY(currentValue));
48531
48542
  continue;
48532
48543
  }
@@ -48722,6 +48733,9 @@ __webpack_require__.r(__webpack_exports__);
48722
48733
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../../../node_modules/tslib/tslib.es6.js");
48723
48734
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../../../node_modules/react/index.js");
48724
48735
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
48736
+ /* harmony import */ var _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babylonjs/core/Animations/animation */ "@babylonjs/core/Misc/observable");
48737
+ /* harmony import */ var _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_2__);
48738
+
48725
48739
 
48726
48740
 
48727
48741
  var CurveComponent = /** @class */ (function (_super) {
@@ -48765,12 +48779,17 @@ var CurveComponent = /** @class */ (function (_super) {
48765
48779
  if (!this.props.context.isChannelEnabled(this.props.curve.animation, this.props.curve.color)) {
48766
48780
  return null;
48767
48781
  }
48782
+ var pathStyle = {
48783
+ stroke: this.props.curve.color,
48784
+ fill: "none",
48785
+ strokeWidth: "1",
48786
+ };
48787
+ if (this.props.curve.animation.dataType === _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_QUATERNION) {
48788
+ pathStyle['stroke-dasharray'] = '5';
48789
+ pathStyle['stroke-opacity'] = '0.5';
48790
+ }
48768
48791
  return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { style: { cursor: "pointer", overflow: "auto" } },
48769
- react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("path", { d: this.props.curve.getPathData(this.props.convertX, this.props.convertY), style: {
48770
- stroke: this.props.curve.color,
48771
- fill: "none",
48772
- strokeWidth: "1",
48773
- } })));
48792
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("path", { d: this.props.curve.getPathData(this.props.convertX, this.props.convertY), style: pathStyle })));
48774
48793
  };
48775
48794
  return CurveComponent;
48776
48795
  }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
@@ -48995,6 +49014,9 @@ var GraphComponent = /** @class */ (function (_super) {
48995
49014
  }
48996
49015
  for (var _i = 0, _a = _this.props.context.activeAnimations; _i < _a.length; _i++) {
48997
49016
  var currentAnimation = _a[_i];
49017
+ if (currentAnimation.dataType === _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_QUATERNION) {
49018
+ continue;
49019
+ }
48998
49020
  var keys = currentAnimation.getKeys();
48999
49021
  var currentFrame = _this.props.context.activeFrame;
49000
49022
  var indexToAdd = -1;
@@ -49056,10 +49078,6 @@ var GraphComponent = /** @class */ (function (_super) {
49056
49078
  derivative = _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Vector3"].Hermite1stDerivative(leftKey.value.scale(invFrameDelta), leftKey.outTangent, rightKey.value.scale(invFrameDelta), rightKey.inTangent, cutTime);
49057
49079
  break;
49058
49080
  }
49059
- case _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_QUATERNION: {
49060
- derivative = _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Quaternion"].Hermite1stDerivative(leftKey.value.scale(invFrameDelta), leftKey.outTangent, rightKey.value.scale(invFrameDelta), rightKey.inTangent, cutTime);
49061
- break;
49062
- }
49063
49081
  case _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Animation"].ANIMATIONTYPE_COLOR3:
49064
49082
  derivative = _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_2__["Color3"].Hermite1stDerivative(leftKey.value.scale(invFrameDelta), leftKey.outTangent, rightKey.value.scale(invFrameDelta), rightKey.inTangent, cutTime);
49065
49083
  break;
@@ -49815,6 +49833,11 @@ var KeyPointComponent = /** @class */ (function (_super) {
49815
49833
  if (!_this._keyPointSVG.current) {
49816
49834
  return;
49817
49835
  }
49836
+ var animationType = _this.props.curve.animation.dataType;
49837
+ var isQuaternionAnimation = animationType === _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_1__["Animation"].ANIMATIONTYPE_QUATERNION;
49838
+ if (isQuaternionAnimation) {
49839
+ return;
49840
+ }
49818
49841
  var rect2 = _this._keyPointSVG.current.getBoundingClientRect();
49819
49842
  var overlap = !(rect1.right < rect2.left || rect1.left > rect2.right || rect1.bottom < rect2.top || rect1.top > rect2.bottom);
49820
49843
  if (!_this.props.context.activeKeyPoints) {
@@ -50050,6 +50073,10 @@ var KeyPointComponent = /** @class */ (function (_super) {
50050
50073
  this.props.context.activeKeyPoints = [];
50051
50074
  }
50052
50075
  evt.preventDefault();
50076
+ var isQuaternionAnimation = this.props.curve.animation.dataType === _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_1__["Animation"].ANIMATIONTYPE_QUATERNION;
50077
+ if (isQuaternionAnimation) {
50078
+ return;
50079
+ }
50053
50080
  this._select(evt.nativeEvent.ctrlKey);
50054
50081
  this.props.context.onActiveKeyPointChanged.notifyObservers();
50055
50082
  this._pointerIsDown = true;
@@ -50057,15 +50084,15 @@ var KeyPointComponent = /** @class */ (function (_super) {
50057
50084
  this._sourcePointerX = evt.nativeEvent.offsetX;
50058
50085
  this._sourcePointerY = evt.nativeEvent.offsetY;
50059
50086
  var target = evt.nativeEvent.target;
50060
- if (target.tagName === "image") {
50087
+ if (target.tagName === "image" && !isQuaternionAnimation) {
50061
50088
  this._controlMode = ControlMode.Key;
50062
50089
  this.setState({ tangentSelectedIndex: -1 });
50063
50090
  }
50064
- else if (target.classList.contains("left-tangent")) {
50091
+ else if (target.classList.contains("left-tangent") && !isQuaternionAnimation) {
50065
50092
  this._controlMode = ControlMode.TangentLeft;
50066
50093
  this.setState({ tangentSelectedIndex: 0 });
50067
50094
  }
50068
- else if (target.classList.contains("right-tangent")) {
50095
+ else if (target.classList.contains("right-tangent") && !isQuaternionAnimation) {
50069
50096
  this._controlMode = ControlMode.TangentRight;
50070
50097
  this.setState({ tangentSelectedIndex: 1 });
50071
50098
  }
@@ -50101,7 +50128,7 @@ var KeyPointComponent = /** @class */ (function (_super) {
50101
50128
  };
50102
50129
  KeyPointComponent.prototype._onPointerMove = function (evt) {
50103
50130
  var _this = this;
50104
- if (!this._pointerIsDown || this.state.selectedState !== SelectionState.Selected) {
50131
+ if (!this._pointerIsDown || this.state.selectedState !== SelectionState.Selected || this.props.context.hasActiveQuaternionAnimationKeyPoints()) {
50105
50132
  return;
50106
50133
  }
50107
50134
  if (this._controlMode === ControlMode.Key) {
@@ -50218,6 +50245,7 @@ var KeyPointComponent = /** @class */ (function (_super) {
50218
50245
  }
50219
50246
  var animationType = this.props.curve.animation.dataType;
50220
50247
  var isColorAnimation = animationType === _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_1__["Animation"].ANIMATIONTYPE_COLOR3 || animationType === _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_1__["Animation"].ANIMATIONTYPE_COLOR4;
50248
+ var isQuaternionAnimation = animationType === _babylonjs_core_Animations_animation__WEBPACK_IMPORTED_MODULE_1__["Animation"].ANIMATIONTYPE_QUATERNION;
50221
50249
  var svgImageIcon = this.state.selectedState === SelectionState.Selected ? keySelected : this.state.selectedState === SelectionState.Siblings ? keyActive : keyInactive;
50222
50250
  var keys = this.props.curve.keys;
50223
50251
  var isLockedTangent = (_a = keys[this.props.keyId].lockedTangent) !== null && _a !== void 0 ? _a : true;
@@ -50247,10 +50275,10 @@ var KeyPointComponent = /** @class */ (function (_super) {
50247
50275
  this._inVec.scaleInPlace(100 * this.props.scale);
50248
50276
  this._outVec.normalize();
50249
50277
  this._outVec.scaleInPlace(100 * this.props.scale);
50250
- return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("svg", { ref: this._svgHost, onPointerDown: function (evt) { return _this._onPointerDown(evt); }, onPointerMove: function (evt) { return _this._onPointerMove(evt); }, onPointerUp: function (evt) { return _this._onPointerUp(evt); }, x: this.state.x, y: this.state.y, style: { cursor: "pointer", overflow: "auto" } },
50278
+ return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("svg", { ref: this._svgHost, onPointerDown: function (evt) { return _this._onPointerDown(evt); }, onPointerMove: function (evt) { return _this._onPointerMove(evt); }, onPointerUp: function (evt) { return _this._onPointerUp(evt); }, x: this.state.x, y: this.state.y, style: { cursor: isQuaternionAnimation ? "auto" : "pointer", overflow: "auto", opacity: isQuaternionAnimation ? "25%" : "100%" } },
50251
50279
  react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("image", { x: "-".concat(8 * this.props.scale), y: "-".concat(8 * this.props.scale), width: "".concat(16 * this.props.scale), height: "".concat(16 * this.props.scale), ref: this._keyPointSVG, href: svgImageIcon }),
50252
50280
  this.state.selectedState === SelectionState.Selected && (react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("g", null,
50253
- this.props.keyId !== 0 && !hasStepTangentIn && !isColorAnimation && hasDefinedInTangent && (react__WEBPACK_IMPORTED_MODULE_2__["createElement"](react__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null,
50281
+ this.props.keyId !== 0 && !hasStepTangentIn && !isColorAnimation && !isQuaternionAnimation && hasDefinedInTangent && (react__WEBPACK_IMPORTED_MODULE_2__["createElement"](react__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null,
50254
50282
  react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("line", { x1: 0, y1: 0, x2: "".concat(this._inVec.x, "px"), y2: "".concat(this._inVec.y, "px"), style: {
50255
50283
  stroke: this.state.tangentSelectedIndex === 0 || this.state.tangentSelectedIndex === -1 ? "#F9BF00" : "#AAAAAA",
50256
50284
  strokeWidth: "".concat(1 * this.props.scale),
@@ -50259,7 +50287,7 @@ var KeyPointComponent = /** @class */ (function (_super) {
50259
50287
  react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("circle", { className: "left-tangent", cx: "".concat(this._inVec.x, "px"), cy: "".concat(this._inVec.y, "px"), r: "".concat(4 * this.props.scale), style: {
50260
50288
  fill: this.state.tangentSelectedIndex === 0 || this.state.tangentSelectedIndex === -1 ? "#F9BF00" : "#AAAAAA",
50261
50289
  } }))),
50262
- this.props.keyId !== keys.length - 1 && !hasStepTangentOut && !isColorAnimation && hasDefinedOutTangent && (react__WEBPACK_IMPORTED_MODULE_2__["createElement"](react__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null,
50290
+ this.props.keyId !== keys.length - 1 && !hasStepTangentOut && !isColorAnimation && !isQuaternionAnimation && hasDefinedOutTangent && (react__WEBPACK_IMPORTED_MODULE_2__["createElement"](react__WEBPACK_IMPORTED_MODULE_2__["Fragment"], null,
50263
50291
  react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("line", { x1: 0, y1: 0, x2: "".concat(this._outVec.x, "px"), y2: "".concat(this._outVec.y, "px"), style: {
50264
50292
  stroke: this.state.tangentSelectedIndex === 1 || this.state.tangentSelectedIndex === -1 ? "#F9BF00" : "#AAAAAA",
50265
50293
  strokeWidth: "".concat(1 * this.props.scale),
@@ -51794,7 +51822,8 @@ var TopBarComponent = /** @class */ (function (_super) {
51794
51822
  var numAnims = new Set((_b = _this.props.context.activeKeyPoints) === null || _b === void 0 ? void 0 : _b.map(function (keyPointComponent) { return keyPointComponent.props.curve.animation.uniqueId; })).size;
51795
51823
  var frameControlEnabled = (numKeys === 1 && numAnims === 1) || (numKeys > 1 && numAnims > 1);
51796
51824
  var valueControlEnabled = numKeys > 0;
51797
- _this.setState({ keyFrameValue: "", keyValue: "", frameControlEnabled: frameControlEnabled, valueControlEnabled: valueControlEnabled });
51825
+ var hasActiveQuaternionAnimation = _this.props.context.hasActiveQuaternionAnimationKeyPoints();
51826
+ _this.setState({ keyFrameValue: "", keyValue: "", frameControlEnabled: frameControlEnabled && !hasActiveQuaternionAnimation, valueControlEnabled: valueControlEnabled && !hasActiveQuaternionAnimation });
51798
51827
  });
51799
51828
  return _this;
51800
51829
  }
@@ -53384,6 +53413,8 @@ __webpack_require__.r(__webpack_exports__);
53384
53413
 
53385
53414
 
53386
53415
 
53416
+
53417
+
53387
53418
  var PBRMaterialPropertyGridComponent = /** @class */ (function (_super) {
53388
53419
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PBRMaterialPropertyGridComponent, _super);
53389
53420
  function PBRMaterialPropertyGridComponent(props) {
@@ -53434,7 +53465,7 @@ var PBRMaterialPropertyGridComponent = /** @class */ (function (_super) {
53434
53465
  { label: "Anisotropic Tangents", value: 12 },
53435
53466
  { label: "Anisotropic Bitangents", value: 13 },
53436
53467
  // Maps
53437
- { label: "Albdeo Map", value: 20 },
53468
+ { label: "Albedo Map", value: 20 },
53438
53469
  { label: "Ambient Map", value: 21 },
53439
53470
  { label: "Opacity Map", value: 22 },
53440
53471
  { label: "Emissive Map", value: 23 },
@@ -53870,7 +53901,7 @@ __webpack_require__.r(__webpack_exports__);
53870
53901
  /* harmony import */ var _sharedUiComponents_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../sharedUiComponents/lines/optionsLineComponent */ "./sharedUiComponents/lines/optionsLineComponent.tsx");
53871
53902
  /* harmony import */ var _sharedUiComponents_lines_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../sharedUiComponents/lines/fileButtonLineComponent */ "./sharedUiComponents/lines/fileButtonLineComponent.tsx");
53872
53903
  /* harmony import */ var _sharedUiComponents_lines_valueLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../sharedUiComponents/lines/valueLineComponent */ "./sharedUiComponents/lines/valueLineComponent.tsx");
53873
- /* harmony import */ var _babylonjs_gui_2D_adtInstrumentation__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babylonjs/gui/2D/adtInstrumentation */ "@babylonjs/gui/2D/controls/image");
53904
+ /* harmony import */ var _babylonjs_gui_2D_adtInstrumentation__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @babylonjs/gui/2D/adtInstrumentation */ "@babylonjs/gui/2D/controls/control");
53874
53905
  /* harmony import */ var _babylonjs_gui_2D_adtInstrumentation__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_gui_2D_adtInstrumentation__WEBPACK_IMPORTED_MODULE_12__);
53875
53906
  /* harmony import */ var _customPropertyGridComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../customPropertyGridComponent */ "./components/actionTabs/tabs/propertyGrids/customPropertyGridComponent.tsx");
53876
53907
  /* harmony import */ var _sharedUiComponents_lines_buttonLineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../../sharedUiComponents/lines/buttonLineComponent */ "./sharedUiComponents/lines/buttonLineComponent.tsx");
@@ -56227,6 +56258,7 @@ __webpack_require__.r(__webpack_exports__);
56227
56258
 
56228
56259
 
56229
56260
 
56261
+
56230
56262
 
56231
56263
 
56232
56264
  var MeshPropertyGridComponent = /** @class */ (function (_super) {
@@ -58506,6 +58538,7 @@ __webpack_require__.r(__webpack_exports__);
58506
58538
 
58507
58539
 
58508
58540
 
58541
+
58509
58542
  var ScenePropertyGridComponent = /** @class */ (function (_super) {
58510
58543
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ScenePropertyGridComponent, _super);
58511
58544
  function ScenePropertyGridComponent(props) {
@@ -59413,14 +59446,20 @@ var GLTFComponent = /** @class */ (function (_super) {
59413
59446
  ];
59414
59447
  return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
59415
59448
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GLTF LOADER", closed: true, selection: this.props.globalState },
59449
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Always compute bounding box", target: loaderState, propertyName: "alwaysComputeBoundingBox" }),
59450
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Always compute skeleton root node", target: loaderState, propertyName: "alwaysComputeSkeletonRootNode" }),
59416
59451
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Animation start mode", options: animationStartMode, target: loaderState, propertyName: "animationStartMode" }),
59417
59452
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Capture performance counters", target: loaderState, propertyName: "capturePerformanceCounters" }),
59418
59453
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Compile materials", target: loaderState, propertyName: "compileMaterials" }),
59419
59454
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Compile shadow generators", target: loaderState, propertyName: "compileShadowGenerators" }),
59420
59455
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_optionsLineComponent__WEBPACK_IMPORTED_MODULE_5__["OptionsLineComponent"], { label: "Coordinate system", options: coordinateSystemMode, target: loaderState, propertyName: "coordinateSystemMode" }),
59456
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Create instances", target: loaderState, propertyName: "createInstances" }),
59421
59457
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Enable logging", target: loaderState, propertyName: "loggingEnabled" }),
59458
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Load all materials", target: loaderState, propertyName: "loadAllMaterials" }),
59459
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_4__["FloatLineComponent"], { label: "Target FPS", target: loaderState, propertyName: "targetFps", isInteger: true }),
59422
59460
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Transparency as coverage", target: loaderState, propertyName: "transparencyAsCoverage" }),
59423
59461
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Use clip plane", target: loaderState, propertyName: "useClipPlane" }),
59462
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Use sRGB buffers", target: loaderState, propertyName: "useSRGBBuffers" }),
59424
59463
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Validate", target: loaderState, propertyName: "validate" }),
59425
59464
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_messageLineComponent__WEBPACK_IMPORTED_MODULE_6__["MessageLineComponent"], { text: "You need to reload your file to see these changes" })),
59426
59465
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedUiComponents_lines_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GLTF EXTENSIONS", closed: true, selection: this.props.globalState },
@@ -60040,14 +60079,20 @@ var GlobalState = /** @class */ (function () {
60040
60079
  EXT_texture_webp: { enabled: true },
60041
60080
  };
60042
60081
  this.glTFLoaderDefaults = {
60082
+ alwaysComputeBoundingBox: false,
60083
+ alwaysComputeSkeletonRootNode: false,
60043
60084
  animationStartMode: typeof _babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_0__["GLTFLoaderAnimationStartMode"] !== 'undefined' ? _babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_0__["GLTFLoaderAnimationStartMode"].FIRST : 1,
60044
60085
  capturePerformanceCounters: false,
60045
60086
  compileMaterials: false,
60046
60087
  compileShadowGenerators: false,
60047
60088
  coordinateSystemMode: typeof _babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_0__["GLTFLoaderCoordinateSystemMode"] !== 'undefined' ? _babylonjs_loaders_glTF_index__WEBPACK_IMPORTED_MODULE_0__["GLTFLoaderCoordinateSystemMode"].AUTO : 0,
60089
+ createInstances: true,
60090
+ loadAllMaterials: false,
60048
60091
  loggingEnabled: false,
60092
+ targetFps: 60,
60049
60093
  transparencyAsCoverage: false,
60050
60094
  useClipPlane: false,
60095
+ useSRGBBuffers: true,
60051
60096
  };
60052
60097
  this.glTFLoaderExtensions = {};
60053
60098
  this.blockMutationUpdates = false;
@@ -61453,6 +61498,11 @@ var PopupComponent = /** @class */ (function (_super) {
61453
61498
  Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PopupComponent, _super);
61454
61499
  function PopupComponent(props) {
61455
61500
  var _this = _super.call(this, props) || this;
61501
+ _this.onBeforeUnloadListener = function () {
61502
+ if (_this._window) {
61503
+ _this._window.close();
61504
+ }
61505
+ };
61456
61506
  _this._container = document.createElement("div");
61457
61507
  _this._container.id = _this.props.id;
61458
61508
  _this._window;
@@ -61478,6 +61528,7 @@ var PopupComponent = /** @class */ (function (_super) {
61478
61528
  this._container.appendChild(this._host);
61479
61529
  }
61480
61530
  this._window = _inspector__WEBPACK_IMPORTED_MODULE_3__["Inspector"][windowVariableName];
61531
+ window.addEventListener("beforeunload", this.onBeforeUnloadListener);
61481
61532
  if (this._window) {
61482
61533
  if (onOpen) {
61483
61534
  onOpen(this._window);
@@ -61510,6 +61561,7 @@ var PopupComponent = /** @class */ (function (_super) {
61510
61561
  }
61511
61562
  };
61512
61563
  PopupComponent.prototype.componentWillUnmount = function () {
61564
+ window.removeEventListener("beforeunload", this.onBeforeUnloadListener);
61513
61565
  if (this._window) {
61514
61566
  this._window.close();
61515
61567
  }
@@ -62162,6 +62214,9 @@ __webpack_require__.r(__webpack_exports__);
62162
62214
  /* harmony import */ var _extensionsComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../extensionsComponent */ "./components/sceneExplorer/extensionsComponent.tsx");
62163
62215
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "../../../../node_modules/react/index.js");
62164
62216
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
62217
+ /* harmony import */ var _babylonjs_core_Rendering_boundingBoxRenderer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babylonjs/core/Rendering/boundingBoxRenderer */ "@babylonjs/core/Misc/observable");
62218
+ /* harmony import */ var _babylonjs_core_Rendering_boundingBoxRenderer__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_core_Rendering_boundingBoxRenderer__WEBPACK_IMPORTED_MODULE_7__);
62219
+
62165
62220
 
62166
62221
 
62167
62222
 
@@ -63155,6 +63210,10 @@ __webpack_require__.r(__webpack_exports__);
63155
63210
 
63156
63211
 
63157
63212
 
63213
+
63214
+ // side effects
63215
+
63216
+
63158
63217
 
63159
63218
  __webpack_require__(/*! ./sceneExplorer.scss */ "./components/sceneExplorer/sceneExplorer.scss");
63160
63219
  var SceneExplorerFilterComponent = /** @class */ (function (_super) {
@@ -64607,7 +64666,7 @@ __webpack_require__.r(__webpack_exports__);
64607
64666
  /* harmony import */ var _babylonjs_core_Materials_effect__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_core_Materials_effect__WEBPACK_IMPORTED_MODULE_0__);
64608
64667
 
64609
64668
  var name = 'lodPixelShader';
64610
- var shader = "\n#extension GL_EXT_shader_texture_lod : enable\n\nprecision highp float;\n\nvarying vec2 vUV;\nuniform sampler2D textureSampler;\nuniform float lod;\nuniform vec2 texSize;\nvoid main(void)\n{\n gl_FragColor = textureLod(textureSampler,vUV,lod);\n}";
64669
+ var shader = "\n#extension GL_EXT_shader_texture_lod : enable\n\nprecision highp float;\n\nconst float GammaEncodePowerApprox = 1.0 / 2.2;\n\nvarying vec2 vUV;\nuniform sampler2D textureSampler;\nuniform float lod;\nuniform vec2 texSize;\nuniform bool gamma;\nvoid main(void)\n{\n gl_FragColor = textureLod(textureSampler,vUV,lod);\n if (!gamma) {\n gl_FragColor.rgb = pow(gl_FragColor.rgb, vec3(GammaEncodePowerApprox));\n }\n}";
64611
64670
  _babylonjs_core_Materials_effect__WEBPACK_IMPORTED_MODULE_0__["Effect"].ShadersStore[name] = shader;
64612
64671
  /** @hidden */
64613
64672
  var lodPixelShader = { name: name, shader: shader };
@@ -64629,7 +64688,7 @@ __webpack_require__.r(__webpack_exports__);
64629
64688
  /* harmony import */ var _babylonjs_core_Materials_effect__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_core_Materials_effect__WEBPACK_IMPORTED_MODULE_0__);
64630
64689
 
64631
64690
  var name = 'lodCubePixelShader';
64632
- var shader = "\nprecision highp float;\n\nvarying vec2 vUV;\nuniform samplerCube textureSampler;\nuniform float lod;\nvoid main(void)\n{\n vec2 uv=vUV*2.0-1.0;\n #ifdef POSITIVEX\n gl_FragColor=textureCube(textureSampler,vec3(1.001,uv.y,uv.x),lod);\n #endif\n #ifdef NEGATIVEX\n gl_FragColor=textureCube(textureSampler,vec3(-1.001,uv.y,uv.x),lod);\n #endif\n #ifdef POSITIVEY\n gl_FragColor=textureCube(textureSampler,vec3(uv.y,1.001,uv.x),lod);\n #endif\n #ifdef NEGATIVEY\n gl_FragColor=textureCube(textureSampler,vec3(uv.y,-1.001,uv.x),lod);\n #endif\n #ifdef POSITIVEZ\n gl_FragColor=textureCube(textureSampler,vec3(uv,1.001),lod);\n #endif\n #ifdef NEGATIVEZ\n gl_FragColor=textureCube(textureSampler,vec3(uv,-1.001),lod);\n #endif\n}";
64691
+ var shader = "\nprecision highp float;\n\nconst float GammaEncodePowerApprox = 1.0 / 2.2;\n\nvarying vec2 vUV;\nuniform samplerCube textureSampler;\nuniform float lod;\nuniform bool gamma;\nvoid main(void)\n{\n vec2 uv=vUV*2.0-1.0;\n #ifdef POSITIVEX\n gl_FragColor=textureCube(textureSampler,vec3(1.001,uv.y,uv.x),lod);\n #endif\n #ifdef NEGATIVEX\n gl_FragColor=textureCube(textureSampler,vec3(-1.001,uv.y,uv.x),lod);\n #endif\n #ifdef POSITIVEY\n gl_FragColor=textureCube(textureSampler,vec3(uv.y,1.001,uv.x),lod);\n #endif\n #ifdef NEGATIVEY\n gl_FragColor=textureCube(textureSampler,vec3(uv.y,-1.001,uv.x),lod);\n #endif\n #ifdef POSITIVEZ\n gl_FragColor=textureCube(textureSampler,vec3(uv,1.001),lod);\n #endif\n #ifdef NEGATIVEZ\n gl_FragColor=textureCube(textureSampler,vec3(uv,-1.001),lod);\n #endif\n if (!gamma) {\n gl_FragColor.rgb = pow(gl_FragColor.rgb, vec3(GammaEncodePowerApprox));\n }\n}";
64633
64692
  _babylonjs_core_Materials_effect__WEBPACK_IMPORTED_MODULE_0__["Effect"].ShadersStore[name] = shader;
64634
64693
  /** @hidden */
64635
64694
  var lodCubePixelShader = { name: name, shader: shader };
@@ -65393,7 +65452,7 @@ var ColorLineComponent = /** @class */ (function (_super) {
65393
65452
  _this.setColorFromString(newValue);
65394
65453
  }, onPropertyChangedObservable: this.props.onPropertyChangedObservable })),
65395
65454
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
65396
- react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: copyIcon, alt: "" })),
65455
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: copyIcon, alt: "Copy" })),
65397
65456
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
65398
65457
  this.state.isExpanded && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
65399
65458
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { label: "r", value: this.state.color.r, onChange: function (value) { return _this.updateStateR(value); } }),
@@ -65967,6 +66026,59 @@ var IndentedTextLineComponent = /** @class */ (function (_super) {
65967
66026
 
65968
66027
 
65969
66028
 
66029
+ /***/ }),
66030
+
66031
+ /***/ "./sharedUiComponents/lines/inputArrowsComponent.tsx":
66032
+ /*!***********************************************************!*\
66033
+ !*** ./sharedUiComponents/lines/inputArrowsComponent.tsx ***!
66034
+ \***********************************************************/
66035
+ /*! exports provided: InputArrowsComponent */
66036
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
66037
+
66038
+ "use strict";
66039
+ __webpack_require__.r(__webpack_exports__);
66040
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputArrowsComponent", function() { return InputArrowsComponent; });
66041
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../../../node_modules/tslib/tslib.es6.js");
66042
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../../../node_modules/react/index.js");
66043
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
66044
+
66045
+
66046
+ var upArrowIcon = __webpack_require__(/*! ./valueUpArrowIcon.svg */ "./sharedUiComponents/lines/valueUpArrowIcon.svg");
66047
+ var downArrowIcon = __webpack_require__(/*! ./valueDownArrowIcon.svg */ "./sharedUiComponents/lines/valueDownArrowIcon.svg");
66048
+ var InputArrowsComponent = /** @class */ (function (_super) {
66049
+ Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(InputArrowsComponent, _super);
66050
+ function InputArrowsComponent() {
66051
+ var _this = _super !== null && _super.apply(this, arguments) || this;
66052
+ _this._arrowsRef = react__WEBPACK_IMPORTED_MODULE_1__["createRef"]();
66053
+ _this._drag = function (event) {
66054
+ _this.props.incrementValue(event.movementY);
66055
+ };
66056
+ _this._releaseListener = function () {
66057
+ var _a, _b;
66058
+ _this.props.setDragging(false);
66059
+ (_a = _this._arrowsRef.current) === null || _a === void 0 ? void 0 : _a.ownerDocument.exitPointerLock();
66060
+ window.removeEventListener("pointerup", _this._releaseListener);
66061
+ (_b = _this._arrowsRef.current) === null || _b === void 0 ? void 0 : _b.ownerDocument.removeEventListener("mousemove", _this._drag);
66062
+ };
66063
+ return _this;
66064
+ }
66065
+ InputArrowsComponent.prototype.render = function () {
66066
+ var _this = this;
66067
+ return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "arrows", ref: this._arrowsRef, onPointerDown: function (event) {
66068
+ var _a, _b;
66069
+ _this.props.setDragging(true);
66070
+ (_a = _this._arrowsRef.current) === null || _a === void 0 ? void 0 : _a.requestPointerLock();
66071
+ window.addEventListener("pointerup", _this._releaseListener);
66072
+ (_b = _this._arrowsRef.current) === null || _b === void 0 ? void 0 : _b.ownerDocument.addEventListener("mousemove", _this._drag);
66073
+ }, onDragStart: function (evt) { return evt.preventDefault(); } },
66074
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: "upArrowIcon", src: upArrowIcon, alt: "Increase Value" }),
66075
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { className: "downArrowIcon", src: downArrowIcon, alt: "Increase Value" }));
66076
+ };
66077
+ return InputArrowsComponent;
66078
+ }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
66079
+
66080
+
66081
+
65970
66082
  /***/ }),
65971
66083
 
65972
66084
  /***/ "./sharedUiComponents/lines/lineContainerComponent.tsx":
@@ -66455,7 +66567,7 @@ var SliderLineComponent = /** @class */ (function (_super) {
66455
66567
  }, onChange: function (evt) {
66456
66568
  var changed = _this.prepareDataToRead(_this.state.value);
66457
66569
  _this.onChange(changed);
66458
- } }),
66570
+ }, onPropertyChangedObservable: this.props.onPropertyChangedObservable }),
66459
66571
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "slider" },
66460
66572
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { className: "range", type: "range", step: this.props.step, min: this.prepareDataToRead(this.props.minimum), max: this.prepareDataToRead(this.props.maximum), value: this.prepareDataToRead(this.state.value), onInput: function (evt) { return _this.onInput(evt.target.value); }, onChange: function (evt) { return _this.onChange(evt.target.value); } }))));
66461
66573
  };
@@ -66541,6 +66653,8 @@ __webpack_require__.r(__webpack_exports__);
66541
66653
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../../../node_modules/react/index.js");
66542
66654
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
66543
66655
  /* harmony import */ var _targetsProxy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./targetsProxy */ "./sharedUiComponents/lines/targetsProxy.tsx");
66656
+ /* harmony import */ var _inputArrowsComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inputArrowsComponent */ "./sharedUiComponents/lines/inputArrowsComponent.tsx");
66657
+
66544
66658
 
66545
66659
 
66546
66660
 
@@ -66549,7 +66663,10 @@ var TextInputLineComponent = /** @class */ (function (_super) {
66549
66663
  function TextInputLineComponent(props) {
66550
66664
  var _this = _super.call(this, props) || this;
66551
66665
  _this._localChange = false;
66552
- _this.state = { value: (_this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName]) || "" };
66666
+ _this.state = {
66667
+ value: (_this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName]) || "",
66668
+ dragging: false
66669
+ };
66553
66670
  return _this;
66554
66671
  }
66555
66672
  TextInputLineComponent.prototype.componentWillUnmount = function () {
@@ -66565,6 +66682,8 @@ var TextInputLineComponent = /** @class */ (function (_super) {
66565
66682
  nextState.value = newValue || "";
66566
66683
  return true;
66567
66684
  }
66685
+ if (nextState.dragging != this.state.dragging)
66686
+ return true;
66568
66687
  return false;
66569
66688
  };
66570
66689
  TextInputLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
@@ -66603,6 +66722,29 @@ var TextInputLineComponent = /** @class */ (function (_super) {
66603
66722
  }
66604
66723
  this.raiseOnPropertyChanged(value, store);
66605
66724
  };
66725
+ TextInputLineComponent.prototype.incrementValue = function (amount) {
66726
+ if (this.props.step) {
66727
+ amount *= this.props.step;
66728
+ }
66729
+ if (this.props.arrowsIncrement) {
66730
+ this.props.arrowsIncrement(amount);
66731
+ return;
66732
+ }
66733
+ var currentValue = parseFloat(this.state.value);
66734
+ this.updateValue((currentValue + amount).toFixed(2));
66735
+ };
66736
+ TextInputLineComponent.prototype.onKeyDown = function (event) {
66737
+ if (this.props.arrows) {
66738
+ if (event.key === "ArrowUp") {
66739
+ this.incrementValue(-1);
66740
+ event.preventDefault();
66741
+ }
66742
+ if (event.key === "ArrowDown") {
66743
+ this.incrementValue(1);
66744
+ event.preventDefault();
66745
+ }
66746
+ }
66747
+ };
66606
66748
  TextInputLineComponent.prototype.render = function () {
66607
66749
  var _this = this;
66608
66750
  var value = this.state.value === _targetsProxy__WEBPACK_IMPORTED_MODULE_2__["conflictingValuesPlaceholder"] ? "" : this.state.value;
@@ -66610,11 +66752,13 @@ var TextInputLineComponent = /** @class */ (function (_super) {
66610
66752
  return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.unit !== undefined ? "textInputLine withUnits" : "textInputLine" },
66611
66753
  this.props.icon && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { src: this.props.icon, title: this.props.iconLabel, alt: this.props.iconLabel, color: "black", className: "icon" }),
66612
66754
  (!this.props.icon || (this.props.icon && this.props.label != "")) && (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label", title: this.props.label }, this.props.label)),
66613
- react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" + (this.props.noUnderline === true ? " noUnderline" : "") },
66755
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value".concat(this.props.noUnderline === true ? " noUnderline" : "").concat(this.props.arrows ? " hasArrows" : "").concat(this.state.dragging ? " dragging" : "") },
66614
66756
  react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { value: value, onBlur: function () {
66615
66757
  _this.props.lockObject.lock = false;
66616
66758
  _this.updateValue((_this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName]) || "");
66617
- }, onFocus: function () { return (_this.props.lockObject.lock = true); }, onChange: function (evt) { return _this.updateValue(evt.target.value); }, placeholder: placeholder })),
66759
+ }, onFocus: function () { return (_this.props.lockObject.lock = true); }, onChange: function (evt) { return _this.updateValue(evt.target.value); }, onKeyDown: function (evt) { return _this.onKeyDown(evt); }, placeholder: placeholder }),
66760
+ this.props.arrows &&
66761
+ react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_inputArrowsComponent__WEBPACK_IMPORTED_MODULE_3__["InputArrowsComponent"], { incrementValue: function (amount) { return _this.incrementValue(amount); }, setDragging: function (dragging) { return _this.setState({ dragging: dragging }); } })),
66618
66762
  this.props.unit !== undefined && react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.props.unitLocked ? "unit disabled" : "unit", onClick: function () { if (_this.props.onUnitClicked && !_this.props.unitLocked)
66619
66763
  _this.props.onUnitClicked(_this.props.unit || ""); } }, this.props.unit)));
66620
66764
  };
@@ -66677,6 +66821,17 @@ var TextLineComponent = /** @class */ (function (_super) {
66677
66821
 
66678
66822
 
66679
66823
 
66824
+ /***/ }),
66825
+
66826
+ /***/ "./sharedUiComponents/lines/valueDownArrowIcon.svg":
66827
+ /*!*********************************************************!*\
66828
+ !*** ./sharedUiComponents/lines/valueDownArrowIcon.svg ***!
66829
+ \*********************************************************/
66830
+ /*! no static exports found */
66831
+ /***/ (function(module, exports) {
66832
+
66833
+ module.exports = "data:image/svg+xml,%3Csvg id='icons' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23333;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M4.09,5.55a.61.61,0,0,1,.85,0l2,2V1.79a.6.6,0,1,1,1.2,0V7.52l2-2a.61.61,0,0,1,.85,0,.6.6,0,0,1,0,.84l-3,3a.6.6,0,0,1-.84,0l-3-3A.6.6,0,0,1,4.09,5.55Z'/%3E%3C/svg%3E"
66834
+
66680
66835
  /***/ }),
66681
66836
 
66682
66837
  /***/ "./sharedUiComponents/lines/valueLineComponent.tsx":
@@ -66712,6 +66867,17 @@ var ValueLineComponent = /** @class */ (function (_super) {
66712
66867
 
66713
66868
 
66714
66869
 
66870
+ /***/ }),
66871
+
66872
+ /***/ "./sharedUiComponents/lines/valueUpArrowIcon.svg":
66873
+ /*!*******************************************************!*\
66874
+ !*** ./sharedUiComponents/lines/valueUpArrowIcon.svg ***!
66875
+ \*******************************************************/
66876
+ /*! no static exports found */
66877
+ /***/ (function(module, exports) {
66878
+
66879
+ module.exports = "data:image/svg+xml,%3Csvg id='icons' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23333;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M4.09,9.45a.6.6,0,0,1,0-.84l3-3a.6.6,0,0,1,.84,0l3,3a.6.6,0,0,1,0,.84.61.61,0,0,1-.85,0l-2-2v5.73a.6.6,0,0,1-1.2,0V7.48l-2,2A.61.61,0,0,1,4.09,9.45Z'/%3E%3C/svg%3E"
66880
+
66715
66881
  /***/ }),
66716
66882
 
66717
66883
  /***/ "./sharedUiComponents/lines/vector2LineComponent.tsx":
@@ -67236,7 +67402,7 @@ __webpack_require__.r(__webpack_exports__);
67236
67402
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
67237
67403
  /* harmony import */ var _lines_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../lines/lineContainerComponent */ "./sharedUiComponents/lines/lineContainerComponent.tsx");
67238
67404
  /* harmony import */ var _lines_textLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/textLineComponent */ "./sharedUiComponents/lines/textLineComponent.tsx");
67239
- /* harmony import */ var _babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babylonjs/gui/2D/controls/control */ "@babylonjs/gui/2D/controls/image");
67405
+ /* harmony import */ var _babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babylonjs/gui/2D/controls/control */ "@babylonjs/gui/2D/controls/control");
67240
67406
  /* harmony import */ var _babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_4__);
67241
67407
  /* harmony import */ var _lines_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/sliderLineComponent */ "./sharedUiComponents/lines/sliderLineComponent.tsx");
67242
67408
  /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./sharedUiComponents/lines/floatLineComponent.tsx");
@@ -67552,7 +67718,7 @@ __webpack_require__.r(__webpack_exports__);
67552
67718
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
67553
67719
  /* harmony import */ var _tabs_propertyGrids_gui_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../tabs/propertyGrids/gui/commonControlPropertyGridComponent */ "./sharedUiComponents/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
67554
67720
  /* harmony import */ var _lines_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../lines/lineContainerComponent */ "./sharedUiComponents/lines/lineContainerComponent.tsx");
67555
- /* harmony import */ var _babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babylonjs/gui/2D/controls/image */ "@babylonjs/gui/2D/controls/image");
67721
+ /* harmony import */ var _babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babylonjs/gui/2D/controls/image */ "@babylonjs/gui/2D/controls/control");
67556
67722
  /* harmony import */ var _babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_gui_2D_controls_image__WEBPACK_IMPORTED_MODULE_4__);
67557
67723
  /* harmony import */ var _lines_floatLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/floatLineComponent */ "./sharedUiComponents/lines/floatLineComponent.tsx");
67558
67724
  /* harmony import */ var _lines_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../lines/checkBoxLineComponent */ "./sharedUiComponents/lines/checkBoxLineComponent.tsx");
@@ -67971,7 +68137,7 @@ __webpack_require__.r(__webpack_exports__);
67971
68137
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../../../node_modules/react/index.js");
67972
68138
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
67973
68139
  /* harmony import */ var _tabs_propertyGrids_gui_commonControlPropertyGridComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../tabs/propertyGrids/gui/commonControlPropertyGridComponent */ "./sharedUiComponents/tabs/propertyGrids/gui/commonControlPropertyGridComponent.tsx");
67974
- /* harmony import */ var _babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babylonjs/gui/2D/controls/textBlock */ "@babylonjs/gui/2D/controls/image");
68140
+ /* harmony import */ var _babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babylonjs/gui/2D/controls/textBlock */ "@babylonjs/gui/2D/controls/control");
67975
68141
  /* harmony import */ var _babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babylonjs_gui_2D_controls_textBlock__WEBPACK_IMPORTED_MODULE_3__);
67976
68142
  /* harmony import */ var _lines_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../lines/lineContainerComponent */ "./sharedUiComponents/lines/lineContainerComponent.tsx");
67977
68143
  /* harmony import */ var _lines_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../lines/textInputLineComponent */ "./sharedUiComponents/lines/textInputLineComponent.tsx");
@@ -68091,7 +68257,7 @@ var TextureHelper = /** @class */ (function () {
68091
68257
  scene = texture.getScene();
68092
68258
  engine = scene.getEngine();
68093
68259
  if (!texture.isCube) {
68094
- lodPostProcess = new _babylonjs_core_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_1__["PostProcess"]("lod", "lod", ["lod"], null, 1.0, null, _babylonjs_core_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_1__["Texture"].NEAREST_NEAREST_MIPNEAREST, engine);
68260
+ lodPostProcess = new _babylonjs_core_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_1__["PostProcess"]("lod", "lod", ["lod", "gamma"], null, 1.0, null, _babylonjs_core_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_1__["Texture"].NEAREST_NEAREST_MIPNEAREST, engine);
68095
68261
  }
68096
68262
  else {
68097
68263
  faceDefines = [
@@ -68102,7 +68268,7 @@ var TextureHelper = /** @class */ (function () {
68102
68268
  "#define POSITIVEZ",
68103
68269
  "#define NEGATIVEZ",
68104
68270
  ];
68105
- lodPostProcess = new _babylonjs_core_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_1__["PostProcess"]("lodCube", "lodCube", ["lod"], null, 1.0, null, _babylonjs_core_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_1__["Texture"].NEAREST_NEAREST_MIPNEAREST, engine, false, faceDefines[face]);
68271
+ lodPostProcess = new _babylonjs_core_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_1__["PostProcess"]("lodCube", "lodCube", ["lod", "gamma"], null, 1.0, null, _babylonjs_core_PostProcesses_postProcess__WEBPACK_IMPORTED_MODULE_1__["Texture"].NEAREST_NEAREST_MIPNEAREST, engine, false, faceDefines[face]);
68106
68272
  }
68107
68273
  if (!lodPostProcess.getEffect().isReady()) {
68108
68274
  // Try again later
@@ -68119,6 +68285,7 @@ var TextureHelper = /** @class */ (function () {
68119
68285
  lodPostProcess.onApply = function (effect) {
68120
68286
  effect.setTexture("textureSampler", texture);
68121
68287
  effect.setFloat("lod", lod);
68288
+ effect.setBool("gamma", texture.gammaSpace);
68122
68289
  };
68123
68290
  internalTexture = texture.getInternalTexture();
68124
68291
  if (!(rtt.renderTarget && internalTexture)) return [3 /*break*/, 2];
@@ -68320,14 +68487,14 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__babylonjs_core_Misc_observable__;
68320
68487
 
68321
68488
  /***/ }),
68322
68489
 
68323
- /***/ "@babylonjs/gui/2D/controls/image":
68490
+ /***/ "@babylonjs/gui/2D/controls/control":
68324
68491
  /*!***************************************************************************************************************************!*\
68325
68492
  !*** external {"root":["BABYLON","GUI"],"commonjs":"@babylonjs/gui","commonjs2":"@babylonjs/gui","amd":"@babylonjs/gui"} ***!
68326
68493
  \***************************************************************************************************************************/
68327
68494
  /*! no static exports found */
68328
68495
  /***/ (function(module, exports) {
68329
68496
 
68330
- module.exports = __WEBPACK_EXTERNAL_MODULE__babylonjs_gui_2D_controls_image__;
68497
+ module.exports = __WEBPACK_EXTERNAL_MODULE__babylonjs_gui_2D_controls_control__;
68331
68498
 
68332
68499
  /***/ }),
68333
68500