@colijnit/configurator 258.1.0 → 259.1.1
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/app/builder.d.ts +3 -1
- package/bundles/colijnit-configurator.umd.js +3799 -3398
- package/bundles/colijnit-configurator.umd.js.map +1 -1
- package/colijnit-configurator.metadata.json +1 -1
- package/esm2015/app/builder.js +60 -27
- package/esm2015/app/components/answers/answer/answer.component.js +1 -1
- package/esm2015/app/components/answers/answers.component.js +1 -1
- package/esm2015/app/components/selections/selections.component.js +1 -1
- package/esm2015/helper/variation-helper.js +101 -46
- package/esm2015/model/variation-settings.js +46 -3
- package/esm2015/utils/asset.utils.js +77 -72
- package/esm2015/utils/image.utils.js +34 -25
- package/esm2015/utils/scene-utils.js +90 -20
- package/esm2015/utils/variation-utils.js +28 -33
- package/fesm2015/colijnit-configurator.js +427 -220
- package/fesm2015/colijnit-configurator.js.map +1 -1
- package/helper/variation-helper.d.ts +5 -1
- package/model/variation-settings.d.ts +3 -2
- package/package.json +21 -9
- package/utils/scene-utils.d.ts +2 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { VariationSettings } from
|
|
1
|
+
import { VariationSettings } from '../model/variation-settings';
|
|
2
2
|
import { Object3D } from 'three';
|
|
3
3
|
export declare class VariationHelper {
|
|
4
4
|
assetPath: string;
|
|
5
|
+
debug: Function;
|
|
5
6
|
private _variations;
|
|
6
7
|
private _lastKnownVariations;
|
|
7
8
|
clearCache(): void;
|
|
@@ -11,6 +12,7 @@ export declare class VariationHelper {
|
|
|
11
12
|
set(variations: VariationSettings): void;
|
|
12
13
|
preloadVariations(fileNames: string[]): void;
|
|
13
14
|
loadTheVariation(fileName: string): Promise<VariationSettings>;
|
|
15
|
+
private _loadMaterialFromSettings;
|
|
14
16
|
private _waitForVariationToLoad;
|
|
15
17
|
private _getChildrenFilterByProp;
|
|
16
18
|
private _applyMaterialPart;
|
|
@@ -18,4 +20,6 @@ export declare class VariationHelper {
|
|
|
18
20
|
private _setMeshMaterialFromVariation;
|
|
19
21
|
private _setLastKnownVariations;
|
|
20
22
|
private _getLastKnownVariations;
|
|
23
|
+
private _createValidColor;
|
|
24
|
+
private _log;
|
|
21
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
export declare class VariationSettingsSettings {
|
|
3
3
|
repeatx: number;
|
|
4
4
|
repeaty: number;
|
|
@@ -49,5 +49,6 @@ export declare class VariationSettings {
|
|
|
49
49
|
specularIntensity: number;
|
|
50
50
|
material: any;
|
|
51
51
|
loading: boolean;
|
|
52
|
-
loaded:
|
|
52
|
+
loaded: BehaviorSubject<VariationSettings>;
|
|
53
|
+
copyFrom(settings: VariationSettings): void;
|
|
53
54
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/configurator",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "iOne configurator specific for version
|
|
3
|
+
"version": "259.1.1",
|
|
4
|
+
"description": "iOne configurator specific for version 259",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": "npm/npm",
|
|
@@ -11,25 +11,37 @@
|
|
|
11
11
|
"@angular/cli": "^12.2.14",
|
|
12
12
|
"@angular/common": "12.2.15",
|
|
13
13
|
"@angular/compiler": "^12.2.15",
|
|
14
|
-
"@angular/core": "12.2.15",
|
|
14
|
+
"@angular/core": "^12.2.15",
|
|
15
15
|
"@angular/elements": "^12.2.15",
|
|
16
16
|
"@angular/forms": "^12.2.15",
|
|
17
17
|
"@angular/platform-browser": "~12.2.15",
|
|
18
18
|
"@angular/platform-browser-dynamic": "~12.2.15",
|
|
19
|
-
"@colijnit/configuratorapi": "
|
|
20
|
-
"@colijnit/ioneconnector": "
|
|
21
|
-
"@types/three": "^0.
|
|
19
|
+
"@colijnit/configuratorapi": "259.1.0",
|
|
20
|
+
"@colijnit/ioneconnector": "259.1.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
|
-
"
|
|
27
|
-
"
|
|
26
|
+
"stylus": "0.0.1-security",
|
|
27
|
+
"three": ">=0.166.x",
|
|
28
|
+
"ts-node": "^10.8.1",
|
|
28
29
|
"tslib": "^2.3.1",
|
|
29
30
|
"zone.js": "~0.11.4"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
32
|
-
"three": ">=0.
|
|
33
|
+
"three": ">=0.166.x"
|
|
34
|
+
},
|
|
35
|
+
"overrides": {
|
|
36
|
+
"@angular-devkit/build-angular": {
|
|
37
|
+
"stylus": "0.0.1-security"
|
|
38
|
+
},
|
|
39
|
+
"stylus-loader": {
|
|
40
|
+
"stylus": "0.0.1-security"
|
|
41
|
+
},
|
|
42
|
+
"ng-packagr": {
|
|
43
|
+
"stylus": "0.0.1-security"
|
|
44
|
+
}
|
|
33
45
|
},
|
|
34
46
|
"main": "bundles/colijnit-configurator.umd.js",
|
|
35
47
|
"module": "fesm2015/colijnit-configurator.js",
|
package/utils/scene-utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
export declare class SceneUtils {
|
|
3
|
-
static TrySelectorConnection(scene: THREE.Scene, parent: THREE.Object3D, part1: any, part2: any, createAddableFn?: Function): boolean;
|
|
3
|
+
static TrySelectorConnection(scene: THREE.Scene, parent: THREE.Object3D, part1: any, part2: any, isFirstElement: boolean, createAddableFn?: Function): boolean;
|
|
4
4
|
static Convert3DPointToScreenPoint(point: THREE.Vector3, camera: THREE.Camera, width: number, height: number): THREE.Vector2;
|
|
5
|
-
static CanSelectorConnect(con1: THREE.Object3D | any, con2: THREE.Object3D | any): boolean;
|
|
5
|
+
static CanSelectorConnect(consPart1: THREE.Object3D[], con1: THREE.Object3D | any, con2: THREE.Object3D | any, startWithMale?: boolean): boolean;
|
|
6
6
|
private static SelectorConnect;
|
|
7
7
|
}
|