@colijnit/configurator 12.0.4 → 12.0.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.
@@ -1,10 +1,17 @@
1
+ import { VariationSettings } from "../model/variation-settings";
1
2
  import * as THREE from "three";
2
3
  export declare class VariationHelper {
3
4
  assetPath: string;
5
+ private _variations;
4
6
  private _lastKnownVariations;
5
7
  clearCache(): void;
6
8
  loadPart(obj: THREE.Object3D, parts: any[], usePbr?: boolean): Promise<void>;
7
9
  loadVariation(obj: THREE.Object3D, parts: any[], usePbr?: boolean): Promise<void>;
10
+ get(id: string): VariationSettings;
11
+ set(variations: VariationSettings): void;
12
+ preloadVariations(schema: string, fileNames: string[]): void;
13
+ loadTheVariation(fileName: string): Promise<VariationSettings>;
14
+ private _waitForVariationToLoad;
8
15
  private _getChildrenFilterByProp;
9
16
  private _applyMaterialPart;
10
17
  private _applyVariations;
@@ -4,6 +4,7 @@ export declare class Variation {
4
4
  brandId: string;
5
5
  gameObjectName: string;
6
6
  node: any;
7
+ optionText: string;
7
8
  supplierArticleNr: string;
8
9
  materialId: string;
9
10
  material: Material;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/configurator",
3
- "version": "12.0.4",
3
+ "version": "12.0.7",
4
4
  "description": "iOne configurator",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -19,7 +19,7 @@
19
19
  "@colijnit/configuratorapi": "1.0.8",
20
20
  "axios": "0.27.2",
21
21
  "core-js": "^3.22.8",
22
- "jszip": "^3.7.1",
22
+ "jszip": "3.6.0",
23
23
  "rxjs": "6.6.3",
24
24
  "ts-node": "^9.1.1",
25
25
  "tslib": "^2.3.1",