@colijnit/configurator 1.0.13 → 1.0.17
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 +12 -11
- package/app/components/answers/answer/answer.component.d.ts +0 -1
- package/app/services/configurator.service.d.ts +9 -14
- package/app/services/locator.service.d.ts +4 -0
- package/bundles/colijnit-configurator.umd.js +207 -76
- package/bundles/colijnit-configurator.umd.js.map +1 -1
- package/bundles/colijnit-configurator.umd.min.js +2 -2
- package/bundles/colijnit-configurator.umd.min.js.map +1 -1
- package/colijnit-configurator.d.ts +6 -7
- package/colijnit-configurator.metadata.json +1 -1
- package/esm2015/app/builder.js +67 -25
- package/esm2015/app/components/answers/answer/answer.component.js +26 -17
- package/esm2015/app/components/answers/answers.component.js +16 -13
- package/esm2015/app/components/selections/selections.component.js +45 -25
- package/esm2015/app/services/configurator.service.js +36 -21
- package/esm2015/app/services/image-cache.service.js +3 -1
- package/esm2015/app/services/locator.service.js +10 -0
- package/esm2015/colijnit-configurator.js +7 -8
- package/esm2015/public_api.js +2 -1
- package/esm5/app/builder.js +116 -34
- package/esm5/app/components/answers/answer/answer.component.js +20 -10
- package/esm5/app/components/answers/answers.component.js +3 -3
- package/esm5/app/components/selections/selections.component.js +4 -4
- package/esm5/app/services/configurator.service.js +55 -22
- package/esm5/app/services/image-cache.service.js +3 -1
- package/esm5/app/services/locator.service.js +13 -0
- package/esm5/colijnit-configurator.js +7 -8
- package/esm5/public_api.js +2 -1
- package/fesm2015/colijnit-configurator.js +192 -96
- package/fesm2015/colijnit-configurator.js.map +1 -1
- package/fesm5/colijnit-configurator.js +203 -68
- package/fesm5/colijnit-configurator.js.map +1 -1
- package/package.json +2 -2
- package/public_api.d.ts +1 -0
package/app/builder.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import * as THREE from "three";
|
|
2
2
|
import { Options } from "@colijnit/configuratorapi/build/model/options";
|
|
3
3
|
import { Selection } from "@colijnit/configuratorapi/build/model/selection";
|
|
4
|
-
import { ConfiguratorService } from './services/configurator.service';
|
|
5
4
|
import { Scene } from 'three';
|
|
6
5
|
import { Answer } from '@colijnit/configuratorapi/build/model/answer';
|
|
7
6
|
import { BehaviorSubject } from 'rxjs';
|
|
8
|
-
import { Question } from '@colijnit/configuratorapi/build/model/question';
|
|
9
7
|
export declare class Builder {
|
|
10
|
-
private _configuratorService?;
|
|
11
8
|
selectionsReceived: BehaviorSubject<Selection[]>;
|
|
12
9
|
answersReceived: BehaviorSubject<Answer[]>;
|
|
13
|
-
|
|
10
|
+
modelLoaded: BehaviorSubject<THREE.Object3D>;
|
|
14
11
|
private _scene;
|
|
12
|
+
private _instanceId;
|
|
13
|
+
private _sku;
|
|
14
|
+
private _goodId;
|
|
15
15
|
private _selections;
|
|
16
|
+
private _answers;
|
|
16
17
|
private _decos;
|
|
17
18
|
private _placedAdjustables;
|
|
18
19
|
private _placedAddables;
|
|
@@ -23,15 +24,15 @@ export declare class Builder {
|
|
|
23
24
|
private _threedUtils;
|
|
24
25
|
private _variationHelper;
|
|
25
26
|
private _articleCache;
|
|
26
|
-
private
|
|
27
|
-
constructor(
|
|
28
|
-
|
|
29
|
-
buildModel(instanceId: string, sku: string, goodId?: number): Promise<THREE.Object3D>;
|
|
27
|
+
private _configuratorService;
|
|
28
|
+
constructor(scene: Scene, options: Options, useInAngular: boolean);
|
|
29
|
+
buildModel(sku?: string, instanceId?: string, goodId?: number): Promise<THREE.Object3D>;
|
|
30
30
|
initNodeInstance(goodId: number): Promise<any>;
|
|
31
31
|
destroy(): void;
|
|
32
|
-
selectSelection(selection: Selection): void
|
|
33
|
-
getQuestionAndAnswers(): Promise<void>;
|
|
34
|
-
selectAnswer(answer: Answer): void
|
|
32
|
+
selectSelection(selection: Selection): Promise<void>;
|
|
33
|
+
getQuestionAndAnswers(publicationCode?: number): Promise<void>;
|
|
34
|
+
selectAnswer(answer: Answer): Promise<void>;
|
|
35
|
+
private _setInstanceId;
|
|
35
36
|
private _prepareConfiguration;
|
|
36
37
|
private _build;
|
|
37
38
|
private _prepareTheSelections;
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
3
2
|
import { Selection } from '@colijnit/configuratorapi/build/model/selection';
|
|
4
3
|
import { Answer } from '@colijnit/configuratorapi/build/model/answer';
|
|
5
|
-
import { Question } from '@colijnit/configuratorapi/build/model/question';
|
|
6
4
|
import { DataServiceResponseData } from '@colijnit/configuratorapi/build/model/data-service-response-data';
|
|
7
5
|
import { Options } from "@colijnit/configuratorapi/build/model/options";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
questionReceived: BehaviorSubject<Question>;
|
|
6
|
+
import { QuestionAndAnswers } from "@colijnit/configuratorapi/build/model/question-and-answers";
|
|
7
|
+
export declare class ConfiguratorService {
|
|
8
|
+
private _injector;
|
|
12
9
|
private _configuratorApi;
|
|
13
|
-
|
|
14
|
-
constructor();
|
|
15
|
-
ngOnDestroy(): void;
|
|
10
|
+
constructor(_injector: Injector);
|
|
16
11
|
initApi(options: Options): void;
|
|
17
12
|
initNodeInstance(goodId: number): Promise<DataServiceResponseData>;
|
|
18
13
|
setInstanceToConfigure(id: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
19
14
|
getGoodIdFromSku(sku: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
20
15
|
getArticleQuickSel(goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
21
|
-
getSelections(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
16
|
+
getSelections(showLoader?: boolean, publicationCode?: number): Promise<DataServiceResponseData>;
|
|
22
17
|
getDecos(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
23
|
-
getQuestionAndAnswers(showLoader?: boolean): Promise<
|
|
18
|
+
getQuestionAndAnswers(showLoader?: boolean, publicationCode?: number): Promise<QuestionAndAnswers>;
|
|
24
19
|
getSingleImage(nodeId: number | string, publication: number, includeMimetype: boolean, thumb: boolean, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
25
|
-
selectSelection(selection: Selection, showLoader?: boolean):
|
|
26
|
-
selectAnswer(answer: Answer, showLoader?: boolean):
|
|
20
|
+
selectSelection(selection: Selection, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
21
|
+
selectAnswer(answer: Answer, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
27
22
|
}
|