kitchen-simulator 3.8.0 → 3.9.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.
@@ -187,9 +187,12 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
187
187
  }
188
188
 
189
189
  // Load data
190
- this.setState({
191
- isLoading: true
192
- });
190
+ var isInteractiveMove = nextProps.state.mode === MODE_DRAGGING_ITEM_3D || nextProps.state.mode === MODE_ROTATING_ITEM_3D || nextProps.state.mode === MODE_DRAWING_ITEM_3D || nextProps.state.mode === MODE_DRAGGING_HOLE_3D;
191
+ if (!isInteractiveMove) {
192
+ this.setState({
193
+ isLoading: true
194
+ });
195
+ }
193
196
  if (self.props.downloadFlag) {
194
197
  this.setState({
195
198
  waitForRender: 0
@@ -2530,6 +2533,7 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
2530
2533
  var changedValues = diff(this.props.state.scene, nextProps.state.scene);
2531
2534
  prepareSnapSpec(layer);
2532
2535
  var isInteractiveMove = nextProps.state.mode === MODE_DRAGGING_ITEM_3D || nextProps.state.mode === MODE_ROTATING_ITEM_3D || nextProps.state.mode === MODE_DRAWING_ITEM_3D || nextProps.state.mode === MODE_DRAGGING_HOLE_3D;
2536
+ console.log('nextProps.state.mode =>', nextProps.state.mode);
2533
2537
  if (nextProps.state.doorStyle && nextProps.state.doorStyle.get('name') === this.props.state.doorStyle.get('name')) {
2534
2538
  if (!isInteractiveMove) {
2535
2539
  self.setState({
@@ -193,9 +193,12 @@ var Scene3DViewer = exports["default"] = /*#__PURE__*/function (_React$Component
193
193
  }
194
194
 
195
195
  // Load data
196
- this.setState({
197
- isLoading: true
198
- });
196
+ var isInteractiveMove = nextProps.state.mode === _constants.MODE_DRAGGING_ITEM_3D || nextProps.state.mode === _constants.MODE_ROTATING_ITEM_3D || nextProps.state.mode === _constants.MODE_DRAWING_ITEM_3D || nextProps.state.mode === _constants.MODE_DRAGGING_HOLE_3D;
197
+ if (!isInteractiveMove) {
198
+ this.setState({
199
+ isLoading: true
200
+ });
201
+ }
199
202
  if (self.props.downloadFlag) {
200
203
  this.setState({
201
204
  waitForRender: 0
@@ -2536,6 +2539,7 @@ var Scene3DViewer = exports["default"] = /*#__PURE__*/function (_React$Component
2536
2539
  var changedValues = (0, _immutablediff["default"])(this.props.state.scene, nextProps.state.scene);
2537
2540
  prepareSnapSpec(layer);
2538
2541
  var isInteractiveMove = nextProps.state.mode === _constants.MODE_DRAGGING_ITEM_3D || nextProps.state.mode === _constants.MODE_ROTATING_ITEM_3D || nextProps.state.mode === _constants.MODE_DRAWING_ITEM_3D || nextProps.state.mode === _constants.MODE_DRAGGING_HOLE_3D;
2542
+ console.log('nextProps.state.mode =>', nextProps.state.mode);
2539
2543
  if (nextProps.state.doorStyle && nextProps.state.doorStyle.get('name') === this.props.state.doorStyle.get('name')) {
2540
2544
  if (!isInteractiveMove) {
2541
2545
  self.setState({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitchen-simulator",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "description": "It is a kitchen simulator (self-contained micro-frontend).",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",