kitchen-simulator 1.1.1-test.82 → 1.1.1-test.85
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/es/actions/export.js +24 -13
- package/es/components/content.js +20 -16
- package/es/components/export.js +3 -15
- package/es/components/viewer2d/line.js +2 -5
- package/lib/actions/export.js +35 -42
- package/lib/components/content.js +21 -16
- package/lib/components/export.js +6 -88
- package/lib/components/viewer2d/line.js +2 -5
- package/package.json +1 -1
package/es/actions/export.js
CHANGED
|
@@ -9,17 +9,28 @@ import * as itemsActions from "./items-actions";
|
|
|
9
9
|
import * as areaActions from "./area-actions";
|
|
10
10
|
import * as groupsActions from "./groups-actions";
|
|
11
11
|
|
|
12
|
-
export {
|
|
12
|
+
export {
|
|
13
|
+
projectActions,
|
|
14
|
+
viewer2DActions,
|
|
15
|
+
viewer3DActions,
|
|
16
|
+
linesActions,
|
|
17
|
+
holesActions,
|
|
18
|
+
sceneActions,
|
|
19
|
+
verticesActions,
|
|
20
|
+
itemsActions,
|
|
21
|
+
areaActions,
|
|
22
|
+
groupsActions
|
|
23
|
+
};
|
|
24
|
+
|
|
13
25
|
export default {
|
|
14
|
-
projectActions
|
|
15
|
-
viewer2DActions
|
|
16
|
-
viewer3DActions
|
|
17
|
-
linesActions
|
|
18
|
-
holesActions
|
|
19
|
-
sceneActions
|
|
20
|
-
verticesActions
|
|
21
|
-
itemsActions
|
|
22
|
-
areaActions
|
|
23
|
-
groupsActions
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
+
projectActions,
|
|
27
|
+
viewer2DActions,
|
|
28
|
+
viewer3DActions,
|
|
29
|
+
linesActions,
|
|
30
|
+
holesActions,
|
|
31
|
+
sceneActions,
|
|
32
|
+
verticesActions,
|
|
33
|
+
itemsActions,
|
|
34
|
+
areaActions,
|
|
35
|
+
groupsActions
|
|
36
|
+
};
|
package/es/components/content.js
CHANGED
|
@@ -3,8 +3,8 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import Viewer2D from "./viewer2d/viewer2d";
|
|
4
4
|
import Viewer3D from "./viewer3d/viewer3d";
|
|
5
5
|
import Viewer3DFirstPerson from "./viewer3d/viewer3d-first-person";
|
|
6
|
-
import CatalogList from
|
|
7
|
-
import ProjectConfigurator from
|
|
6
|
+
// import CatalogList from './catalog-view/catalog-list';
|
|
7
|
+
// import ProjectConfigurator from './configurator/project-configurator';
|
|
8
8
|
import * as constants from "../constants";
|
|
9
9
|
import Front3D from "./viewer3d/front3D";
|
|
10
10
|
export default function Content(_ref, _ref2) {
|
|
@@ -48,14 +48,18 @@ export default function Content(_ref, _ref2) {
|
|
|
48
48
|
width: width,
|
|
49
49
|
height: height
|
|
50
50
|
});
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
|
|
52
|
+
// case constants.MODE_VIEWING_CATALOG:
|
|
53
|
+
// return (
|
|
54
|
+
// <CatalogList
|
|
55
|
+
// state={state}
|
|
56
|
+
// param={match}
|
|
57
|
+
// width={width}
|
|
58
|
+
// height={height}
|
|
59
|
+
// categoryData={this.props.categoryData}
|
|
60
|
+
// />
|
|
61
|
+
// );
|
|
62
|
+
|
|
59
63
|
case constants.MODE_IDLE:
|
|
60
64
|
case constants.MODE_2D_ZOOM_IN:
|
|
61
65
|
case constants.MODE_2D_ZOOM_OUT:
|
|
@@ -92,12 +96,12 @@ export default function Content(_ref, _ref2) {
|
|
|
92
96
|
keyDownEnable: keyDownEnable,
|
|
93
97
|
downloadFlag: false
|
|
94
98
|
});
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
|
|
100
|
+
// case constants.MODE_CONFIGURING_PROJECT:
|
|
101
|
+
// return (
|
|
102
|
+
// <ProjectConfigurator width={width} height={height} state={state} />
|
|
103
|
+
// );
|
|
104
|
+
|
|
101
105
|
default:
|
|
102
106
|
if (customContents.hasOwnProperty(mode)) {
|
|
103
107
|
var CustomContent = customContents[mode];
|
package/es/components/export.js
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
|
|
2
1
|
import Content from "./content";
|
|
3
|
-
|
|
4
2
|
import Viewer2DComponents from "./viewer2d/export";
|
|
5
3
|
import StyleComponents from "./style/export";
|
|
6
4
|
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Content: Content,
|
|
11
|
-
SidebarComponents: SidebarComponents,
|
|
12
|
-
FooterBarComponents: FooterBarComponents,
|
|
13
|
-
WizardStepComponents: WizardStepComponents,
|
|
14
|
-
Viewer2DComponents: Viewer2DComponents,
|
|
15
|
-
StyleComponents: StyleComponents,
|
|
16
|
-
HeaderComponents: HeaderComponents,
|
|
17
|
-
SignComponents: SignComponents,
|
|
18
|
-
MyProjectsComonents: MyProjectsComonents
|
|
19
|
-
};
|
|
5
|
+
export { Content, Viewer2DComponents, StyleComponents };
|
|
6
|
+
|
|
7
|
+
export default { Content, Viewer2DComponents, StyleComponents };
|
|
@@ -5,7 +5,6 @@ import Ruler from "./ruler";
|
|
|
5
5
|
import { BASE_CABINET_LAYOUTPOS, LINE_THICKNESS, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
6
6
|
import * as Three from 'three';
|
|
7
7
|
import { isEmpty } from "./utils";
|
|
8
|
-
import Tooltip from '@material-ui/core/Tooltip';
|
|
9
8
|
var STYLE = {
|
|
10
9
|
stroke: 'rgb(77, 77, 77)',
|
|
11
10
|
strokeWidth: '1px'
|
|
@@ -802,9 +801,7 @@ export default function Line(_ref) {
|
|
|
802
801
|
} : {}
|
|
803
802
|
}, renderedLine, /*#__PURE__*/React.createElement("g", {
|
|
804
803
|
transform: "translate(".concat(x1, ", ").concat(y1, ") rotate(").concat(angle, ", 0, 0)")
|
|
805
|
-
}, renderedHoles)), line.selected && /*#__PURE__*/React.createElement(
|
|
806
|
-
title: "Elevation View"
|
|
807
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
804
|
+
}, renderedHoles)), line.selected && /*#__PURE__*/React.createElement("g", {
|
|
808
805
|
id: 'elevation-button',
|
|
809
806
|
key: 1,
|
|
810
807
|
transform: "translate(".concat(x1 + 35, ", ").concat(y1 - 15, ")"),
|
|
@@ -834,7 +831,7 @@ export default function Line(_ref) {
|
|
|
834
831
|
style: {
|
|
835
832
|
transform: 'rotateX(180deg)'
|
|
836
833
|
}
|
|
837
|
-
}))
|
|
834
|
+
})), line.selected && /*#__PURE__*/React.createElement("g", {
|
|
838
835
|
id: 'remove-button',
|
|
839
836
|
key: 2,
|
|
840
837
|
transform: "translate(".concat(x1 + 10, ", ").concat(y1, ")"),
|
package/lib/actions/export.js
CHANGED
|
@@ -1,43 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
import * as projectActions from "./project-actions";
|
|
2
|
+
import * as viewer2DActions from "./viewer2d-actions";
|
|
3
|
+
import * as viewer3DActions from "./viewer3d-actions";
|
|
4
|
+
import * as linesActions from "./lines-actions";
|
|
5
|
+
import * as holesActions from "./holes-actions";
|
|
6
|
+
import * as sceneActions from "./scene-actions";
|
|
7
|
+
import * as verticesActions from "./vertices-actions";
|
|
8
|
+
import * as itemsActions from "./items-actions";
|
|
9
|
+
import * as areaActions from "./area-actions";
|
|
10
|
+
import * as groupsActions from "./groups-actions";
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var userActions = _interopRequireWildcard(require("./user-actions"));
|
|
29
|
-
exports.userActions = userActions;
|
|
30
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
31
|
-
var _default = exports["default"] = {
|
|
32
|
-
projectActions: projectActions,
|
|
33
|
-
viewer2DActions: viewer2DActions,
|
|
34
|
-
viewer3DActions: viewer3DActions,
|
|
35
|
-
linesActions: linesActions,
|
|
36
|
-
holesActions: holesActions,
|
|
37
|
-
sceneActions: sceneActions,
|
|
38
|
-
verticesActions: verticesActions,
|
|
39
|
-
itemsActions: itemsActions,
|
|
40
|
-
areaActions: areaActions,
|
|
41
|
-
groupsActions: groupsActions,
|
|
42
|
-
userActions: userActions
|
|
43
|
-
};
|
|
12
|
+
export {
|
|
13
|
+
projectActions,
|
|
14
|
+
viewer2DActions,
|
|
15
|
+
viewer3DActions,
|
|
16
|
+
linesActions,
|
|
17
|
+
holesActions,
|
|
18
|
+
sceneActions,
|
|
19
|
+
verticesActions,
|
|
20
|
+
itemsActions,
|
|
21
|
+
areaActions,
|
|
22
|
+
groupsActions
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default {
|
|
26
|
+
projectActions,
|
|
27
|
+
viewer2DActions,
|
|
28
|
+
viewer3DActions,
|
|
29
|
+
linesActions,
|
|
30
|
+
holesActions,
|
|
31
|
+
sceneActions,
|
|
32
|
+
verticesActions,
|
|
33
|
+
itemsActions,
|
|
34
|
+
areaActions,
|
|
35
|
+
groupsActions
|
|
36
|
+
};
|
|
@@ -11,11 +11,12 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
var _viewer2d = _interopRequireDefault(require("./viewer2d/viewer2d"));
|
|
12
12
|
var _viewer3d = _interopRequireDefault(require("./viewer3d/viewer3d"));
|
|
13
13
|
var _viewer3dFirstPerson = _interopRequireDefault(require("./viewer3d/viewer3d-first-person"));
|
|
14
|
-
var _catalogList = _interopRequireDefault(require("./catalog-view/catalog-list"));
|
|
15
|
-
var _projectConfigurator = _interopRequireDefault(require("./configurator/project-configurator"));
|
|
16
14
|
var constants = _interopRequireWildcard(require("../constants"));
|
|
17
15
|
var _front3D = _interopRequireDefault(require("./viewer3d/front3D"));
|
|
18
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
|
+
// import CatalogList from './catalog-view/catalog-list';
|
|
18
|
+
// import ProjectConfigurator from './configurator/project-configurator';
|
|
19
|
+
|
|
19
20
|
function Content(_ref, _ref2) {
|
|
20
21
|
var width = _ref.width,
|
|
21
22
|
height = _ref.height,
|
|
@@ -57,14 +58,18 @@ function Content(_ref, _ref2) {
|
|
|
57
58
|
width: width,
|
|
58
59
|
height: height
|
|
59
60
|
});
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
|
|
62
|
+
// case constants.MODE_VIEWING_CATALOG:
|
|
63
|
+
// return (
|
|
64
|
+
// <CatalogList
|
|
65
|
+
// state={state}
|
|
66
|
+
// param={match}
|
|
67
|
+
// width={width}
|
|
68
|
+
// height={height}
|
|
69
|
+
// categoryData={this.props.categoryData}
|
|
70
|
+
// />
|
|
71
|
+
// );
|
|
72
|
+
|
|
68
73
|
case constants.MODE_IDLE:
|
|
69
74
|
case constants.MODE_2D_ZOOM_IN:
|
|
70
75
|
case constants.MODE_2D_ZOOM_OUT:
|
|
@@ -101,12 +106,12 @@ function Content(_ref, _ref2) {
|
|
|
101
106
|
keyDownEnable: keyDownEnable,
|
|
102
107
|
downloadFlag: false
|
|
103
108
|
});
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
|
|
110
|
+
// case constants.MODE_CONFIGURING_PROJECT:
|
|
111
|
+
// return (
|
|
112
|
+
// <ProjectConfigurator width={width} height={height} state={state} />
|
|
113
|
+
// );
|
|
114
|
+
|
|
110
115
|
default:
|
|
111
116
|
if (customContents.hasOwnProperty(mode)) {
|
|
112
117
|
var CustomContent = customContents[mode];
|
package/lib/components/export.js
CHANGED
|
@@ -1,89 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import Content from "./content";
|
|
2
|
+
import Viewer2DComponents from "./viewer2d/export";
|
|
3
|
+
import StyleComponents from "./style/export";
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
});
|
|
7
|
-
Object.defineProperty(exports, "Content", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _content["default"];
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "FooterBarComponents", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _export3["default"];
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "HeaderComponents", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _export6["default"];
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "MyProjectsComonents", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _export9["default"];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "SidebarComponents", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function get() {
|
|
34
|
-
return _export2["default"];
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "SignComponents", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function get() {
|
|
40
|
-
return _export8["default"];
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "StyleComponents", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function get() {
|
|
46
|
-
return _export5["default"];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, "ToolbarComponents", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function get() {
|
|
52
|
-
return _export["default"];
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
Object.defineProperty(exports, "Viewer2DComponents", {
|
|
56
|
-
enumerable: true,
|
|
57
|
-
get: function get() {
|
|
58
|
-
return _export4["default"];
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
Object.defineProperty(exports, "WizardStepComponents", {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function get() {
|
|
64
|
-
return _export7["default"];
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
exports["default"] = void 0;
|
|
68
|
-
var _export = _interopRequireDefault(require(".//export"));
|
|
69
|
-
var _content = _interopRequireDefault(require("./content"));
|
|
70
|
-
var _export2 = _interopRequireDefault(require(".//export"));
|
|
71
|
-
var _export3 = _interopRequireDefault(require(".//export"));
|
|
72
|
-
var _export4 = _interopRequireDefault(require("./viewer2d/export"));
|
|
73
|
-
var _export5 = _interopRequireDefault(require("./style/export"));
|
|
74
|
-
var _export6 = _interopRequireDefault(require(".//export"));
|
|
75
|
-
var _export7 = _interopRequireDefault(require(".//export"));
|
|
76
|
-
var _export8 = _interopRequireDefault(require(".//export"));
|
|
77
|
-
var _export9 = _interopRequireDefault(require(".//export"));
|
|
78
|
-
var _default = exports["default"] = {
|
|
79
|
-
ToolbarComponents: _export["default"],
|
|
80
|
-
Content: _content["default"],
|
|
81
|
-
SidebarComponents: _export2["default"],
|
|
82
|
-
FooterBarComponents: _export3["default"],
|
|
83
|
-
WizardStepComponents: _export7["default"],
|
|
84
|
-
Viewer2DComponents: _export4["default"],
|
|
85
|
-
StyleComponents: _export5["default"],
|
|
86
|
-
HeaderComponents: _export6["default"],
|
|
87
|
-
SignComponents: _export8["default"],
|
|
88
|
-
MyProjectsComonents: _export9["default"]
|
|
89
|
-
};
|
|
5
|
+
export { Content, Viewer2DComponents, StyleComponents };
|
|
6
|
+
|
|
7
|
+
export default { Content, Viewer2DComponents, StyleComponents };
|
|
@@ -14,7 +14,6 @@ var _ruler = _interopRequireDefault(require("./ruler"));
|
|
|
14
14
|
var _constants = require("../../constants");
|
|
15
15
|
var Three = _interopRequireWildcard(require("three"));
|
|
16
16
|
var _utils = require("./utils");
|
|
17
|
-
var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
18
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
19
18
|
var STYLE = {
|
|
20
19
|
stroke: 'rgb(77, 77, 77)',
|
|
@@ -812,9 +811,7 @@ function Line(_ref) {
|
|
|
812
811
|
} : {}
|
|
813
812
|
}, renderedLine, /*#__PURE__*/_react["default"].createElement("g", {
|
|
814
813
|
transform: "translate(".concat(x1, ", ").concat(y1, ") rotate(").concat(angle, ", 0, 0)")
|
|
815
|
-
}, renderedHoles)), line.selected && /*#__PURE__*/_react["default"].createElement(
|
|
816
|
-
title: "Elevation View"
|
|
817
|
-
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
814
|
+
}, renderedHoles)), line.selected && /*#__PURE__*/_react["default"].createElement("g", {
|
|
818
815
|
id: 'elevation-button',
|
|
819
816
|
key: 1,
|
|
820
817
|
transform: "translate(".concat(x1 + 35, ", ").concat(y1 - 15, ")"),
|
|
@@ -844,7 +841,7 @@ function Line(_ref) {
|
|
|
844
841
|
style: {
|
|
845
842
|
transform: 'rotateX(180deg)'
|
|
846
843
|
}
|
|
847
|
-
}))
|
|
844
|
+
})), line.selected && /*#__PURE__*/_react["default"].createElement("g", {
|
|
848
845
|
id: 'remove-button',
|
|
849
846
|
key: 2,
|
|
850
847
|
transform: "translate(".concat(x1 + 10, ", ").concat(y1, ")"),
|