@colijnit/configurator 1.0.21 → 1.0.22

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 (158) hide show
  1. package/app/builder.d.ts +53 -0
  2. package/app/components/answers/answer/answer.component.d.ts +11 -0
  3. package/app/components/answers/answers.component.d.ts +8 -0
  4. package/app/components/answers/answers.module.d.ts +2 -0
  5. package/app/components/selections/selections.component.d.ts +22 -0
  6. package/app/components/selections/selections.module.d.ts +2 -0
  7. package/app/components/shared/loader/loader.component.d.ts +2 -0
  8. package/app/components/shared/shared.module.d.ts +2 -0
  9. package/app/directives/visibility-observer-master.directive.d.ts +9 -0
  10. package/app/directives/visibility-observer.directive.d.ts +13 -0
  11. package/app/services/configurator.service.d.ts +22 -0
  12. package/app/services/image-cache.service.d.ts +10 -0
  13. package/app/services/locator.service.d.ts +4 -0
  14. package/bundles/colijnit-configurator.umd.js +2745 -0
  15. package/bundles/colijnit-configurator.umd.js.map +1 -0
  16. package/bundles/colijnit-configurator.umd.min.js +17 -0
  17. package/bundles/colijnit-configurator.umd.min.js.map +1 -0
  18. package/colijnit-configurator.d.ts +10 -0
  19. package/colijnit-configurator.metadata.json +1 -0
  20. package/esm2015/app/builder.js +477 -0
  21. package/esm2015/app/components/answers/answer/answer.component.js +69 -0
  22. package/esm2015/app/components/answers/answers.component.js +43 -0
  23. package/esm2015/app/components/answers/answers.module.js +29 -0
  24. package/esm2015/app/components/selections/selections.component.js +134 -0
  25. package/esm2015/app/components/selections/selections.module.js +23 -0
  26. package/esm2015/app/components/shared/loader/loader.component.js +24 -0
  27. package/esm2015/app/components/shared/shared.module.js +21 -0
  28. package/esm2015/app/directives/visibility-observer-master.directive.js +51 -0
  29. package/esm2015/app/directives/visibility-observer.directive.js +57 -0
  30. package/esm2015/app/services/configurator.service.js +94 -0
  31. package/esm2015/app/services/image-cache.service.js +66 -0
  32. package/esm2015/app/services/locator.service.js +10 -0
  33. package/esm2015/colijnit-configurator.js +11 -0
  34. package/esm2015/helper/variation-helper.js +216 -0
  35. package/esm2015/model/material.js +11 -0
  36. package/esm2015/model/variation-settings.js +6 -0
  37. package/esm2015/model/variation.js +3 -0
  38. package/esm2015/public_api.js +7 -0
  39. package/esm2015/utils/asset.utils.js +74 -0
  40. package/esm2015/utils/file.utils.js +139 -0
  41. package/esm2015/utils/image.utils.js +52 -0
  42. package/esm2015/utils/object.utils.js +49 -0
  43. package/esm2015/utils/scene-utils.js +94 -0
  44. package/esm2015/utils/threed.utils.js +222 -0
  45. package/esm2015/utils/variation-utils.js +224 -0
  46. package/esm5/app/builder.js +591 -0
  47. package/esm5/app/components/answers/answer/answer.component.js +64 -0
  48. package/esm5/app/components/answers/answers.component.js +27 -0
  49. package/esm5/app/components/answers/answers.module.js +32 -0
  50. package/esm5/app/components/selections/selections.component.js +104 -0
  51. package/esm5/app/components/selections/selections.module.js +26 -0
  52. package/esm5/app/components/shared/loader/loader.component.js +16 -0
  53. package/esm5/app/components/shared/shared.module.js +24 -0
  54. package/esm5/app/directives/visibility-observer-master.directive.js +64 -0
  55. package/esm5/app/directives/visibility-observer.directive.js +59 -0
  56. package/esm5/app/services/configurator.service.js +160 -0
  57. package/esm5/app/services/image-cache.service.js +69 -0
  58. package/esm5/app/services/locator.service.js +13 -0
  59. package/esm5/colijnit-configurator.js +11 -0
  60. package/esm5/helper/variation-helper.js +268 -0
  61. package/esm5/model/material.js +13 -0
  62. package/esm5/model/variation-settings.js +8 -0
  63. package/esm5/model/variation.js +7 -0
  64. package/esm5/public_api.js +7 -0
  65. package/esm5/utils/asset.utils.js +106 -0
  66. package/esm5/utils/file.utils.js +151 -0
  67. package/esm5/utils/image.utils.js +56 -0
  68. package/esm5/utils/object.utils.js +56 -0
  69. package/esm5/utils/scene-utils.js +98 -0
  70. package/esm5/utils/threed.utils.js +279 -0
  71. package/esm5/utils/variation-utils.js +327 -0
  72. package/fesm2015/colijnit-configurator.js +2109 -0
  73. package/fesm2015/colijnit-configurator.js.map +1 -0
  74. package/fesm5/colijnit-configurator.js +2527 -0
  75. package/fesm5/colijnit-configurator.js.map +1 -0
  76. package/helper/variation-helper.d.ts +14 -0
  77. package/model/material.d.ts +17 -0
  78. package/model/variation-settings.d.ts +14 -0
  79. package/model/variation.d.ts +10 -0
  80. package/package.json +12 -45
  81. package/{src/public_api.ts → public_api.d.ts} +6 -6
  82. package/utils/asset.utils.d.ts +13 -0
  83. package/utils/file.utils.d.ts +27 -0
  84. package/utils/image.utils.d.ts +8 -0
  85. package/utils/object.utils.d.ts +7 -0
  86. package/utils/scene-utils.d.ts +7 -0
  87. package/utils/threed.utils.d.ts +16 -0
  88. package/utils/variation-utils.d.ts +12 -0
  89. package/.idea/Configurator.iml +0 -12
  90. package/.idea/codeStyles/Project.xml +0 -21
  91. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  92. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  93. package/.idea/misc.xml +0 -9
  94. package/.idea/modules.xml +0 -8
  95. package/.idea/vcs.xml +0 -6
  96. package/angular.json +0 -193
  97. package/configurator.iml +0 -11
  98. package/dist/configurator/index.html +0 -14
  99. package/dist/configurator/main-es2015.js +0 -3129
  100. package/dist/configurator/main-es2015.js.map +0 -1
  101. package/dist/configurator/main-es5.js +0 -5482
  102. package/dist/configurator/main-es5.js.map +0 -1
  103. package/dist/configurator/polyfills-es2015.js +0 -4520
  104. package/dist/configurator/polyfills-es2015.js.map +0 -1
  105. package/dist/configurator/polyfills-es5.js +0 -18375
  106. package/dist/configurator/polyfills-es5.js.map +0 -1
  107. package/dist/configurator/runtime-es2015.js +0 -155
  108. package/dist/configurator/runtime-es2015.js.map +0 -1
  109. package/dist/configurator/runtime-es5.js +0 -155
  110. package/dist/configurator/runtime-es5.js.map +0 -1
  111. package/dist/configurator/styles-es2015.js +0 -450
  112. package/dist/configurator/styles-es2015.js.map +0 -1
  113. package/dist/configurator/styles-es5.js +0 -432
  114. package/dist/configurator/styles-es5.js.map +0 -1
  115. package/dist/configurator/vendor-es2015.js +0 -155551
  116. package/dist/configurator/vendor-es2015.js.map +0 -1
  117. package/dist/configurator/vendor-es5.js +0 -183588
  118. package/dist/configurator/vendor-es5.js.map +0 -1
  119. package/ng-package.json +0 -9
  120. package/src/app/app.component.ts +0 -222
  121. package/src/app/app.module.ts +0 -34
  122. package/src/app/builder.ts +0 -480
  123. package/src/app/components/answers/answer/answer.component.ts +0 -61
  124. package/src/app/components/answers/answers.component.ts +0 -41
  125. package/src/app/components/answers/answers.module.ts +0 -26
  126. package/src/app/components/selections/selections.component.ts +0 -131
  127. package/src/app/components/selections/selections.module.ts +0 -20
  128. package/src/app/components/shared/loader/loader.component.scss +0 -33
  129. package/src/app/components/shared/loader/loader.component.ts +0 -20
  130. package/src/app/components/shared/shared.module.ts +0 -16
  131. package/src/app/directives/visibility-observer-master.directive.ts +0 -71
  132. package/src/app/directives/visibility-observer.directive.ts +0 -74
  133. package/src/app/services/configurator.service.ts +0 -86
  134. package/src/app/services/image-cache.service.ts +0 -56
  135. package/src/app/services/locator.service.ts +0 -6
  136. package/src/environments/environment.prod.ts +0 -3
  137. package/src/environments/environment.ts +0 -8
  138. package/src/helper/variation-helper.ts +0 -220
  139. package/src/index.html +0 -14
  140. package/src/main.ts +0 -11
  141. package/src/model/material.ts +0 -22
  142. package/src/model/variation-settings.ts +0 -14
  143. package/src/model/variation.ts +0 -11
  144. package/src/polyfills.ts +0 -73
  145. package/src/style/shared.scss +0 -173
  146. package/src/style/styles.scss +0 -45
  147. package/src/tsconfig.app.json +0 -16
  148. package/src/tsconfig.spec.json +0 -19
  149. package/src/utils/asset.utils.ts +0 -88
  150. package/src/utils/file.utils.ts +0 -156
  151. package/src/utils/file.utils.unit.test.ts +0 -8
  152. package/src/utils/image.utils.ts +0 -54
  153. package/src/utils/object.utils.ts +0 -52
  154. package/src/utils/scene-utils.ts +0 -119
  155. package/src/utils/threed.utils.ts +0 -219
  156. package/src/utils/variation-utils.ts +0 -216
  157. package/tsconfig.json +0 -23
  158. package/tslint.json +0 -132
@@ -0,0 +1,7 @@
1
+ import * as THREE from 'three';
2
+ export declare class SceneUtils {
3
+ static TrySelectorConnection(scene: THREE.Scene, parent: THREE.Object3D, part1: any, part2: any, createAddableFn?: Function): boolean;
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;
6
+ private static SelectorConnect;
7
+ }
@@ -0,0 +1,16 @@
1
+ import * as THREE from "three";
2
+ export declare class ThreedUtils {
3
+ private _objectCache;
4
+ clearCache(): void;
5
+ download3DSource(fileName: string): 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): Promise<THREE.Object3D>;
11
+ textureFromUrl(url: string): Promise<any>;
12
+ private _cleanedUpObjects;
13
+ private _addGroupChildrenToObject;
14
+ private _iterateChildren;
15
+ private _readJsonFile;
16
+ }
@@ -0,0 +1,12 @@
1
+ import { VariationSettings } from "../model/variation-settings";
2
+ export declare class VariationUtils {
3
+ private static MaterialCache;
4
+ static LoadVariation(assetPath: string, fileName: string): Promise<VariationSettings>;
5
+ private static GetVariationSettingsFromFile;
6
+ private static CreateSettingsBasedOnIndex;
7
+ private static CreateSettingsBasedOnFileName;
8
+ private static LoadFileContentFromZip;
9
+ private static FileIsImage;
10
+ private static GetBase64FileType;
11
+ private static GetZipContent;
12
+ }
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="JAVA_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$">
6
- <excludeFolder url="file://$MODULE_DIR$/dist" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
@@ -1,21 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <code_scheme name="Project" version="173">
3
- <JetCodeStyleSettings>
4
- <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
5
- </JetCodeStyleSettings>
6
- <TypeScriptCodeStyleSettings version="0">
7
- <option name="USE_DOUBLE_QUOTES" value="false" />
8
- <option name="FORCE_QUOTE_STYlE" value="true" />
9
- </TypeScriptCodeStyleSettings>
10
- <codeStyleSettings language="TypeScript">
11
- <option name="RIGHT_MARGIN" value="140" />
12
- <option name="IF_BRACE_FORCE" value="3" />
13
- <option name="DOWHILE_BRACE_FORCE" value="3" />
14
- <option name="WHILE_BRACE_FORCE" value="3" />
15
- <option name="FOR_BRACE_FORCE" value="3" />
16
- </codeStyleSettings>
17
- <codeStyleSettings language="kotlin">
18
- <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
19
- </codeStyleSettings>
20
- </code_scheme>
21
- </component>
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
- </state>
5
- </component>
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="TsLint" enabled="true" level="WARNING" enabled_by_default="true" />
5
- </profile>
6
- </component>
package/.idea/misc.xml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="MarkdownSettingsMigration">
4
- <option name="stateVersion" value="1" />
5
- </component>
6
- <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="temurin-21" project-jdk-type="JavaSDK">
7
- <output url="file://$PROJECT_DIR$/out" />
8
- </component>
9
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/Configurator.iml" filepath="$PROJECT_DIR$/.idea/Configurator.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$/../../../.." vcs="Git" />
5
- </component>
6
- </project>
package/angular.json DELETED
@@ -1,193 +0,0 @@
1
- {
2
- "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
- "version": 1,
4
- "newProjectRoot": "projects",
5
- "projects": {
6
- "colijnit-configurator": {
7
- "root": "",
8
- "sourceRoot": "src",
9
- "projectType": "application",
10
- "architect": {
11
- "build": {
12
- "builder": "@angular-devkit/build-angular:browser",
13
- "options": {
14
- "aot": true,
15
- "outputPath": "dist/configurator",
16
- "index": "src/index.html",
17
- "main": "src/main.ts",
18
- "tsConfig": "src/tsconfig.app.json",
19
- "polyfills": "src/polyfills.ts",
20
- "assets": [
21
- "src/layout/",
22
- "src/assets",
23
- "src/favicon.ico"
24
- ],
25
- "styles": [
26
- "src/style/styles.scss"
27
- ],
28
- "scripts": []
29
- },
30
- "configurations": {
31
- "production": {
32
- "budgets": [
33
- {
34
- "type": "anyComponentStyle",
35
- "maximumWarning": "6kb"
36
- }
37
- ],
38
- "optimization": true,
39
- "outputHashing": "none",
40
- "sourceMap": false,
41
- "extractCss": false,
42
- "namedChunks": false,
43
- "aot": false,
44
- "extractLicenses": false,
45
- "vendorChunk": true,
46
- "buildOptimizer": true,
47
- "fileReplacements": [
48
- {
49
- "replace": "src/environments/environment.ts",
50
- "with": "src/environments/environment.prod.ts"
51
- }
52
- ]
53
- }
54
- }
55
- },
56
- "serve": {
57
- "builder": "@angular-devkit/build-angular:dev-server",
58
- "options": {
59
- "browserTarget": "colijnit-configurator:build"
60
- },
61
- "configurations": {
62
- "production": {
63
- "browserTarget": "colijnit-configurator:build:production"
64
- }
65
- }
66
- },
67
- "extract-i18n": {
68
- "builder": "@angular-devkit/build-angular:extract-i18n",
69
- "options": {
70
- "browserTarget": "colijnit-configurator:build"
71
- }
72
- },
73
- "test": {
74
- "builder": "@angular-devkit/build-angular:karma",
75
- "options": {
76
- "main": "src/test.ts",
77
- "karmaConfig": "./karma.conf.js",
78
- "polyfills": "src/polyfills.ts",
79
- "tsConfig": "src/tsconfig.spec.json",
80
- "scripts": [],
81
- "styles": [
82
- "src/style/styles.scss"
83
- ],
84
- "assets": [
85
- "src/assets",
86
- "src/favicon.ico"
87
- ]
88
- }
89
- },
90
- "lint": {
91
- "builder": "@angular-devkit/build-angular:tslint",
92
- "options": {
93
- "tsConfig": [
94
- "src/tsconfig.app.json",
95
- "src/tsconfig.spec.json"
96
- ],
97
- "exclude": []
98
- }
99
- }
100
- }
101
- },
102
- "colijnit-configurator-e2e": {
103
- "root": "e2e",
104
- "sourceRoot": "e2e",
105
- "projectType": "application",
106
- "architect": {
107
- "e2e": {
108
- "builder": "@angular-devkit/build-angular:protractor",
109
- "options": {
110
- "protractorConfig": "./protractor.conf.js",
111
- "devServerTarget": "colijnit-configurator:serve"
112
- }
113
- },
114
- "lint": {
115
- "builder": "@angular-devkit/build-angular:tslint",
116
- "options": {
117
- "tsConfig": [
118
- "e2e/tsconfig.e2e.json"
119
- ],
120
- "exclude": []
121
- }
122
- }
123
- }
124
- },
125
- "colijnit-configurator-bundle": {
126
- "root": "",
127
- "sourceRoot": "src",
128
- "projectType": "application",
129
- "architect": {
130
- "build": {
131
- "builder": "@angular-devkit/build-angular:browser",
132
- "options": {
133
- "aot": true,
134
- "outputPath": "dist/colijnit-configurator",
135
- "index": "src/index.html",
136
- "main": "src/main.bundle.ts",
137
- "tsConfig": "src/tsconfig.app.json",
138
- "polyfills": "src/polyfills.ts",
139
- "assets": [
140
- "src/layout/",
141
- "src/assets",
142
- "src/favicon.ico"
143
- ],
144
- "styles": [
145
- "src/style/styles.scss"
146
- ],
147
- "scripts": []
148
- },
149
- "configurations": {
150
- "production": {
151
- "budgets": [
152
- {
153
- "type": "anyComponentStyle",
154
- "maximumWarning": "6kb"
155
- }
156
- ],
157
- "optimization": true,
158
- "outputHashing": "none",
159
- "sourceMap": false,
160
- "extractCss": false,
161
- "namedChunks": false,
162
- "aot": false,
163
- "extractLicenses": false,
164
- "vendorChunk": false,
165
- "buildOptimizer": true,
166
- "fileReplacements": [
167
- {
168
- "replace": "src/environments/environment.ts",
169
- "with": "src/environments/environment.prod.ts"
170
- }
171
- ]
172
- }
173
- }
174
- },
175
- "serve": {
176
- "builder": "@angular-devkit/build-angular:dev-server",
177
- "options": {
178
- "browserTarget": "colijnit-configurator-bundle:build"
179
- },
180
- "configurations": {
181
- "production": {
182
- "browserTarget": "colijnit-configurator-bundle:build:production"
183
- }
184
- }
185
- }
186
- }
187
- }
188
- },
189
- "defaultProject": "colijnit-configurator",
190
- "cli": {
191
- "analytics": false
192
- }
193
- }
package/configurator.iml DELETED
@@ -1,11 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$">
6
- <excludeFolder url="file://$MODULE_DIR$/dist" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="sourceFolder" forTests="false" />
10
- </component>
11
- </module>
@@ -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
- </head>
11
- <body>
12
- <app-root></app-root>
13
- <script src="runtime-es2015.js" type="module"></script><script src="runtime-es5.js" nomodule defer></script><script src="polyfills-es5.js" nomodule defer></script><script src="polyfills-es2015.js" type="module"></script><script src="styles-es2015.js" type="module"></script><script src="styles-es5.js" nomodule defer></script><script src="vendor-es2015.js" type="module"></script><script src="vendor-es5.js" nomodule defer></script><script src="main-es2015.js" type="module"></script><script src="main-es5.js" nomodule defer></script></body>
14
- </html>