@roomle/embedding-lib 5.25.0-alpha.3 → 5.25.0-alpha.5

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 (40) hide show
  1. package/docs/md/web/embedding/CHANGELOG.md +10 -2
  2. package/drag-in-DTA1FCDc.mjs +1 -0
  3. package/drag-in-DuufO5eB.mjs +138 -0
  4. package/from-custom-view-BdnViEhf.mjs +163 -0
  5. package/from-custom-view-DIYHP31u.mjs +1 -0
  6. package/from-website-CcDHgCCy.mjs +1 -0
  7. package/from-website-CktA6Icy.mjs +201 -0
  8. package/package.json +1 -1
  9. package/packages/web-sdk/packages/common-core/src/static-files/environment-maps.d.ts +6 -4
  10. package/packages/web-sdk/packages/common-core/src/static-files/libs.d.ts +3 -1
  11. package/packages/web-sdk/packages/common-core/src/static-files/light-settings.d.ts +8 -6
  12. package/packages/web-sdk/packages/common-core/src/static-files/luts.d.ts +11 -9
  13. package/packages/web-sdk/packages/common-core/src/static-files/roomle-core.d.ts +8 -6
  14. package/packages/web-sdk/packages/common-core/src/webgl/renderer/pass/gbuffer-render-pass.d.ts +1 -1
  15. package/packages/web-sdk/packages/configurator-core/src/roomle-configurator.d.ts +13 -0
  16. package/packages/web-sdk/packages/configurator-core/src/static-files/fonts.d.ts +4 -2
  17. package/packages/web-sdk/packages/configurator-core/src/static-files/geometries.d.ts +3 -1
  18. package/packages/web-sdk/packages/configurator-core/src/static-files/settings.d.ts +3 -1
  19. package/packages/web-sdk/packages/configurator-core/src/static-files/textures.d.ts +3 -1
  20. package/packages/web-sdk/packages/configurator-core/src/utils/animation/animation-value-map.d.ts +1 -0
  21. package/packages/web-sdk/packages/configurator-core/src/utils/component-dimensioning-helper.d.ts +3 -3
  22. package/packages/web-sdk/packages/configurator-core/src/utils/dimensioning-helper.d.ts +1 -0
  23. package/packages/web-sdk/packages/configurator-core/src/webgl/configurator-scene-manager.d.ts +4 -0
  24. package/packages/web-sdk/packages/workers/src/static-files/workers.d.ts +4 -2
  25. package/roomle-embedding-lib.es.js +306 -316
  26. package/roomle-embedding-lib.es.min.js +1 -1
  27. package/roomle-embedding-lib.umd.js +17 -17
  28. package/roomle-embedding-lib.umd.min.js +1 -1
  29. package/touch-drag-B5zCf87J.mjs +1 -0
  30. package/touch-drag-DXJTOrk5.mjs +146 -0
  31. package/drag-in-CqBNfbIX.mjs +0 -142
  32. package/drag-in-ltdVSMsI.mjs +0 -1
  33. package/from-custom-view-Bg3_d6Sp.mjs +0 -1
  34. package/from-custom-view-V503ai3X.mjs +0 -167
  35. package/from-website-BAX9bdN9.mjs +0 -210
  36. package/from-website-DsBWpkdv.mjs +0 -1
  37. package/packages/web-sdk/packages/vite-plugins/vite-plugin-auto-workers.d.ts +0 -8
  38. package/packages/web-sdk/packages/vite-plugins/vite-plugin-bundle-sw.d.ts +0 -10
  39. package/touch-drag-BEct6jbW.mjs +0 -1
  40. package/touch-drag-DNDPwZ-_.mjs +0 -149
@@ -244,6 +244,19 @@ export default class RoomleConfigurator<P extends readonly PluginName[] = readon
244
244
  * @param value the value we want to set on the parameter as string
245
245
  */
246
246
  setParameterOfPlanObject(parameter: KernelParameter, value: string): Promise<void>;
247
+ /**
248
+ * Sets an animation value of the selected component. If nothing is selected the values of the
249
+ * animations of the plan object are set
250
+ * @param key key of the animation as string
251
+ * @param value the value we want to set on the animation as string
252
+ */
253
+ setAnimationValue(key: string, value: string): Promise<void>;
254
+ /**
255
+ * Method to set an animation value on the plan object.
256
+ * @param key key of the animation as string
257
+ * @param value the value we want to set on the animation as string
258
+ */
259
+ setAnimationValueOfPlanObject(key: string, value: string): Promise<void>;
247
260
  /**
248
261
  * Returns all parameters which correspond to the plan object. This is also exposed for embedding
249
262
  */
@@ -1,2 +1,4 @@
1
- export { default as LATO_SUB_FILE_NAME } from '../../public/fonts/lato_regular_sub.json';
2
- export { default as LATO_FILE_NAME } from '../../public/fonts/lato_regular.json';
1
+ import { default as LATO_SUB_FILE_NAME } from '../../public/fonts/lato_regular_sub.json?no-inline?url';
2
+ import { default as LATO_FILE_NAME } from '../../public/fonts/lato_regular.json?no-inline?url';
3
+
4
+ export { LATO_SUB_FILE_NAME, LATO_FILE_NAME };
@@ -1 +1,3 @@
1
- export { default as BANANA_FILE_NAME } from '../../public/geometry/banana.glb?url';
1
+ import { default as BANANA_FILE_NAME } from '../../public/geometry/banana.glb?no-inline?url';
2
+
3
+ export { BANANA_FILE_NAME };
@@ -1 +1,3 @@
1
- export { default as DEFAULT_EXTERNAL_OBJECT_API_CONFIGURATION } from '../../public/settings/default-external-object-api-configuration.json?url';
1
+ import { default as DEFAULT_EXTERNAL_OBJECT_API_CONFIGURATION } from '../../public/settings/default-external-object-api-configuration.json?no-inline?url';
2
+
3
+ export { DEFAULT_EXTERNAL_OBJECT_API_CONFIGURATION };
@@ -1 +1,3 @@
1
- export { default as WHITE_WALL_TEXTURE_FILE_NAME } from '../../public/textures/white_wall_texture.jpg';
1
+ import { default as WHITE_WALL_TEXTURE_FILE_NAME } from '../../public/textures/white_wall_texture.jpg?no-inline?url';
2
+
3
+ export { WHITE_WALL_TEXTURE_FILE_NAME };
@@ -1,5 +1,6 @@
1
1
  import { KernelParameter } from '../../../../typings/kernel';
2
2
 
3
+ export declare const ANIMATION_PARAMETER_PREFIX = "animation:";
3
4
  export declare class AnimationValueMap {
4
5
  private valueMap;
5
6
  static filterAnimationParameters(parameters: KernelParameter[]): KernelParameter[];
@@ -11,13 +11,13 @@ export default class ComponentDimensioningHelper implements Context {
11
11
  private _componentDimensioningsExist;
12
12
  constructor(creator: string);
13
13
  setCamera(camera: PerspectiveCamera): void;
14
- add(component: RoomleComponent): boolean;
14
+ add(component: RoomleComponent, updateRenderer?: () => void): boolean;
15
15
  private _assembleDimensionings;
16
16
  private _findAxis;
17
17
  private _mapDimensioningToAxis;
18
- private _transformObjectDimensioning;
19
- private _transformDimensioningScale;
18
+ private _transformObjectDimensioningAxis;
20
19
  private _transformPosition;
20
+ private _transformDirectionVector;
21
21
  remove(component: RoomleComponent, remove?: boolean): Promise<void>;
22
22
  hasComponentDimensions(): boolean;
23
23
  reset(): Promise<void>;
@@ -1,6 +1,7 @@
1
1
  import { Object3D, Scene, Box3, Vector3 } from 'three';
2
2
  import { KernelCube } from '../../../typings/kernel';
3
3
 
4
+ export declare const DIMENSIONING_GEOMETRY = "dimensioning";
4
5
  export default class DimensioningHelper {
5
6
  _creator_: string;
6
7
  private _unitFormatter;
@@ -39,6 +39,8 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
39
39
  private _dimensionHelper;
40
40
  private _uiIntersectionHelper;
41
41
  private _sceneEventHandler;
42
+ private _currentComponent;
43
+ private _isComponentDimensionsVisible;
42
44
  constructor(creator: string, offset: CanvasOffset, mode: Enumify<typeof CAMERA_TYPE>);
43
45
  private _initOptionalModules;
44
46
  protected _changeCameraBehaviour(cameraBehaviour: CameraBehaviour): void;
@@ -158,4 +160,6 @@ export default class ConfiguratorSceneManager extends SceneManager implements Co
158
160
  redo(): Promise<void>;
159
161
  clearHistory(): void;
160
162
  private _callOnPartListUpdate;
163
+ private _showCustomComponentDimensions;
164
+ private _removeCustomComponentDimensions;
161
165
  }
@@ -1,2 +1,4 @@
1
- export { default as ASSET_LOADER_FILE_NAME } from '../../generated/asset-loader.worker.js?url';
2
- export { default as BUDGETEER_FILE_NAME } from '../../generated/budgeteer.sw.js?url';
1
+ import { default as BUDGETEER_FILE_NAME } from '../../generated/budgeteer.sw.js?no-inline?url';
2
+ import { default as ASSET_LOADER_FILE_NAME } from '../../generated/asset-loader.worker.js?no-inline?url';
3
+
4
+ export { BUDGETEER_FILE_NAME, ASSET_LOADER_FILE_NAME };