@configuratorware/configurator-frontendgui 1.31.6 → 1.31.9-beta.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.
|
@@ -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
|
});
|
package/App/configuration.js
CHANGED
|
@@ -28,7 +28,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
28
28
|
|
|
29
29
|
var DEVELOPMENT_HOST_INT = 'http://int.configuratorware.local'; // eslint-disable-next-line no-unused-vars
|
|
30
30
|
|
|
31
|
-
var DEVELOPMENT_HOST_LOCAL = 'http://localhost:10030';
|
|
31
|
+
var DEVELOPMENT_HOST_LOCAL = DEVELOPMENT_HOST_INT; //'http://localhost:10030';
|
|
32
|
+
|
|
32
33
|
var hostsByNodeEnv = {
|
|
33
34
|
production: '',
|
|
34
35
|
development: DEVELOPMENT_HOST_LOCAL,
|
|
@@ -164,7 +165,14 @@ var applicationConfiguration = {
|
|
|
164
165
|
|
|
165
166
|
},
|
|
166
167
|
visualization: {
|
|
167
|
-
designAreaHighlightBackgroundColor: 'transparent'
|
|
168
|
+
designAreaHighlightBackgroundColor: 'transparent',
|
|
169
|
+
options: {
|
|
170
|
+
// when zoom = 1 use NearestFilter (for sharper product image)
|
|
171
|
+
sharperFullView: false,
|
|
172
|
+
// upscale or downscale the product image to fit 2048 x 2048
|
|
173
|
+
// Warning! not recommended, use better image resources instead
|
|
174
|
+
optimizeProductImage: false
|
|
175
|
+
}
|
|
168
176
|
},
|
|
169
177
|
designer: {
|
|
170
178
|
dpi: 300,
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-frontendgui",
|
|
3
|
-
"version": "1.31.
|
|
3
|
+
"version": "1.31.9-beta.0",
|
|
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.
|
|
9
|
+
"@configuratorware/scripts": "1.31.9-beta.0",
|
|
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",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"path-browserify": "^1.0.1",
|
|
27
27
|
"prop-types": "^15.7.2",
|
|
28
28
|
"qs": "^6.10.1",
|
|
29
|
-
"react": "^
|
|
29
|
+
"react": "^17.0.2",
|
|
30
30
|
"react-custom-scrollbars": "^4.2.1",
|
|
31
|
-
"react-dom": "^
|
|
31
|
+
"react-dom": "^17.0.2",
|
|
32
32
|
"react-file-drop": "^0.2.8",
|
|
33
33
|
"react-hot-loader": "^4.13.0",
|
|
34
34
|
"react-hyphen": "^1.4.0",
|
|
@@ -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.
|
|
43
|
-
"redhotmagma-visualization": "1.31.
|
|
42
|
+
"redhotmagma-graphics-editor": "1.31.9-beta.0",
|
|
43
|
+
"redhotmagma-visualization": "1.31.9-beta.0",
|
|
44
44
|
"redux": "^4.1.0",
|
|
45
45
|
"redux-logger": "^3.0.6",
|
|
46
46
|
"redux-persist": "^5.10.0",
|
|
@@ -76,6 +76,5 @@
|
|
|
76
76
|
"scripts": {
|
|
77
77
|
"copy-public": "node ./scripts/cpPublic.js",
|
|
78
78
|
"install": "npm run copy-public"
|
|
79
|
-
}
|
|
80
|
-
"readme": "# configurator-frontendgui\n\n## Setup for Development\n1. Follow the \"preparation\", \"install\" and \"start development\" steps in frontend/README.md\n1. Open the core app in the browser: http://localhost:3001/identifier:softshell_designer_2d\n1. 'hostsByNodeEnv.development' in src/App/configuration.js is configurable \n thus allowing to use e.g. your local api\n\n## Ready to build the artifacts\n- run `pnpm build` from project scope (does not build workspace dependencies automatically)\n- or run `pnpm build` from workspace root\n\n## Start storybook in project \n1. `pnpm run storybook`\n1. `storybook starts on http://localhost:9001/` \n\n## [Guidelines for automated testing](docs/TestingGuidelines.md)\n"
|
|
79
|
+
}
|
|
81
80
|
}
|
|
@@ -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;
|
package/src/App/configuration.js
CHANGED
|
@@ -9,7 +9,7 @@ import { setStateChangeReducers, setSubReducers } from './Reducers/Configurator/
|
|
|
9
9
|
const DEVELOPMENT_HOST_INT = 'http://int.configuratorware.local';
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line no-unused-vars
|
|
12
|
-
const DEVELOPMENT_HOST_LOCAL = 'http://localhost:10030';
|
|
12
|
+
const DEVELOPMENT_HOST_LOCAL = DEVELOPMENT_HOST_INT; //'http://localhost:10030';
|
|
13
13
|
|
|
14
14
|
const hostsByNodeEnv = {
|
|
15
15
|
production: '',
|
|
@@ -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: {
|