kitchen-simulator 5.0.0-test.22 → 5.0.0-test.24

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitchen-simulator",
3
- "version": "5.0.0-test.22",
3
+ "version": "5.0.0-test.24",
4
4
  "description": "It is a kitchen simulator.",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -1,27 +1,20 @@
1
+ import * as Three from 'three';
1
2
  import {
2
- TextureLoader,
3
- Mesh,
4
- RepeatWrapping,
5
- Vector2,
6
3
  BoxGeometry,
4
+ Group,
5
+ Mesh,
7
6
  MeshBasicMaterial,
8
7
  MeshStandardMaterial,
9
- Group,
10
- CubeTextureLoader,
11
- sRGBEncoding,
12
- DoubleSide
8
+ RepeatWrapping,
9
+ TextureLoader,
10
+ Vector2
13
11
  } from 'three';
14
12
 
15
13
  import { verticesDistance } from '../../utils/geometry';
16
- import * as Three from 'three';
17
- import { textureCube, isElevationView } from '../../../src/utils/helper';
14
+ import { isElevationView } from '../../../src/utils/helper';
18
15
 
19
16
  import * as SharedStyle from '../../shared-style';
20
- import {
21
- MODE_ELEVATION_VIEW,
22
- LINE_THICKNESS,
23
- UNIT_CENTIMETER
24
- } from '../../constants';
17
+ import { LINE_THICKNESS, UNIT_CENTIMETER } from '../../constants';
25
18
  import convert from 'convert-units';
26
19
  import ThreeBSP from '../../utils/threeCSG.es6';
27
20
 
@@ -46,8 +39,8 @@ const applyTexture = (material, texture, length, height) => {
46
39
 
47
40
  if (texture) {
48
41
  material.map = loader.load(texture.uri.default);
49
- (material.map.colorSpace = Three.SRGBColorSpace),
50
- (material.needsUpdate = true);
42
+ ((material.map.colorSpace = Three.SRGBColorSpace),
43
+ (material.needsUpdate = true));
51
44
  material.map.wrapS = RepeatWrapping;
52
45
  material.map.wrapT = RepeatWrapping;
53
46
  material.map.repeat.set(
@@ -1,21 +1,16 @@
1
- import React from 'react';
1
+ import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { Component } from 'react';
4
3
  import * as Icon from 'react-icons/fa';
5
4
  import Popup from 'reactjs-popup';
6
5
  import {
6
+ DEFAULT_FONT_FAMILY,
7
7
  KEYBOARD_BUTTON_CODE,
8
- MODE,
9
8
  NEW_DESIGN,
10
- SAVE_DESIGN,
11
- ASK_QUOTE,
12
- DEFAULT_FONT_FAMILY,
13
- TEXT_COLOR_NEUTRAL_0,
14
- TEXT_COLOR_NEUTRAL_3,
9
+ SUBMIT_ADD_CART,
15
10
  SUBMIT_DESIGN,
16
- BG_COLOR_1,
17
11
  SUBMIT_REQUEST_ASSIST,
18
- SUBMIT_ADD_CART
12
+ TEXT_COLOR_NEUTRAL_0,
13
+ TEXT_COLOR_NEUTRAL_3
19
14
  } from '../../constants';
20
15
  import { FormTextInput } from '../style/export';
21
16
  import './header.style.css';
@@ -1,9 +1,8 @@
1
1
  import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import Panel from './panel';
4
- import * as SharedStyle from '../../shared-style';
5
- import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
6
- import { FaPencil, FaTrash, FaTimes } from 'react-icons/fa';
4
+ import { Tab, TabList, TabPanel, Tabs } from 'react-tabs';
5
+ import { FaTimes, FaTrash } from 'react-icons/fa';
7
6
  import { FormNumberInput } from '../../components/style/export';
8
7
 
9
8
  const tabStyle = { margin: '1em' };
@@ -1,18 +1,13 @@
1
- import React, { useCallback, useEffect, useState } from 'react';
1
+ import React, { useCallback, useEffect } from 'react';
2
2
  import * as S from '../../../../src/components/toolbar/main/styles';
3
3
  import {
4
4
  DECIMAL_PLACES_2,
5
- LOCAL_STORAGE_TOKEN_VALUE,
6
5
  STATUS_POSITIVE_COLOR,
7
6
  SUBMIT_ADD_CART,
8
7
  SUBMIT_REQUEST_ASSIST,
9
- TEXT_COLOR_NEUTRAL_2,
10
- TOE_KICK_MOLDING
8
+ TEXT_COLOR_NEUTRAL_2
11
9
  } from '../../../../src/constants';
12
- import {
13
- getToeKickMoldingThumbnail,
14
- makeSKUForMagento
15
- } from '../../../../src/components/viewer2d/utils';
10
+ import { makeSKUForMagento } from '../../../../src/components/viewer2d/utils';
16
11
  import ReviewItem from '../../../../src/components/toolbar/popup/product/reviewItem';
17
12
  import ReviewMolding from '../../../../src/components/toolbar/popup/product/reviewMolding';
18
13
  import { formatNumber } from '../../../../src/utils/math';