@colijnit/configurator 259.1.2 → 259.1.4

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.
Files changed (33) hide show
  1. package/app/components/selections/selections.component.d.ts +1 -1
  2. package/bundles/colijnit-configurator.umd.js +225 -135
  3. package/bundles/colijnit-configurator.umd.js.map +1 -1
  4. package/colijnit-configurator.metadata.json +1 -1
  5. package/esm2015/app/builder.js +81 -43
  6. package/esm2015/app/components/selections/selections.component.js +2 -2
  7. package/esm2015/app/services/configurator.service.js +15 -11
  8. package/esm2015/app/utils/object.utils.js +14 -12
  9. package/esm2015/helper/variation-helper.js +5 -9
  10. package/esm2015/utils/base-utils.js +9 -0
  11. package/esm2015/utils/image.utils.js +27 -29
  12. package/esm2015/utils/scene-utils.js +38 -15
  13. package/esm2015/utils/threed.utils.js +14 -12
  14. package/esm2015/utils/variation-utils.js +1 -1
  15. package/fesm2015/colijnit-configurator.js +196 -126
  16. package/fesm2015/colijnit-configurator.js.map +1 -1
  17. package/helper/variation-helper.d.ts +2 -3
  18. package/package.json +4 -4
  19. package/utils/base-utils.d.ts +4 -0
  20. package/utils/image.utils.d.ts +2 -1
  21. package/utils/threed.utils.d.ts +2 -2
  22. package/colijnit-configurator-259.1.1.tgz +0 -0
  23. package/configurator/index.html +0 -14
  24. package/configurator/main.js +0 -3555
  25. package/configurator/main.js.map +0 -1
  26. package/configurator/polyfills.js +0 -5683
  27. package/configurator/polyfills.js.map +0 -1
  28. package/configurator/runtime.js +0 -149
  29. package/configurator/runtime.js.map +0 -1
  30. package/configurator/styles.css +0 -48
  31. package/configurator/styles.css.map +0 -1
  32. package/configurator/vendor.js +0 -210213
  33. package/configurator/vendor.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { VariationSettings } from '../model/variation-settings';
2
2
  import { Object3D } from 'three';
3
- export declare class VariationHelper {
3
+ import { BaseUtils } from '../utils/base-utils';
4
+ export declare class VariationHelper extends BaseUtils {
4
5
  assetPath: string;
5
- debug: Function;
6
6
  private _variations;
7
7
  private _lastKnownVariations;
8
8
  clearCache(): void;
@@ -21,5 +21,4 @@ export declare class VariationHelper {
21
21
  private _setLastKnownVariations;
22
22
  private _getLastKnownVariations;
23
23
  private _createValidColor;
24
- private _log;
25
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/configurator",
3
- "version": "259.1.2",
3
+ "version": "259.1.4",
4
4
  "description": "iOne configurator specific for version 259",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -18,18 +18,18 @@
18
18
  "@angular/platform-browser-dynamic": "~12.2.15",
19
19
  "@colijnit/configuratorapi": "259.1.0",
20
20
  "@colijnit/ioneconnector": "259.1.1",
21
- "@types/three": "^0.178.1",
21
+ "@types/three": "0.178.1",
22
22
  "axios": "0.27.2",
23
23
  "core-js": "^3.22.8",
24
24
  "jszip": "3.6.0",
25
25
  "rxjs": "6.6.3",
26
- "three": ">=0.166.x",
26
+ "three": "0.178.0",
27
27
  "ts-node": "^10.8.1",
28
28
  "tslib": "^2.3.1",
29
29
  "zone.js": "~0.11.4"
30
30
  },
31
31
  "peerDependencies": {
32
- "three": ">=0.166.x"
32
+ "three": "0.178.0"
33
33
  },
34
34
  "main": "bundles/colijnit-configurator.umd.js",
35
35
  "module": "fesm2015/colijnit-configurator.js",
@@ -0,0 +1,4 @@
1
+ export declare class BaseUtils {
2
+ debug: Function;
3
+ protected log(message: string): void;
4
+ }
@@ -1,6 +1,7 @@
1
1
  import * as THREE from 'three';
2
2
  import { Material } from '../model/material';
3
- export declare class ImageUtils {
3
+ import { BaseUtils } from './base-utils';
4
+ export declare class ImageUtils extends BaseUtils {
4
5
  static textures: Map<string, THREE.Texture>;
5
6
  static CreateTextureFromBase64(id: string, base64: string, material: Material, defaultFlip?: boolean): Promise<THREE.Texture>;
6
7
  static getDocBodyWithMimeTypeDefinition(fileName: string, documentBody: string): string;
@@ -2,12 +2,12 @@ import * as THREE from "three";
2
2
  export declare class ThreedUtils {
3
3
  private _objectCache;
4
4
  clearCache(): void;
5
- download3DSource(fileName: string, assetPath: string): Promise<THREE.Object3D>;
5
+ download3DSource(fileName: string, setVisibleFalse?: boolean): Promise<THREE.Object3D>;
6
6
  readFileAsText(file: File): Promise<string>;
7
7
  loadJsonModel(filePath: string): Promise<any>;
8
8
  loadJsonObjectModel(filePath: string): Promise<any>;
9
9
  loadGlbModel(file: string, cleanUp?: boolean): Promise<THREE.Object3D>;
10
- loadGlbSource(file: string): Promise<THREE.Object3D>;
10
+ loadGlbSource(file: string, setVisibleFalse?: boolean): Promise<THREE.Object3D>;
11
11
  textureFromUrl(url: string): Promise<any>;
12
12
  private _cleanedUpObjects;
13
13
  private _addGroupChildrenToObject;
Binary file
@@ -1,14 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <title>Configurator</title>
6
- <base href="/">
7
-
8
- <meta name="viewport" content="width=device-width, initial-scale=1">
9
- <link rel="icon" type="image/x-icon" href="favicon.ico">
10
- <link rel="stylesheet" href="styles.css"></head>
11
- <body>
12
- <app-root></app-root>
13
- <script src="runtime.js" defer></script><script src="polyfills.js" defer></script><script src="vendor.js" defer></script><script src="main.js" defer></script></body>
14
- </html>