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>
|
|
@@ -31,8 +31,6 @@ function _default(_ref) {
|
|
|
31
31
|
obj_property = _ref.obj_property,
|
|
32
32
|
outlineSVGData = _ref.outlineSVGData,
|
|
33
33
|
cds = _ref.cds,
|
|
34
|
-
can_be_mirrored = _ref.can_be_mirrored,
|
|
35
|
-
mirrored = _ref.mirrored,
|
|
36
34
|
_ref$width_unit = _ref.width_unit,
|
|
37
35
|
width_unit = _ref$width_unit === void 0 ? 'in' : _ref$width_unit,
|
|
38
36
|
_ref$height_unit = _ref.height_unit,
|
|
@@ -159,8 +157,6 @@ function _default(_ref) {
|
|
|
159
157
|
img: base,
|
|
160
158
|
obj: obj_property,
|
|
161
159
|
cds: cds,
|
|
162
|
-
can_be_mirrored: can_be_mirrored,
|
|
163
|
-
mirrored: mirrored,
|
|
164
160
|
structure_json: structure_json,
|
|
165
161
|
ccdf_list: ccdf_list,
|
|
166
162
|
width_unit: widthUnit,
|
|
@@ -76,7 +76,6 @@ function render2DItem(element, layer, scene, sizeinfo, layoutpos, is_corner, sha
|
|
|
76
76
|
var x = element.x,
|
|
77
77
|
y = element.y,
|
|
78
78
|
rotation = element.rotation;
|
|
79
|
-
var isMirrored = element.mirrored === true;
|
|
80
79
|
var el_DSN = 'el_DSN',
|
|
81
80
|
doorStylesKeys = [];
|
|
82
81
|
var _element = element.toJS();
|
|
@@ -197,8 +196,6 @@ function render2DItem(element, layer, scene, sizeinfo, layoutpos, is_corner, sha
|
|
|
197
196
|
}
|
|
198
197
|
var padding_width = padding * newWidth / svg_width;
|
|
199
198
|
var padding_depth = padding * newDepth / svg_depth;
|
|
200
|
-
var paddedWidth = newWidth + 2 * padding_width;
|
|
201
|
-
var paddedDepth = newDepth + 2 * padding_depth;
|
|
202
199
|
|
|
203
200
|
// offset of the warning icons(by default, show the icons with width direction and if depth is bigger than width, show with depth direction.)
|
|
204
201
|
var transX = svg_width < svg_depth ? 0 : 10;
|
|
@@ -286,19 +283,17 @@ function render2DItem(element, layer, scene, sizeinfo, layoutpos, is_corner, sha
|
|
|
286
283
|
transform: "rotate(".concat(rotation, ")")
|
|
287
284
|
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
288
285
|
transform: "translate(".concat(-newWidth / 2 - padding_width, ",").concat(-newDepth / 2 - padding_depth, ")")
|
|
289
|
-
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
290
|
-
transform: isMirrored ? "translate(".concat(paddedWidth, ", 0) scale(-1, 1)") : undefined
|
|
291
286
|
}, /*#__PURE__*/_react["default"].createElement("image", {
|
|
292
287
|
preserveAspectRatio: "none",
|
|
293
288
|
style: {
|
|
294
289
|
pointerEvents: 'none'
|
|
295
290
|
},
|
|
296
291
|
href: svg_url,
|
|
297
|
-
width: "".concat(
|
|
298
|
-
height: "".concat(
|
|
292
|
+
width: "".concat(newWidth + 2 * padding_width),
|
|
293
|
+
height: "".concat(newDepth + 2 * padding_depth),
|
|
299
294
|
transform: "scale(1, -1)",
|
|
300
295
|
x: "0",
|
|
301
|
-
y: "".concat(-
|
|
296
|
+
y: "".concat(-newDepth - 2 * padding_depth)
|
|
302
297
|
}), /*#__PURE__*/_react["default"].createElement("rect", {
|
|
303
298
|
x: "".concat(padding_width),
|
|
304
299
|
y: "".concat(padding_depth),
|
|
@@ -310,7 +305,7 @@ function render2DItem(element, layer, scene, sizeinfo, layoutpos, is_corner, sha
|
|
|
310
305
|
opacity: 0.7,
|
|
311
306
|
postion: 'relative'
|
|
312
307
|
}
|
|
313
|
-
})
|
|
308
|
+
}), /*#__PURE__*/_react["default"].createElement("g", {
|
|
314
309
|
transform: "translate(".concat(padding_width, ",").concat(padding_depth, ")")
|
|
315
310
|
}, txtContent)), element.category === 'cabinet' && /*#__PURE__*/_react["default"].createElement("g", {
|
|
316
311
|
visibility: (0, _cabinetWarning.isWarningCabinet)(element) ? 'visible' : 'hidden'
|
|
@@ -333,8 +328,6 @@ function render2DItem(element, layer, scene, sizeinfo, layoutpos, is_corner, sha
|
|
|
333
328
|
transform: "rotate(".concat(rotation, ")")
|
|
334
329
|
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
335
330
|
transform: "translate(".concat(-newWidth / 2, ",").concat(-newDepth / 2, ")")
|
|
336
|
-
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
337
|
-
transform: isMirrored ? "translate(".concat(newWidth, ", 0) scale(-1, 1)") : undefined
|
|
338
331
|
}, newDepth > 15 ? [/*#__PURE__*/_react["default"].createElement("rect", {
|
|
339
332
|
key: "base",
|
|
340
333
|
x: "0",
|
|
@@ -353,7 +346,7 @@ function render2DItem(element, layer, scene, sizeinfo, layoutpos, is_corner, sha
|
|
|
353
346
|
width: newWidth,
|
|
354
347
|
height: newDepth,
|
|
355
348
|
style: style
|
|
356
|
-
})
|
|
349
|
+
}), txtContent)));
|
|
357
350
|
}
|
|
358
351
|
return rendered;
|
|
359
352
|
}
|
|
@@ -409,7 +402,6 @@ function render3DItem(element, layer, scene, sizeinfo, structure_json, is_corner
|
|
|
409
402
|
if (element.doorStyle.constructor !== _immutable.Map) {
|
|
410
403
|
element = element.set('doorStyle', (0, _immutable.fromJS)(element.doorStyle));
|
|
411
404
|
}
|
|
412
|
-
var isMirrored = element.mirrored === true;
|
|
413
405
|
if (element.doorStyle.toJS().handle_gltf !== '') {
|
|
414
406
|
// Check element has doorHandle
|
|
415
407
|
for (var i = 1; i < 10; i++) {
|
|
@@ -500,10 +492,9 @@ function render3DItem(element, layer, scene, sizeinfo, structure_json, is_corner
|
|
|
500
492
|
newAltitude = (0, _convertUnitsLite.convert)(newAltitude).from(newUnit).to(scene.unit);
|
|
501
493
|
var _element = element.toJS();
|
|
502
494
|
if (!_element.doorStyle.doorStyles.is_euro_cds) {
|
|
503
|
-
|
|
504
|
-
object1.scale.set(isMirrored ? -scaleX : scaleX, 100 * newHeight / sizeinfo.height, 100 * newDepth / sizeinfo.depth);
|
|
495
|
+
object1.scale.set(100 * newWidth / sizeinfo.width, 100 * newHeight / sizeinfo.height, 100 * newDepth / sizeinfo.depth);
|
|
505
496
|
} else {
|
|
506
|
-
object1.scale.set(
|
|
497
|
+
object1.scale.set(100, 100, 100);
|
|
507
498
|
}
|
|
508
499
|
// Normalize the origin of the object
|
|
509
500
|
var boundingBox = GeomUtils.baseBox3FromObject(object1);
|
|
@@ -574,8 +565,7 @@ function render3DItem(element, layer, scene, sizeinfo, structure_json, is_corner
|
|
|
574
565
|
// save object transform info///
|
|
575
566
|
var scalevec = new Three.Vector3(object1.scale.x, object1.scale.y, object1.scale.z);
|
|
576
567
|
var posVec = new Three.Vector3(object1.position.x, object1.position.y, object1.position.z);
|
|
577
|
-
|
|
578
|
-
object.scale.set(isMirrored ? -selectedScaleX : selectedScaleX, 1 * newHeight / sizeinfo.height, 1 * newDepth / sizeinfo.depth);
|
|
568
|
+
object.scale.set(1 * newWidth / sizeinfo.width, 1 * newHeight / sizeinfo.height, 1 * newDepth / sizeinfo.depth);
|
|
579
569
|
object1.position.set(0, 0, 0);
|
|
580
570
|
object1.rotation.set(0, 0, 0);
|
|
581
571
|
|
package/lib/class/item.js
CHANGED
|
@@ -20,7 +20,6 @@ var _molding = require("../utils/molding");
|
|
|
20
20
|
var _utils = require("../components/viewer2d/utils");
|
|
21
21
|
var _history = require("../utils/history");
|
|
22
22
|
var _immutable2 = require("../shared/objects/immutable");
|
|
23
|
-
var _cabinetMirror = require("../shared/domain/cabinet-mirror");
|
|
24
23
|
var _cabinetWarning = require("../shared/domain/cabinet-warning");
|
|
25
24
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
25
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -88,8 +87,6 @@ var Item = exports["default"] = /*#__PURE__*/function () {
|
|
|
88
87
|
category: state.catalog.getIn(['elements', type, 'type']),
|
|
89
88
|
layoutpos: state.catalog.getIn(['elements', type, 'info', 'layoutpos']),
|
|
90
89
|
cabinet_category: state.catalog.getIn(['elements', type, 'obj']).toJS().cabinet_category,
|
|
91
|
-
can_be_mirrored: state.catalog.getIn(['elements', type, 'can_be_mirrored']),
|
|
92
|
-
mirrored: state.catalog.getIn(['elements', type, 'mirrored']),
|
|
93
90
|
type: type,
|
|
94
91
|
height: height,
|
|
95
92
|
width: width,
|
|
@@ -118,8 +115,7 @@ var Item = exports["default"] = /*#__PURE__*/function () {
|
|
|
118
115
|
if (isDuplication && refItem) {
|
|
119
116
|
var _refItem$ccdf, _refItem$get, _refItem$properties, _refItem$properties$g;
|
|
120
117
|
item = item.merge({
|
|
121
|
-
doorStyle: refItem.doorStyle
|
|
122
|
-
mirrored: refItem.mirrored === true
|
|
118
|
+
doorStyle: refItem.doorStyle
|
|
123
119
|
});
|
|
124
120
|
// When duplicating, preserve the instance-selected CCDF from the source cabinet.
|
|
125
121
|
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');
|
|
@@ -651,32 +647,6 @@ var Item = exports["default"] = /*#__PURE__*/function () {
|
|
|
651
647
|
updatedState: state
|
|
652
648
|
};
|
|
653
649
|
}
|
|
654
|
-
}, {
|
|
655
|
-
key: "toggleItemMirror",
|
|
656
|
-
value: function toggleItemMirror(state, layerID, itemID) {
|
|
657
|
-
var mirrored = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
658
|
-
var onInternalEvent = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
|
|
659
|
-
var item = state.getIn(['scene', 'layers', layerID, 'items', itemID]);
|
|
660
|
-
if ((0, _util.isUndefined)(item) || !(0, _cabinetMirror.canMirrorCabinet)(item)) {
|
|
661
|
-
return {
|
|
662
|
-
updatedState: state
|
|
663
|
-
};
|
|
664
|
-
}
|
|
665
|
-
var layer = state.getIn(['scene', 'layers', layerID]);
|
|
666
|
-
var nextMirrored = typeof mirrored === 'boolean' ? mirrored : item.mirrored !== true;
|
|
667
|
-
var mirroredItem = item.set('mirrored', nextMirrored);
|
|
668
|
-
state = state.setIn(['scene', 'layers', layerID, 'items', itemID, 'mirrored'], nextMirrored);
|
|
669
|
-
if (onInternalEvent) {
|
|
670
|
-
var jsElement = (0, _helper.updatePayloadOfInternalEvent)(mirroredItem, layer);
|
|
671
|
-
onInternalEvent({
|
|
672
|
-
type: _constants.INTERNAL_EVENT_MIRROR_ELEMENT,
|
|
673
|
-
value: jsElement
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
return {
|
|
677
|
-
updatedState: state
|
|
678
|
-
};
|
|
679
|
-
}
|
|
680
650
|
}, {
|
|
681
651
|
key: "storeDistArray",
|
|
682
652
|
value: function storeDistArray(state, layerID, itemID, distArray) {
|
|
@@ -1369,13 +1339,16 @@ var Item = exports["default"] = /*#__PURE__*/function () {
|
|
|
1369
1339
|
doorStyle: doorStyle
|
|
1370
1340
|
});
|
|
1371
1341
|
var layerID = state.scene.get('selectedLayer');
|
|
1372
|
-
|
|
1373
|
-
temp_layer_molding =
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
state = state.setIn(
|
|
1342
|
+
|
|
1343
|
+
// let temp_layer_molding = state.scene.getIn(['layers', layerID, 'molding']);
|
|
1344
|
+
// temp_layer_molding = temp_layer_molding.filter(md =>
|
|
1345
|
+
// itemCDS?.some(ds => md.itemID === ds.itemID)
|
|
1346
|
+
// );
|
|
1347
|
+
|
|
1348
|
+
// state = state.setIn(
|
|
1349
|
+
// ['scene', 'layers', layerID, 'molding'],
|
|
1350
|
+
// temp_layer_molding
|
|
1351
|
+
// );
|
|
1379
1352
|
|
|
1380
1353
|
// 🔥 Determine which items to update
|
|
1381
1354
|
var items = state.scene.layers.get(layerID).items;
|