kitchen-simulator 5.0.0-test.18 → 5.0.0-test.19
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 +8 -26
- package/src/@history.js +3 -0
- package/src/CrossSignOn.jsx +94 -0
- package/src/KitchenConfigurator.jsx +1526 -0
- package/src/KitchenConfiguratorApp.jsx +1 -1
- package/src/_KitchenConfigurator.jsx +3 -3
- package/src/components/catalog-view/catalog-breadcrumb.jsx +53 -0
- package/src/components/catalog-view/catalog-item.jsx +229 -0
- package/src/components/catalog-view/catalog-list.jsx +173 -0
- package/src/components/catalog-view/catalog-page-item.jsx +110 -0
- package/src/components/catalog-view/catalog-turn-back-page-item.jsx +80 -0
- package/src/components/configurator/custom-configurator.jsx +77 -0
- package/src/components/configurator/project-configurator.jsx +120 -0
- package/src/components/export.js +36 -0
- package/src/components/firstsetting/button/styles.js +223 -0
- package/src/components/firstsetting/export.js +9 -0
- package/src/components/firstsetting/firstsetting-content-button.jsx +198 -0
- package/src/components/firstsetting/firstsetting-toggle-button.jsx +101 -0
- package/src/components/firstsetting/firstsetting.jsx +814 -0
- package/src/components/footerbar/button/ControlButton.jsx +43 -0
- package/src/components/footerbar/button/DirectionButton.jsx +54 -0
- package/src/components/footerbar/button/DirectionPanSpinButton.jsx +36 -0
- package/src/components/footerbar/button/ToggleButton.jsx +58 -0
- package/src/components/footerbar/button/ToggleConvertButton.jsx +48 -0
- package/src/components/footerbar/button/ToggleMeasureButton.jsx +33 -0
- package/src/components/footerbar/button/styles.js +217 -0
- package/src/components/footerbar/export.js +9 -0
- package/src/components/footerbar/footer-content-button.jsx +198 -0
- package/src/components/footerbar/footer-toggle-button.jsx +101 -0
- package/src/components/footerbar/footerbar.jsx +1103 -0
- package/src/components/footerbar/styles.js +263 -0
- package/src/components/header/button/MenuButton.jsx +46 -0
- package/src/components/header/button/SaveButton.jsx +54 -0
- package/src/components/header/button/styles.js +181 -0
- package/src/components/header/export.js +5 -0
- package/src/components/header/header.jsx +631 -0
- package/src/components/header/header.style.css +47 -0
- package/src/components/header/styles.js +320 -0
- package/src/components/login/Login.js +77 -0
- package/src/components/login/LoginForm/index.js +108 -0
- package/src/components/login/Register.js +82 -0
- package/src/components/login/RegisterForm/index.js +171 -0
- package/src/components/login/jwtService.js +201 -0
- package/src/components/login/style.css +158 -0
- package/src/components/login/style.scss +260 -0
- package/src/components/myprojects/export.js +5 -0
- package/src/components/myprojects/index.jsx +445 -0
- package/src/components/myprojects/styles.js +241 -0
- package/src/components/sidebar/custom-accordion.jsx +48 -0
- package/src/components/sidebar/export.js +15 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.jsx +73 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.jsx +101 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.jsx +149 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.jsx +316 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.jsx +108 -0
- package/src/components/sidebar/panel-element-editor/element-editor.jsx +1070 -0
- package/src/components/sidebar/panel-element-editor/multi-elements-editor.jsx +0 -0
- package/src/components/sidebar/panel-element-editor/panel-element-editor.jsx +104 -0
- package/src/components/sidebar/panel-element-editor/panel-multi-elements-editor.jsx +155 -0
- package/src/components/sidebar/panel-group-editor.jsx +272 -0
- package/src/components/sidebar/panel-groups.jsx +310 -0
- package/src/components/sidebar/panel-guides.jsx +192 -0
- package/src/components/sidebar/panel-layer-elements.jsx +298 -0
- package/src/components/sidebar/panel-layers.jsx +381 -0
- package/src/components/sidebar/panel.jsx +71 -0
- package/src/components/sidebar/sidebar.jsx +106 -0
- package/src/components/sidebar/toolbar-panel.jsx +139 -0
- package/src/components/sign/export.js +7 -0
- package/src/components/sign/main/index.jsx +523 -0
- package/src/components/sign/main/styles.js +163 -0
- package/src/components/toolbar/button/ControlButton.jsx +41 -0
- package/src/components/toolbar/button/DirectionButton.jsx +34 -0
- package/src/components/toolbar/button/RightButton.jsx +103 -0
- package/src/components/toolbar/button/ToggleButton.jsx +41 -0
- package/src/components/toolbar/button/index.jsx +55 -0
- package/src/components/toolbar/button/styles.js +127 -0
- package/src/components/toolbar/components/DoorStyleMenu.jsx +103 -0
- package/src/components/toolbar/components/Pricing.jsx +126 -0
- package/src/components/toolbar/components/ReviewForQuote.jsx +635 -0
- package/src/components/toolbar/export.js +21 -0
- package/src/components/toolbar/main/Alert.js +122 -0
- package/src/components/toolbar/main/TakePictureModal.jsx +104 -0
- package/src/components/toolbar/main/confirm-popup.jsx +99 -0
- package/src/components/toolbar/main/index.jsx +5627 -0
- package/src/components/toolbar/main/lShaped.json +311 -0
- package/src/components/toolbar/main/longNarrow.json +238 -0
- package/src/components/toolbar/main/myComponents.js +123 -0
- package/src/components/toolbar/main/oRectangle.json +220 -0
- package/src/components/toolbar/main/rectangle.json +238 -0
- package/src/components/toolbar/main/style.css +107 -0
- package/src/components/toolbar/main/styles.js +696 -0
- package/src/components/toolbar/plugin-item.jsx +123 -0
- package/src/components/toolbar/popup/appliance/appliance-category/index.jsx +73 -0
- package/src/components/toolbar/popup/appliance/choose-appliance/index.jsx +102 -0
- package/src/components/toolbar/popup/appliance/index.jsx +83 -0
- package/src/components/toolbar/popup/autosaveprompt/index.jsx +150 -0
- package/src/components/toolbar/popup/autosaveprompt/styles.css +64 -0
- package/src/components/toolbar/popup/autosaveprompt/styles.js +40 -0
- package/src/components/toolbar/popup/cabinet/cabinet-category/index.jsx +73 -0
- package/src/components/toolbar/popup/cabinet/choose-product/index.jsx +119 -0
- package/src/components/toolbar/popup/cabinet/index.jsx +85 -0
- package/src/components/toolbar/popup/doorStyle/choose-style/index.jsx +63 -0
- package/src/components/toolbar/popup/doorStyle/index.jsx +71 -0
- package/src/components/toolbar/popup/doorStyle/style-category/index.jsx +139 -0
- package/src/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +2 -0
- package/src/components/toolbar/popup/downloadsummary/downloadSummaryTemp.jsx +157 -0
- package/src/components/toolbar/popup/downloadsummary/index.jsx +643 -0
- package/src/components/toolbar/popup/downloadsummary/show2D/show2DView.jsx +51 -0
- package/src/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.jsx +175 -0
- package/src/components/toolbar/popup/downloadsummary/show3D/show3DView.jsx +283 -0
- package/src/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.jsx +2257 -0
- package/src/components/toolbar/popup/downloadsummary/showCabinetInfo.js +93 -0
- package/src/components/toolbar/popup/downloadsummary/showElevation/showElevationView.jsx +132 -0
- package/src/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.jsx +2198 -0
- package/src/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.jsx +152 -0
- package/src/components/toolbar/popup/downloadsummary/showWarranty.jsx +149 -0
- package/src/components/toolbar/popup/downloadsummary/styles.css +177 -0
- package/src/components/toolbar/popup/downloadsummary/styles.js +453 -0
- package/src/components/toolbar/popup/finishingtouch/category/index.jsx +34 -0
- package/src/components/toolbar/popup/finishingtouch/index.jsx +58 -0
- package/src/components/toolbar/popup/finishingtouch/material-edit.jsx +112 -0
- package/src/components/toolbar/popup/finishingtouch/product/index.jsx +116 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/confirm-popup.jsx +101 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/index.jsx +254 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/lShaped.json +311 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/longNarrow.json +238 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/oRectangle.json +220 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/rectangle.json +238 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/styles.js +86 -0
- package/src/components/toolbar/popup/floorplan/floor-category/index.jsx +109 -0
- package/src/components/toolbar/popup/floorplan/index.jsx +60 -0
- package/src/components/toolbar/popup/index.jsx +241 -0
- package/src/components/toolbar/popup/newproject/index.jsx +59 -0
- package/src/components/toolbar/popup/newproject/styles.css +64 -0
- package/src/components/toolbar/popup/newproject/styles.js +41 -0
- package/src/components/toolbar/popup/product/appliance.jsx +54 -0
- package/src/components/toolbar/popup/product/cabinetproduct.jsx +15 -0
- package/src/components/toolbar/popup/product/doorstyle.jsx +58 -0
- package/src/components/toolbar/popup/product/doorstyleproduct.jsx +47 -0
- package/src/components/toolbar/popup/product/floor.jsx +36 -0
- package/src/components/toolbar/popup/product/floorproduct.jsx +42 -0
- package/src/components/toolbar/popup/product/index.jsx +36 -0
- package/src/components/toolbar/popup/product/primary.jsx +77 -0
- package/src/components/toolbar/popup/product/productline.jsx +93 -0
- package/src/components/toolbar/popup/product/reviewItem.jsx +427 -0
- package/src/components/toolbar/popup/product/reviewMolding.jsx +310 -0
- package/src/components/toolbar/popup/product/style.css +54 -0
- package/src/components/toolbar/popup/product/styles.js +260 -0
- package/src/components/toolbar/popup/savedesign/FullPictureForm.jsx +146 -0
- package/src/components/toolbar/popup/savedesign/index.jsx +495 -0
- package/src/components/toolbar/popup/savedesign/savedesign.style.css +16 -0
- package/src/components/toolbar/popup/savedesign/styles.js +151 -0
- package/src/components/toolbar/popup/setDoorStyleOption/index.jsx +87 -0
- package/src/components/toolbar/popup/styles.js +909 -0
- package/src/components/toolbar/popup/submitforquote/AddToCartOptions.jsx +192 -0
- package/src/components/toolbar/popup/submitforquote/CustomerRequestsForm.jsx +96 -0
- package/src/components/toolbar/popup/submitforquote/SkipDesignerReview.jsx +54 -0
- package/src/components/toolbar/popup/submitforquote/StepDots.jsx +25 -0
- package/src/components/toolbar/popup/submitforquote/cart-choice.jsx +116 -0
- package/src/components/toolbar/popup/submitforquote/doorstyle-menus.js +38 -0
- package/src/components/toolbar/popup/submitforquote/index.jsx +698 -0
- package/src/components/toolbar/popup/submitforquote/styles.css +105 -0
- package/src/components/toolbar/popup/submitforquote/styles.js +294 -0
- package/src/components/toolbar/popup/submitprompt/index.jsx +89 -0
- package/src/components/toolbar/popup/submitprompt/styles.css +64 -0
- package/src/components/toolbar/popup/submitprompt/styles.js +42 -0
- package/src/components/toolbar/toolbar-button.jsx +90 -0
- package/src/components/toolbar/toolbar-load-button.jsx +36 -0
- package/src/components/toolbar/toolbar-save-button.jsx +32 -0
- package/src/components/wizardstep/button/styles.js +677 -0
- package/src/components/wizardstep/export.js +5 -0
- package/src/components/wizardstep/index.jsx +1372 -0
- package/src/components/wizardstep/styles.js +688 -0
- package/src/components/wizardstep/wizardstep-content-button.jsx +198 -0
- package/src/components/wizardstep/wizardstep-toggle-button.jsx +101 -0
- package/src/{_index.js → index.js} +4 -4
- package/src/renderer.jsx +466 -0
- package/src/actions/_export.js +0 -35
- package/src/components/_export.js +0 -11
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
{
|
|
2
|
+
"unit": "cm",
|
|
3
|
+
"rulerUnit": "in",
|
|
4
|
+
"layers": {
|
|
5
|
+
"layer-1": {
|
|
6
|
+
"id": "layer-1",
|
|
7
|
+
"altitude": 0,
|
|
8
|
+
"order": 0,
|
|
9
|
+
"opacity": 1,
|
|
10
|
+
"name": "default",
|
|
11
|
+
"visible": true,
|
|
12
|
+
"vertices": {
|
|
13
|
+
"bHaJu1vDh-": {
|
|
14
|
+
"id": "bHaJu1vDh-",
|
|
15
|
+
"type": "",
|
|
16
|
+
"prototype": "vertices",
|
|
17
|
+
"name": "Vertex",
|
|
18
|
+
"misc": {},
|
|
19
|
+
"selected": false,
|
|
20
|
+
"properties": {},
|
|
21
|
+
"style": "",
|
|
22
|
+
"category": "",
|
|
23
|
+
"visible": true,
|
|
24
|
+
"x": 1159.5959595959598,
|
|
25
|
+
"y": 653.030303030303,
|
|
26
|
+
"lines": ["qu-iklVvD"],
|
|
27
|
+
"areas": ["nZUk04rvLm"]
|
|
28
|
+
},
|
|
29
|
+
"i6cQughFHL": {
|
|
30
|
+
"id": "i6cQughFHL",
|
|
31
|
+
"type": "",
|
|
32
|
+
"prototype": "vertices",
|
|
33
|
+
"name": "Vertex",
|
|
34
|
+
"misc": {},
|
|
35
|
+
"selected": false,
|
|
36
|
+
"properties": {},
|
|
37
|
+
"style": "",
|
|
38
|
+
"category": "",
|
|
39
|
+
"visible": true,
|
|
40
|
+
"x": 1159.5959595959598,
|
|
41
|
+
"y": 1306.5656565656566,
|
|
42
|
+
"lines": ["Fqjsu2nx-", "qu-iklVvD"],
|
|
43
|
+
"areas": ["nZUk04rvLm"]
|
|
44
|
+
},
|
|
45
|
+
"xf5Pbjbn9O": {
|
|
46
|
+
"id": "xf5Pbjbn9O",
|
|
47
|
+
"type": "",
|
|
48
|
+
"prototype": "vertices",
|
|
49
|
+
"name": "Vertex",
|
|
50
|
+
"misc": {},
|
|
51
|
+
"selected": false,
|
|
52
|
+
"properties": {},
|
|
53
|
+
"style": "",
|
|
54
|
+
"category": "",
|
|
55
|
+
"visible": true,
|
|
56
|
+
"x": 1885.858585858586,
|
|
57
|
+
"y": 1306.5656565656566,
|
|
58
|
+
"lines": ["Fqjsu2nx-", "gh-FNJ1s5"],
|
|
59
|
+
"areas": ["nZUk04rvLm"]
|
|
60
|
+
},
|
|
61
|
+
"tzGSabFPP7": {
|
|
62
|
+
"id": "tzGSabFPP7",
|
|
63
|
+
"type": "",
|
|
64
|
+
"prototype": "vertices",
|
|
65
|
+
"name": "Vertex",
|
|
66
|
+
"misc": {},
|
|
67
|
+
"selected": false,
|
|
68
|
+
"properties": {},
|
|
69
|
+
"style": "",
|
|
70
|
+
"category": "",
|
|
71
|
+
"visible": true,
|
|
72
|
+
"x": 1885.858585858586,
|
|
73
|
+
"y": 653.030303030303,
|
|
74
|
+
"lines": ["gh-FNJ1s5"],
|
|
75
|
+
"areas": ["nZUk04rvLm"]
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"lines": {
|
|
79
|
+
"qu-iklVvD": {
|
|
80
|
+
"id": "qu-iklVvD",
|
|
81
|
+
"type": "wall",
|
|
82
|
+
"prototype": "lines",
|
|
83
|
+
"name": "Wall",
|
|
84
|
+
"misc": {},
|
|
85
|
+
"selected": false,
|
|
86
|
+
"properties": { "textureB": "plaster", "textureA": "plaster" },
|
|
87
|
+
"style": "",
|
|
88
|
+
"category": "",
|
|
89
|
+
"createdDateTime": 1693373165225,
|
|
90
|
+
"visible": true,
|
|
91
|
+
"vertices": ["bHaJu1vDh-", "i6cQughFHL"],
|
|
92
|
+
"holes": [],
|
|
93
|
+
"focus": false,
|
|
94
|
+
"wallColor": "#dddddd"
|
|
95
|
+
},
|
|
96
|
+
"Fqjsu2nx-": {
|
|
97
|
+
"id": "Fqjsu2nx-",
|
|
98
|
+
"type": "wall",
|
|
99
|
+
"prototype": "lines",
|
|
100
|
+
"name": "Wall",
|
|
101
|
+
"misc": {},
|
|
102
|
+
"selected": false,
|
|
103
|
+
"properties": { "textureB": "plaster", "textureA": "plaster" },
|
|
104
|
+
"style": "",
|
|
105
|
+
"category": "",
|
|
106
|
+
"createdDateTime": 1693373165205,
|
|
107
|
+
"visible": true,
|
|
108
|
+
"vertices": ["i6cQughFHL", "xf5Pbjbn9O"],
|
|
109
|
+
"holes": [],
|
|
110
|
+
"focus": false,
|
|
111
|
+
"wallColor": "#dddddd"
|
|
112
|
+
},
|
|
113
|
+
"gh-FNJ1s5": {
|
|
114
|
+
"id": "gh-FNJ1s5",
|
|
115
|
+
"type": "wall",
|
|
116
|
+
"prototype": "lines",
|
|
117
|
+
"name": "Wall",
|
|
118
|
+
"misc": {},
|
|
119
|
+
"selected": false,
|
|
120
|
+
"properties": {
|
|
121
|
+
"textureB": "plaster",
|
|
122
|
+
"width": { "_unit": "in", "length": null },
|
|
123
|
+
"height": { "_unit": "in", "length": null },
|
|
124
|
+
"depth": { "_unit": "in", "length": null },
|
|
125
|
+
"textureA": "plaster"
|
|
126
|
+
},
|
|
127
|
+
"style": "",
|
|
128
|
+
"category": "",
|
|
129
|
+
"createdDateTime": 1693373165215,
|
|
130
|
+
"visible": true,
|
|
131
|
+
"vertices": ["xf5Pbjbn9O", "tzGSabFPP7"],
|
|
132
|
+
"holes": [],
|
|
133
|
+
"focus": false,
|
|
134
|
+
"wallColor": "#dddddd"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"holes": {},
|
|
138
|
+
"areas": {
|
|
139
|
+
"nZUk04rvLm": {
|
|
140
|
+
"id": "nZUk04rvLm",
|
|
141
|
+
"type": "area",
|
|
142
|
+
"prototype": "areas",
|
|
143
|
+
"name": "Area",
|
|
144
|
+
"misc": {},
|
|
145
|
+
"selected": false,
|
|
146
|
+
"properties": {
|
|
147
|
+
"patternColor": "rgba(175,175,175)",
|
|
148
|
+
"thickness": { "length": 0 },
|
|
149
|
+
"texture": "parquet",
|
|
150
|
+
"width": { "_unit": "in", "length": null },
|
|
151
|
+
"height": { "_unit": "in", "length": null },
|
|
152
|
+
"depth": { "_unit": "in", "length": null }
|
|
153
|
+
},
|
|
154
|
+
"style": "",
|
|
155
|
+
"category": "",
|
|
156
|
+
"visible": true,
|
|
157
|
+
"vertices": ["bHaJu1vDh-", "tzGSabFPP7", "xf5Pbjbn9O", "i6cQughFHL"],
|
|
158
|
+
"holes": [],
|
|
159
|
+
"texture": { "roughness": 0.9, "metalness": 0, "uri": "" }
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"items": {},
|
|
163
|
+
"selected": {
|
|
164
|
+
"vertices": [],
|
|
165
|
+
"lines": [],
|
|
166
|
+
"holes": [],
|
|
167
|
+
"areas": [],
|
|
168
|
+
"items": []
|
|
169
|
+
},
|
|
170
|
+
"dcmmodel": false,
|
|
171
|
+
"lrmmodel": false,
|
|
172
|
+
"fbmmodel": false,
|
|
173
|
+
"counterTop": {
|
|
174
|
+
"uri": "https://kc-assets-us.s3.amazonaws.com/uploads/CountTop/202105074107_5/texture/Unique_Calcatta_texture.jpg"
|
|
175
|
+
},
|
|
176
|
+
"wallColor": {},
|
|
177
|
+
"floorStyle": {
|
|
178
|
+
"uri": "https://kc-assets-us.s3.amazonaws.com/uploads/CountTop/202203162950_2/texture/oak-barcelona-s.jpg"
|
|
179
|
+
},
|
|
180
|
+
"doorHandle": "",
|
|
181
|
+
"backsplash": { "roughness": 0.2, "metalness": 0.1, "uri": "" },
|
|
182
|
+
"backsplashApplied": false,
|
|
183
|
+
"ceilHeight": 96,
|
|
184
|
+
"unit": "in"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"grids": {
|
|
188
|
+
"h1": {
|
|
189
|
+
"id": "h1",
|
|
190
|
+
"type": "horizontal-streak",
|
|
191
|
+
"properties": {
|
|
192
|
+
"step": 30.48,
|
|
193
|
+
"colors": ["#ddd", "#ddd", "#ddd", "#ddd", "#ddd"]
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"v1": {
|
|
197
|
+
"id": "v1",
|
|
198
|
+
"type": "vertical-streak",
|
|
199
|
+
"properties": {
|
|
200
|
+
"step": 30.48,
|
|
201
|
+
"colors": ["#ddd", "#ddd", "#ddd", "#ddd", "#ddd"]
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"selectedLayer": "layer-1",
|
|
206
|
+
"groups": {},
|
|
207
|
+
"width": 3000,
|
|
208
|
+
"height": 2000,
|
|
209
|
+
"meta": {},
|
|
210
|
+
"guides": { "horizontal": {}, "vertical": {}, "circular": {} },
|
|
211
|
+
"title": "",
|
|
212
|
+
"currentProjectID": null,
|
|
213
|
+
"showfg": true,
|
|
214
|
+
"showWallLengthMeasure": 1,
|
|
215
|
+
"showBaseCabinetMeasure": 1,
|
|
216
|
+
"showWallCabinetMeasure": 1,
|
|
217
|
+
"showWindowDoorMeasure": 1,
|
|
218
|
+
"isLoadingCabinet": false,
|
|
219
|
+
"loadFlag": false
|
|
220
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
{
|
|
2
|
+
"unit": "cm",
|
|
3
|
+
"rulerUnit": "in",
|
|
4
|
+
"layers": {
|
|
5
|
+
"layer-1": {
|
|
6
|
+
"id": "layer-1",
|
|
7
|
+
"altitude": 0,
|
|
8
|
+
"order": 0,
|
|
9
|
+
"opacity": 1,
|
|
10
|
+
"name": "default",
|
|
11
|
+
"visible": true,
|
|
12
|
+
"vertices": {
|
|
13
|
+
"7CRjeaRZhF": {
|
|
14
|
+
"id": "7CRjeaRZhF",
|
|
15
|
+
"type": "",
|
|
16
|
+
"prototype": "vertices",
|
|
17
|
+
"name": "Vertex",
|
|
18
|
+
"misc": {},
|
|
19
|
+
"selected": false,
|
|
20
|
+
"properties": {},
|
|
21
|
+
"style": "",
|
|
22
|
+
"category": "",
|
|
23
|
+
"visible": true,
|
|
24
|
+
"x": 1291.05,
|
|
25
|
+
"y": 1175.29,
|
|
26
|
+
"lines": ["STZ63BwOf", "eyC5vDys2"],
|
|
27
|
+
"areas": ["bQRvW_9KxV"]
|
|
28
|
+
},
|
|
29
|
+
"vlppTvk-ik": {
|
|
30
|
+
"id": "vlppTvk-ik",
|
|
31
|
+
"type": "",
|
|
32
|
+
"prototype": "vertices",
|
|
33
|
+
"name": "Vertex",
|
|
34
|
+
"misc": {},
|
|
35
|
+
"selected": false,
|
|
36
|
+
"properties": {},
|
|
37
|
+
"style": "",
|
|
38
|
+
"category": "",
|
|
39
|
+
"visible": true,
|
|
40
|
+
"x": 1778.73,
|
|
41
|
+
"y": 1175.29,
|
|
42
|
+
"lines": ["STZ63BwOf", "BvCbJyf6O"],
|
|
43
|
+
"areas": ["bQRvW_9KxV"]
|
|
44
|
+
},
|
|
45
|
+
"KYo9KB-NX8": {
|
|
46
|
+
"id": "KYo9KB-NX8",
|
|
47
|
+
"type": "",
|
|
48
|
+
"prototype": "vertices",
|
|
49
|
+
"name": "Vertex",
|
|
50
|
+
"misc": {},
|
|
51
|
+
"selected": false,
|
|
52
|
+
"properties": {},
|
|
53
|
+
"style": "",
|
|
54
|
+
"category": "",
|
|
55
|
+
"visible": true,
|
|
56
|
+
"x": 1778.73,
|
|
57
|
+
"y": 809.53,
|
|
58
|
+
"lines": ["BvCbJyf6O", "uPW70hewY"],
|
|
59
|
+
"areas": ["bQRvW_9KxV"]
|
|
60
|
+
},
|
|
61
|
+
"Pa4Hy3Z26ga": {
|
|
62
|
+
"id": "Pa4Hy3Z26ga",
|
|
63
|
+
"type": "",
|
|
64
|
+
"prototype": "vertices",
|
|
65
|
+
"name": "Vertex",
|
|
66
|
+
"misc": {},
|
|
67
|
+
"selected": false,
|
|
68
|
+
"properties": {},
|
|
69
|
+
"style": "",
|
|
70
|
+
"category": "",
|
|
71
|
+
"visible": true,
|
|
72
|
+
"x": 1291.05,
|
|
73
|
+
"y": 809.53,
|
|
74
|
+
"lines": ["eyC5vDys2", "uPW70hewY"],
|
|
75
|
+
"areas": ["bQRvW_9KxV"]
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"lines": {
|
|
79
|
+
"STZ63BwOf": {
|
|
80
|
+
"id": "STZ63BwOf",
|
|
81
|
+
"type": "wall",
|
|
82
|
+
"prototype": "lines",
|
|
83
|
+
"name": "Wall",
|
|
84
|
+
"misc": {},
|
|
85
|
+
"selected": false,
|
|
86
|
+
"properties": { "textureB": "plaster", "textureA": "plaster" },
|
|
87
|
+
"style": "",
|
|
88
|
+
"category": "",
|
|
89
|
+
"createdDateTime": 1693373165235,
|
|
90
|
+
"visible": true,
|
|
91
|
+
"vertices": ["7CRjeaRZhF", "vlppTvk-ik"],
|
|
92
|
+
"holes": [],
|
|
93
|
+
"focus": false,
|
|
94
|
+
"wallColor": "#dddddd"
|
|
95
|
+
},
|
|
96
|
+
"eyC5vDys2": {
|
|
97
|
+
"id": "eyC5vDys2",
|
|
98
|
+
"type": "wall",
|
|
99
|
+
"prototype": "lines",
|
|
100
|
+
"name": "Wall",
|
|
101
|
+
"misc": {},
|
|
102
|
+
"selected": false,
|
|
103
|
+
"properties": { "textureB": "plaster", "textureA": "plaster" },
|
|
104
|
+
"style": "",
|
|
105
|
+
"category": "",
|
|
106
|
+
"createdDateTime": 1693373165265,
|
|
107
|
+
"visible": true,
|
|
108
|
+
"vertices": ["Pa4Hy3Z26ga", "7CRjeaRZhF"],
|
|
109
|
+
"holes": [],
|
|
110
|
+
"focus": false,
|
|
111
|
+
"wallColor": "#dddddd"
|
|
112
|
+
},
|
|
113
|
+
"BvCbJyf6O": {
|
|
114
|
+
"id": "BvCbJyf6O",
|
|
115
|
+
"type": "wall",
|
|
116
|
+
"prototype": "lines",
|
|
117
|
+
"name": "Wall",
|
|
118
|
+
"misc": {},
|
|
119
|
+
"selected": false,
|
|
120
|
+
"properties": { "textureB": "plaster", "textureA": "plaster" },
|
|
121
|
+
"style": "",
|
|
122
|
+
"category": "",
|
|
123
|
+
"createdDateTime": 1693373165245,
|
|
124
|
+
"visible": true,
|
|
125
|
+
"vertices": ["vlppTvk-ik", "KYo9KB-NX8"],
|
|
126
|
+
"holes": [],
|
|
127
|
+
"focus": false,
|
|
128
|
+
"wallColor": "#dddddd"
|
|
129
|
+
},
|
|
130
|
+
"uPW70hewY": {
|
|
131
|
+
"id": "uPW70hewY",
|
|
132
|
+
"type": "wall",
|
|
133
|
+
"prototype": "lines",
|
|
134
|
+
"name": "Wall",
|
|
135
|
+
"misc": {},
|
|
136
|
+
"selected": false,
|
|
137
|
+
"properties": {
|
|
138
|
+
"textureB": "plaster",
|
|
139
|
+
"width": { "_unit": "in", "length": null },
|
|
140
|
+
"height": { "_unit": "in", "length": null },
|
|
141
|
+
"depth": { "_unit": "in", "length": null },
|
|
142
|
+
"textureA": "plaster"
|
|
143
|
+
},
|
|
144
|
+
"style": "",
|
|
145
|
+
"category": "",
|
|
146
|
+
"createdDateTime": 1693373165255,
|
|
147
|
+
"visible": true,
|
|
148
|
+
"vertices": ["KYo9KB-NX8", "Pa4Hy3Z26ga"],
|
|
149
|
+
"holes": [],
|
|
150
|
+
"focus": false,
|
|
151
|
+
"wallColor": "#dddddd"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"holes": {},
|
|
155
|
+
"areas": {
|
|
156
|
+
"bQRvW_9KxV": {
|
|
157
|
+
"id": "bQRvW_9KxV",
|
|
158
|
+
"type": "area",
|
|
159
|
+
"prototype": "areas",
|
|
160
|
+
"name": "Area",
|
|
161
|
+
"misc": {},
|
|
162
|
+
"selected": false,
|
|
163
|
+
"properties": {
|
|
164
|
+
"patternColor": "rgba(175,175,175)",
|
|
165
|
+
"thickness": { "length": 0 },
|
|
166
|
+
"texture": "parquet"
|
|
167
|
+
},
|
|
168
|
+
"style": "",
|
|
169
|
+
"category": "",
|
|
170
|
+
"visible": true,
|
|
171
|
+
"vertices": ["7CRjeaRZhF", "Pa4Hy3Z26ga", "KYo9KB-NX8", "vlppTvk-ik"],
|
|
172
|
+
"holes": [],
|
|
173
|
+
"texture": {
|
|
174
|
+
"roughness": 0.9,
|
|
175
|
+
"metalness": 0,
|
|
176
|
+
"uri": "https://kc-assets-us.s3.amazonaws.com/uploads/CountTop/202203162950_2/texture/oak-barcelona-s.jpg"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"items": {},
|
|
181
|
+
"selected": {
|
|
182
|
+
"vertices": [],
|
|
183
|
+
"lines": [],
|
|
184
|
+
"holes": [],
|
|
185
|
+
"areas": [],
|
|
186
|
+
"items": []
|
|
187
|
+
},
|
|
188
|
+
"dcmmodel": false,
|
|
189
|
+
"lrmmodel": false,
|
|
190
|
+
"fbmmodel": false,
|
|
191
|
+
"counterTop": {
|
|
192
|
+
"uri": "https://kc-assets-us.s3.amazonaws.com/uploads/CountTop/202105074107_5/texture/Unique_Calcatta_texture.jpg"
|
|
193
|
+
},
|
|
194
|
+
"wallColor": {},
|
|
195
|
+
"floorStyle": {
|
|
196
|
+
"uri": "https://kc-assets-us.s3.amazonaws.com/uploads/CountTop/202203162950_2/texture/oak-barcelona-s.jpg"
|
|
197
|
+
},
|
|
198
|
+
"doorHandle": "",
|
|
199
|
+
"backsplash": { "roughness": 0.2, "metalness": 0.1, "uri": "" },
|
|
200
|
+
"backsplashApplied": false,
|
|
201
|
+
"ceilHeight": 96,
|
|
202
|
+
"unit": "in"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"grids": {
|
|
206
|
+
"h1": {
|
|
207
|
+
"id": "h1",
|
|
208
|
+
"type": "horizontal-streak",
|
|
209
|
+
"properties": {
|
|
210
|
+
"step": 30.48,
|
|
211
|
+
"colors": ["#ddd", "#ddd", "#ddd", "#ddd", "#ddd"]
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"v1": {
|
|
215
|
+
"id": "v1",
|
|
216
|
+
"type": "vertical-streak",
|
|
217
|
+
"properties": {
|
|
218
|
+
"step": 30.48,
|
|
219
|
+
"colors": ["#ddd", "#ddd", "#ddd", "#ddd", "#ddd"]
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"selectedLayer": "layer-1",
|
|
224
|
+
"groups": {},
|
|
225
|
+
"width": 3000,
|
|
226
|
+
"height": 2000,
|
|
227
|
+
"meta": {},
|
|
228
|
+
"guides": { "horizontal": {}, "vertical": {}, "circular": {} },
|
|
229
|
+
"title": "",
|
|
230
|
+
"currentProjectID": null,
|
|
231
|
+
"showfg": true,
|
|
232
|
+
"showWallLengthMeasure": 1,
|
|
233
|
+
"showBaseCabinetMeasure": 1,
|
|
234
|
+
"showWallCabinetMeasure": 1,
|
|
235
|
+
"showWindowDoorMeasure": 1,
|
|
236
|
+
"isLoadingCabinet": false,
|
|
237
|
+
"loadFlag": false
|
|
238
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import * as SharedStyle from '../../../../../shared-style';
|
|
3
|
+
|
|
4
|
+
export const Control = styled.div`
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
`;
|
|
8
|
+
|
|
9
|
+
export const ControlIcon = styled.div`
|
|
10
|
+
margin-top: 9px;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
position: relative;
|
|
13
|
+
:hover {
|
|
14
|
+
img {
|
|
15
|
+
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
|
|
16
|
+
0px 6px 10px 0px rgba(0, 0, 0, 0.39),
|
|
17
|
+
0px 1px 18px 0px rgba(0, 0, 0, 0.12);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
:active {
|
|
21
|
+
img {
|
|
22
|
+
box-shadow: none !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
export const LineWrapper = styled.div`
|
|
28
|
+
color: #fff;
|
|
29
|
+
display: flex;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
align-items: center;
|
|
32
|
+
span {
|
|
33
|
+
@media screen and (min-width: 1024) {
|
|
34
|
+
font-size: 11px;
|
|
35
|
+
}
|
|
36
|
+
@media screen and (max-width: 1024) {
|
|
37
|
+
font-size: 11px;
|
|
38
|
+
}
|
|
39
|
+
@media screen and (min-width: 1366) {
|
|
40
|
+
font-size: 13px;
|
|
41
|
+
}
|
|
42
|
+
@media screen and (max-width: 1366) {
|
|
43
|
+
font-size: 13px;
|
|
44
|
+
}
|
|
45
|
+
@media screen and (min-width: 1440) {
|
|
46
|
+
font-size: 16px;
|
|
47
|
+
}
|
|
48
|
+
@media screen and (max-width: 1440) {
|
|
49
|
+
font-size: 16px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
:hover {
|
|
53
|
+
span {
|
|
54
|
+
color: ${SharedStyle.SECONDARY_COLOR.main};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
export const Div = styled.div`
|
|
60
|
+
position: fixed;
|
|
61
|
+
top: calc(50% - 150px);
|
|
62
|
+
left: calc(50% - 200px);
|
|
63
|
+
z-index: 200;
|
|
64
|
+
background: #2b2b2ddf;
|
|
65
|
+
align-items: space-around;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
color: white;
|
|
68
|
+
width: 350px;
|
|
69
|
+
height: 140px;
|
|
70
|
+
`;
|
|
71
|
+
|
|
72
|
+
export const ButtonTitle1 = styled.span`
|
|
73
|
+
position: absolute;
|
|
74
|
+
padding-left: 20px;
|
|
75
|
+
margin-top: 3px;
|
|
76
|
+
font-size: 12px;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
`;
|
|
79
|
+
|
|
80
|
+
export const ButtonTitle2 = styled.span`
|
|
81
|
+
position: absolute;
|
|
82
|
+
padding-left: 20px;
|
|
83
|
+
margin-top: 3px;
|
|
84
|
+
font-size: 12px;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
`;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ToolbarPanel from '../../../../sidebar/toolbar-panel';
|
|
3
|
+
import * as S from '../../styles';
|
|
4
|
+
|
|
5
|
+
import Product from '../../product';
|
|
6
|
+
import Floor from '../../product/floor';
|
|
7
|
+
import * as testJsonData from '../../../../../../../../../test/*.json';
|
|
8
|
+
|
|
9
|
+
export const FloorCategory = ({
|
|
10
|
+
action,
|
|
11
|
+
props,
|
|
12
|
+
dataSource,
|
|
13
|
+
isExpand,
|
|
14
|
+
closeAction
|
|
15
|
+
}) => {
|
|
16
|
+
let miHeight = 0;
|
|
17
|
+
let nonHeight = 495 - miHeight + 'px';
|
|
18
|
+
let height = window.innerHeight * 0.6 - miHeight + 'px';
|
|
19
|
+
var result = [];
|
|
20
|
+
dataSource.map(el => {
|
|
21
|
+
result.push(
|
|
22
|
+
<Product
|
|
23
|
+
key={el.name}
|
|
24
|
+
url={
|
|
25
|
+
el.name === 'Windows'
|
|
26
|
+
? '/assets/img/svg/toolbar/add_items_windows.svg'
|
|
27
|
+
: '/assets/img/svg/toolbar/add_items_doors.svg'
|
|
28
|
+
}
|
|
29
|
+
title={el.name}
|
|
30
|
+
onClick={() => {
|
|
31
|
+
action(el.name);
|
|
32
|
+
}}
|
|
33
|
+
/>
|
|
34
|
+
);
|
|
35
|
+
});
|
|
36
|
+
let loadProject = data => {
|
|
37
|
+
props.projectActions.loadProject(JSON.parse(data.project_data));
|
|
38
|
+
document.getElementsByClassName('popup-content')[0].style.display = 'none';
|
|
39
|
+
};
|
|
40
|
+
let testData = [];
|
|
41
|
+
if (process.env.MODE === 'staging') {
|
|
42
|
+
for (let testJson in testJsonData) {
|
|
43
|
+
testData.push(
|
|
44
|
+
<S.testJsonItemWrapper
|
|
45
|
+
key={testJson}
|
|
46
|
+
style={{ justifyContent: 'center' }}
|
|
47
|
+
onClick={event => {
|
|
48
|
+
if (
|
|
49
|
+
window.confirm(`Do you really load ${testJson}.json for KC test?`)
|
|
50
|
+
) {
|
|
51
|
+
loadProject(testJsonData[testJson]);
|
|
52
|
+
}
|
|
53
|
+
}}
|
|
54
|
+
>
|
|
55
|
+
{testJson}
|
|
56
|
+
</S.testJsonItemWrapper>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return (
|
|
61
|
+
<S.CategoryContentWrapper style={{ height: isExpand ? height : nonHeight }}>
|
|
62
|
+
<ToolbarPanel
|
|
63
|
+
opened
|
|
64
|
+
onClose={() => {}}
|
|
65
|
+
onOpen={() => {}}
|
|
66
|
+
isUrl={false}
|
|
67
|
+
name={'Floor Space'}
|
|
68
|
+
url={null}
|
|
69
|
+
>
|
|
70
|
+
<Floor
|
|
71
|
+
url={'/assets/img/svg/toolbar/draw_custom_floor.svg'}
|
|
72
|
+
title={'Draw Custom Floor'}
|
|
73
|
+
onClick={() => {
|
|
74
|
+
action(-1);
|
|
75
|
+
}}
|
|
76
|
+
></Floor>
|
|
77
|
+
<Floor
|
|
78
|
+
url={'/assets/img/svg/toolbar/predefined_room_layout.svg'}
|
|
79
|
+
title={'Predefined Room Layout'}
|
|
80
|
+
onClick={() => {
|
|
81
|
+
action(-2);
|
|
82
|
+
}}
|
|
83
|
+
></Floor>
|
|
84
|
+
</ToolbarPanel>
|
|
85
|
+
<ToolbarPanel
|
|
86
|
+
opened
|
|
87
|
+
onClose={() => {}}
|
|
88
|
+
onOpen={() => {}}
|
|
89
|
+
isUrl={false}
|
|
90
|
+
name={'Room Elements'}
|
|
91
|
+
url={null}
|
|
92
|
+
>
|
|
93
|
+
{result}
|
|
94
|
+
</ToolbarPanel>
|
|
95
|
+
{process.env.MODE === 'staging' && Object.keys(testJsonData).length && (
|
|
96
|
+
<ToolbarPanel
|
|
97
|
+
opened
|
|
98
|
+
onClose={() => {}}
|
|
99
|
+
onOpen={() => {}}
|
|
100
|
+
isUrl={false}
|
|
101
|
+
name={'Test JSONs'}
|
|
102
|
+
url={null}
|
|
103
|
+
>
|
|
104
|
+
{testData}
|
|
105
|
+
</ToolbarPanel>
|
|
106
|
+
)}
|
|
107
|
+
</S.CategoryContentWrapper>
|
|
108
|
+
);
|
|
109
|
+
};
|