@colijnit/configurator 261.1.0 → 261.20.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.
- package/fesm2022/colijnit-configurator.mjs +19553 -0
- package/fesm2022/colijnit-configurator.mjs.map +1 -0
- package/index.d.ts +3301 -0
- package/lib/components/answer-card/style/_layout.scss +88 -0
- package/lib/components/answer-card/style/_material-definition.scss +3 -0
- package/lib/components/answer-card/style/_theme.scss +67 -0
- package/lib/components/answer-card/style/material.scss +2 -0
- package/lib/components/answer-info-dialog/style/_layout.scss +88 -0
- package/lib/components/answer-info-dialog/style/_material-definition.scss +3 -0
- package/lib/components/answer-info-dialog/style/_theme.scss +44 -0
- package/lib/components/answer-info-dialog/style/material.scss +3 -0
- package/lib/components/answers-slideout/style/_layout.scss +199 -0
- package/lib/components/answers-slideout/style/_material-definition.scss +3 -0
- package/lib/components/answers-slideout/style/_theme.scss +54 -0
- package/lib/components/answers-slideout/style/material.scss +3 -0
- package/lib/components/color-filter/style/_layout.scss +41 -0
- package/lib/components/color-filter/style/_material-definition.scss +3 -0
- package/lib/components/color-filter/style/_theme.scss +7 -0
- package/lib/components/color-filter/style/material.scss +3 -0
- package/lib/components/configurator/style/_layout.scss +7 -0
- package/lib/components/configurator/style/_material-definition.scss +3 -0
- package/lib/components/configurator/style/_theme.scss +7 -0
- package/lib/components/configurator/style/material.scss +3 -0
- package/lib/components/configurator-dialog/style/_layout.scss +129 -0
- package/lib/components/configurator-dialog/style/_material-definition.scss +4 -0
- package/lib/components/configurator-dialog/style/_theme.scss +89 -0
- package/lib/components/configurator-dialog/style/material.scss +3 -0
- package/lib/components/configurator-loader/style/_layout.scss +72 -0
- package/lib/components/configurator-loader/style/_material-definition.scss +5 -0
- package/lib/components/configurator-loader/style/_theme.scss +26 -0
- package/lib/components/configurator-loader/style/material.scss +14 -0
- package/lib/components/configurator-scene/style/_layout.scss +22 -0
- package/lib/components/configurator-scene/style/_material-definition.scss +3 -0
- package/lib/components/configurator-scene/style/_theme.scss +7 -0
- package/lib/components/configurator-scene/style/material.scss +3 -0
- package/lib/components/configurator-scene-loader/style/_layout.scss +72 -0
- package/lib/components/configurator-scene-loader/style/_material-definition.scss +5 -0
- package/lib/components/configurator-scene-loader/style/_theme.scss +26 -0
- package/lib/components/configurator-scene-loader/style/material.scss +14 -0
- package/lib/components/element-buttons/style/_layout.scss +52 -0
- package/lib/components/element-buttons/style/_material-definition.scss +3 -0
- package/lib/components/element-buttons/style/_theme.scss +23 -0
- package/lib/components/element-buttons/style/material.scss +3 -0
- package/lib/components/element-toolbar/element-toolbar.component.scss +59 -0
- package/lib/components/element-toolbar/style/_layout.scss +107 -0
- package/lib/components/element-toolbar/style/_material-definition.scss +3 -0
- package/lib/components/element-toolbar/style/_theme.scss +47 -0
- package/lib/components/element-toolbar/style/material.scss +3 -0
- package/lib/components/image-zoom/style/_layout.scss +51 -0
- package/lib/components/image-zoom/style/_material-definition.scss +3 -0
- package/lib/components/image-zoom/style/_theme.scss +17 -0
- package/lib/components/image-zoom/style/material.scss +3 -0
- package/lib/components/lite-selector/style/_layout.scss +21 -0
- package/lib/components/lite-selector/style/_material-definition.scss +3 -0
- package/lib/components/lite-selector/style/_theme.scss +7 -0
- package/lib/components/lite-selector/style/material.scss +3 -0
- package/lib/components/product-configurator/style/_layout.scss +46 -0
- package/lib/components/product-configurator/style/_material-definition.scss +3 -0
- package/lib/components/product-configurator/style/_theme.scss +22 -0
- package/lib/components/product-configurator/style/material.scss +3 -0
- package/lib/components/product-configurator-selector/style/_layout.scss +145 -0
- package/lib/components/product-configurator-selector/style/_material-definition.scss +3 -0
- package/lib/components/product-configurator-selector/style/_theme.scss +57 -0
- package/lib/components/product-configurator-selector/style/material.scss +3 -0
- package/lib/components/product-configurator-selector-option/style/_layout.scss +7 -0
- package/lib/components/product-configurator-selector-option/style/_material-definition.scss +3 -0
- package/lib/components/product-configurator-selector-option/style/_theme.scss +7 -0
- package/lib/components/product-configurator-selector-option/style/material.scss +3 -0
- package/lib/components/product-configurator-selector-option-button/style/_layout.scss +28 -0
- package/lib/components/product-configurator-selector-option-button/style/_material-definition.scss +3 -0
- package/lib/components/product-configurator-selector-option-button/style/_theme.scss +33 -0
- package/lib/components/product-configurator-selector-option-button/style/material.scss +3 -0
- package/lib/components/product-configurator-selector-option-checkbox/style/_layout.scss +28 -0
- package/lib/components/product-configurator-selector-option-checkbox/style/_material-definition.scss +3 -0
- package/lib/components/product-configurator-selector-option-checkbox/style/_theme.scss +27 -0
- package/lib/components/product-configurator-selector-option-checkbox/style/material.scss +3 -0
- package/lib/components/product-configurator-selector-option-dropdown/style/_layout.scss +34 -0
- package/lib/components/product-configurator-selector-option-dropdown/style/_material-definition.scss +3 -0
- package/lib/components/product-configurator-selector-option-dropdown/style/_theme.scss +28 -0
- package/lib/components/product-configurator-selector-option-dropdown/style/material.scss +3 -0
- package/lib/components/product-configurator-selector-option-tile/style/_layout.scss +58 -0
- package/lib/components/product-configurator-selector-option-tile/style/_material-definition.scss +3 -0
- package/lib/components/product-configurator-selector-option-tile/style/_theme.scss +56 -0
- package/lib/components/product-configurator-selector-option-tile/style/material.scss +3 -0
- package/lib/components/progress-bar/progress-bar.component.scss +14 -0
- package/lib/components/progress-bar/style/_layout.scss +18 -0
- package/lib/components/progress-bar/style/_material-definition.scss +3 -0
- package/lib/components/progress-bar/style/_theme.scss +10 -0
- package/lib/components/progress-bar/style/material.scss +3 -0
- package/lib/components/scene-options/style/_layout.scss +52 -0
- package/lib/components/scene-options/style/_material-definition.scss +3 -0
- package/lib/components/scene-options/style/_theme.scss +7 -0
- package/lib/components/scene-options/style/material.scss +3 -0
- package/lib/components/selections-summary/style/_layout.scss +87 -0
- package/lib/components/selections-summary/style/_material-definition.scss +5 -0
- package/lib/components/selections-summary/style/_theme.scss +13 -0
- package/lib/components/selections-summary/style/material.scss +3 -0
- package/lib/components/selections-summary-line/style/_layout.scss +12 -0
- package/lib/components/selections-summary-line/style/_material-definition.scss +4 -0
- package/lib/components/selections-summary-line/style/_theme.scss +12 -0
- package/lib/components/selections-summary-line/style/material.scss +3 -0
- package/lib/components/slideout/style/_layout.scss +27 -0
- package/lib/components/slideout/style/_material-definition.scss +3 -0
- package/lib/components/slideout/style/_theme.scss +5 -0
- package/lib/components/slideout/style/material.scss +3 -0
- package/lib/components/summary-line/style/_layout.scss +137 -0
- package/lib/components/summary-line/style/_material-definition.scss +4 -0
- package/lib/components/summary-line/style/_theme.scss +56 -0
- package/lib/components/summary-line/style/material.scss +3 -0
- package/lib/components/tag-filter/style/_layout.scss +14 -0
- package/lib/components/tag-filter/style/_material-definition.scss +3 -0
- package/lib/components/tag-filter/style/_theme.scss +7 -0
- package/lib/components/tag-filter/style/material.scss +3 -0
- package/lib/components/threedselector/style/_layout.scss +32 -0
- package/lib/components/threedselector/style/_material-definition.scss +3 -0
- package/lib/components/threedselector/style/_theme.scss +7 -0
- package/lib/components/threedselector/style/material.scss +9 -0
- package/lib/style/_mixin.scss +9 -0
- package/lib/style/configurator-globals.scss +21 -0
- package/lib/style/template_variables.scss +37 -0
- package/package.json +27 -36
- package/README.md +0 -28
- package/app/builder.d.ts +0 -75
- package/app/components/answers/answer/answer.component.d.ts +0 -11
- package/app/components/answers/answers.component.d.ts +0 -8
- package/app/components/answers/answers.module.d.ts +0 -2
- package/app/components/selections/selections.component.d.ts +0 -21
- package/app/components/selections/selections.module.d.ts +0 -2
- package/app/components/shared/loader/loader.component.d.ts +0 -2
- package/app/components/shared/shared.module.d.ts +0 -2
- package/app/directives/visibility-observer-master.directive.d.ts +0 -9
- package/app/directives/visibility-observer.directive.d.ts +0 -13
- package/app/services/configurator.service.d.ts +0 -19
- package/app/services/image-cache.service.d.ts +0 -10
- package/app/utils/object.utils.d.ts +0 -7
- package/bundles/colijnit-configurator.umd.js +0 -3993
- package/bundles/colijnit-configurator.umd.js.map +0 -1
- package/colijnit-configurator.d.ts +0 -9
- package/colijnit-configurator.metadata.json +0 -1
- package/esm2015/app/builder.js +0 -710
- package/esm2015/app/components/answers/answer/answer.component.js +0 -66
- package/esm2015/app/components/answers/answers.component.js +0 -38
- package/esm2015/app/components/answers/answers.module.js +0 -27
- package/esm2015/app/components/selections/selections.component.js +0 -129
- package/esm2015/app/components/selections/selections.module.js +0 -21
- package/esm2015/app/components/shared/loader/loader.component.js +0 -22
- package/esm2015/app/components/shared/shared.module.js +0 -19
- package/esm2015/app/directives/visibility-observer-master.directive.js +0 -50
- package/esm2015/app/directives/visibility-observer.directive.js +0 -55
- package/esm2015/app/services/configurator.service.js +0 -79
- package/esm2015/app/services/image-cache.service.js +0 -63
- package/esm2015/app/utils/object.utils.js +0 -51
- package/esm2015/colijnit-configurator.js +0 -10
- package/esm2015/helper/variation-helper.js +0 -549
- package/esm2015/model/material.js +0 -11
- package/esm2015/model/variation-settings.js +0 -54
- package/esm2015/model/variation.js +0 -3
- package/esm2015/public_api.js +0 -7
- package/esm2015/utils/asset.utils.js +0 -124
- package/esm2015/utils/base-utils.js +0 -9
- package/esm2015/utils/file.utils.js +0 -142
- package/esm2015/utils/image.utils.js +0 -66
- package/esm2015/utils/object.utils.js +0 -49
- package/esm2015/utils/scene-utils.js +0 -187
- package/esm2015/utils/threed.utils.js +0 -226
- package/esm2015/utils/variation-utils.js +0 -388
- package/fesm2015/colijnit-configurator.js +0 -2878
- package/fesm2015/colijnit-configurator.js.map +0 -1
- package/helper/variation-helper.d.ts +0 -25
- package/model/material.d.ts +0 -40
- package/model/variation-settings.d.ts +0 -54
- package/model/variation.d.ts +0 -10
- package/public_api.d.ts +0 -6
- package/utils/asset.utils.d.ts +0 -19
- package/utils/base-utils.d.ts +0 -4
- package/utils/file.utils.d.ts +0 -27
- package/utils/image.utils.d.ts +0 -10
- package/utils/object.utils.d.ts +0 -7
- package/utils/scene-utils.d.ts +0 -7
- package/utils/threed.utils.d.ts +0 -16
- package/utils/variation-utils.d.ts +0 -16
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { VariationSettings } from '../model/variation-settings';
|
|
2
|
-
import { DecoNode } from '@colijnit/configuratorapi/build/model/deco-node';
|
|
3
|
-
import { Object3D } from 'three';
|
|
4
|
-
import { BaseUtils } from '../utils/base-utils';
|
|
5
|
-
export declare class VariationHelper extends BaseUtils {
|
|
6
|
-
assetPath: string;
|
|
7
|
-
private _variations;
|
|
8
|
-
private _lastKnownVariations;
|
|
9
|
-
clearCache(): void;
|
|
10
|
-
loadPart(obj: Object3D, parts: any[], usePbr?: boolean): Promise<void>;
|
|
11
|
-
loadVariation(obj: Object3D, parts: any[], usePbr?: boolean): Promise<void>;
|
|
12
|
-
get(id: string): VariationSettings;
|
|
13
|
-
set(variations: VariationSettings): void;
|
|
14
|
-
preloadVariations(fileNames: DecoNode[]): void;
|
|
15
|
-
loadTheVariation(fileName: string): Promise<VariationSettings>;
|
|
16
|
-
private _loadMaterialFromSettings;
|
|
17
|
-
private _waitForVariationToLoad;
|
|
18
|
-
private _getChildrenFilterByProp;
|
|
19
|
-
private _applyMaterialPart;
|
|
20
|
-
private _applyVariations;
|
|
21
|
-
private _setMeshMaterialFromVariation;
|
|
22
|
-
private _setLastKnownVariations;
|
|
23
|
-
private _getLastKnownVariations;
|
|
24
|
-
private _createValidColor;
|
|
25
|
-
}
|
package/model/material.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Color, Texture } from 'three';
|
|
2
|
-
export declare class Material {
|
|
3
|
-
name: string;
|
|
4
|
-
schema: string;
|
|
5
|
-
specular: Color;
|
|
6
|
-
shininess: number;
|
|
7
|
-
normal: Texture;
|
|
8
|
-
texture: Texture;
|
|
9
|
-
ao: Texture;
|
|
10
|
-
metalness: Texture;
|
|
11
|
-
roughness: Texture;
|
|
12
|
-
repeatX: number;
|
|
13
|
-
repeatY: number;
|
|
14
|
-
loaded: boolean;
|
|
15
|
-
metalnessValue: number;
|
|
16
|
-
roughnessValue: number;
|
|
17
|
-
displacement: Texture;
|
|
18
|
-
displacementValue: number;
|
|
19
|
-
sheen: number;
|
|
20
|
-
sheenColor: Color | string | number;
|
|
21
|
-
sheenColorMap: Texture | null;
|
|
22
|
-
sheenRoughness: number;
|
|
23
|
-
sheenRoughnessMap: Texture | null;
|
|
24
|
-
emissive: Texture;
|
|
25
|
-
emissiveValue: Color | string | number;
|
|
26
|
-
emissiveIntensityValue: number;
|
|
27
|
-
envMap: Texture;
|
|
28
|
-
envMapIntensity: number;
|
|
29
|
-
opacity: number;
|
|
30
|
-
transparent: boolean;
|
|
31
|
-
reflectivity: number;
|
|
32
|
-
side: number;
|
|
33
|
-
ior: number;
|
|
34
|
-
transmission: number;
|
|
35
|
-
thickness: number;
|
|
36
|
-
specularIntensity: number;
|
|
37
|
-
transmissionMap: Texture | null;
|
|
38
|
-
clearcoatMap: Texture | null;
|
|
39
|
-
clearcoatRoughnessMap: Texture | null;
|
|
40
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
export declare class VariationSettingsSettings {
|
|
3
|
-
repeatx: number;
|
|
4
|
-
repeaty: number;
|
|
5
|
-
roughness: number;
|
|
6
|
-
metalness: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class VariationSettings {
|
|
9
|
-
id: string;
|
|
10
|
-
settings: VariationSettingsSettings;
|
|
11
|
-
texture: string;
|
|
12
|
-
textureFilename: string;
|
|
13
|
-
normal: string;
|
|
14
|
-
normalFilename: string;
|
|
15
|
-
ao: string;
|
|
16
|
-
aoFilename: string;
|
|
17
|
-
metalness: string;
|
|
18
|
-
metalnessFilename: string;
|
|
19
|
-
roughness: string;
|
|
20
|
-
roughnessFilename: string;
|
|
21
|
-
orm: string;
|
|
22
|
-
ormFilename: string;
|
|
23
|
-
displacement: string;
|
|
24
|
-
displacementValue: number;
|
|
25
|
-
displacementFilename: string;
|
|
26
|
-
sheen: number;
|
|
27
|
-
sheenColor: string;
|
|
28
|
-
sheenColorMap: string;
|
|
29
|
-
sheenColorMapFilename: string;
|
|
30
|
-
transmissionMap: string;
|
|
31
|
-
transmissionMapFilename: string;
|
|
32
|
-
sheenRoughness: number;
|
|
33
|
-
sheenRoughnessMap: string;
|
|
34
|
-
sheenRoughnessMapFilename: string;
|
|
35
|
-
emissive: string;
|
|
36
|
-
emissiveFilename: string;
|
|
37
|
-
emissiveIntensity: number;
|
|
38
|
-
emissiveValue: string;
|
|
39
|
-
opacity: number;
|
|
40
|
-
transparent: boolean;
|
|
41
|
-
envMap: string;
|
|
42
|
-
envMapFilename: string;
|
|
43
|
-
envMapIntensity: number;
|
|
44
|
-
reflectivity: number;
|
|
45
|
-
side: number;
|
|
46
|
-
transmission: number;
|
|
47
|
-
ior: number;
|
|
48
|
-
thickness: number;
|
|
49
|
-
specularIntensity: number;
|
|
50
|
-
material: any;
|
|
51
|
-
loading: boolean;
|
|
52
|
-
loaded: BehaviorSubject<VariationSettings>;
|
|
53
|
-
copyFrom(settings: VariationSettings): void;
|
|
54
|
-
}
|
package/model/variation.d.ts
DELETED
package/public_api.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './app/builder';
|
|
2
|
-
export * from './app/services/configurator.service';
|
|
3
|
-
export * from './app/components/answers/answers.module';
|
|
4
|
-
export * from './app/components/answers/answers.component';
|
|
5
|
-
export * from './app/components/selections/selections.module';
|
|
6
|
-
export * from './app/components/selections/selections.component';
|
package/utils/asset.utils.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Material } from '../model/material';
|
|
2
|
-
import { VariationSettings } from '../model/variation-settings';
|
|
3
|
-
export declare class FurnitureMaterial extends Material {
|
|
4
|
-
textureFilename?: string;
|
|
5
|
-
normalFilename?: string;
|
|
6
|
-
aoFilename?: string;
|
|
7
|
-
metalnessFilename?: string;
|
|
8
|
-
roughnessFilename?: string;
|
|
9
|
-
displacementFilename?: string;
|
|
10
|
-
envMapFilename?: string;
|
|
11
|
-
emissiveFileName?: string;
|
|
12
|
-
sheenColorMapFileName?: string;
|
|
13
|
-
sheenRoughnessMapFileName?: string;
|
|
14
|
-
transmissionMapFileName?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class AssetUtils {
|
|
17
|
-
static CreateMaterialFromAsset(asset: VariationSettings): Promise<Material>;
|
|
18
|
-
static setSettingsOfMaterial(material: Material, settings: any): void;
|
|
19
|
-
}
|
package/utils/base-utils.d.ts
DELETED
package/utils/file.utils.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare class FileUtils {
|
|
2
|
-
private static _cachedTextureUploads;
|
|
3
|
-
static StripMimeStringFromDataUri(dataUri: string): string;
|
|
4
|
-
static GetMimeStringFromDataUri(dataUri: string): string;
|
|
5
|
-
static FileExists(url: string, assetPath: string): Promise<boolean>;
|
|
6
|
-
/**
|
|
7
|
-
* There is some discrepancy regarding locations of h3d objects
|
|
8
|
-
* Therefor we need to (temporarily?!) fix the content url
|
|
9
|
-
* Also we need to change some additionals
|
|
10
|
-
*/
|
|
11
|
-
static FixUrl(assetUrl: string): string;
|
|
12
|
-
static FixGlbUrl(assetUrl: string): string;
|
|
13
|
-
static MimeTypeFromFilename(fileName: string): string;
|
|
14
|
-
/**
|
|
15
|
-
* Downloads the given file to the users default download location.
|
|
16
|
-
* @param fileName With or without extension
|
|
17
|
-
* @param content File content as a string
|
|
18
|
-
* @param [mimeType = 'text/plain']
|
|
19
|
-
*/
|
|
20
|
-
static DownloadFile(fileName: string, content: string, mimeType?: string): void;
|
|
21
|
-
static ReadAsText(file: File): Promise<string>;
|
|
22
|
-
static GetExtensionFromDataUri(dataUri: string): string;
|
|
23
|
-
static CreateDownloadFileNameFromBase64(dataUri: string): string;
|
|
24
|
-
static DownloadFromDataUri(dataUri: string, fileName: string): void;
|
|
25
|
-
static DocumentBodyToDataUri(documentBody: string, mimeType: string): string;
|
|
26
|
-
private static FixUnityUrl;
|
|
27
|
-
}
|
package/utils/image.utils.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import { Material } from '../model/material';
|
|
3
|
-
import { BaseUtils } from './base-utils';
|
|
4
|
-
export declare class ImageUtils extends BaseUtils {
|
|
5
|
-
static textures: Map<string, THREE.Texture>;
|
|
6
|
-
static CreateTextureFromBase64(id: string, base64: string, material: Material, defaultFlip?: boolean): Promise<THREE.Texture>;
|
|
7
|
-
static getDocBodyWithMimeTypeDefinition(fileName: string, documentBody: string): string;
|
|
8
|
-
static getFixedImageFilepathUrl(imageFilepathUrl: string): string;
|
|
9
|
-
static ClearCache(): void;
|
|
10
|
-
}
|
package/utils/object.utils.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Material, Mesh, Object3D } from "three";
|
|
2
|
-
export declare class ObjectUtils {
|
|
3
|
-
static materialProps: string[];
|
|
4
|
-
static DisposeMaterial(material: Material | Material[]): void;
|
|
5
|
-
static DisposeObject(object: Object3D | Mesh): void;
|
|
6
|
-
private static DisposeNode;
|
|
7
|
-
}
|
package/utils/scene-utils.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
export declare class SceneUtils {
|
|
3
|
-
static TrySelectorConnection(scene: THREE.Scene, parent: THREE.Object3D, part1: any, part2: any, isFirstElement: boolean, createAddableFn?: Function): boolean;
|
|
4
|
-
static Convert3DPointToScreenPoint(point: THREE.Vector3, camera: THREE.Camera, width: number, height: number): THREE.Vector2;
|
|
5
|
-
static CanSelectorConnect(consPart1: THREE.Object3D[], con1: THREE.Object3D | any, con2: THREE.Object3D | any, startWithMale?: boolean): boolean;
|
|
6
|
-
private static SelectorConnect;
|
|
7
|
-
}
|
package/utils/threed.utils.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as THREE from "three";
|
|
2
|
-
export declare class ThreedUtils {
|
|
3
|
-
private _objectCache;
|
|
4
|
-
clearCache(): void;
|
|
5
|
-
download3DSource(fileName: string, setVisibleFalse?: boolean): Promise<THREE.Object3D>;
|
|
6
|
-
readFileAsText(file: File): Promise<string>;
|
|
7
|
-
loadJsonModel(filePath: string): Promise<any>;
|
|
8
|
-
loadJsonObjectModel(filePath: string): Promise<any>;
|
|
9
|
-
loadGlbModel(file: string, cleanUp?: boolean): Promise<THREE.Object3D>;
|
|
10
|
-
loadGlbSource(file: string, setVisibleFalse?: boolean): Promise<THREE.Object3D>;
|
|
11
|
-
textureFromUrl(url: string): Promise<any>;
|
|
12
|
-
private _cleanedUpObjects;
|
|
13
|
-
private _addGroupChildrenToObject;
|
|
14
|
-
private _iterateChildren;
|
|
15
|
-
private _readJsonFile;
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { VariationSettings } from '../model/variation-settings';
|
|
2
|
-
export declare class VariationUtils {
|
|
3
|
-
private static MaterialCache;
|
|
4
|
-
static ClearCache(): void;
|
|
5
|
-
static LoadVariation(assetPath: string, fileName: string): Promise<VariationSettings>;
|
|
6
|
-
static LoadVariationByUrl(materialCode: string, url: string): Promise<VariationSettings>;
|
|
7
|
-
private static GetVariationSettingsFromFile;
|
|
8
|
-
private static CreateSettingsBasedOnIndex;
|
|
9
|
-
private static CreateSettingsBasedOnFileName;
|
|
10
|
-
private static LoadMaterialFromJson;
|
|
11
|
-
private static LoadMaterialFromGlb;
|
|
12
|
-
private static LoadFileContentFromZip;
|
|
13
|
-
private static FileIsImage;
|
|
14
|
-
private static GetBase64FileType;
|
|
15
|
-
private static GetZipContent;
|
|
16
|
-
}
|