@configuratorware/configurator-frontendgui 1.31.6 → 1.31.7

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.
@@ -435,6 +435,8 @@ var VisualizationService = /*#__PURE__*/function (_AbstractVisualizatio) {
435
435
  (0, _sendMessage["default"])(component, 'clearViewIfEmpty', !!isAdminMode);
436
436
  var visualizationOverlayMode = (0, _configuration.getConf)('visualizationOverlayMode');
437
437
  (0, _sendMessage["default"])(component, 'setOverlayMode', !!visualizationOverlayMode);
438
+ var visualizationOptions = (0, _configuration.getConf)('visualization.options');
439
+ (0, _sendMessage["default"])(component, 'setOptions', visualizationOptions);
438
440
  this.observable.dispatch(EventTypes.ComponentChange, {
439
441
  component: component
440
442
  });
@@ -164,7 +164,14 @@ var applicationConfiguration = {
164
164
 
165
165
  },
166
166
  visualization: {
167
- designAreaHighlightBackgroundColor: 'transparent'
167
+ designAreaHighlightBackgroundColor: 'transparent',
168
+ options: {
169
+ // when zoom = 1 use NearestFilter (for sharper product image)
170
+ sharperFullView: false,
171
+ // upscale or downscale the product image to fit 2048 x 2048
172
+ // Warning! not recommended, use better image resources instead
173
+ optimizeProductImage: false
174
+ }
168
175
  },
169
176
  designer: {
170
177
  dpi: 300,
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@configuratorware/configurator-frontendgui",
3
- "version": "1.31.6",
3
+ "version": "1.31.7",
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.31.6",
9
+ "@configuratorware/scripts": "1.31.7",
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.31.6",
43
- "redhotmagma-visualization": "1.31.6",
42
+ "redhotmagma-graphics-editor": "1.31.7",
43
+ "redhotmagma-visualization": "1.31.7",
44
44
  "redux": "^4.1.0",
45
45
  "redux-logger": "^3.0.6",
46
46
  "redux-persist": "^5.10.0",
@@ -267,6 +267,9 @@ export default class VisualizationService extends AbstractVisualizationService {
267
267
  const visualizationOverlayMode = getConf('visualizationOverlayMode');
268
268
  sendMessage(component, 'setOverlayMode', !!visualizationOverlayMode);
269
269
 
270
+ const visualizationOptions = getConf('visualization.options');
271
+ sendMessage(component, 'setOptions', visualizationOptions);
272
+
270
273
  this.observable.dispatch(EventTypes.ComponentChange, { component });
271
274
 
272
275
  return this;
@@ -181,6 +181,13 @@ let applicationConfiguration = {
181
181
 
182
182
  visualization: {
183
183
  designAreaHighlightBackgroundColor: 'transparent',
184
+ options: {
185
+ // when zoom = 1 use NearestFilter (for sharper product image)
186
+ sharperFullView: false,
187
+ // upscale or downscale the product image to fit 2048 x 2048
188
+ // Warning! not recommended, use better image resources instead
189
+ optimizeProductImage: false,
190
+ },
184
191
  },
185
192
 
186
193
  designer: {