kitchen-simulator 11.28.2 → 11.29.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.
- package/es/actions/items-actions.js +1 -12
- package/es/assets/img/svg/3d_item_move.svg +105 -9
- package/es/assets/img/svg/3d_item_rotation.svg +75 -3
- package/es/assets/img/svg/accessories.svg +4 -4
- package/es/assets/img/svg/bottombar/elevation-back.svg +6 -6
- package/es/assets/img/svg/bottombar/elevation-front.svg +6 -6
- package/es/assets/img/svg/bottombar/elevation-left.svg +6 -6
- package/es/assets/img/svg/bottombar/elevation-right.svg +7 -7
- package/es/assets/img/svg/bottombar/elevation.svg +13 -13
- package/es/assets/img/svg/delete.svg +2 -6
- package/es/assets/img/svg/detail.svg +77 -77
- package/es/assets/img/svg/duplicate.svg +6 -6
- package/es/assets/img/svg/filtersActive.svg +19 -19
- package/es/assets/img/svg/invert.svg +127 -12
- package/es/assets/img/svg/menubar/login.svg +84 -84
- package/es/assets/img/svg/menubar/my_projects.svg +85 -85
- package/es/assets/img/svg/menubar/new_project.svg +110 -110
- package/es/assets/img/svg/menubar/save_project.svg +84 -84
- package/es/assets/img/svg/options.svg +3 -3
- package/es/assets/img/svg/positioning.svg +3 -3
- package/es/assets/img/svg/toggleFilters.svg +19 -19
- package/es/assets/img/svg/toolbar/shopping-cart.svg +13 -13
- package/es/assets/img/svg/wizardstep/detail_view.svg +87 -87
- package/es/assets/img/svg/wizardstep/tile_view.svg +95 -95
- package/es/catalog/utils/exporter.js +0 -4
- package/es/catalog/utils/item-loader.js +8 -18
- package/es/class/item.js +12 -39
- package/es/components/viewer2d/item.js +125 -139
- package/es/components/viewer2d/viewer2d.js +2 -5
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +556 -556
- package/es/components/viewer3d/scene-creator.js +0 -18
- package/es/components/viewer3d/viewer3d.js +49 -137
- package/es/constants.js +0 -4
- package/es/events/external/handleExternalEvent.js +33 -36
- package/es/events/external/handlers.elementOps.js +0 -8
- package/es/mappings/external-events/mapExternalEventPayload.js +4 -4
- package/es/mappings/external-events/mappers/addItemMapper.js +9 -9
- package/es/mappings/external-events/mappers/ccdfMapper.js +1 -1
- package/es/models.js +0 -4
- package/es/reducers/items-reducer.js +1 -8
- package/es/shared/domain/asset/sanitize-asset-url.js +5 -5
- package/es/utils/skinPanelEngine.js +14 -14
- package/lib/actions/items-actions.js +0 -12
- package/lib/assets/img/svg/3d_item_move.svg +105 -9
- package/lib/assets/img/svg/3d_item_rotation.svg +75 -3
- package/lib/assets/img/svg/accessories.svg +4 -4
- package/lib/assets/img/svg/bottombar/elevation-back.svg +6 -6
- package/lib/assets/img/svg/bottombar/elevation-front.svg +6 -6
- package/lib/assets/img/svg/bottombar/elevation-left.svg +6 -6
- package/lib/assets/img/svg/bottombar/elevation-right.svg +7 -7
- package/lib/assets/img/svg/bottombar/elevation.svg +13 -13
- package/lib/assets/img/svg/delete.svg +2 -6
- package/lib/assets/img/svg/detail.svg +77 -77
- package/lib/assets/img/svg/duplicate.svg +6 -6
- package/lib/assets/img/svg/filtersActive.svg +19 -19
- package/lib/assets/img/svg/invert.svg +127 -12
- package/lib/assets/img/svg/menubar/login.svg +84 -84
- package/lib/assets/img/svg/menubar/my_projects.svg +85 -85
- package/lib/assets/img/svg/menubar/new_project.svg +110 -110
- package/lib/assets/img/svg/menubar/save_project.svg +84 -84
- package/lib/assets/img/svg/options.svg +3 -3
- package/lib/assets/img/svg/positioning.svg +3 -3
- package/lib/assets/img/svg/toggleFilters.svg +19 -19
- package/lib/assets/img/svg/toolbar/shopping-cart.svg +13 -13
- package/lib/assets/img/svg/wizardstep/detail_view.svg +87 -87
- package/lib/assets/img/svg/wizardstep/tile_view.svg +95 -95
- package/lib/catalog/utils/exporter.js +0 -4
- package/lib/catalog/utils/item-loader.js +8 -18
- package/lib/class/item.js +11 -38
- package/lib/components/viewer2d/item.js +124 -138
- package/lib/components/viewer2d/viewer2d.js +2 -5
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +556 -556
- package/lib/components/viewer3d/scene-creator.js +0 -18
- package/lib/components/viewer3d/viewer3d.js +49 -137
- package/lib/constants.js +4 -8
- package/lib/events/external/handleExternalEvent.js +31 -34
- package/lib/events/external/handlers.elementOps.js +0 -9
- package/lib/mappings/external-events/mapExternalEventPayload.js +4 -4
- package/lib/mappings/external-events/mappers/addItemMapper.js +9 -9
- package/lib/mappings/external-events/mappers/ccdfMapper.js +1 -1
- package/lib/models.js +0 -4
- package/lib/reducers/items-reducer.js +0 -7
- package/lib/shared/domain/asset/sanitize-asset-url.js +5 -5
- package/lib/utils/skinPanelEngine.js +14 -14
- package/package.json +1 -1
- package/es/shared/domain/cabinet-mirror.js +0 -7
- package/lib/shared/domain/cabinet-mirror.js +0 -13
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
6
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
8
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
11
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
12
|
-
width="17"
|
|
13
|
-
height="14"
|
|
14
|
-
id="svg91951"
|
|
15
|
-
version="1.1"
|
|
16
|
-
inkscape:version="0.48.4 r9939"
|
|
17
|
-
sodipodi:docname="New document 3">
|
|
18
|
-
<defs
|
|
19
|
-
id="defs91953" />
|
|
20
|
-
<sodipodi:namedview
|
|
21
|
-
id="base"
|
|
22
|
-
pagecolor="#ffffff"
|
|
23
|
-
bordercolor="#666666"
|
|
24
|
-
borderopacity="1.0"
|
|
25
|
-
inkscape:pageopacity="0.0"
|
|
26
|
-
inkscape:pageshadow="2"
|
|
27
|
-
inkscape:zoom="22.197802"
|
|
28
|
-
inkscape:cx="8"
|
|
29
|
-
inkscape:cy="8"
|
|
30
|
-
inkscape:current-layer="layer1"
|
|
31
|
-
showgrid="true"
|
|
32
|
-
inkscape:grid-bbox="true"
|
|
33
|
-
inkscape:document-units="px"
|
|
34
|
-
inkscape:window-width="1920"
|
|
35
|
-
inkscape:window-height="1017"
|
|
36
|
-
inkscape:window-x="-8"
|
|
37
|
-
inkscape:window-y="-8"
|
|
38
|
-
inkscape:window-maximized="1" />
|
|
39
|
-
<metadata
|
|
40
|
-
id="metadata91956">
|
|
41
|
-
<rdf:RDF>
|
|
42
|
-
<cc:Work
|
|
43
|
-
rdf:about="">
|
|
44
|
-
<dc:format>image/svg+xml</dc:format>
|
|
45
|
-
<dc:type
|
|
46
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
47
|
-
<dc:title></dc:title>
|
|
48
|
-
</cc:Work>
|
|
49
|
-
</rdf:RDF>
|
|
50
|
-
</metadata>
|
|
51
|
-
<g
|
|
52
|
-
id="layer1"
|
|
53
|
-
inkscape:label="Layer 1"
|
|
54
|
-
inkscape:groupmode="layer"
|
|
55
|
-
transform="translate(0,-2)">
|
|
56
|
-
<path
|
|
57
|
-
style="fill:none;stroke:#4c12a1;stroke-width:1.9992758;stroke-linecap:round;stroke-linejoin:round"
|
|
58
|
-
inkscape:connector-curvature="0"
|
|
59
|
-
d="M 4.999831,2.9996402 H 16.000362"
|
|
60
|
-
id="path28763" />
|
|
61
|
-
<path
|
|
62
|
-
style="fill:none;stroke:#4c12a1;stroke-width:1.9992758;stroke-linecap:round;stroke-linejoin:round"
|
|
63
|
-
inkscape:connector-curvature="0"
|
|
64
|
-
d="M 4.999831,8.9950062 H 16.000362"
|
|
65
|
-
id="path28765" />
|
|
66
|
-
<path
|
|
67
|
-
style="fill:none;stroke:#4c12a1;stroke-width:1.9992758;stroke-linecap:round;stroke-linejoin:round"
|
|
68
|
-
inkscape:connector-curvature="0"
|
|
69
|
-
d="M 4.999831,14.990372 H 16.000362"
|
|
70
|
-
id="path28767" />
|
|
71
|
-
<path
|
|
72
|
-
style="fill:none;stroke:#4c12a1;stroke-width:1.9992758;stroke-linecap:round;stroke-linejoin:round"
|
|
73
|
-
inkscape:connector-curvature="0"
|
|
74
|
-
d="m 0.9996379,2.9996402 v 0.00999"
|
|
75
|
-
id="path28769" />
|
|
76
|
-
<path
|
|
77
|
-
style="fill:none;stroke:#4c12a1;stroke-width:1.9992758;stroke-linecap:round;stroke-linejoin:round"
|
|
78
|
-
inkscape:connector-curvature="0"
|
|
79
|
-
d="m 0.9996379,8.9950062 v 0.00999"
|
|
80
|
-
id="path28771" />
|
|
81
|
-
<path
|
|
82
|
-
style="fill:none;stroke:#4c12a1;stroke-width:1.9992758;stroke-linecap:round;stroke-linejoin:round"
|
|
83
|
-
inkscape:connector-curvature="0"
|
|
84
|
-
d="m 0.9996379,14.990372 v 0.01"
|
|
85
|
-
id="path28773" />
|
|
86
|
-
</g>
|
|
87
|
-
</svg>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
6
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
|
7
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
8
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
11
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
12
|
+
width="17"
|
|
13
|
+
height="14"
|
|
14
|
+
id="svg91951"
|
|
15
|
+
version="1.1"
|
|
16
|
+
inkscape:version="0.48.4 r9939"
|
|
17
|
+
sodipodi:docname="New document 3">
|
|
18
|
+
<defs
|
|
19
|
+
id="defs91953" />
|
|
20
|
+
<sodipodi:namedview
|
|
21
|
+
id="base"
|
|
22
|
+
pagecolor="#ffffff"
|
|
23
|
+
bordercolor="#666666"
|
|
24
|
+
borderopacity="1.0"
|
|
25
|
+
inkscape:pageopacity="0.0"
|
|
26
|
+
inkscape:pageshadow="2"
|
|
27
|
+
inkscape:zoom="22.197802"
|
|
28
|
+
inkscape:cx="8"
|
|
29
|
+
inkscape:cy="8"
|
|
30
|
+
inkscape:current-layer="layer1"
|
|
31
|
+
showgrid="true"
|
|
32
|
+
inkscape:grid-bbox="true"
|
|
33
|
+
inkscape:document-units="px"
|
|
34
|
+
inkscape:window-width="1920"
|
|
35
|
+
inkscape:window-height="1017"
|
|
36
|
+
inkscape:window-x="-8"
|
|
37
|
+
inkscape:window-y="-8"
|
|
38
|
+
inkscape:window-maximized="1" />
|
|
39
|
+
<metadata
|
|
40
|
+
id="metadata91956">
|
|
41
|
+
<rdf:RDF>
|
|
42
|
+
<cc:Work
|
|
43
|
+
rdf:about="">
|
|
44
|
+
<dc:format>image/svg+xml</dc:format>
|
|
45
|
+
<dc:type
|
|
46
|
+
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
47
|
+
<dc:title></dc:title>
|
|
48
|
+
</cc:Work>
|
|
49
|
+
</rdf:RDF>
|
|
50
|
+
</metadata>
|
|
51
|
+
<g
|
|
52
|
+
id="layer1"
|
|
53
|
+
inkscape:label="Layer 1"
|
|
54
|
+
inkscape:groupmode="layer"
|
|
55
|
+
transform="translate(0,-2)">
|
|
56
|
+
<path
|
|
57
|
+
style="fill:none;stroke:#4c12a1;stroke-width:1.9992758;stroke-linecap:round;stroke-linejoin:round"
|
|
58
|
+
inkscape:connector-curvature="0"
|
|
59
|
+
d="M 4.999831,2.9996402 H 16.000362"
|
|
60
|
+
id="path28763" />
|
|
61
|
+
<path
|
|
62
|
+
style="fill:none;stroke:#4c12a1;stroke-width:1.9992758;stroke-linecap:round;stroke-linejoin:round"
|
|
63
|
+
inkscape:connector-curvature="0"
|
|
64
|
+
d="M 4.999831,8.9950062 H 16.000362"
|
|
65
|
+
id="path28765" />
|
|
66
|
+
<path
|
|
67
|
+
style="fill:none;stroke:#4c12a1;stroke-width:1.9992758;stroke-linecap:round;stroke-linejoin:round"
|
|
68
|
+
inkscape:connector-curvature="0"
|
|
69
|
+
d="M 4.999831,14.990372 H 16.000362"
|
|
70
|
+
id="path28767" />
|
|
71
|
+
<path
|
|
72
|
+
style="fill:none;stroke:#4c12a1;stroke-width:1.9992758;stroke-linecap:round;stroke-linejoin:round"
|
|
73
|
+
inkscape:connector-curvature="0"
|
|
74
|
+
d="m 0.9996379,2.9996402 v 0.00999"
|
|
75
|
+
id="path28769" />
|
|
76
|
+
<path
|
|
77
|
+
style="fill:none;stroke:#4c12a1;stroke-width:1.9992758;stroke-linecap:round;stroke-linejoin:round"
|
|
78
|
+
inkscape:connector-curvature="0"
|
|
79
|
+
d="m 0.9996379,8.9950062 v 0.00999"
|
|
80
|
+
id="path28771" />
|
|
81
|
+
<path
|
|
82
|
+
style="fill:none;stroke:#4c12a1;stroke-width:1.9992758;stroke-linecap:round;stroke-linejoin:round"
|
|
83
|
+
inkscape:connector-curvature="0"
|
|
84
|
+
d="m 0.9996379,14.990372 v 0.01"
|
|
85
|
+
id="path28773" />
|
|
86
|
+
</g>
|
|
87
|
+
</svg>
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
-
|
|
4
|
-
<svg
|
|
5
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
6
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
8
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
11
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
12
|
-
width="18"
|
|
13
|
-
height="18"
|
|
14
|
-
id="svg91993"
|
|
15
|
-
version="1.1"
|
|
16
|
-
inkscape:version="0.48.4 r9939"
|
|
17
|
-
sodipodi:docname="New document 5">
|
|
18
|
-
<defs
|
|
19
|
-
id="defs91995">
|
|
20
|
-
<clipPath
|
|
21
|
-
id="clip69_0_1">
|
|
22
|
-
<rect
|
|
23
|
-
style="fill:#ffffff"
|
|
24
|
-
y="0"
|
|
25
|
-
x="0"
|
|
26
|
-
id="rect47253"
|
|
27
|
-
transform="translate(352,835.725)"
|
|
28
|
-
height="24"
|
|
29
|
-
width="24" />
|
|
30
|
-
</clipPath>
|
|
31
|
-
</defs>
|
|
32
|
-
<sodipodi:namedview
|
|
33
|
-
id="base"
|
|
34
|
-
pagecolor="#ffffff"
|
|
35
|
-
bordercolor="#666666"
|
|
36
|
-
borderopacity="1.0"
|
|
37
|
-
inkscape:pageopacity="0.0"
|
|
38
|
-
inkscape:pageshadow="2"
|
|
39
|
-
inkscape:zoom="16"
|
|
40
|
-
inkscape:cx="15.73047"
|
|
41
|
-
inkscape:cy="11.433004"
|
|
42
|
-
inkscape:current-layer="layer1"
|
|
43
|
-
showgrid="true"
|
|
44
|
-
inkscape:grid-bbox="true"
|
|
45
|
-
inkscape:document-units="px"
|
|
46
|
-
inkscape:window-width="1920"
|
|
47
|
-
inkscape:window-height="1017"
|
|
48
|
-
inkscape:window-x="-8"
|
|
49
|
-
inkscape:window-y="-8"
|
|
50
|
-
inkscape:window-maximized="1" />
|
|
51
|
-
<metadata
|
|
52
|
-
id="metadata91998">
|
|
53
|
-
<rdf:RDF>
|
|
54
|
-
<cc:Work
|
|
55
|
-
rdf:about="">
|
|
56
|
-
<dc:format>image/svg+xml</dc:format>
|
|
57
|
-
<dc:type
|
|
58
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
59
|
-
<dc:title></dc:title>
|
|
60
|
-
</cc:Work>
|
|
61
|
-
</rdf:RDF>
|
|
62
|
-
</metadata>
|
|
63
|
-
<g
|
|
64
|
-
id="layer1"
|
|
65
|
-
inkscape:label="Layer 1"
|
|
66
|
-
inkscape:groupmode="layer"
|
|
67
|
-
transform="translate(0,-14)">
|
|
68
|
-
<g
|
|
69
|
-
transform="translate(-355,-824.725)"
|
|
70
|
-
style="fill:none"
|
|
71
|
-
id="g3633"
|
|
72
|
-
clip-path="url(#clip69_0_1)">
|
|
73
|
-
<path
|
|
74
|
-
id="path3635"
|
|
75
|
-
d="m 356,840.725 c 0,-0.265 0.105,-0.519 0.293,-0.707 0.187,-0.188 0.442,-0.293 0.707,-0.293 h 4 c 0.265,0 0.52,0.105 0.707,0.293 0.188,0.188 0.293,0.442 0.293,0.707 v 4 c 0,0.265 -0.105,0.52 -0.293,0.707 -0.187,0.188 -0.442,0.293 -0.707,0.293 h -4 c -0.265,0 -0.52,-0.105 -0.707,-0.293 C 356.105,845.245 356,844.99 356,844.725 v -4 z"
|
|
76
|
-
inkscape:connector-curvature="0"
|
|
77
|
-
style="stroke:#4c12a1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round" />
|
|
78
|
-
<path
|
|
79
|
-
id="path3637"
|
|
80
|
-
d="m 366,840.725 c 0,-0.265 0.105,-0.519 0.293,-0.707 0.187,-0.188 0.442,-0.293 0.707,-0.293 h 4 c 0.265,0 0.52,0.105 0.707,0.293 0.188,0.188 0.293,0.442 0.293,0.707 v 4 c 0,0.265 -0.105,0.52 -0.293,0.707 -0.187,0.188 -0.442,0.293 -0.707,0.293 h -4 c -0.265,0 -0.52,-0.105 -0.707,-0.293 C 366.105,845.245 366,844.99 366,844.725 v -4 z"
|
|
81
|
-
inkscape:connector-curvature="0"
|
|
82
|
-
style="stroke:#4c12a1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round" />
|
|
83
|
-
<path
|
|
84
|
-
id="path3639"
|
|
85
|
-
d="m 356,850.725 c 0,-0.265 0.105,-0.519 0.293,-0.707 0.187,-0.188 0.442,-0.293 0.707,-0.293 h 4 c 0.265,0 0.52,0.105 0.707,0.293 0.188,0.188 0.293,0.442 0.293,0.707 v 4 c 0,0.265 -0.105,0.52 -0.293,0.707 -0.187,0.188 -0.442,0.293 -0.707,0.293 h -4 c -0.265,0 -0.52,-0.105 -0.707,-0.293 C 356.105,855.245 356,854.99 356,854.725 v -4 z"
|
|
86
|
-
inkscape:connector-curvature="0"
|
|
87
|
-
style="stroke:#4c12a1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round" />
|
|
88
|
-
<path
|
|
89
|
-
id="path3641"
|
|
90
|
-
d="m 366,850.725 c 0,-0.265 0.105,-0.519 0.293,-0.707 0.187,-0.188 0.442,-0.293 0.707,-0.293 h 4 c 0.265,0 0.52,0.105 0.707,0.293 0.188,0.188 0.293,0.442 0.293,0.707 v 4 c 0,0.265 -0.105,0.52 -0.293,0.707 -0.187,0.188 -0.442,0.293 -0.707,0.293 h -4 c -0.265,0 -0.52,-0.105 -0.707,-0.293 C 366.105,855.245 366,854.99 366,854.725 v -4 z"
|
|
91
|
-
inkscape:connector-curvature="0"
|
|
92
|
-
style="stroke:#4c12a1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round" />
|
|
93
|
-
</g>
|
|
94
|
-
</g>
|
|
95
|
-
</svg>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
6
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
|
7
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
8
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
11
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
12
|
+
width="18"
|
|
13
|
+
height="18"
|
|
14
|
+
id="svg91993"
|
|
15
|
+
version="1.1"
|
|
16
|
+
inkscape:version="0.48.4 r9939"
|
|
17
|
+
sodipodi:docname="New document 5">
|
|
18
|
+
<defs
|
|
19
|
+
id="defs91995">
|
|
20
|
+
<clipPath
|
|
21
|
+
id="clip69_0_1">
|
|
22
|
+
<rect
|
|
23
|
+
style="fill:#ffffff"
|
|
24
|
+
y="0"
|
|
25
|
+
x="0"
|
|
26
|
+
id="rect47253"
|
|
27
|
+
transform="translate(352,835.725)"
|
|
28
|
+
height="24"
|
|
29
|
+
width="24" />
|
|
30
|
+
</clipPath>
|
|
31
|
+
</defs>
|
|
32
|
+
<sodipodi:namedview
|
|
33
|
+
id="base"
|
|
34
|
+
pagecolor="#ffffff"
|
|
35
|
+
bordercolor="#666666"
|
|
36
|
+
borderopacity="1.0"
|
|
37
|
+
inkscape:pageopacity="0.0"
|
|
38
|
+
inkscape:pageshadow="2"
|
|
39
|
+
inkscape:zoom="16"
|
|
40
|
+
inkscape:cx="15.73047"
|
|
41
|
+
inkscape:cy="11.433004"
|
|
42
|
+
inkscape:current-layer="layer1"
|
|
43
|
+
showgrid="true"
|
|
44
|
+
inkscape:grid-bbox="true"
|
|
45
|
+
inkscape:document-units="px"
|
|
46
|
+
inkscape:window-width="1920"
|
|
47
|
+
inkscape:window-height="1017"
|
|
48
|
+
inkscape:window-x="-8"
|
|
49
|
+
inkscape:window-y="-8"
|
|
50
|
+
inkscape:window-maximized="1" />
|
|
51
|
+
<metadata
|
|
52
|
+
id="metadata91998">
|
|
53
|
+
<rdf:RDF>
|
|
54
|
+
<cc:Work
|
|
55
|
+
rdf:about="">
|
|
56
|
+
<dc:format>image/svg+xml</dc:format>
|
|
57
|
+
<dc:type
|
|
58
|
+
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
59
|
+
<dc:title></dc:title>
|
|
60
|
+
</cc:Work>
|
|
61
|
+
</rdf:RDF>
|
|
62
|
+
</metadata>
|
|
63
|
+
<g
|
|
64
|
+
id="layer1"
|
|
65
|
+
inkscape:label="Layer 1"
|
|
66
|
+
inkscape:groupmode="layer"
|
|
67
|
+
transform="translate(0,-14)">
|
|
68
|
+
<g
|
|
69
|
+
transform="translate(-355,-824.725)"
|
|
70
|
+
style="fill:none"
|
|
71
|
+
id="g3633"
|
|
72
|
+
clip-path="url(#clip69_0_1)">
|
|
73
|
+
<path
|
|
74
|
+
id="path3635"
|
|
75
|
+
d="m 356,840.725 c 0,-0.265 0.105,-0.519 0.293,-0.707 0.187,-0.188 0.442,-0.293 0.707,-0.293 h 4 c 0.265,0 0.52,0.105 0.707,0.293 0.188,0.188 0.293,0.442 0.293,0.707 v 4 c 0,0.265 -0.105,0.52 -0.293,0.707 -0.187,0.188 -0.442,0.293 -0.707,0.293 h -4 c -0.265,0 -0.52,-0.105 -0.707,-0.293 C 356.105,845.245 356,844.99 356,844.725 v -4 z"
|
|
76
|
+
inkscape:connector-curvature="0"
|
|
77
|
+
style="stroke:#4c12a1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round" />
|
|
78
|
+
<path
|
|
79
|
+
id="path3637"
|
|
80
|
+
d="m 366,840.725 c 0,-0.265 0.105,-0.519 0.293,-0.707 0.187,-0.188 0.442,-0.293 0.707,-0.293 h 4 c 0.265,0 0.52,0.105 0.707,0.293 0.188,0.188 0.293,0.442 0.293,0.707 v 4 c 0,0.265 -0.105,0.52 -0.293,0.707 -0.187,0.188 -0.442,0.293 -0.707,0.293 h -4 c -0.265,0 -0.52,-0.105 -0.707,-0.293 C 366.105,845.245 366,844.99 366,844.725 v -4 z"
|
|
81
|
+
inkscape:connector-curvature="0"
|
|
82
|
+
style="stroke:#4c12a1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round" />
|
|
83
|
+
<path
|
|
84
|
+
id="path3639"
|
|
85
|
+
d="m 356,850.725 c 0,-0.265 0.105,-0.519 0.293,-0.707 0.187,-0.188 0.442,-0.293 0.707,-0.293 h 4 c 0.265,0 0.52,0.105 0.707,0.293 0.188,0.188 0.293,0.442 0.293,0.707 v 4 c 0,0.265 -0.105,0.52 -0.293,0.707 -0.187,0.188 -0.442,0.293 -0.707,0.293 h -4 c -0.265,0 -0.52,-0.105 -0.707,-0.293 C 356.105,855.245 356,854.99 356,854.725 v -4 z"
|
|
86
|
+
inkscape:connector-curvature="0"
|
|
87
|
+
style="stroke:#4c12a1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round" />
|
|
88
|
+
<path
|
|
89
|
+
id="path3641"
|
|
90
|
+
d="m 366,850.725 c 0,-0.265 0.105,-0.519 0.293,-0.707 0.187,-0.188 0.442,-0.293 0.707,-0.293 h 4 c 0.265,0 0.52,0.105 0.707,0.293 0.188,0.188 0.293,0.442 0.293,0.707 v 4 c 0,0.265 -0.105,0.52 -0.293,0.707 -0.187,0.188 -0.442,0.293 -0.707,0.293 h -4 c -0.265,0 -0.52,-0.105 -0.707,-0.293 C 366.105,855.245 366,854.99 366,854.725 v -4 z"
|
|
91
|
+
inkscape:connector-curvature="0"
|
|
92
|
+
style="stroke:#4c12a1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round" />
|
|
93
|
+
</g>
|
|
94
|
+
</g>
|
|
95
|
+
</svg>
|
|
@@ -24,8 +24,6 @@ export default function (_ref) {
|
|
|
24
24
|
obj_property = _ref.obj_property,
|
|
25
25
|
outlineSVGData = _ref.outlineSVGData,
|
|
26
26
|
cds = _ref.cds,
|
|
27
|
-
can_be_mirrored = _ref.can_be_mirrored,
|
|
28
|
-
mirrored = _ref.mirrored,
|
|
29
27
|
_ref$width_unit = _ref.width_unit,
|
|
30
28
|
width_unit = _ref$width_unit === void 0 ? 'in' : _ref$width_unit,
|
|
31
29
|
_ref$height_unit = _ref.height_unit,
|
|
@@ -152,8 +150,6 @@ export default function (_ref) {
|
|
|
152
150
|
img: base,
|
|
153
151
|
obj: obj_property,
|
|
154
152
|
cds: cds,
|
|
155
|
-
can_be_mirrored: can_be_mirrored,
|
|
156
|
-
mirrored: mirrored,
|
|
157
153
|
structure_json: structure_json,
|
|
158
154
|
ccdf_list: ccdf_list,
|
|
159
155
|
width_unit: widthUnit,
|
|
@@ -62,7 +62,6 @@ export function render2DItem(element, layer, scene, sizeinfo, layoutpos, is_corn
|
|
|
62
62
|
var x = element.x,
|
|
63
63
|
y = element.y,
|
|
64
64
|
rotation = element.rotation;
|
|
65
|
-
var isMirrored = element.mirrored === true;
|
|
66
65
|
var el_DSN = 'el_DSN',
|
|
67
66
|
doorStylesKeys = [];
|
|
68
67
|
var _element = element.toJS();
|
|
@@ -183,8 +182,6 @@ export function render2DItem(element, layer, scene, sizeinfo, layoutpos, is_corn
|
|
|
183
182
|
}
|
|
184
183
|
var padding_width = padding * newWidth / svg_width;
|
|
185
184
|
var padding_depth = padding * newDepth / svg_depth;
|
|
186
|
-
var paddedWidth = newWidth + 2 * padding_width;
|
|
187
|
-
var paddedDepth = newDepth + 2 * padding_depth;
|
|
188
185
|
|
|
189
186
|
// offset of the warning icons(by default, show the icons with width direction and if depth is bigger than width, show with depth direction.)
|
|
190
187
|
var transX = svg_width < svg_depth ? 0 : 10;
|
|
@@ -272,19 +269,17 @@ export function render2DItem(element, layer, scene, sizeinfo, layoutpos, is_corn
|
|
|
272
269
|
transform: "rotate(".concat(rotation, ")")
|
|
273
270
|
}, /*#__PURE__*/React.createElement("g", {
|
|
274
271
|
transform: "translate(".concat(-newWidth / 2 - padding_width, ",").concat(-newDepth / 2 - padding_depth, ")")
|
|
275
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
276
|
-
transform: isMirrored ? "translate(".concat(paddedWidth, ", 0) scale(-1, 1)") : undefined
|
|
277
272
|
}, /*#__PURE__*/React.createElement("image", {
|
|
278
273
|
preserveAspectRatio: "none",
|
|
279
274
|
style: {
|
|
280
275
|
pointerEvents: 'none'
|
|
281
276
|
},
|
|
282
277
|
href: svg_url,
|
|
283
|
-
width: "".concat(
|
|
284
|
-
height: "".concat(
|
|
278
|
+
width: "".concat(newWidth + 2 * padding_width),
|
|
279
|
+
height: "".concat(newDepth + 2 * padding_depth),
|
|
285
280
|
transform: "scale(1, -1)",
|
|
286
281
|
x: "0",
|
|
287
|
-
y: "".concat(-
|
|
282
|
+
y: "".concat(-newDepth - 2 * padding_depth)
|
|
288
283
|
}), /*#__PURE__*/React.createElement("rect", {
|
|
289
284
|
x: "".concat(padding_width),
|
|
290
285
|
y: "".concat(padding_depth),
|
|
@@ -296,7 +291,7 @@ export function render2DItem(element, layer, scene, sizeinfo, layoutpos, is_corn
|
|
|
296
291
|
opacity: 0.7,
|
|
297
292
|
postion: 'relative'
|
|
298
293
|
}
|
|
299
|
-
})
|
|
294
|
+
}), /*#__PURE__*/React.createElement("g", {
|
|
300
295
|
transform: "translate(".concat(padding_width, ",").concat(padding_depth, ")")
|
|
301
296
|
}, txtContent)), element.category === 'cabinet' && /*#__PURE__*/React.createElement("g", {
|
|
302
297
|
visibility: isWarningCabinet(element) ? 'visible' : 'hidden'
|
|
@@ -319,8 +314,6 @@ export function render2DItem(element, layer, scene, sizeinfo, layoutpos, is_corn
|
|
|
319
314
|
transform: "rotate(".concat(rotation, ")")
|
|
320
315
|
}, /*#__PURE__*/React.createElement("g", {
|
|
321
316
|
transform: "translate(".concat(-newWidth / 2, ",").concat(-newDepth / 2, ")")
|
|
322
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
323
|
-
transform: isMirrored ? "translate(".concat(newWidth, ", 0) scale(-1, 1)") : undefined
|
|
324
317
|
}, newDepth > 15 ? [/*#__PURE__*/React.createElement("rect", {
|
|
325
318
|
key: "base",
|
|
326
319
|
x: "0",
|
|
@@ -339,7 +332,7 @@ export function render2DItem(element, layer, scene, sizeinfo, layoutpos, is_corn
|
|
|
339
332
|
width: newWidth,
|
|
340
333
|
height: newDepth,
|
|
341
334
|
style: style
|
|
342
|
-
})
|
|
335
|
+
}), txtContent)));
|
|
343
336
|
}
|
|
344
337
|
return rendered;
|
|
345
338
|
}
|
|
@@ -395,7 +388,6 @@ export function render3DItem(element, layer, scene, sizeinfo, structure_json, is
|
|
|
395
388
|
if (element.doorStyle.constructor !== Map) {
|
|
396
389
|
element = element.set('doorStyle', fromJS(element.doorStyle));
|
|
397
390
|
}
|
|
398
|
-
var isMirrored = element.mirrored === true;
|
|
399
391
|
if (element.doorStyle.toJS().handle_gltf !== '') {
|
|
400
392
|
// Check element has doorHandle
|
|
401
393
|
for (var i = 1; i < 10; i++) {
|
|
@@ -486,10 +478,9 @@ export function render3DItem(element, layer, scene, sizeinfo, structure_json, is
|
|
|
486
478
|
newAltitude = convert(newAltitude).from(newUnit).to(scene.unit);
|
|
487
479
|
var _element = element.toJS();
|
|
488
480
|
if (!_element.doorStyle.doorStyles.is_euro_cds) {
|
|
489
|
-
|
|
490
|
-
object1.scale.set(isMirrored ? -scaleX : scaleX, 100 * newHeight / sizeinfo.height, 100 * newDepth / sizeinfo.depth);
|
|
481
|
+
object1.scale.set(100 * newWidth / sizeinfo.width, 100 * newHeight / sizeinfo.height, 100 * newDepth / sizeinfo.depth);
|
|
491
482
|
} else {
|
|
492
|
-
object1.scale.set(
|
|
483
|
+
object1.scale.set(100, 100, 100);
|
|
493
484
|
}
|
|
494
485
|
// Normalize the origin of the object
|
|
495
486
|
var boundingBox = GeomUtils.baseBox3FromObject(object1);
|
|
@@ -560,8 +551,7 @@ export function render3DItem(element, layer, scene, sizeinfo, structure_json, is
|
|
|
560
551
|
// save object transform info///
|
|
561
552
|
var scalevec = new Three.Vector3(object1.scale.x, object1.scale.y, object1.scale.z);
|
|
562
553
|
var posVec = new Three.Vector3(object1.position.x, object1.position.y, object1.position.z);
|
|
563
|
-
|
|
564
|
-
object.scale.set(isMirrored ? -selectedScaleX : selectedScaleX, 1 * newHeight / sizeinfo.height, 1 * newDepth / sizeinfo.depth);
|
|
554
|
+
object.scale.set(1 * newWidth / sizeinfo.width, 1 * newHeight / sizeinfo.height, 1 * newDepth / sizeinfo.depth);
|
|
565
555
|
object1.position.set(0, 0, 0);
|
|
566
556
|
object1.rotation.set(0, 0, 0);
|
|
567
557
|
|
package/es/class/item.js
CHANGED
|
@@ -8,14 +8,13 @@ import { convert } from "../utils/convert-units-lite";
|
|
|
8
8
|
import { Group, Hole, Layer } from "./export";
|
|
9
9
|
import { GeometryUtils, IDBroker, MoldingUtils, NameGenerator } from "../utils/export";
|
|
10
10
|
import { fromJS, Map } from 'immutable';
|
|
11
|
-
import { DOORSTYLE_SCOPE_ALL, DOORSTYLE_SCOPE_MULTIPLE, DOORSTYLE_SCOPE_SINGLE, INSTALLATION_SUFFIX_TYPE, INTERNAL_EVENT_DRAW_ELEMENT,
|
|
11
|
+
import { DOORSTYLE_SCOPE_ALL, DOORSTYLE_SCOPE_MULTIPLE, DOORSTYLE_SCOPE_SINGLE, INSTALLATION_SUFFIX_TYPE, INTERNAL_EVENT_DRAW_ELEMENT, MODE_DRAGGING_ITEM, MODE_DRAGGING_ITEM_3D, MODE_DRAWING_ITEM, MODE_DRAWING_ITEM_3D, MODE_IDLE, MODE_IDLE_3D, MODE_ROTATING_ITEM, MODE_ROTATING_ITEM_3D, MOLDING_LOCATIONS } from "../constants";
|
|
12
12
|
import { debugUtil, updatePayloadOfInternalEvent } from "../utils/helper";
|
|
13
13
|
import { isUndefined } from 'util';
|
|
14
14
|
import { hasMoldingLayout } from "../utils/molding";
|
|
15
15
|
import { getInstallationSuffix, isEmpty } from "../components/viewer2d/utils";
|
|
16
16
|
import { historyPush } from "../utils/history";
|
|
17
17
|
import { toJSIfNeeded } from "../shared/objects/immutable";
|
|
18
|
-
import { canMirrorCabinet } from "../shared/domain/cabinet-mirror";
|
|
19
18
|
import { isWarningCabinet } from "../shared/domain/cabinet-warning";
|
|
20
19
|
var allItemRect;
|
|
21
20
|
var allItemSnap;
|
|
@@ -81,8 +80,6 @@ var Item = /*#__PURE__*/function () {
|
|
|
81
80
|
category: state.catalog.getIn(['elements', type, 'type']),
|
|
82
81
|
layoutpos: state.catalog.getIn(['elements', type, 'info', 'layoutpos']),
|
|
83
82
|
cabinet_category: state.catalog.getIn(['elements', type, 'obj']).toJS().cabinet_category,
|
|
84
|
-
can_be_mirrored: state.catalog.getIn(['elements', type, 'can_be_mirrored']),
|
|
85
|
-
mirrored: state.catalog.getIn(['elements', type, 'mirrored']),
|
|
86
83
|
type: type,
|
|
87
84
|
height: height,
|
|
88
85
|
width: width,
|
|
@@ -111,8 +108,7 @@ var Item = /*#__PURE__*/function () {
|
|
|
111
108
|
if (isDuplication && refItem) {
|
|
112
109
|
var _refItem$ccdf, _refItem$get, _refItem$properties, _refItem$properties$g;
|
|
113
110
|
item = item.merge({
|
|
114
|
-
doorStyle: refItem.doorStyle
|
|
115
|
-
mirrored: refItem.mirrored === true
|
|
111
|
+
doorStyle: refItem.doorStyle
|
|
116
112
|
});
|
|
117
113
|
// When duplicating, preserve the instance-selected CCDF from the source cabinet.
|
|
118
114
|
var refCcdf = (_refItem$ccdf = refItem === null || refItem === void 0 ? void 0 : refItem.ccdf) !== null && _refItem$ccdf !== void 0 ? _refItem$ccdf : refItem === null || refItem === void 0 || (_refItem$get = refItem.get) === null || _refItem$get === void 0 ? void 0 : _refItem$get.call(refItem, 'ccdf');
|
|
@@ -644,32 +640,6 @@ var Item = /*#__PURE__*/function () {
|
|
|
644
640
|
updatedState: state
|
|
645
641
|
};
|
|
646
642
|
}
|
|
647
|
-
}, {
|
|
648
|
-
key: "toggleItemMirror",
|
|
649
|
-
value: function toggleItemMirror(state, layerID, itemID) {
|
|
650
|
-
var mirrored = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
651
|
-
var onInternalEvent = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
652
|
-
var item = state.getIn(['scene', 'layers', layerID, 'items', itemID]);
|
|
653
|
-
if (isUndefined(item) || !canMirrorCabinet(item)) {
|
|
654
|
-
return {
|
|
655
|
-
updatedState: state
|
|
656
|
-
};
|
|
657
|
-
}
|
|
658
|
-
var layer = state.getIn(['scene', 'layers', layerID]);
|
|
659
|
-
var nextMirrored = typeof mirrored === 'boolean' ? mirrored : item.mirrored !== true;
|
|
660
|
-
var mirroredItem = item.set('mirrored', nextMirrored);
|
|
661
|
-
state = state.setIn(['scene', 'layers', layerID, 'items', itemID, 'mirrored'], nextMirrored);
|
|
662
|
-
if (onInternalEvent) {
|
|
663
|
-
var jsElement = updatePayloadOfInternalEvent(mirroredItem, layer);
|
|
664
|
-
onInternalEvent({
|
|
665
|
-
type: INTERNAL_EVENT_MIRROR_ELEMENT,
|
|
666
|
-
value: jsElement
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
return {
|
|
670
|
-
updatedState: state
|
|
671
|
-
};
|
|
672
|
-
}
|
|
673
643
|
}, {
|
|
674
644
|
key: "storeDistArray",
|
|
675
645
|
value: function storeDistArray(state, layerID, itemID, distArray) {
|
|
@@ -1362,13 +1332,16 @@ var Item = /*#__PURE__*/function () {
|
|
|
1362
1332
|
doorStyle: doorStyle
|
|
1363
1333
|
});
|
|
1364
1334
|
var layerID = state.scene.get('selectedLayer');
|
|
1365
|
-
|
|
1366
|
-
temp_layer_molding =
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
state = state.setIn(
|
|
1335
|
+
|
|
1336
|
+
// let temp_layer_molding = state.scene.getIn(['layers', layerID, 'molding']);
|
|
1337
|
+
// temp_layer_molding = temp_layer_molding.filter(md =>
|
|
1338
|
+
// itemCDS?.some(ds => md.itemID === ds.itemID)
|
|
1339
|
+
// );
|
|
1340
|
+
|
|
1341
|
+
// state = state.setIn(
|
|
1342
|
+
// ['scene', 'layers', layerID, 'molding'],
|
|
1343
|
+
// temp_layer_molding
|
|
1344
|
+
// );
|
|
1372
1345
|
|
|
1373
1346
|
// 🔥 Determine which items to update
|
|
1374
1347
|
var items = state.scene.layers.get(layerID).items;
|