@configuratorware/configurator-frontendgui 1.38.0 → 1.38.2
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.
|
@@ -438,6 +438,8 @@ var VisualizationService = /*#__PURE__*/function (_AbstractVisualizatio) {
|
|
|
438
438
|
(0, _sendMessage["default"])(component, 'setOverlayMode', !!visualizationOverlayMode);
|
|
439
439
|
var visualizationOptions = (0, _configuration.getConf)('visualization.options');
|
|
440
440
|
(0, _sendMessage["default"])(component, 'setOptions', visualizationOptions);
|
|
441
|
+
var visualizationOptions3D = (0, _configuration.getConf)('visualization.options3D');
|
|
442
|
+
(0, _sendMessage["default"])(component, 'setOptions3D', visualizationOptions3D);
|
|
441
443
|
this.observable.dispatch(EventTypes.ComponentChange, {
|
|
442
444
|
component: component
|
|
443
445
|
});
|
package/App/configuration.js
CHANGED
|
@@ -171,6 +171,12 @@ var applicationConfiguration = {
|
|
|
171
171
|
// upscale or downscale the product image to fit 2048 x 2048
|
|
172
172
|
// Warning! not recommended, use better image resources instead
|
|
173
173
|
optimizeProductImage: false
|
|
174
|
+
},
|
|
175
|
+
options3D: {
|
|
176
|
+
// create a ground to show a shadow under the model
|
|
177
|
+
useShadowGround: true,
|
|
178
|
+
// remove the shadow ground for screenshots
|
|
179
|
+
removeGroundForScreenshot: true
|
|
174
180
|
}
|
|
175
181
|
},
|
|
176
182
|
designer: {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-frontendgui",
|
|
3
|
-
"version": "1.38.
|
|
3
|
+
"version": "1.38.2",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/polyfill": "^7.12.1",
|
|
9
|
-
"@configuratorware/scripts": "1.38.
|
|
9
|
+
"@configuratorware/scripts": "1.38.2",
|
|
10
10
|
"@hot-loader/react-dom": "^17.0.1",
|
|
11
11
|
"@material-ui/core": "^4.12.2",
|
|
12
12
|
"@material-ui/icons": "^4.11.2",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"react-router-dom": "^5.2.0",
|
|
40
40
|
"react-swipeable": "^5.5.1",
|
|
41
41
|
"react-zoom-pan-pinch": "^2.1.3",
|
|
42
|
-
"redhotmagma-graphics-editor": "1.38.
|
|
43
|
-
"redhotmagma-visualization": "1.38.
|
|
42
|
+
"redhotmagma-graphics-editor": "1.38.2",
|
|
43
|
+
"redhotmagma-visualization": "1.38.2",
|
|
44
44
|
"redux": "^4.1.0",
|
|
45
45
|
"redux-logger": "^3.0.6",
|
|
46
46
|
"redux-persist": "^5.10.0",
|
|
@@ -271,6 +271,9 @@ export default class VisualizationService extends AbstractVisualizationService {
|
|
|
271
271
|
const visualizationOptions = getConf('visualization.options');
|
|
272
272
|
sendMessage(component, 'setOptions', visualizationOptions);
|
|
273
273
|
|
|
274
|
+
const visualizationOptions3D = getConf('visualization.options3D');
|
|
275
|
+
sendMessage(component, 'setOptions3D', visualizationOptions3D);
|
|
276
|
+
|
|
274
277
|
this.observable.dispatch(EventTypes.ComponentChange, { component });
|
|
275
278
|
|
|
276
279
|
return this;
|
package/src/App/configuration.js
CHANGED
|
@@ -188,6 +188,12 @@ let applicationConfiguration = {
|
|
|
188
188
|
// Warning! not recommended, use better image resources instead
|
|
189
189
|
optimizeProductImage: false,
|
|
190
190
|
},
|
|
191
|
+
options3D: {
|
|
192
|
+
// create a ground to show a shadow under the model
|
|
193
|
+
useShadowGround: true,
|
|
194
|
+
// remove the shadow ground for screenshots
|
|
195
|
+
removeGroundForScreenshot: true,
|
|
196
|
+
},
|
|
191
197
|
},
|
|
192
198
|
|
|
193
199
|
designer: {
|